00ccbbcaf067a35caa690b5eca1d7f047c7a2d5d
[gcc.git] / gcc / ChangeLog
1 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2
3 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
4 for big-endian element order.
5 (aarch64_simd_vec_setv2di): Likewise.
6 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
7 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
8 (vec_extract): Expand using aarch64_get_lane.
9 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
10
11 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
12
13 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
14 and stores to be ABI compliant.
15
16 2013-11-22 David Malcolm <dmalcolm@redhat.com>
17
18 * input.h (input_line): Remove.
19 (input_filename): Likewise.
20 (in_system_header): Likewise.
21 * tree.h (EXPR_LOC_OR_HERE): Remove.
22 * config/bfin/bfin.c (output_file_start): Remove use of
23 input_filename macro.
24 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
25 * gimplify.c (internal_get_tmp_var): Likewise.
26 EXPR_LOC_OR_HERE macro.
27 (shortcut_cond_expr): Likewise.
28 * tree-diagnostic.c (diagnostic_report_current_function): Remove
29 use of input_filename macro.
30 * tree.c (get_file_function_name): Likewise.
31
32 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
33
34 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
35
36 2013-11-22 Jakub Jelinek <jakub@redhat.com>
37
38 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
39 (same sized) elements even if the type of the CONSTRUCTOR has
40 vector mode and target is a REG.
41
42 2013-11-22 Richard Biener <rguenther@suse.de>
43
44 Revert
45 2013-11-21 Richard Biener <rguenther@suse.de>
46
47 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
48 nb_iterations_upper_bound by one.
49
50 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
51
52 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
53 for Silvermont.
54
55 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
56 core-avx-i, core-avx2 and slm.
57
58 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
59
60 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
61
62 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
63
64 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
65 (stzx_24_<mode>): Likewise mra_operand.
66
67 2013-11-22 Jeff Law <law@redhat.com>
68
69 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
70 (thread_block_1): Do not cancel jump threads which go from
71 inside a loop, through the header, then back inside the loop.
72 (bb_ends_with_multiway_branch): New function.
73 (thread_through_all_blocks): Handle threading cases which start
74 in a loop through the loop header to a point in the loop.
75
76 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
77 jump thread path properly.
78
79 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
80
81 * vec.h (auto_vec): New class.
82 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
83 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
84 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
85 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
86 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
87 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
88 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
89 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
90 appropriate instead of vec for local variables.
91
92 2013-11-21 Teresa Johnson <tejohnson@google.com>
93
94 PR target/59233
95 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
96 not understood by old_insns_match_p.
97
98 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
99
100 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
101 little endian change.
102 (vec_pack_sfix_trunc_v2df): Likewise.
103 (vec_pack_ufix_trunc_v2df): Likewise.
104 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
105 double checking of endianness.
106
107 2013-11-22 Jakub Jelinek <jakub@redhat.com>
108
109 * tree-vect-generic.c (optimize_vector_constructor): New function.
110 (expand_vector_operations_1): Call it.
111
112 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
113
114 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
115 ix86_zero_extend_to_Pmode where appropriate.
116 (ix86_expand_builtin): Ditto.
117
118 2013-11-21 Cary Coutant <ccoutant@google.com>
119
120 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
121 (add_linkage_name): Don't add linkage name for -g1.
122 (decls_for_scope): Process subblocks for -g1.
123 (dwarf2out_source_line): Output line tables for -g1.
124 (dwarf2out_finish): Likewise.
125 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
126 unused scopes for -g1.
127 * opts.c (common_handle_option): Handle -g same as -g2.
128 * doc/invoke.texi: Update description for -g1.
129
130 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
131
132 * doc/extend.texi: Document htm builtins.
133
134 2013-11-21 Jeff Law <law@redhat.com>
135
136 PR tree-optimization/59221
137 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
138 temporary equivalences when threading through joiner blocks.
139
140 2013-11-21 Joseph Myers <joseph@codesourcery.com>
141
142 PR rtl-optimization/55950
143 * real.c (real_sqrt): Remove function.
144 * real.h (real_sqrt): Remove prototype.
145 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
146 SQRT using real_sqrt.
147
148 2013-11-21 Richard Biener <rguenther@suse.de>
149
150 PR tree-optimization/59058
151 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
152 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
153 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
154 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
155 (NITERS_KNOWN_P): Fold into ...
156 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
157 (LOOP_VINFO_PEELING_FOR_NITER): Add.
158 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
159 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
160 (vect_do_peeling_for_alignment): Re-use precomputed niter
161 instead of re-emitting it.
162 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
163 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
164 * tree-vect-loop.c (vect_get_loop_niters): Use
165 number_of_latch_executions.
166 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
167 (vect_analyze_loop_form): Simplify.
168 (vect_analyze_loop_operations): Move epilogue peeling code ...
169 (vect_analyze_loop_2): ... here and adjust it to compute
170 LOOP_VINFO_PEELING_FOR_NITER.
171 (vect_estimate_min_profitable_iters): Use
172 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
173 (vect_build_loop_niters): Emit on the preheader.
174 (vect_generate_tmps_on_preheader): Likewise.
175 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
176 of recomputing it. Adjust.
177
178 2013-11-21 Richard Biener <rguenther@suse.de>
179
180 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
181 LOC_LINE): Remove wrappers and fix all users.
182 (struct _loop_vec_info): Remove loop_line_number member.
183 (LOOP_VINFO_LOC): Remove.
184 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
185 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
186 and LOC_LINE.
187
188 2013-11-21 Richard Biener <rguenther@suse.de>
189
190 * tree-ssa-forwprop.c (simplify_vce): New function.
191 (ssa_forward_propagate_and_combine): Call it.
192
193 2013-11-21 Richard Biener <rguenther@suse.de>
194
195 * tree-vect-loop-manip.c (vect_build_loop_niters,
196 vect_generate_tmps_on_preheader): Move ...
197 * tree-vect-loop.c (vect_build_loop_niters,
198 vect_generate_tmps_on_preheader): ... here and simplify.
199 (vect_transform_loop): Call them here and pass down results
200 to consumers.
201 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
202 Get niter variables from caller.
203 (vect_do_peeling_for_alignment): Likewise.
204 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
205 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
206 Adjust prototypes.
207
208 2013-11-21 Richard Biener <rguenther@suse.de>
209
210 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
211 nb_iterations_upper_bound by one.
212
213 2013-11-21 Richard Biener <rguenther@suse.de>
214
215 PR tree-optimization/59058
216 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
217 (build_size_arg_loc): Apply niter adjustment here.
218 (generate_memset_builtin): Adjust.
219 (generate_memcpy_builtin): Likewise.
220 (classify_partition): Do not use number_of_exit_cond_executions
221 but record whether niter needs to be adjusted.
222
223 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
224
225 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
226 could throw.
227
228 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
229
230 PR target/53976
231 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
232 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
233 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
234 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
235 sh_optimize_sett_clrt pass.o to extra_objs.
236
237 2013-11-20 David Malcolm <dmalcolm@redhat.com>
238
239 * cfg.c (dump_edge_info): Remove redundant comment.
240 * cfgcleanup.c (outgoing_edges_match): Reword reference to
241 EXIT_BLOCK_PTR in comment.
242 (try_optimize_cfg): Likewise.
243 * cfgrtl.c (last_bb_in_partition): Likewise.
244 * cgraph.c (cgraph_node_cannot_return): Likewise.
245 * function.c (thread_prologue_and_epilogue_insns): Likewise.
246 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
247 * ipa-split.c (consider_split): Likewise.
248 * profile.c (find_spanning_tree): Likewise.
249 * sched-int.h (common_sched_info_def.add_block): Likewise.
250 * dominance.c (calc_dfs_tree_nonrec): Reword references in
251 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
252 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
253 in comments to now removed ENTRY_BLOCK_PTR macro.
254 (tree_forwarder_block_p): Reword reference in comment to
255 EXIT_BLOCK_PTR.
256 * tree-inline.c (copy_cfg_body): Reword references in comments to
257 now removed ENTRY_BLOCK_PTR macro.
258 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
259 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
260 a comma to the comment to clarify the meaning.
261
262 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
263
264 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
265 Move to gimplify.c.
266 (free_gimplify_stack): Add prototype.
267 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
268 (struct gimplify_ctx): Relocate here.
269 (gimplify_ctxp): Make static.
270 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
271 list of struct gimplify_ctx.
272 (push_gimplify_context): Add default parameters and allocate a struct
273 from the pool.
274 (pop_gimplify_context): Free a struct back to the pool.
275 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
276 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
277 use a local 'struct gimplify_ctx'.
278 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
279 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
280 Likewise.
281 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
282 lower_omp_ordered, lower_omp_critical, lower_omp_for,
283 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
284 lower_omp_teams, execute_lower_omp): Likewise.
285 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
286 * tree-inline.c (optimize_inline_calls): Likewise.
287
288 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
289
290 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
291 (vsx_extract_<mode>): Likewise.
292 (*vsx_extract_<mode>_one_le): New LE variant on
293 *vsx_extract_<mode>_zero.
294 (vsx_extract_v4sf): Adjust for little endian.
295
296 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
297
298 PR rtl-optimization/59133
299 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
300 new pseudos.
301 (lra_create_new_reg_with_unique_value): Pass new argument value.
302 (lra_emit_add, lra_emit_move): Ditto.
303 * lra-constraints.c (in_class_p): Add check for move for a new insn.
304 (change_class): Rename to lra_change_class. Move to lra-int.h.
305 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
306 change_class.
307 (process_addr_reg, process_addr): Ditto.
308 (curr_insn_transform): Ditto. Add check on old pseudo for
309 optional reload.
310 * lra-int.h (lra_get_regno_hard_regno): Move below.
311 (lra_change_class): Renamed change_class from lra.c.
312
313 2013-11-20 David Malcolm <dmalcolm@redhat.com>
314
315 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
316 the children of a NULL pointer.
317
318 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
319
320 * lra.c (lra): Set lra_in_progress before check_rtl call.
321 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
322 adding clobber regs when LRA is running.
323
324 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
325
326 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
327 restriction for ISA_MIPS32R2.
328 (ISA_HAS_LXC1_SXC1): New macro.
329 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
330 (ISA_HAS_NMADD4_NMSUB4): Likewise.
331 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
332 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
333 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
334 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
335 (*<ANYF:storex>_<P:mode>): Likewise.
336
337 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
338
339 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
340 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
341 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
342 * config/mips/mips.md (recip_condition): Remove mode attribute.
343 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
344 <recip_condition>.
345 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
346
347 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
348
349 PR target/59207
350 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
351 Make sure neg2_ovf is set before being used.
352
353 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
354
355 * plugin.def: Add comment about register_callback and
356 invoke_plugin_callbacks_full.
357
358 * plugin.c (register_callback, invoke_plugin_callbacks_full):
359 Handle PLUGIN_INCLUDE_FILE event.
360
361 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
362
363 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
364 allow subregs of TDmode in FPRs of smaller size in little-endian.
365 (rs6000_split_multireg_move): When splitting an access to TDmode
366 in FPRs, do not use simplify_gen_subreg.
367
368 2013-11-20 Joseph Myers <joseph@codesourcery.com>
369
370 PR middle-end/21718
371 * real.c: Remove comment about decimal string conversion and
372 rounding errors.
373 (real_from_string): Use MPFR to convert nonzero decimal constant
374 to REAL_VALUE_TYPE.
375
376 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
377
378 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
379 endianness of the D registers for the legacy encodings.
380
381 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
382
383 PR rtl-optimization/54300
384 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
385 outputs in a single-set are killed from the value chains.
386
387 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
388
389 * cgraph.h (varpool_node): Add need_bounds_init field.
390 * lto-cgraph.c (lto_output_varpool_node): Output
391 need_bounds_init value.
392 (input_varpool_node): Read need_bounds_init value.
393 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
394
395 2013-11-20 Jan Hubicka <jh@suse.cz>
396
397 * opts.c (finish_options): Imply -ffat-lto-objects with
398 -fno-use-linker-plugin.
399 * common.opt (fuse-linker-plugin): Add var.
400
401 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
402
403 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
404 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
405 (gen_type_die_with_usage): Skip pointer bounds.
406 (dwarf2out_global_decl): Likewise.
407
408 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
409
410 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
411 from all insns.
412
413 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
414
415 PR target/57756
416 * config/i386/i386.c (ix86_option_override_internal): Add missed
417 argument prefix for 'ix86_fpmath'.
418 * config/i386/ssemath.h: Add missed definition of
419 TARGET_FPMATH_DEFAULT_P macros.
420
421 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
422 Mike Stump <mikestump@comcast.net>
423 Richard Sandiford <rdsandiford@googlemail.com>
424
425 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
426 instead of TREE_INT_CST_LOW, in cases where there is a protecting
427 tree_fits_shwi_p or tree_fits_uhwi_p.
428 * builtins.c (fold_builtin_powi): Likewise.
429 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
430 Likewise.
431 * dbxout.c (dbxout_symbol): Likewise.
432 * expr.c (expand_expr_real_1): Likewise.
433 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
434 (fold_binary_loc): Likewise.
435 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
436 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
437 * omp-low.c (lower_omp_for_lastprivate): Likewise.
438 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
439 * stor-layout.c (compute_record_mode): Likewise.
440 * tree-cfg.c (verify_expr): Likewise.
441 * tree-dfa.c (get_ref_base_and_extent): Likewise.
442 * tree-pretty-print.c (dump_array_domain): Likewise.
443 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
444 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
445 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
446 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
447 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
448 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
449 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
450 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
451 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
452 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
453 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
454 (create_variable_info_for_1): Likewise.
455 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
456 (vect_verify_datarefs_alignment): Likewise.
457 (vect_analyze_data_ref_accesses): Likewise.
458 (vect_prune_runtime_alias_test_list): Likewise.
459 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
460
461 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
462
463 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
464 overflow. Use tree_to_shwi.
465
466 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
467
468 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
469 HOST_WIDE_INTs when folding (x >> c) << c.
470
471 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
472 Dominik Vogt <vogt@linux.vnet.ibm.com>
473
474 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
475 int comparisons with an out of range condition code.
476 (s390_optimize_nonescaping_tx): Skip empty BBs.
477 Generate the new tbegin RTX when removing the FPR clobbers (with
478 two SETs).
479 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
480 result before doing the retry calculations.
481 (s390_init_builtins): Make tbegin "returns_twice" and tabort
482 "noreturn".
483 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
484 the TDB setting part of an tbegin.
485 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
486 ("tx_assist"): Set unused argument to an immediate zero instead of
487 loading zero into a GPR and pass it as argument.
488 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
489 Remove inline and related attributes.
490 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
491 (__TM_is_illegal, __TM_is_footprint_exceeded)
492 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
493
494 2013-11-20 Richard Biener <rguenther@suse.de>
495
496 PR lto/59035
497 * lto-opts.c (lto_write_options): Write defaults only if
498 they were not explicitely specified. Also write
499 -ffp-contract default.
500 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
501 conservatively.
502 (run_gcc): Pass through -ffp-contract.
503
504 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
505
506 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
507
508 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
509
510 * gcc/config/aarch64/aarch64-builtins.c
511 (aarch64_simd_itype): Remove.
512 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
513 (VAR1): Use qualifiers.
514 (aarch64_build_scalar_type): New.
515 (aarch64_build_vector_type): Likewise.
516 (aarch64_build_type): Likewise.
517 (aarch64_init_simd_builtins): Refactor, remove special cases,
518 consolidate main loop.
519 (aarch64_simd_expand_args): Likewise.
520
521 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
522
523 PR c/53001
524 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
525
526 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
527
528 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
529
530 2013-11-19 David Malcolm <dmalcolm@redhat.com>
531
532 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
533 to "vec<>" instances.
534 (build_pretty_printer): Register the vec<>* prettyprinter.
535
536 2013-11-19 David Malcolm <dmalcolm@redhat.com>
537
538 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
539 (GdbSubprinter.handles_type): New.
540 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
541 (GdbSubprinterRegex): New subclass of GdbSubprinter.
542 (GdbPrettyPrinters.add_printer): Remove in favor of...
543 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
544 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
545 (GdbPrettyPrinters.__call__): Update search for subprinter
546 to use handles_type method.
547 (build_pretty_printer): Update registration of subprinters to
548 use the new API above, supporting multiple spelling of each type,
549 and allowing for future regex-based subprinters.
550
551 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
552
553 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
554 V16QI vector splat case for little endian.
555
556 2013-11-19 Jeff Law <law@redhat.com>
557
558 * tree-ssa-threadedge.c (thread_across_edge): After threading
559 through a joiner, allow threading a normal block requiring duplication.
560
561 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
562 jump threading requests that would muck up the loop structures.
563
564 * tree-ssa-threadupdate.c: Fix trailing whitespace.
565 * tree-ssa-threadupdate.h: Likewise.
566
567 2013-11-19 Mike Stump <mikestump@comcast.net>
568
569 * gdbinit.in: Add pmz to print out mpz values.
570
571 2013-11-20 Jan Hubicka <jh@suse.cz>
572
573 * common.opt (ffat-lto-objects): Disable by default.
574 * doc/invoke.texi (fat-lto-objects): Update documentation.
575 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
576
577 2013-11-19 Martin Jambor <mjambor@suse.cz>
578
579 PR rtl-optimization/59099
580 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
581 here.
582 (ira): Move init_reg_equiv and call to
583 split_live_ranges_for_shrink_wrap up, remove analyses around call
584 to find_moveable_pseudos.
585
586 2013-11-20 Alan Modra <amodra@gmail.com>
587
588 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
589 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
590 to strict alignment on older processors when little-endian.
591 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
592 for ELFv2.
593
594 2013-11-19 Teresa Johnson <tejohnson@google.com>
595
596 * common/config/i386/i386-common.c: Enable
597 -freorder-blocks-and-partition at -O2 and up for x86.
598 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
599 * opts.c (finish_options): Only warn if
600 -freorder-blocks-and-partition was set on command line.
601
602 2013-11-19 Sriraman Tallam <tmsriram@google.com>
603
604 * final.c (final_scan_insn): Emit a label for the split
605 cold function part. Label name is formed by suffixing
606 the original function name with "cold".
607
608 2013-11-19 David Malcolm <dmalcolm@redhat.com>
609
610 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
611 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
612 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
613 (EXIT_BLOCK_PTR_FOR_FN): ...this.
614 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
615 cfun be explicit.
616 (EXIT_BLOCK_PTR): Likewise.
617 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
618 (FOR_ALL_BB_FN): Update for renaming of
619 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
620
621 * cfg.c (init_flow): Likewise.
622 (check_bb_profile): Likewise.
623 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
624 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
625 * cfghooks.c (account_profile_record): Likewise.
626 * cfgloop.c (init_loops_structure): Likewise.
627 * cgraphbuild.c (record_eh_tables): Likewise.
628 (compute_call_stmt_bb_frequency): Likewise.
629 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
630 * lto-streamer-in.c (input_cfg): Likewise.
631 * predict.c (maybe_hot_frequency_p): Likewise.
632 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
633 * tree-inline.c (initialize_cfun): Likewise.
634 (copy_cfg_body): Likewise.
635 (copy_body): Likewise.
636 (tree_function_versioning): Likewise.
637
638 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
639 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
640 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
641 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
642 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
643 (connect_traces): Likewise.
644 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
645 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
646 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
647 macro.
648 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
649 EXIT_BLOCK_PTR.
650 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
651 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
652 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
653 (rotate_loop): Likewise.
654 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
655 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
656 EXIT_BLOCK_PTR.
657 (alloc_aux_for_edges): Likewise.
658 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
659 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
660 EXIT_BLOCK_PTR.
661 (compact_blocks): Likewise.
662 (clear_edges): Likewise.
663 * cfganal.c (single_pred_before_succ_order): Remove usage of
664 ENTRY_BLOCK_PTR macro.
665 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
666 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
667 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
668 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
669 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
670 EXIT_BLOCK_PTR.
671 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
672 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
673 EXIT_BLOCK_PTR.
674 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
675 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
676 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
677 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
678 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
679 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
680 EXIT_BLOCK_PTR.
681 (print_edge_list): Likewise.
682 (create_edge_list): Likewise.
683 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
684 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
685 EXIT_BLOCK_PTR.
686 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
687 macro.
688 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
689 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
690 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
691 (try_optimize_cfg): Likewise.
692 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
693 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
694 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
695 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
696 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
697 (try_forward_edges): Likewise.
698 (try_simplify_condjump): Likewise.
699 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
700 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
701 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
702 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
703 EXIT_BLOCK_PTR.
704 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
705 (expand_gimple_tailcall): Likewise.
706 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
707 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
708 (tidy_fallthru_edges): Likewise.
709 (verify_flow_info): Likewise.
710 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
711 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
712 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
713 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
714 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
715 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
716 (get_loop_body_in_dom_order): Likewise.
717 (get_loop_body): Likewise.
718 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
719 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
720 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
721 macro.
722 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
723 (fix_bb_placement): Likewise.
724 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
725 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
726 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
727 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
728 EXIT_BLOCK_PTR.
729 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
730 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
731 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
732 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
733 macro.
734 (fixup_fallthru_exit_predecessor): Remove uses of macros:
735 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
736 (fixup_reorder_chain): Likewise.
737 (relink_block_chain): Likewise.
738 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
739 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
740 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
741 (force_one_exit_fallthru): Likewise.
742 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
743 EXIT_BLOCK_PTR.
744 (rtl_verify_edges): Likewise.
745 (commit_edge_insertions): Likewise.
746 (commit_one_edge_insertion): Likewise.
747 (rtl_split_edge): Likewise.
748 (force_nonfallthru_and_redirect): Likewise.
749 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
750 (skip_insns_after_block): Likewise.
751 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
752 EXIT_BLOCK_PTR.
753 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
754 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
755 EXIT_BLOCK_PTR.
756 (contains_no_active_insn_p): Likewise.
757 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
758 (entry_of_function): Likewise.
759 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
760 (fixup_new_cold_bb): Likewise.
761 (patch_jump_insn): Likewise.
762 (try_redirect_by_replacing_jump): Likewise.
763 (block_label): Likewise.
764 (could_fall_through): Likewise.
765 (can_fallthru): Likewise.
766 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
767 ENTRY_BLOCK_PTR macro.
768 (rebuild_cgraph_edges): Likewise.
769 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
770 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
771 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
772 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
773 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
774 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
775 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
776 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
777 macro.
778 (reg_nonzero_bits_for_combine): Likewise.
779 (set_nonzero_bits_and_sign_copies): Likewise.
780 (combine_instructions): Likewise.
781 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
782 EXIT_BLOCK_PTR.
783 (bypass_conditional_jumps): Likewise.
784 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
785 (find_implicit_sets): Likewise.
786 (cprop_jump): Likewise.
787 * cse.c (cse_cc_succs): Likewise.
788 (cse_find_path): Likewise.
789 * df-problems.c (df_lr_confluence_0): Likewise.
790 * df-scan.c (df_entry_block_defs_collect): Remove usage of
791 ENTRY_BLOCK_PTR macro.
792 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
793 * dominance.c (iterate_fix_dominators): Remove usage of
794 ENTRY_BLOCK_PTR macro.
795 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
796 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
797 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
798 EXIT_BLOCK_PTR.
799 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
800 macro.
801 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
802 EXIT_BLOCK_PTR.
803 * domwalk.c (cmp_bb_postorder): Likewise.
804 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
805 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
806 macro.
807 (sjlj_emit_function_enter): Likewise.
808 * final.c (compute_alignments): Likewise.
809 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
810 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
811 (reposition_prologue_and_epilogue_notes): Remove usage of
812 EXIT_BLOCK_PTR macro.
813 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
814 EXIT_BLOCK_PTR.
815 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
816 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
817 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
818 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
819 (compute_code_hoist_vbeinout): Likewise.
820 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
821 (pre_expr_reaches_here_p_work): Likewise.
822 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
823 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
824 EXIT_BLOCK_PTR.
825 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
826 ENTRY_BLOCK_PTR macro.
827 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
828 macro.
829 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
830 ENTRY_BLOCK_PTR macro.
831 * graphite-scop-detection.c (build_scops): Likewise.
832 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
833 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
834 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
835 macro.
836 (unlink_bb_notes): Likewise.
837 (create_check_block_twin): Likewise.
838 (init_before_recovery): Likewise.
839 (sched_extend_bb): Likewise.
840 (priority): Likewise.
841 * hw-doloop.c (reorder_loops): Likewise.
842 (discover_loop): Likewise.
843 * ifcvt.c (dead_or_predicable): Remove uses of macros:
844 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
845 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
846 (block_has_only_trap): Likewise.
847 (cond_exec_find_if_block): Likewise.
848 (merge_if_block): Likewise.
849 * ipa-inline-analysis.c (param_change_prob): Remove usage of
850 ENTRY_BLOCK_PTR macro.
851 (record_modified): Likewise.
852 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
853 EXIT_BLOCK_PTR macro.
854 (local_pure_const): Likewise.
855 * ipa-split.c (split_function): Remove uses of macros:
856 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
857 (find_split_points): Likewise.
858 (consider_split): Likewise.
859 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
860 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
861 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
862 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
863 * ira-emit.c (entered_from_non_parent_p): Remove usage of
864 ENTRY_BLOCK_PTR macro.
865 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
866 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
867 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
868 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
869 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
870 macro.
871 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
872 EXIT_BLOCK_PTR.
873 (compute_farthest): Likewise.
874 (compute_available): Likewise.
875 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
876 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
877 EXIT_BLOCK_PTR.
878 (compute_earliest): Likewise.
879 (compute_antinout_edge): Likewise.
880 * loop-iv.c (simplify_using_initial_values): Remove usage of
881 ENTRY_BLOCK_PTR macro.
882 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
883 macro.
884 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
885 macro.
886 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
887 macro.
888 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
889 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
890 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
891 macro.
892 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
893 macro.
894 * lto-streamer-out.c (output_cfg): Likewise.
895 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
896 EXIT_BLOCK_PTR.
897 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
898 * mode-switching.c (optimize_mode_switching): Likewise.
899 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
900 * modulo-sched.c (rest_of_handle_sms): Likewise.
901 (canon_loop): Likewise.
902 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
903 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
904 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
905 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
906 macro.
907 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
908 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
909 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
910 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
911 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
912 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
913 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
914 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
915 (gimple_predict_edge): Likewise.
916 (probably_never_executed): Likewise.
917 * profile.c (find_spanning_tree): Remove uses of macros:
918 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
919 (branch_prob): Likewise.
920 (compute_branch_probabilities): Likewise.
921 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
922 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
923 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
924 (set_bb_counts): Likewise.
925 (correct_negative_edge_counts): Likewise.
926 (get_exec_counts): Likewise.
927 (instrument_values): Likewise.
928 (instrument_edges): Likewise.
929 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
930 EXIT_BLOCK_PTR.
931 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
932 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
933 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
934 (reg_to_stack): Likewise.
935 * regs.h (REG_N_SETS): Likewise.
936 * reload.c (find_dummy_reload): Likewise.
937 (combine_reloads): Likewise.
938 (push_reload): Likewise.
939 * reload1.c (has_nonexceptional_receiver): Remove usage of
940 EXIT_BLOCK_PTR macro.
941 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
942 macro.
943 (find_basic_block): Likewise.
944 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
945 (schedule_ebbs): Likewise.
946 * sched-int.h (sel_sched_p): Likewise.
947 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
948 macro.
949 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
950 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
951 EXIT_BLOCK_PTR.
952 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
953 (extend_rgns): Likewise.
954 (find_single_block_region): Likewise.
955 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
956 ENTRY_BLOCK_PTR macro.
957 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
958 (sel_create_recovery_block): Likewise.
959 (bb_ends_ebb_p): Likewise.
960 (sel_bb_end): Likewise.
961 (sel_bb_head): Likewise.
962 (free_lv_sets): Likewise.
963 (init_lv_sets): Likewise.
964 (tidy_control_flow): Likewise.
965 (maybe_tidy_empty_bb): Likewise.
966 * sel-sched-ir.h (_succ_iter_cond): Likewise.
967 (_succ_iter_start): Likewise.
968 (sel_bb_empty_or_nop_p): Likewise.
969 (get_loop_exit_edges_unique_dests): Likewise.
970 (inner_loop_header_p): Likewise.
971 * sel-sched.c (create_block_for_bookkeeping): Likewise.
972 (find_block_for_bookkeeping): Likewise.
973 * store-motion.c (remove_reachable_equiv_notes): Likewise.
974 (insert_store): Likewise.
975 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
976 ENTRY_BLOCK_PTR macro.
977 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
978 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
979 (gate_tm_init): Likewise.
980 (tm_region_init): Likewise.
981 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
982 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
983 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
984 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
985 EXIT_BLOCK_PTR.
986 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
987 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
988 EXIT_BLOCK_PTR.
989 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
990 macro.
991 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
992 EXIT_BLOCK_PTR.
993 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
994 macro.
995 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
996 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
997 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
998 (build_gimple_cfg): Likewise.
999 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
1000 (gimple_can_merge_blocks_p): Likewise.
1001 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
1002 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1003 * tree-complex.c (update_parameter_components): Remove usage of
1004 ENTRY_BLOCK_PTR macro.
1005 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
1006 EXIT_BLOCK_PTR macro.
1007 * tree-inline.c (tree_function_versioning): Remove uses of macros:
1008 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1009 (delete_unreachable_blocks_update_callgraph): Likewise.
1010 (initialize_cfun): Likewise.
1011 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
1012 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
1013 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
1014 * tree-into-ssa.c (update_ssa): Likewise.
1015 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
1016 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
1017 (rewrite_into_ssa): Likewise.
1018 (rewrite_debug_stmt_uses): Likewise.
1019 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
1020 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1021 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
1022 ENTRY_BLOCK_PTR macro.
1023 * tree-scalar-evolution.h (block_before_loop): Likewise.
1024 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
1025 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
1026 EXIT_BLOCK_PTR.
1027 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
1028 macro.
1029 (propagate_dereference_distances): Remove uses of macros:
1030 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1031 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
1032 macro.
1033 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
1034 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
1035 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
1036 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
1037 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1038 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
1039 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
1040 (mark_control_dependent_edges_necessary): Remove uses of macros:
1041 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1042 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
1043 ENTRY_BLOCK_PTR macro.
1044 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
1045 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
1046 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1047 (calculate_live_on_exit): Likewise.
1048 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1049 (loe_visit_block): Likewise.
1050 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
1051 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1052 (live_on_entry): Likewise.
1053 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
1054 EXIT_BLOCK_PTR macro.
1055 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
1056 ENTRY_BLOCK_PTR macro.
1057 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
1058 (bound_difference): Likewise.
1059 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
1060 of EXIT_BLOCK_PTR macro.
1061 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
1062 of ENTRY_BLOCK_PTR macro.
1063 * tree-ssa-math-opts.c (register_division_in): Likewise.
1064 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
1065 * tree-ssa-pre.c (compute_avail): Likewise.
1066 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
1067 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
1068 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1069 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
1070 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
1071 EXIT_BLOCK_PTR.
1072 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
1073 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
1074 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1075 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
1076 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1077 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
1078 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
1079 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
1080 (find_pdom): Likewise.
1081 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
1082 * tree-stdarg.c (reachable_at_most_once): Likewise.
1083 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
1084 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1085 (eliminate_tail_call): Likewise.
1086 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
1087 macro.
1088 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
1089 * var-tracking.c (vt_initialize): Remove uses of macros:
1090 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1091 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
1092 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
1093 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
1094 EXIT_BLOCK_PTR.
1095 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
1096 macro.
1097 * config/bfin/bfin.c (hwloop_optimize): Likewise.
1098 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
1099 of EXIT_BLOCK_PTR macro.
1100 * config/arm/arm.c (require_pic_register): Remove usage of
1101 ENTRY_BLOCK_PTR macro.
1102 (arm_r3_live_at_start_p): Likewise.
1103 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
1104 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1105 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
1106 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
1107 ENTRY_BLOCK_PTR macro.
1108 * config/i386/i386.c (ix86_count_insn): Likewise.
1109 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
1110 (ix86_pad_short_function): Likewise.
1111 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
1112 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
1113 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
1114 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
1115 (ix86_expand_epilogue): Likewise.
1116 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
1117 (ia64_expand_prologue): Likewise.
1118
1119 2013-11-19 Catherine Moore <clm@codesourcery.com>
1120
1121 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
1122 * config/mips/mips.opt (mfix-rm7000): New option.
1123 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
1124 * config/mips/mips.c (mips_reorg_process_insns): Disable
1125 noreorder for TARGET_FIX_RM7000.
1126
1127 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
1128
1129 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
1130
1131 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1132
1133 * config/arm/arm.c (arm_new_rtx_costs):
1134 Handle narrow mode add-shifts properly.
1135 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
1136 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
1137 Declare extern.
1138
1139 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
1140
1141 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
1142
1143 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1144
1145 * config/rs6000/vector.md ("mov<mode>"): Do not call
1146 rs6000_emit_le_vsx_move to move into or out of GPRs.
1147 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
1148 source and destination are not GPR hard regs.
1149
1150 2013-11-19 David Malcolm <dmalcolm@redhat.com>
1151
1152 * basic-block.h (n_edges_for_function): Rename macro to...
1153 (n_edges_for_fn): ...this.
1154 (n_edges): Eliminate macro as work towards making uses of
1155 cfun be explicit.
1156
1157 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
1158 to "n_edges_for_fn".
1159
1160 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
1161 (clear_edges): Likewise.
1162 (free_edge): Likewise.
1163 * cfghooks.c (dump_flow_info): Likewise.
1164 * cprop.c (is_too_expensive): Likewise.
1165 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
1166 * gcse.c (is_too_expensive): Likewise.
1167 (prune_insertions_deletions): Likewise.
1168 * mcf.c (create_fixup_graph): Likewise.
1169 * sched-rgn.c (haifa_find_rgns): Likewise.
1170 * tree-cfg.c (gimple_dump_cfg): Likewise.
1171 * var-tracking.c (variable_tracking_main_1): Likewise.
1172
1173 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
1174
1175 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
1176 length lines.
1177
1178 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
1179
1180 * config/aarch64/aarch64.md
1181 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
1182
1183 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
1184
1185 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
1186
1187 2013-11-19 Joseph Myers <joseph@codesourcery.com>
1188
1189 * varasm.c (align_variable): Give error instead of warning for
1190 unsupported alignment.
1191 (assemble_noswitch_variable): Likewise.
1192
1193 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1194
1195 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
1196 cb_file_change.
1197
1198 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
1199
1200 * loop-doloop.c (doloop_optimize_loops): Remove unused
1201 loop iterator argument from FOR_EACH_LOOP.
1202
1203 2013-11-19 David Malcolm <dmalcolm@redhat.com>
1204
1205 Convert gimple types from a union to C++ inheritance.
1206 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
1207 * coretypes.h (union gimple_statement_d): Remove declaration.
1208 (gimple): Convert from being a "union gimple_statement_d *"
1209 to a "struct gimple_statement_base *".
1210 (const_gimple): Likewise (with "const").
1211 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
1212 (ggc_alloc_cleared_gimple_statement_stat): ...this.
1213 * gimple-pretty-print.c (debug): Change parameter from a
1214 "gimple_statement_d &" to a "gimple_statement_base &".
1215 (debug): Change parameter from a "gimple_statement_d *" to
1216 a "gimple_statement_base *".
1217 * gimple-pretty-print.h (debug): Update declarations as above.
1218 * gimple.c (gimple_alloc_stat): Update for renaming of
1219 ggc_alloc_cleared_gimple_statement_d_stat to
1220 ggc_alloc_cleared_gimple_statement_stat.
1221 * gimple.h: Include "is-a.h" for use by is_a_helper
1222 specializations in followup autogenerated patch.
1223 (struct gimple statement_base): Make this type usable as a base
1224 class by adding "desc", "tag" and "variable_size" to GTY, thus
1225 using opting-in to gengtype's support for simple inheritance.
1226 (gimple_statement_with_ops_base): Convert to a subclass of
1227 gimple_statement_base, dropping initial "gsbase" field. Note that
1228 this type is abstract, with no GSS_ value, and thus no GTY tag value.
1229 (gimple_statement_with_ops): Convert to a subclass of
1230 gimple_statement_with_ops_base, dropping initial "opbase" field.
1231 Add tag value to GTY marking. Update marking of op field to
1232 reflect how num_ops field is accessed via inheritance.
1233 (gimple_statement_with_memory_ops_base): Convert to a subclass of
1234 gimple_statement_with_ops_base, dropping initial "opbase" field.
1235 Add tag value to GTY marking.
1236 (gimple_statement_with_memory_ops): Convert to a subclass of
1237 public gimple_statement_with_memory_ops_base, dropping initial
1238 "membase" field. Add tag value to GTY marking. Update marking
1239 of op field to reflect how num_ops field is accessed via inheritance.
1240 (gimple_statement_call): Analogous changes that also update the
1241 marking of the "u" union.
1242 (gimple_statement_omp): Convert to a subclass of
1243 gimple_statement_base, dropping initial "gsbase" field, adding
1244 tag value to GTY marking.
1245 (gimple_statement_bind): Likewise.
1246 (gimple_statement_catch): Likewise.
1247 (gimple_statement_eh_filter): Likewise.
1248 (gimple_statement_eh_else): Likewise.
1249 (gimple_statement_eh_mnt): Likewise.
1250 (gimple_statement_phi): Likewise.
1251 (gimple_statement_eh_ctrl): Likewise.
1252 (gimple_statement_try): Likewise.
1253 (gimple_statement_wce): Likewise.
1254 (gimple_statement_asm): Convert to a subclass of
1255 gimple_statement_with_memory_ops_base, dropping initial
1256 "membase" field, adding tag value to GTY marking, and updating
1257 marking of op field.
1258 (gimple_statement_omp_critical): Convert to a subclass of
1259 gimple_statement_omp, dropping initial "omp" field, adding tag
1260 value to GTY marking.
1261 (gimple_statement_omp_for): Likewise.
1262 (gimple_statement_omp_parallel): Likewise.
1263 (gimple_statement_omp_task): Convert to a subclass of
1264 gimple_statement_omp_parallel, dropping initial "par" field,
1265 adding tag value to GTY marking.
1266 (gimple_statement_omp_sections): Convert to a subclass of
1267 gimple_statement_omp, dropping initial "omp" field, adding
1268 tag value to GTY marking.
1269 (gimple_statement_omp_continue): Convert to a subclass of
1270 gimple_statement_base, dropping initial "gsbase" field, adding
1271 tag value to GTY marking.
1272 (gimple_statement_omp_single): Convert to a subclass of
1273 gimple_statement_omp, dropping initial "omp" field, adding
1274 tag value to GTY marking.
1275 (gimple_statement_omp_atomic_load): Convert to a subclass of
1276 gimple_statement_base, dropping initial "gsbase" field, adding
1277 tag value to GTY marking.
1278 (gimple_statement_omp_atomic_store): Convert to a subclass of
1279 gimple_statement_base, dropping initial "gsbase" field, adding
1280 tag value to GTY marking.
1281 (gimple_statement_transaction): Convert to a subclass of
1282 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
1283 field, adding tag value to GTY marking.
1284 (union gimple_statement_d): Remove.
1285 * system.h (CONST_CAST_GIMPLE): Update to use
1286 "struct gimple_statement_base *" rather than
1287 "union gimple_statement_d *".
1288 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
1289 gimple_statement_d to gimple_statement_base.
1290
1291 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
1292 (gimple_set_use_ops): Port from union to usage of as_a.
1293 (gimple_set_vuse): Likewise.
1294 (gimple_set_vdef): Likewise.
1295 (gimple_call_internal_fn): Port from union to a static_cast,
1296 given that the type has already been asserted.
1297 (gimple_omp_body_ptr): Port from unchecked union usage to
1298 a static_cast.
1299 (gimple_omp_set_body): Likewise.
1300
1301 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
1302 gimple types to a true class hierarchy.
1303 (update_call_edge_frequencies): Likewise.
1304 (gsi_insert_seq_nodes_before): Likewise.
1305 (gsi_insert_seq_nodes_after): Likewise.
1306 (gsi_split_seq_after): Likewise.
1307 (gsi_set_stmt): Likewise.
1308 (gsi_split_seq_before): Likewise.
1309 (gsi_remove): Likewise.
1310 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
1311 (gsi_next): Likewise.
1312 (gsi_prev): Likewise.
1313 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
1314 * gimple-ssa.h (gimple_vuse_op): Likewise.
1315 (gimple_vdef_op): Likewise.
1316 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
1317 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1318 * gimple.c (gimple_set_code): Likewise.
1319 (gimple_alloc_stat): Likewise.
1320 (gimple_set_subcode): Likewise.
1321 (gimple_build_call_internal_1): Likewise.
1322 (gimple_check_failed): Likewise.
1323 (gimple_call_flags): Likewise.
1324 (gimple_set_bb): Likewise.
1325 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
1326 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
1327 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
1328 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
1329 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
1330 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
1331 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
1332 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
1333 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
1334 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
1335 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
1336 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
1337 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
1338 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
1339 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
1340 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
1341 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
1342 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
1343 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
1344 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
1345 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
1346 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
1347 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
1348 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
1349 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
1350 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
1351 Likewise.
1352 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
1353 Likewise.
1354 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
1355 Likewise.
1356 (is_a_helper <const gimple_statement_omp_atomic_store>
1357 (const_gimple)): Likewise.
1358 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
1359 Likewise.
1360 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
1361 Likewise.
1362 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
1363 Likewise.
1364 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
1365 Likewise.
1366 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
1367 Likewise.
1368 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
1369 Likewise.
1370 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
1371 Likewise.
1372 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
1373 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
1374 Likewise.
1375 (gimple_seq_last): Update for conversion of gimple types to a true
1376 class hierarchy.
1377 (gimple_seq_set_last): Likewise.
1378 (gimple_code): Likewise.
1379 (gimple_bb): Likewise.
1380 (gimple_block): Likewise.
1381 (gimple_set_block): Likewise.
1382 (gimple_location): Likewise.
1383 (gimple_location_ptr): Likewise.
1384 (gimple_set_location): Likewise.
1385 (gimple_no_warning_p): Likewise.
1386 (gimple_set_no_warning): Likewise.
1387 (gimple_set_visited): Likewise.
1388 (gimple_visited_p): Likewise.
1389 (gimple_set_plf): Likewise.
1390 (gimple_plf): Likewise.
1391 (gimple_set_uid): Likewise.
1392 (gimple_uid): Likewise.
1393 (gimple_init_singleton): Likewise.
1394 (gimple_modified_p): Likewise.
1395 (gimple_set_modified): Likewise.
1396 (gimple_expr_code): Likewise.
1397 (gimple_has_volatile_ops): Likewise.
1398 (gimple_set_has_volatile_ops): Likewise.
1399 (gimple_omp_subcode): Likewise.
1400 (gimple_omp_set_subcode): Likewise.
1401 (gimple_omp_return_set_nowait): Likewise.
1402 (gimple_omp_section_set_last): Likewise.
1403 (gimple_omp_parallel_set_combined_p): Likewise.
1404 (gimple_omp_atomic_set_need_value): Likewise.
1405 (gimple_omp_atomic_set_seq_cst): Likewise.
1406 (gimple_num_ops): Likewise.
1407 (gimple_set_num_ops): Likewise.
1408 (gimple_assign_nontemporal_move_p): Likewise.
1409 (gimple_assign_set_nontemporal_move): Likewise.
1410 (gimple_assign_rhs_code): Likewise.
1411 (gimple_assign_set_rhs_code): Likewise.
1412 (gimple_call_internal_p): Likewise.
1413 (gimple_call_with_bounds_p): Likewise.
1414 (gimple_call_set_with_bounds): Likewise.
1415 (gimple_call_set_tail): Likewise.
1416 (gimple_call_tail_p): Likewise.
1417 (gimple_call_set_return_slot_opt): Likewise.
1418 (gimple_call_return_slot_opt_p): Likewise.
1419 (gimple_call_set_from_thunk): Likewise.
1420 (gimple_call_from_thunk_p): Likewise.
1421 (gimple_call_set_va_arg_pack): Likewise.
1422 (gimple_call_va_arg_pack_p): Likewise.
1423 (gimple_call_set_nothrow): Likewise.
1424 (gimple_call_set_alloca_for_var): Likewise.
1425 (gimple_call_alloca_for_var_p): Likewise.
1426 (gimple_call_copy_flags): Likewise.
1427 (gimple_cond_code): Likewise.
1428 (gimple_cond_set_code): Likewise.
1429 (gimple_cond_make_false): Likewise.
1430 (gimple_cond_make_true): Likewise.
1431 (gimple_asm_volatile_p): Likewise.
1432 (gimple_asm_set_volatile): Likewise.
1433 (gimple_asm_set_input): Likewise.
1434 (gimple_asm_input_p): Likewise.
1435 (gimple_try_kind): Likewise.
1436 (gimple_try_set_kind): Likewise.
1437 (gimple_try_catch_is_cleanup): Likewise.
1438 (gimple_try_set_catch_is_cleanup): Likewise.
1439 (gimple_wce_cleanup_eh_only): Likewise.
1440 (gimple_wce_set_cleanup_eh_only): Likewise.
1441 (gimple_debug_bind_p): Likewise.
1442 (gimple_debug_source_bind_p): Likewise.
1443 (gimple_omp_for_set_kind): Likewise.
1444 (gimple_omp_for_set_combined_p): Likewise.
1445 (gimple_omp_for_set_combined_into_p): Likewise.
1446 (gimple_omp_target_set_kind): Likewise.
1447 (gimple_transaction_subcode): Likewise.
1448 (gimple_transaction_set_subcode): Likewise.
1449 (gimple_predict_predictor): Likewise.
1450 (gimple_predict_set_predictor): Likewise.
1451 (gimple_predict_outcome): Likewise.
1452 (gimple_predict_set_outcome): Likewise.
1453 (gimple_transaction_set_label): Likewise.
1454 (gimple_transaction_set_body): Likewise.
1455 (gimple_transaction_label_ptr): Likewise.
1456 (gimple_transaction_label): Likewise.
1457 (gimple_transaction_body_ptr): Likewise.
1458 (gimple_omp_continue_set_control_use): Likewise.
1459 (gimple_omp_continue_control_use_ptr): Likewise.
1460 (gimple_omp_continue_control_use): Likewise.
1461 (gimple_omp_continue_set_control_def): Likewise.
1462 (gimple_omp_continue_control_def_ptr): Likewise.
1463 (gimple_omp_continue_control_def): Likewise.
1464 (gimple_omp_atomic_load_rhs_ptr): Likewise.
1465 (gimple_omp_atomic_load_rhs): Likewise.
1466 (gimple_omp_atomic_load_set_rhs): Likewise.
1467 (gimple_omp_atomic_load_lhs_ptr): Likewise.
1468 (gimple_omp_atomic_load_lhs): Likewise.
1469 (gimple_omp_atomic_load_set_lhs): Likewise.
1470 (gimple_omp_atomic_store_val_ptr): Likewise.
1471 (gimple_omp_atomic_store_val): Likewise.
1472 (gimple_omp_atomic_store_set_val): Likewise.
1473 (gimple_omp_for_cond): Likewise.
1474 (gimple_omp_for_set_cond): Likewise.
1475 (gimple_omp_sections_set_control): Likewise.
1476 (gimple_omp_sections_control_ptr): Likewise.
1477 (gimple_omp_sections_control): Likewise.
1478 (gimple_omp_sections_set_clauses): Likewise.
1479 (gimple_omp_sections_clauses_ptr): Likewise.
1480 (gimple_omp_sections_clauses): Likewise.
1481 (gimple_omp_teams_set_clauses): Likewise.
1482 (gimple_omp_teams_clauses_ptr): Likewise.
1483 (gimple_omp_teams_clauses): Likewise.
1484 (gimple_omp_target_set_data_arg): Likewise.
1485 (gimple_omp_target_data_arg_ptr): Likewise.
1486 (gimple_omp_target_data_arg): Likewise.
1487 (gimple_omp_target_set_child_fn): Likewise.
1488 (gimple_omp_target_child_fn_ptr): Likewise.
1489 (gimple_omp_target_child_fn): Likewise.
1490 (gimple_omp_target_set_clauses): Likewise.
1491 (gimple_omp_target_clauses_ptr): Likewise.
1492 (gimple_omp_target_clauses): Likewise.
1493 (gimple_omp_single_set_clauses): Likewise.
1494 (gimple_omp_single_clauses_ptr): Likewise.
1495 (gimple_omp_single_clauses): Likewise.
1496 (gimple_omp_task_set_arg_align): Likewise.
1497 (gimple_omp_task_arg_align_ptr): Likewise.
1498 (gimple_omp_task_arg_align): Likewise.
1499 (gimple_omp_task_set_arg_size): Likewise.
1500 (gimple_omp_task_arg_size_ptr): Likewise.
1501 (gimple_omp_task_arg_size): Likewise.
1502 (gimple_omp_task_set_copy_fn): Likewise.
1503 (gimple_omp_task_copy_fn_ptr): Likewise.
1504 (gimple_omp_task_copy_fn): Likewise.
1505 (gimple_omp_task_set_data_arg): Likewise.
1506 (gimple_omp_task_data_arg_ptr): Likewise.
1507 (gimple_omp_task_data_arg): Likewise.
1508 (gimple_omp_task_set_child_fn): Likewise.
1509 (gimple_omp_task_child_fn_ptr): Likewise.
1510 (gimple_omp_task_child_fn): Likewise.
1511 (gimple_omp_task_set_clauses): Likewise.
1512 (gimple_omp_task_clauses_ptr): Likewise.
1513 (gimple_omp_task_clauses): Likewise.
1514 (gimple_omp_parallel_set_data_arg): Likewise.
1515 (gimple_omp_parallel_data_arg_ptr): Likewise.
1516 (gimple_omp_parallel_data_arg): Likewise.
1517 (gimple_omp_parallel_set_child_fn): Likewise.
1518 (gimple_omp_parallel_child_fn_ptr): Likewise.
1519 (gimple_omp_parallel_child_fn): Likewise.
1520 (gimple_omp_parallel_set_clauses): Likewise.
1521 (gimple_omp_parallel_clauses_ptr): Likewise.
1522 (gimple_omp_parallel_clauses): Likewise.
1523 (gimple_omp_for_set_pre_body): Likewise.
1524 (gimple_omp_for_pre_body_ptr): Likewise.
1525 (gimple_omp_for_set_incr): Likewise.
1526 (gimple_omp_for_incr_ptr): Likewise.
1527 (gimple_omp_for_incr): Likewise.
1528 (gimple_omp_for_set_final): Likewise.
1529 (gimple_omp_for_final_ptr): Likewise.
1530 (gimple_omp_for_final): Likewise.
1531 (gimple_omp_for_set_initial): Likewise.
1532 (gimple_omp_for_initial_ptr): Likewise.
1533 (gimple_omp_for_initial): Likewise.
1534 (gimple_omp_for_set_index): Likewise.
1535 (gimple_omp_for_index_ptr): Likewise.
1536 (gimple_omp_for_index): Likewise.
1537 (gimple_omp_for_collapse): Likewise.
1538 (gimple_omp_for_set_clauses): Likewise.
1539 (gimple_omp_for_clauses_ptr): Likewise.
1540 (gimple_omp_for_clauses): Likewise.
1541 (gimple_omp_critical_set_name): Likewise.
1542 (gimple_omp_critical_name_ptr): Likewise.
1543 (gimple_omp_critical_name): Likewise.
1544 (gimple_eh_dispatch_set_region): Likewise.
1545 (gimple_eh_dispatch_region): Likewise.
1546 (gimple_resx_set_region): Likewise.
1547 (gimple_resx_region): Likewise.
1548 (gimple_phi_set_arg): Likewise.
1549 (gimple_phi_arg): Likewise.
1550 (gimple_phi_set_result): Likewise.
1551 (gimple_phi_result_ptr): Likewise.
1552 (gimple_phi_result): Likewise.
1553 (gimple_phi_num_args): Likewise.
1554 (gimple_phi_capacity): Likewise.
1555 (gimple_wce_set_cleanup): Likewise.
1556 (gimple_wce_cleanup_ptr): Likewise.
1557 (gimple_try_set_cleanup): Likewise.
1558 (gimple_try_set_eval): Likewise.
1559 (gimple_try_cleanup_ptr): Likewise.
1560 (gimple_try_eval_ptr): Likewise.
1561 (gimple_eh_else_set_e_body): Likewise.
1562 (gimple_eh_else_set_n_body): Likewise.
1563 (gimple_eh_else_e_body_ptr): Likewise.
1564 (gimple_eh_else_n_body_ptr): Likewise.
1565 (gimple_eh_must_not_throw_set_fndecl): Likewise.
1566 (gimple_eh_must_not_throw_fndecl): Likewise.
1567 (gimple_eh_filter_set_failure): Likewise.
1568 (gimple_eh_filter_set_types): Likewise.
1569 (gimple_eh_filter_failure_ptr): Likewise.
1570 (gimple_eh_filter_types_ptr): Likewise.
1571 (gimple_eh_filter_types): Likewise.
1572 (gimple_catch_set_handler): Likewise.
1573 (gimple_catch_set_types): Likewise.
1574 (gimple_catch_handler_ptr): Likewise.
1575 (gimple_catch_types_ptr): Likewise.
1576 (gimple_catch_types): Likewise.
1577 (gimple_asm_string): Likewise.
1578 (gimple_asm_set_label_op): Likewise.
1579 (gimple_asm_label_op): Likewise.
1580 (gimple_asm_set_clobber_op): Likewise.
1581 (gimple_asm_clobber_op): Likewise.
1582 (gimple_asm_set_output_op): Likewise.
1583 (gimple_asm_output_op_ptr): Likewise.
1584 (gimple_asm_output_op): Likewise.
1585 (gimple_asm_set_input_op): Likewise.
1586 (gimple_asm_input_op_ptr): Likewise.
1587 (gimple_asm_input_op): Likewise.
1588 (gimple_asm_nlabels): Likewise.
1589 (gimple_asm_nclobbers): Likewise.
1590 (gimple_asm_noutputs): Likewise.
1591 (gimple_asm_ninputs): Likewise.
1592 (gimple_bind_set_block): Likewise.
1593 (gimple_bind_block): Likewise.
1594 (gimple_bind_add_seq): Likewise.
1595 (gimple_bind_add_stmt): Likewise.
1596 (gimple_bind_set_body): Likewise.
1597 (gimple_bind_body_ptr): Likewise.
1598 (gimple_bind_append_vars): Likewise.
1599 (gimple_bind_set_vars): Likewise.
1600 (gimple_bind_vars): Likewise.
1601 (gimple_call_clobber_set): Likewise.
1602 (gimple_call_use_set): Likewise.
1603 (gimple_call_set_internal_fn): Likewise.
1604 (gimple_call_set_fntype): Likewise.
1605 (gimple_call_fntype): Likewise.
1606 (gimple_omp_return_lhs_ptr): Likewise.
1607 (gimple_omp_return_lhs): Likewise.
1608 (gimple_omp_return_set_lhs): Likewise.
1609 (gimple_omp_taskreg_set_data_arg): Likewise.
1610 (gimple_omp_taskreg_data_arg_ptr): Likewise.
1611 (gimple_omp_taskreg_data_arg): Likewise.
1612 (gimple_omp_taskreg_set_child_fn): Likewise.
1613 (gimple_omp_taskreg_child_fn_ptr): Likewise.
1614 (gimple_omp_taskreg_child_fn): Likewise.
1615 (gimple_omp_taskreg_set_clauses): Likewise.
1616 (gimple_omp_taskreg_clauses_ptr): Likewise.
1617 (gimple_omp_taskreg_clauses): Likewise.
1618 (gimple_vuse): Likewise.
1619 (gimple_vdef): Likewise.
1620 (gimple_vuse_ptr): Likewise.
1621 (gimple_vdef_ptr): Likewise.
1622 * tree-inline.c (copy_debug_stmt): Likewise.
1623 * tree-phinodes.c (make_phi_node): Likewise.
1624
1625 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
1626 (is_a_helper <gimple_statement_with_ops>::test): New.
1627 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
1628 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
1629
1630 * gimple-streamer-in.c (input_gimple_stmt): Port from union
1631 access to use of as_a.
1632 * gimple.c (gimple_build_asm_1): Likewise.
1633 (gimple_build_try): Likewise. Also, return a specific subclass
1634 rather than just gimple.
1635 (gimple_build_resx): Port from union access to use of as_a.
1636 (gimple_build_eh_dispatch): Likewise.
1637 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
1638 now that gengtype no longer provides a typed allocator function.
1639 (gimple_copy): Likewise.
1640 * gimple.h (gimple_build_try): Return a specific subclass rather
1641 than just gimple.
1642 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
1643 with subclass access by making use of new return type of
1644 gimple_build_try.
1645 * tree-phinodes.c: (allocate_phi_node): Return a
1646 "gimple_statement_phi *" rather than just a gimple.
1647 (resize_phi_node): Likewise.
1648 (make_phi_node): Replace union access with subclass access by
1649 making use of new return type of allocate_phi_node.
1650 (reserve_phi_args_for_new_edge): Replace union access with as_a.
1651 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
1652 than just a gimple.
1653 (remove_phi_args): Update for change to remove_phi_arg_num.
1654
1655 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
1656 code field to reflect inheritance, rather than embedding of
1657 the base gimple type.
1658
1659 2013-11-19 Richard Biener <rguenther@suse.de>
1660
1661 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
1662 and destructor and make fel_next a member function.
1663 (fel_next): Transform into ...
1664 (loop_iterator::next): ... this.
1665 (fel_init): Transform into ...
1666 (loop_iterator::loop_iterator): ... this.
1667 (loop_iterator::~loop_iterator): New.
1668 (FOR_EACH_LOOP): Remove loop-iterator argument.
1669 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
1670 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
1671 graphite-clast-to-gimple.c, graphite-scop-detection.c,
1672 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
1673 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
1674 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
1675 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
1676 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
1677 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
1678 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
1679 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
1680 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
1681 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
1682 FOR_EACH_LOOP_BREAK with break.
1683
1684 2013-11-19 Richard Biener <rguenther@suse.de>
1685
1686 PR tree-optimization/59164
1687 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
1688 Uncomment assert.
1689 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
1690 whether we can create an epilogue loop to reflect thecases where
1691 we create one.
1692
1693 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
1694
1695 * graphite-sese-to-poly.c: Include expr.h.
1696
1697 2013-11-19 Richard Biener <rguenther@suse.de>
1698
1699 PR middle-end/58956
1700 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
1701 loads into stmts that may clobber it.
1702
1703 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
1704
1705 * cgraphunit.c (symtab_terminator): New variable.
1706 (queued_nodes): Renamed from first. Use symtab_terminator as
1707 initializer.
1708 (analyze_functions): Adjust accordingly.
1709 (cgraph_process_new_functions): Return void.
1710 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
1711
1712 2013-11-19 Marek Polacek <polacek@redhat.com>
1713
1714 * opts.c (common_handle_option): Add -fsanitize=null option.
1715 Turn off -fdelete-null-pointer-checks option when doing the
1716 NULL pointer checking.
1717 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
1718 * tree-pass.h (make_pass_ubsan): Declare.
1719 (make_pass_sanopt): Declare.
1720 * timevar.def (TV_TREE_UBSAN): New timevar.
1721 * passes.def: Add pass_sanopt and pass_ubsan.
1722 * ubsan.h (ubsan_null_ckind): New enum.
1723 (ubsan_mismatch_data): New struct.
1724 (ubsan_expand_null_ifn): Declare.
1725 (ubsan_create_data): Adjust declaration.
1726 (ubsan_type_descriptor): Likewise.
1727 * asan.c: Include "ubsan.h".
1728 (pass_data_sanopt): New pass.
1729 (execute_sanopt): New function.
1730 (gate_sanopt): Likewise.
1731 (make_pass_sanopt): Likewise.
1732 (class pass_sanopt): New class.
1733 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
1734 gimple-iterator.h and cfgloop.h.
1735 (PROB_VERY_UNLIKELY): Define.
1736 (tree_type_map_hash): New function.
1737 (ubsan_type_descriptor): Add new parameter.
1738 Improve type name generation.
1739 (ubsan_create_data): Add new parameter. Add pointer data into
1740 ubsan structure.
1741 (ubsan_expand_null_ifn): New function.
1742 (instrument_member_call): Likewise.
1743 (instrument_mem_ref): Likewise.
1744 (instrument_null): Likewise.
1745 (ubsan_pass): Likewise.
1746 (gate_ubsan): Likewise.
1747 (make_pass_ubsan): Likewise.
1748 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
1749 (class pass_ubsan): New class.
1750 (pass_data_ubsan): New pass.
1751 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
1752 * internal-fn.c (expand_UBSAN_NULL): New function.
1753 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
1754 even when !flag_toplevel_reorder.
1755 * internal-fn.def (UBSAN_NULL): New.
1756
1757 2013-11-19 Jan Hubicka <jh@suse.cz>
1758
1759 * cgraph.c (cgraph_create_indirect_edge): Use
1760 get_polymorphic_call_info.
1761 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
1762 maybe_in_construction and maybe_derived_type.
1763 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
1764 (ipa_dummy_polymorphic_call_context): New global var.
1765 (possible_polymorphic_call_targets): Add context paramter.
1766 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
1767 (possible_polymorphic_call_target_p): Likewise.
1768 (get_polymorphic_call_info): New function.
1769 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
1770 (add_type_duplicate): Remove forgotten debug output.
1771 (method_class_type): Add sanity check.
1772 (maybe_record_node): Add FINALP parameter.
1773 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
1774 by info by get_binfo_at_offset.
1775 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
1776 parameters; pass them to record-binfo.
1777 (polymorphic_call_target_d): Add context and FINAL.
1778 (polymorphic_call_target_hasher::hash): Hash context.
1779 (polymorphic_call_target_hasher::equal): Compare context.
1780 (free_polymorphic_call_targets_hash):
1781 (get_class_context): New function.
1782 (contains_type_p): New function.
1783 (get_polymorphic_call_info): New function.
1784 (walk_bases): New function.
1785 (possible_polymorphic_call_targets): Add context parameter; honnor it.
1786 (dump_possible_polymorphic_call_targets): Dump context.
1787 (possible_polymorphic_call_target_p): Add context.
1788 (update_type_inheritance_graph): Update comment.s
1789 (ipa_set_jf_known_type): Assert that compoentn type is known.
1790 (ipa_note_param_call): Do not tamper with offsets.
1791 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
1792 outer type.
1793 (update_indirect_edges_after_inlining): Likewise.
1794 (ipa_write_indirect_edge_info): Stream new fields.
1795 (ipa_read_indirect_edge_info): Stream in new fields.
1796
1797 2013-11-19 Jan Hubicka <jh@suse.cz>
1798
1799 * tree-pretty-print.c (dump_generic_node): Print class type of
1800 OBJ_TYPE_REF.
1801
1802 2013-11-19 Joey Ye <joey.ye@arm.com>
1803
1804 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
1805 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
1806 for new option.
1807 * config/arm/arm.c (arm_option_override): By default disable
1808 -marm-pic-data-is-text-relative.
1809 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
1810 (arm_assemble_integer): Likewise.
1811 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
1812 New macro to initialize -marm-pic-data-is-text-relative.
1813
1814 2013-11-19 Bin Cheng <bin.cheng@arm.com>
1815
1816 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
1817 (address_cost_data): New field.
1818 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
1819 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
1820
1821 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
1822
1823 * config/aarch64/aarch64.md: Remove v8type from all insns.
1824
1825 2013-11-19 Richard Biener <rguenther@suse.de>
1826
1827 PR tree-optimization/57517
1828 * tree-predcom.c (combinable_refs_p): Verify the combination
1829 is always executed when the refs are.
1830
1831 2013-11-19 Jeff Law <law@redhat.com>
1832
1833 * tree-ssa-threadupdate.c: Include ssa-iterators.h
1834 (copy_phi_arg_into_existing_phi): New function.
1835 (any_remaining_duplicated_blocks): Likewise.
1836 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
1837 blocks on a jump threading path.
1838
1839 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
1840 thread through a joiner which has the latch edge.
1841
1842 2013-11-19 Jan Hubicka <jh@suse.cz>
1843
1844 * md.texi (setmem): Document new parameter.
1845 * optabs.c (maybe_gen_insn): Support 9 operands.
1846 * builtins.c (determine_block_size): Add probable_max_size;
1847 support anti-ranges.
1848 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
1849 probable_max_size.
1850 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
1851 emit_block_move, clear_storage_hints, set_storage_via_setmem):
1852 Likewise.
1853 * expr.h (emit_block_move_hints, clear_storage_hints,
1854 set_storage_via_setmem): Update prototype.
1855 * i386.md (setmem, movmem patterns): Add 9th operand.
1856 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
1857 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
1858 argument; pass it to decide_alg.
1859
1860 2013-11-19 David Malcolm <dmalcolm@redhat.com>
1861
1862 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
1863 (n_basic_blocks_for_fn): ...this.
1864
1865 (n_basic_blocks): Eliminate macro as work towards making uses of
1866 cfun be explicit.
1867
1868 * cfgloop.c (init_loops_structure): Update for renaming of
1869 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
1870 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1871 * ipa-utils.c (ipa_merge_profiles): Likewise.
1872 * lto-streamer-in.c (make_new_block): Likewise.
1873 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1874 (dump_function_to_file): Likewise.
1875
1876 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
1877 macro with "n_basic_blocks_for_fn (cfun)".
1878 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
1879 (duplicate_computed_gotos): Likewise.
1880 (reorder_basic_blocks): Likewise.
1881 * bt-load.c (augment_live_range): Likewise.
1882 * cfg.c (expunge_block): Likewise.
1883 (compact_blocks): Likewise.
1884 * cfganal.c (single_pred_before_succ_order): Likewise.
1885 (compute_idf): Likewise.
1886 (flow_dfs_compute_reverse_init): Likewise.
1887 (pre_and_rev_post_order_compute): Likewise.
1888 (pre_and_rev_post_order_compute_fn): Likewise.
1889 (inverted_post_order_compute): Likewise.
1890 (post_order_compute): Likewise.
1891 (print_edge_list): Likewise.
1892 (find_unreachable_blocks): Likewise.
1893 (mark_dfs_back_edges): Likewise.
1894 * cfgcleanup.c (try_optimize_cfg): Likewise.
1895 (try_forward_edges): Likewise.
1896 * cfghooks.c (dump_flow_info): Likewise.
1897 * cfgloop.c (verify_loop_structure): Likewise.
1898 (get_loop_body): Likewise.
1899 (flow_loops_find): Likewise.
1900 * cfgloopmanip.c (add_loop): Likewise.
1901 (remove_path): Likewise.
1902 (find_path): Likewise.
1903 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1904 (rtl_verify_bb_layout): Likewise.
1905 (entry_of_function): Likewise.
1906 (rtl_create_basic_block): Likewise.
1907 * coverage.c (coverage_compute_cfg_checksum): Likewise.
1908 * cprop.c (one_cprop_pass): Likewise.
1909 (is_too_expensive): Likewise.
1910 * df-core.c (df_compute_cfg_image): Likewise.
1911 (df_compact_blocks): Likewise.
1912 (df_worklist_dataflow_doublequeue): Likewise.
1913 * dominance.c (calculate_dominance_info): Likewise.
1914 (calc_dfs_tree): Likewise.
1915 (calc_dfs_tree_nonrec): Likewise.
1916 (init_dom_info): Likewise.
1917 * domwalk.c (cmp_bb_postorder): Likewise.
1918 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1919 (generate_setjmp_warnings): Likewise.
1920 * fwprop.c (build_single_def_use_links): Likewise.
1921 * gcse.c (is_too_expensive): Likewise.
1922 (one_code_hoisting_pass): Likewise.
1923 (one_pre_gcse_pass): Likewise.
1924 * graphite.c (graphite_initialize): Likewise.
1925 * haifa-sched.c (haifa_sched_init): Likewise.
1926 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
1927 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
1928 * ira-build.c (ira_build): Likewise.
1929 * lcm.c (compute_nearerout): Likewise.
1930 (compute_available): Likewise.
1931 (compute_laterin): Likewise.
1932 (compute_antinout_edge): Likewise.
1933 * lra-lives.c (lra_create_live_ranges): Likewise.
1934 * lra.c (has_nonexceptional_receiver): Likewise.
1935 * mcf.c (create_fixup_graph): Likewise.
1936 * profile.c (branch_prob): Likewise.
1937 * reg-stack.c (convert_regs_2): Likewise.
1938 * regrename.c (regrename_analyze): Likewise.
1939 * reload1.c (has_nonexceptional_receiver): Likewise.
1940 * reorg.c (dbr_schedule): Likewise.
1941 * sched-deps.c (sched_deps_init): Likewise.
1942 * sched-ebb.c (schedule_ebbs): Likewise.
1943 * sched-rgn.c (extend_regions): Likewise.
1944 (schedule_insns): Likewise.
1945 (sched_rgn_init): Likewise.
1946 (extend_rgns): Likewise.
1947 (haifa_find_rgns): Likewise.
1948 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
1949 (sel_recompute_toporder): Likewise.
1950 * sel-sched.c (run_selective_scheduling): Likewise.
1951 * store-motion.c (one_store_motion_pass): Likewise.
1952 (remove_reachable_equiv_notes): Likewise.
1953 * tracer.c (tracer): Likewise.
1954 (tail_duplicate): Likewise.
1955 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
1956 (dump_cfg_stats): Likewise.
1957 (gimple_dump_cfg): Likewise.
1958 (create_bb): Likewise.
1959 (build_gimple_cfg): Likewise.
1960 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
1961 * tree-inline.c (optimize_inline_calls): Likewise.
1962 (fold_marked_statements): Likewise.
1963 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
1964 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1965 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1966 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
1967 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1968 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
1969 * tree-ssa-pre.c (do_pre): Likewise.
1970 (init_pre): Likewise.
1971 (compute_avail): Likewise.
1972 * tree-ssa-reassoc.c (init_reassoc): Likewise.
1973 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1974 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
1975 (init_worklist): Likewise.
1976 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1977 * var-tracking.c (variable_tracking_main_1): Likewise.
1978 (vt_find_locations): Likewise.
1979 (vt_stack_adjustments): Likewise.
1980 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
1981 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1982
1983 2013-11-18 Jan Hubicka <jh@suse.cz>
1984
1985 * profile.c (compute_branch_probabilities): Do not sanity check
1986 run_max.
1987
1988 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
1989
1990 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
1991 GET_MODE_PRECISION.
1992 * fold-const.c (fold_single_bit_test_into_sign_test)
1993 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
1994
1995 2013-11-18 Teresa Johnson <tejohnson@google.com>
1996
1997 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
1998 cfglayout after bb reordering.
1999 * passes.def: Move compgotos before bb reordering since it goes into
2000 cfglayout.
2001
2002 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
2003
2004 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
2005 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
2006 static.
2007 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
2008 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
2009 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
2010 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
2011 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
2012 Remove all_lto_gen_passes.
2013 * passes.c (pass_manager::dump_passes): Remove its use.
2014 (pass_manager::register_pass): Likewise.
2015 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
2016 (pass_manager::pass_manager): Don't initialize or use it.
2017 (write_lto): New static function.
2018 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
2019 instead of using all_lto_gen_passes.
2020 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
2021 pass_ipa_lto_finish_out): Delete.
2022 * tree-pass.h (make_pass_ipa_lto_gimple_out,
2023 make_pass_ipa_lto_finish_out): Don't declare.
2024
2025 2013-11-18 Jeff Law <law@redhat.com>
2026
2027 * tree-ssa-threadupdate.c (redirection_data): Record two
2028 duplicated blocks instead of just one.
2029 (local_info): Explain why we don't create a template for the
2030 second duplicated block in a thread path.
2031 (create_block_for_threading): Accept argument indicating array
2032 index into redirection_data to store its result.
2033 (lookup_redirection_data): Initialize both duplicate blocks.
2034 (ssa_create_duplicates): If a jump threading path needs multiple
2035 blocks duplicated, then duplicate them.
2036 (ssa_fix_duplicate_block_edges): Corresponding changes.
2037 (ssa_fixup_template_block, thread_single_edge): Likewise.
2038
2039 2013-11-18 Marek Polacek <polacek@redhat.com>
2040
2041 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
2042
2043 2013-11-18 Andrew Pinski <apinski@cavium.com>
2044 Steve Ellcey <sellcey@mips.com>
2045
2046 PR target/56552
2047 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
2048 type restriction from equality_operator on conditonal move.
2049 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
2050 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
2051
2052 2013-11-18 Jeff Law <law@redhat.com>
2053
2054 * tree-ssa-threadupdate.c: Fix file block comment.
2055 Fix minor indention issue.
2056
2057 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
2058
2059 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
2060 ix86_address_subreg_operand. Move subreg checks to
2061 ix86_validate_address_register. Move address override check to
2062 ix86_legitimate_address_p.
2063 (ix86_validate_address_register): New function.
2064 (ix86_legitimate_address_p): Call ix86_validate_address_register
2065 to validate base and index registers. Add address override check
2066 from ix86_decompose_address.
2067 (ix86_decompose_address): Remove.
2068
2069 2013-11-18 Richard Biener <rguenther@suse.de>
2070
2071 PR tree-optimization/59125
2072 PR tree-optimization/54570
2073 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
2074 is not complete do not treat component-references with offset zero
2075 but different fields as equal.
2076 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
2077 (compute_object_sizes): Apply TLC. Propagate the constant
2078 results into all uses and fold their stmts.
2079 * passes.def (pass_all_optimizations): Move pass_object_sizes
2080 after the first pass_forwprop and before pass_fre.
2081
2082 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2083
2084 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
2085 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
2086 (tree_ctz): Remove cast to unsigned type.
2087 * builtins.c (fold_builtin_memory_op): Likewise.
2088 * dwarf2out.c (descr_info_loc): Likewise.
2089 * godump.c (go_output_typedef): Likewise.
2090 * omp-low.c (expand_omp_simd): Likewise.
2091 * stor-layout.c (excess_unit_span): Likewise.
2092 * tree-object-size.c (addr_object_size): Likewise.
2093 * tree-sra.c (analyze_all_variable_accesses): Likewise.
2094 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
2095 (simplify_rotate): Likewise.
2096 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
2097 (handle_pointer_plus): Likewise.
2098 * tree-switch-conversion.c (check_range): Likewise.
2099 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
2100 * tsan.c (instrument_builtin_call): Likewise.
2101 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
2102 * trans-mem.c (tm_log_add): Likewise.
2103 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
2104 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
2105 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
2106 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
2107
2108 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2109
2110 * tree.h (host_integerp, tree_low_cst): Delete.
2111 * tree.c (host_integerp, tree_low_cst): Delete.
2112
2113 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2114
2115 * expr.h: Update comments to refer to tree_to_[su]hwi rather
2116 than tree_low_cst.
2117 * fold-const.c (fold_binary_loc): Likewise.
2118 * expr.c (store_constructor): Use tree_to_uhwi rather than
2119 tree_low_cst.
2120 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
2121 * stmt.c (emit_case_dispatch_table): Likewise.
2122 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
2123
2124 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2125
2126 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
2127 config/aarch64/aarch64.c, config/alpha/predicates.md,
2128 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
2129 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
2130 config/mep/mep-pragma.c, config/mips/mips.c,
2131 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
2132 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
2133 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
2134 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
2135 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
2136 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
2137 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
2138 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
2139 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
2140 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
2141
2142 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2143
2144 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
2145 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
2146 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
2147 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
2148 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
2149 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
2150 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
2151 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
2152 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
2153 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
2154 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
2155
2156 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2157
2158 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
2159 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
2160
2161 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2162
2163 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
2164 than host_integerp.
2165
2166 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2167
2168 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
2169 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
2170 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
2171 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
2172 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
2173 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
2174 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
2175 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
2176 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
2177 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
2178 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
2179 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
2180 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
2181 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
2182 tree_fits_uhwi_p throughout.
2183
2184 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2185
2186 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
2187 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
2188 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
2189 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
2190 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
2191 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
2192 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
2193 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
2194 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
2195 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
2196 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
2197 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
2198 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
2199 throughout.
2200
2201 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2202
2203 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
2204 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
2205
2206 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
2207
2208 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
2209 flag if it kills its address, not its post-increment.
2210
2211 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
2212
2213 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
2214 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
2215 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
2216 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
2217 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2218 (gimple_call_with_bounds_p): New.
2219 (gimple_call_set_with_bounds): New.
2220 (gimple_call_num_nobnd_args): Remove.
2221 (gimple_call_nobnd_arg): Remove.
2222 * tree.h (CALL_WITH_BOUNDS_P): New.
2223 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2224
2225 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
2226
2227 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
2228 (symtab_node_name): Rename to symtab_node::name.
2229 (cgraph_node_asm_name): Remove.
2230 (varpool_node_asm_name): Remove.
2231 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
2232 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
2233 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
2234 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
2235 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
2236
2237 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2238
2239 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
2240 * config/arm/arm.c (arm_cortex_a53_tune): New.
2241 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
2242
2243 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2244
2245 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
2246 (case ${target}): Add bdver4.
2247 * config/i386/bdver3.md: Add bdver4.
2248 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2249 -march=native recognize bdver4 processors.
2250 * config/i386/i386-c.c (ix86_target_macros_internal): Add
2251 bdver4 def_and_undef
2252 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
2253 (m_BDVER4): New definition.
2254 (m_AMD_MULTIPLE): Includes m_BDVER4.
2255 (processor_target_table): Add bdver4 entry.
2256 (static const char *const cpu_names): Add bdver4 entry.
2257 (software_prefetching_beneficial_p): Add bdver3.
2258 (ix86_option_override_internal): Add bdver4 instruction sets.
2259 (ix86_issue_rate): Add bdver4.
2260 (ix86_adjust_cost): Add bdver4.
2261 (ia32_multipass_dfa_lookahead): Add bdver4.
2262 (enum processor_model): Add M_AMDFAM15H_BDVER4.
2263 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
2264 (has_dispatch): Add bdver4.
2265 * config/i386/i386.h (TARGET_BDVER4): New definition.
2266 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
2267 (enum processor_type): Add PROCESSOR_BDVER4.
2268 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
2269 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
2270 * doc/extend.texi: Add details about bdver4.
2271 * doc/invoke.texi: Add details about bdver4. Add
2272 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
2273
2274 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2275
2276 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
2277 sdmode_stack_slot also in little-endian mode.
2278
2279 2013-11-17 Jan Hubicka <jh@suse.cz>
2280
2281 * doc/md.texi (setmem, movstr): Update documentation.
2282 * builtins.c (determine_block_size): New function.
2283 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
2284 (expand_builtin_memset_args): Use it and pass it to
2285 set_storage_via_setmem.
2286 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
2287 parameters; update call to expander.
2288 (emit_block_move_hints): Add min_size/max_size parameters.
2289 (clear_storage_hints): Likewise.
2290 (set_storage_via_setmem): Likewise.
2291 (clear_storage): Update.
2292 * expr.h (emit_block_move_hints, clear_storage_hints,
2293 set_storage_via_setmem): Update prototypes.
2294 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
2295 (ix86_expand_movmem, ix86_expand_setmem): Remove.
2296 (ix86_expand_movmem, ix86_expand_setmem): Remove.
2297 * i386.md (movmem, setmem): Pass parameters.
2298
2299 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
2300
2301 PR target/59153
2302 * config/i386/i386.c (ix86_address_subreg_operand): Do not
2303 reject non-integer subregs.
2304 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
2305 Move check for invalid x32 constant addresses ...
2306 (ix86_legitimate_address_p): ... here.
2307
2308 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2309
2310 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
2311 parameter and use it in REG_FRAME_RELATED_EXPR note.
2312 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
2313 parameter.
2314 (rs6000_emit_prologue): Likewise, but for little endian VSX
2315 stores, pass the source register of the store instead.
2316
2317 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
2318
2319 * gimple.h: Reorder prototypes to match .c declaration order, and
2320 remove protyotypes for functions not in gimple.c.
2321 (LABEL): Move to tree-into-ssa.c.
2322 * gimple.c: Remove unused prototypes.
2323 (get_base_address): Move to tree.c.
2324 * tree.c (get_base_address): Relocate from gimple.c.
2325 * builtins.h (validate_gimple_arglist): Add prototype.
2326 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
2327 * cfgexpand.h: New File.
2328 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
2329 * tree.h (build_addr): Move to tree-nested.h.
2330 * tree-nested.h: New File.
2331 (build_addr, lower_nested_functions, insert_field_into_struct): Add
2332 prototypes.
2333 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
2334 * ipa-inline-analysis.c: Include cfgexpand.h.
2335 * cgraphunit.c: Include tree-nested.h.
2336 * omp-low.c: Likewise.
2337 * tree-parloops.c: Likewise.
2338 * gimple-low.h: Likewise.
2339 * tree-profile.h: Likewise.
2340 * expr.c: Include cfgexpand.h.
2341 * tree-affine.c: Likewise.
2342 * tree-ssa.c: Likewise.
2343 * tree-ssa-loop-im.c: Include trans-mem.h.
2344 * tree-ssa-tail-merge.c: Likewise.
2345 * value-prof.c: Include builtins.h and tree-nested.h.
2346 * tree-into-ssa.c (LABEL): Define here.
2347
2348 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
2349
2350 * config/arc/arc.c (arc_predicate_delay_insns): New function.
2351 (pass_data_arc_predicate_delay_insns): New pass_data instance.
2352 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
2353 (make_pass_arc_predicate_delay_insns): New function.
2354 (arc_init): Register pass_arc_predicate_delay_insns if
2355 flag_delayed_branch is active.
2356
2357 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
2358
2359 * config/arc/constraints.md (Rcq): Simplify register number test.
2360
2361 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
2362
2363 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
2364
2365 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
2366
2367 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
2368 is null.
2369
2370 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
2371
2372 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
2373 * gimple-pretty-print.c (dump_omp_for): Add case for
2374 GF_OMP_FOR_KIND_CILKSIMD.
2375 * gimple.h (enum gf_mask): Restructure entries to add
2376 GF_OMP_FOR_KIND_CILKSIMD.
2377 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
2378 (gimplify_omp_for): Handle CILK_SIMD.
2379 (gimplify_expr): Add ccase for CILK_SIMD.
2380 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
2381 (build_outer_var_ref): Same.
2382 (check_omp_nesting_restrictions): Same.
2383 (lower_rec_input_clauses): Same.
2384 (lower_lastprivate_clauses): Same.
2385 (expand_omp_for): Same.
2386 (execute_expand_omp): Check flag_enable_cilkplus.
2387 (execute_lower_omp): Same.
2388 (diagnose_sb_0): Handle CILK_SIMD.
2389 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
2390 (setjmp_or_longjmp_p): New.
2391 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
2392 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
2393 * tree.def: Add tree code for CILK_SIMD.
2394
2395 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2396
2397 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
2398 Remove.
2399 (altivec_vperm_<mode>): Revert earlier little endian change.
2400 (*altivec_vperm_<mode>_internal): Remove.
2401 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
2402 (*altivec_vperm_<mode>_uns_internal): Remove.
2403 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
2404
2405 2013-11-15 Jeff Law <law@redhat.com>
2406
2407 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
2408 has_abnormal_or_outgoing_edge. Check for EH edges as well.
2409 * gimple-ssa-isolate-paths.c
2410 (find_implicit_erroneous_behaviour): Corresponding changes.
2411 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
2412 (find_explicit_erroneous_behaviour): Likewise.
2413
2414 2013-11-15 Jeff Law <law@redhat.com>
2415
2416 * ifcvt.c (find_cond_trap): Properly handle case where
2417 trap_bb == else_bb.
2418
2419 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
2420
2421 * configure: Regenerate.
2422
2423 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
2424
2425 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
2426 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
2427 where it is incorrect or missing.
2428
2429 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2430
2431 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
2432 host_integerp test.
2433 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
2434 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
2435 constant.
2436 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
2437 pair with a TREE_CODE test and TREE_INT_CST_LOW.
2438 * tree-vect-generic.c (expand_vector_divmod): Likewise.
2439
2440 2013-11-15 Richard Biener <rguenther@suse.de>
2441
2442 PR tree-optimization/50262
2443 * tree-ssa-alias.h (struct pt_solution): Split
2444 vars_contains_global into vars_contains_nonlocal,
2445 vars_contains_escaped and vars_contains_escaped_heap.
2446 * tree-ssa-structalias.c (label_visit): Expand comment.
2447 (handle_lhs_call): Adjust comment.
2448 (set_uids_in_ptset): Set the new flags appropriately.
2449 (pt_solution_set): Adjust.
2450 (pt_solution_set_var): Likewise.
2451 (pt_solution_ior_into): Likewise.
2452 (pt_solution_includes_global): Likewise.
2453 (pt_solutions_intersect_1): Optimize escaped handling.
2454 (compute_points_to_sets): Remove heap variable globalization.
2455 (ipa_escaped_pt): Adjust initializer.
2456 (pass_data_ipa_pta): Do not run TODO_update_ssa.
2457 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
2458 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
2459
2460 2013-11-15 Richard Biener <rguenther@suse.de>
2461
2462 * tree-loop-distribution.c (tree_loop_distribution): Make sure
2463 to distribute all stores.
2464
2465 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2466
2467 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
2468
2469 2013-11-15 Joseph Myers <joseph@codesourcery.com>
2470
2471 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
2472 * configure.ac: Determine target_header_dir earlier.
2473 (--with-glibc-version): New configure option.
2474 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
2475 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
2476 * configure: Regenerate.
2477 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
2478 native toolchains for default.
2479 (--with-glibc-version): Document.
2480
2481 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
2482
2483 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
2484
2485 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
2486
2487 * lto-streamer-in.c (input function): Call cgraph_create_node if
2488 cgraph_get_node failed.
2489
2490 2013-11-14 Olivier Hainque <hainque@adacore.com>
2491
2492 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
2493 defer allocation of DECL_IGNORED_P variables at toplevel unless really
2494 small. Factorize size threshold computation from the existing one.
2495 (expand_used_vars): Refine comment.
2496
2497 2013-11-14 Cong Hou <congh@google.com>
2498
2499 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
2500 address field as it can be obtained from dr. Rename the struct.
2501 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
2502 steps of data references during sort.
2503 (vect_prune_runtime_alias_test_list): Adjust with the change to
2504 struct dr_with_seg_len.
2505 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2506 Adjust with the change to struct dr_with_seg_len.
2507
2508 2013-11-14 Jeff Law <law@redhat.com>
2509
2510 PR middle-end/59127
2511 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
2512 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
2513 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
2514 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
2515 edges, then ignore it. If the statement exhibiting erroneous
2516 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
2517 then we can not optimize.
2518 (find_explicit_erroneous_behaviour): Likewise.
2519
2520 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
2521
2522 * gimplify-me.h: New file. Add prototypes.
2523 * gimplify.h: Don't include gimple.h.
2524 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
2525 Relocate from gimple.h.
2526 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
2527 is_gimple_sizepos): Move to gimplify.h.
2528 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
2529 (enum gsi_iterator_update): Move to gimple-iterator.h.
2530 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
2531 * gimplify-me.c: New File.
2532 (force_gimple_operand_1, force_gimple_operand,
2533 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2534 gimple_regimplify_operands): Relocate from gimplify.c.
2535 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
2536 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2537 gimple_regimplify_operands): Move to gimplify-me.c.
2538 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
2539 from gimple.h.
2540 * Makefile.in (OBJS): Add gimplify-me.o
2541 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
2542 required.
2543 * cfgloopmanip.c: Likewise.
2544 * cgraphunit.c: Likewise.
2545 * cilk-common.c: Likewise.
2546 * fold-const.c: Likewise.
2547 * function.c: Likewise.
2548 * gimple-expr.c: Likewise.
2549 * gimple-fold.c: Likewise.
2550 * gimple-ssa-strength-reduction.c: Likewise.
2551 * gimple.c: Likewise.
2552 * graphite-clast-to-gimple.c: Likewise.
2553 * graphite-sese-to-poly.c: Likewise.
2554 * ipa-prop.c: Likewise.
2555 * ipa-split.c: Likewise.
2556 * ipa.c: Likewise.
2557 * langhooks.c: Likewise.
2558 * omp-low.c: Likewise.
2559 * sese.c: Likewise.
2560 * stor-layout.c: Likewise.
2561 * targhooks.c: Likewise.
2562 * trans-mem.c: Likewise.
2563 * tree-affine.c: Likewise.
2564 * tree-cfg.c: Likewise.
2565 * tree-cfgcleanup.c: Likewise.
2566 * tree-complex.c: Likewise.
2567 * tree-if-conv.c: Likewise.
2568 * tree-inline.c: Likewise.
2569 * tree-loop-distribution.c: Likewise.
2570 * tree-nested.c: Likewise.
2571 * tree-parloops.c: Likewise.
2572 * tree-predcom.c: Likewise.
2573 * tree-profile.c: Likewise.
2574 * tree-scalar-evolution.c: Likewise.
2575 * tree-sra.c: Likewise.
2576 * tree-ssa-address.c: Likewise.
2577 * tree-ssa-ccp.c: Likewise.
2578 * tree-ssa-dce.c: Likewise.
2579 * tree-ssa-forwprop.c: Likewise.
2580 * tree-ssa-ifcombine.c: Likewise.
2581 * tree-ssa-loop-im.c: Likewise.
2582 * tree-ssa-loop-ivopts.c: Likewise.
2583 * tree-ssa-loop-manip.c: Likewise.
2584 * tree-ssa-loop-niter.c: Likewise.
2585 * tree-ssa-loop-prefetch.c: Likewise.
2586 * tree-ssa-loop-unswitch.c: Likewise.
2587 * tree-ssa-math-opts.c: Likewise.
2588 * tree-ssa-phiopt.c: Likewise.
2589 * tree-ssa-phiprop.c: Likewise.
2590 * tree-ssa-pre.c: Likewise.
2591 * tree-ssa-propagate.c: Likewise.
2592 * tree-ssa-reassoc.c: Likewise.
2593 * tree-ssa-sccvn.c: Likewise.
2594 * tree-ssa-strlen.c: Likewise.
2595 * tree-ssa.c: Likewise.
2596 * tree-switch-conversion.c: Likewise.
2597 * tree-tailcall.c: Likewise.
2598 * tree-vect-data-refs.c: Likewise.
2599 * tree-vect-generic.c: Likewise.
2600 * tree-vect-loop-manip.c: Likewise.
2601 * tree-vect-loop.c: Likewise.
2602 * tree-vect-patterns.c: Likewise.
2603 * tree-vect-stmts.c: Likewise.
2604 * tree.c: Likewise.
2605 * tsan.c: Likewise.
2606 * value-prof.c: Likewise.
2607 * config/aarch64/aarch64.c: Likewise.
2608 * config/alpha/alpha.c: Likewise.
2609 * config/darwin.c: Likewise.
2610 * config/i386/i386.c: Likewise.
2611 * config/ia64/ia64.c: Likewise.
2612 * config/mep/mep.c: Likewise.
2613 * config/mips/mips.c: Likewise.
2614 * config/rs6000/rs6000.c: Likewise.
2615 * config/s390/s390.c: Likewise.
2616 * config/sh/sh.c: Likewise.
2617 * config/sparc/sparc.c: Likewise.
2618 * config/spu/spu.c: Likewise.
2619 * config/stormy16/stormy16.c: Likewise.
2620 * config/tilegx/tilegx.c: Likewise.
2621 * config/tilepro/tilepro.c: Likewise.
2622 * config/xtensa/xtensa.c: Likewise.
2623
2624 2013-11-14 Diego Novillo <dnovillo@google.com>
2625
2626 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
2627
2628 2013-11-14 Diego Novillo <dnovillo@google.com>
2629
2630 * tree.h: Include fold-const.h.
2631 (aggregate_value_p): Moved to function.h.
2632 (alloca_call_p): Moved to calls.h.
2633 (allocate_struct_function): Moved to function.h.
2634 (apply_tm_attr): Moved to attribs.h.
2635 (array_at_struct_end_p): Moved to expr.h.
2636 (array_ref_element_size): Moved to tree-dfa.h.
2637 (array_ref_low_bound): Moved to tree-dfa.h.
2638 (array_ref_up_bound): Moved to tree.h.
2639 (assemble_alias): Moved to cgraph.h.
2640 (bit_from_pos): Moved to stor-layout.h.
2641 (build_addr): Moved to tree-nested.h.
2642 (build_duplicate_type): Moved to tree-inline.h.
2643 (build_fold_addr_expr): Moved to fold-const.h.
2644 (build_fold_addr_expr_with_type): Moved to fold-const.h.
2645 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
2646 (build_fold_indirect_ref): Moved to fold-const.h.
2647 (build_fold_indirect_ref_loc): Moved to fold-const.h.
2648 (build_personality_function): Moved to tree.h.
2649 (build_range_check): Moved to fold-const.h.
2650 (build_simple_mem_ref): Moved to fold-const.h.
2651 (build_simple_mem_ref_loc): Moved to fold-const.h.
2652 (build_tm_abort_call): Moved to trans-mem.h.
2653 (byte_from_pos): Moved to stor-layout.h.
2654 (call_expr_flags): Moved to calls.h.
2655 (can_move_by_pieces): Moved to expr.h.
2656 (categorize_ctor_elements): Moved to expr.h.
2657 (change_decl_assembler_name): Moved to gcc-symtab.h.
2658 (combine_comparisons): Moved to fold-const.h.
2659 (complete_ctor_at_level_p): Moved to tree.h.
2660 (component_ref_field_offset): Moved to tree-dfa.h.
2661 (compute_builtin_object_size): Moved to tree-object-size.h.
2662 (compute_record_mode): Moved to stor-layout.h.
2663 (constant_boolean_node): Moved to fold-const.h.
2664 (constructor_static_from_elts_p): Moved to varasm.h.
2665 (cxx11_attribute_p): Moved to attribs.h.
2666 (debug_body): Moved to print-tree.h.
2667 (debug_find_tree): Moved to tree-inline.h.
2668 (debug_fold_checksum): Moved to fold-const.h.
2669 (debug_head): Moved to print-tree.h.
2670 (debug_head): Moved to print-tree.h.
2671 (debug_raw): Moved to print-tree.h.
2672 (debug_tree): Moved to print-tree.h.
2673 (debug_vec_tree): Moved to print-tree.h.
2674 (debug_verbose): Moved to print-tree.h.
2675 (debug_verbose): Moved to print-tree.h.
2676 (decl_attributes): Moved to attribs.h.
2677 (decl_binds_to_current_def_p): Moved to varasm.h.
2678 (decl_default_tls_model): Moved to varasm.h.
2679 (decl_replaceable_p): Moved to varasm.h.
2680 (div_if_zero_remainder): Moved to fold-const.h.
2681 (double_int mem_ref_offset): Moved to fold-const.h.
2682 (dump_addr): Moved to print-tree.h.
2683 (element_precision): Moved to machmode.h.
2684 (expand_dummy_function_end): Moved to function.h.
2685 (expand_function_end): Moved to function.h.
2686 (expand_function_start): Moved to function.h.
2687 (expand_label): Moved to stmt.h.
2688 (expr_first): Moved to tree-iterator.h.
2689 (expr_last): Moved to tree-iterator.h.
2690 (finalize_size_functions): Moved to stor-layout.h.
2691 (finish_builtin_struct): Moved to stor-layout.h.
2692 (finish_record_layout): Moved to stor-layout.h.
2693 (fixup_signed_type): Moved to stor-layout.h.
2694 (fixup_unsigned_type): Moved to stor-layout.h.
2695 (flags_from_decl_or_type): Moved to calls.h.
2696 (fold): Moved to fold-const.h.
2697 (fold_abs_const): Moved to fold-const.h.
2698 (fold_binary): Moved to fold-const.h.
2699 (fold_binary_loc): Moved to fold-const.h.
2700 (fold_binary_to_constant): Moved to fold-const.h.
2701 (fold_build1): Moved to fold-const.h.
2702 (fold_build1_initializer_loc): Moved to fold-const.h.
2703 (fold_build1_loc): Moved to fold-const.h.
2704 (fold_build1_stat_loc): Moved to fold-const.h.
2705 (fold_build2): Moved to fold-const.h.
2706 (fold_build2_initializer_loc): Moved to fold-const.h.
2707 (fold_build2_loc): Moved to fold-const.h.
2708 (fold_build2_stat_loc): Moved to fold-const.h.
2709 (fold_build3): Moved to fold-const.h.
2710 (fold_build3_loc): Moved to fold-const.h.
2711 (fold_build3_stat_loc): Moved to fold-const.h.
2712 (fold_build_call_array): Moved to fold-const.h.
2713 (fold_build_call_array_initializer): Moved to fold-const.h.
2714 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
2715 (fold_build_call_array_loc): Moved to fold-const.h.
2716 (fold_build_cleanup_point_expr): Moved to fold-const.h.
2717 (fold_convert): Moved to fold-const.h.
2718 (fold_convert_loc): Moved to fold-const.h.
2719 (fold_convertible_p): Moved to fold-const.h.
2720 (fold_defer_overflow_warnings): Moved to fold-const.h.
2721 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
2722 (fold_fma): Moved to fold-const.h.
2723 (fold_ignored_result): Moved to fold-const.h.
2724 (fold_indirect_ref): Moved to fold-const.h.
2725 (fold_indirect_ref_1): Moved to fold-const.h.
2726 (fold_indirect_ref_loc): Moved to fold-const.h.
2727 (fold_read_from_constant_string): Moved to fold-const.h.
2728 (fold_real_zero_addition_p): Moved to fold-const.h.
2729 (fold_single_bit_test): Moved to fold-const.h.
2730 (fold_strip_sign_ops): Moved to fold-const.h.
2731 (fold_ternary): Moved to fold-const.h.
2732 (fold_ternary_loc): Moved to fold-const.h.
2733 (fold_unary): Moved to tree-data-ref.h.
2734 (fold_unary_ignore_overflow): Moved to fold-const.h.
2735 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
2736 (fold_unary_loc): Moved to fold-const.h.
2737 (fold_unary_to_constant): Moved to fold-const.h.
2738 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
2739 (fold_undefer_overflow_warnings): Moved to fold-const.h.
2740 (folding_initializer): Moved to fold-const.h.
2741 (free_temp_slots): Moved to function.h.
2742 (generate_setjmp_warnings): Moved to function.h.
2743 (get_attribute_name): Moved to attribs.h.
2744 (get_identifier): Moved to stringpool.h.
2745 (get_identifier_with_length): Moved to stringpool.h.
2746 (get_inner_reference): Moved to tree.h.
2747 (gimple_alloca_call_p): Moved to calls.h.
2748 (gimplify_parameters): Moved to function.h.
2749 (highest_pow2_factor): Moved to expr.h.
2750 (indent_to): Moved to print-tree.h.
2751 (init_attributes): Moved to attribs.h.
2752 (init_dummy_function_start): Moved to function.h.
2753 (init_function_start): Moved to function.h.
2754 (init_inline_once): Moved to tree-inline.h.
2755 (init_object_sizes): Moved to tree-object-size.h.
2756 (init_temp_slots): Moved to function.h.
2757 (init_tree_optimization_optabs): Moved to optabs.h.
2758 (initialize_sizetypes): Moved to stor-layout.h.
2759 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
2760 (initializer_constant_valid_p): Moved to varasm.h.
2761 (int_const_binop): Moved to fold-const.h.
2762 (internal_reference_types): Moved to stor-layout.h.
2763 (invert_tree_comparison): Moved to fold-const.h.
2764 (invert_truthvalue): Moved to fold-const.h.
2765 (invert_truthvalue_loc): Moved to fold-const.h.
2766 (is_tm_ending_fndecl): Moved to trans-mem.h.
2767 (is_tm_may_cancel_outer): Moved to trans-mem.h.
2768 (is_tm_pure): Moved to trans-mem.h.
2769 (is_tm_safe): Moved to trans-mem.h.
2770 (layout_decl): Moved to stor-layout.h.
2771 (layout_type): Moved to stor-layout.h.
2772 (lookup_attribute_spec): Moved to attribs.h.
2773 (make_accum_type): Moved to stor-layout.h.
2774 (make_decl_one_only): Moved to varasm.h.
2775 (make_decl_rtl): Moved to tree.h.
2776 (make_decl_rtl_for_debug): Moved to varasm.h.
2777 (make_fract_type): Moved to stor-layout.h.
2778 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
2779 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
2780 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
2781 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
2782 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
2783 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
2784 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
2785 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
2786 (make_range): Moved to fold-const.h.
2787 (make_range_step): Moved to fold-const.h.
2788 (make_sat_signed_accum_type): Moved to stor-layout.h.
2789 (make_sat_signed_fract_type): Moved to stor-layout.h.
2790 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
2791 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
2792 (make_signed_accum_type): Moved to stor-layout.h.
2793 (make_signed_fract_type): Moved to stor-layout.h.
2794 (make_signed_type): Moved to stor-layout.h.
2795 (make_unsigned_accum_type): Moved to stor-layout.h.
2796 (make_unsigned_fract_type): Moved to stor-layout.h.
2797 (make_unsigned_type): Moved to stor-layout.h.
2798 (mark_decl_referenced): Moved to varasm.h.
2799 (mark_referenced): Moved to varasm.h.
2800 (may_negate_without_overflow_p): Moved to fold-const.h.
2801 (maybe_get_identifier): Moved to stringpool.h.
2802 (merge_ranges): Moved to fold-const.h.
2803 (merge_weak): Moved to varasm.h.
2804 (mode_for_size_tree): Moved to stor-layout.h.
2805 (multiple_of_p): Moved to fold-const.h.
2806 (must_pass_in_stack_var_size): Moved to calls.h.
2807 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
2808 (native_encode_expr): Moved to fold-const.h.
2809 (native_interpret_expr): Moved to fold-const.h.
2810 (non_lvalue): Moved to fold-const.h.
2811 (non_lvalue_loc): Moved to fold-const.h.
2812 (normalize_offset): Moved to stor-layout.h.
2813 (normalize_rli): Moved to stor-layout.h.
2814 (notice_global_symbol): Moved to varasm.h.
2815 (omit_one_operand): Moved to fold-const.h.
2816 (omit_one_operand_loc): Moved to fold-const.h.
2817 (omit_two_operands): Moved to fold-const.h.
2818 (omit_two_operands_loc): Moved to fold-const.h.
2819 (operand_equal_p): Moved to tree-data-ref.h.
2820 (parse_input_constraint): Moved to stmt.h.
2821 (parse_output_constraint): Moved to stmt.h.
2822 (place_field): Moved to stor-layout.h.
2823 (pop_function_context): Moved to function.h.
2824 (pop_temp_slots): Moved to function.h.
2825 (pos_from_bit): Moved to stor-layout.h.
2826 (preserve_temp_slots): Moved to function.h.
2827 (print_node): Moved to print-tree.h.
2828 (print_node_brief): Moved to print-tree.h.
2829 (print_rtl): Moved to rtl.h.
2830 (process_pending_assemble_externals): Moved to varasm.h.
2831 (ptr_difference_const): Moved to fold-const.h.
2832 (push_function_context): Moved to function.h.
2833 (push_struct_function): Moved to function.h.
2834 (push_temp_slots): Moved to function.h.
2835 (record_tm_replacement): Moved to trans-mem.h.
2836 (relayout_decl): Moved to stor-layout.h.
2837 (resolve_asm_operand_names): Moved to stmt.h.
2838 (resolve_unique_section): Moved to varasm.h.
2839 (rli_size_so_far): Moved to stor-layout.h.
2840 (rli_size_unit_so_far): Moved to stor-layout.h.
2841 (round_down): Moved to fold-const.h.
2842 (round_down_loc): Moved to fold-const.h.
2843 (round_up): Moved to fold-const.h.
2844 (round_up_loc): Moved to fold-const.h.
2845 (set_decl_incoming_rtl): Moved to emit-rtl.h.
2846 (set_decl_rtl): Moved to tree.h.
2847 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
2848 (set_user_assembler_name): Moved to varasm.h.
2849 (setjmp_call_p): Moved to calls.h.
2850 (size_binop): Moved to fold-const.h.
2851 (size_binop_loc): Moved to fold-const.h.
2852 (size_diffop): Moved to fold-const.h.
2853 (size_diffop_loc): Moved to fold-const.h.
2854 (size_int_kind): Moved to fold-const.h.
2855 (stack_protect_epilogue): Moved to function.h.
2856 (start_record_layout): Moved to stor-layout.h.
2857 (supports_one_only): Moved to varasm.h.
2858 (swap_tree_comparison): Moved to fold-const.h.
2859 (tm_malloc_replacement): Moved to trans-mem.h.
2860 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
2861 (tree build_invariant_address): Moved to fold-const.h.
2862 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
2863 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
2864 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
2865 (tree_expr_nonnegative_p): Moved to fold-const.h.
2866 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
2867 (tree_output_constant_def): Moved to varasm.h.
2868 (tree_overlaps_hard_reg_set): Moved to stmt.h.
2869 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
2870 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
2871 (tree_swap_operands_p): Moved to fold-const.h.
2872 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
2873 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
2874 (update_alignment_for_field): Moved to stor-layout.h.
2875 (use_register_for_decl): Moved to function.h.
2876 (variable_size): Moved to rtl.h.
2877 (vector_type_mode): Moved to stor-layout.h.
2878 * cgraph.h: Corresponding changes.
2879 * emit-rtl.h: Corresponding changes.
2880 * expr.h: Corresponding changes.
2881 * function.h: Corresponding changes.
2882 * optabs.h: Corresponding changes.
2883 * trans-mem.h: Corresponding changes.
2884 Protect against multiple inclusion.
2885 * tree-inline.h: Corresponding changes.
2886 * tree-iterator.h: Corresponding changes.
2887 * tree-dfa.h: Include expr.h.
2888 * tree-ssanames.h: Include stringpool.h.
2889 * attribs.h: New file.
2890 * calls.h: New file.
2891 * fold-const.h: New file.
2892 * gcc-symtab.h: New file.
2893 * print-rtl.h: New file.
2894 * print-tree.h: New file.
2895 * stmt.h: New file.
2896 * stor-layout.h: New file.
2897 * strinpool.h: New file.
2898 * tree-nested.h: New file
2899 * tree-object-size.h: New file.
2900 * varasm.h: New file.
2901
2902 2013-11-14 Diego Novillo <dnovillo@google.com>
2903
2904 * alias.c: Include varasm.h.
2905 Include expr.h.
2906 * asan.c: Include calls.h.
2907 Include stor-layout.h.
2908 Include varasm.h.
2909 * attribs.c: Include stringpool.h.
2910 Include attribs.h.
2911 Include stor-layout.h.
2912 * builtins.c: Include stringpool.h.
2913 Include stor-layout.h.
2914 Include calls.h.
2915 Include varasm.h.
2916 Include tree-object-size.h.
2917 * calls.c: Include stor-layout.h.
2918 Include varasm.h.
2919 Include stringpool.h.
2920 Include attribs.h.
2921 * cfgexpand.c: Include stringpool.h.
2922 Include varasm.h.
2923 Include stor-layout.h.
2924 Include stmt.h.
2925 Include print-tree.h.
2926 * cgraph.c: Include varasm.h.
2927 Include calls.h.
2928 Include print-tree.h.
2929 * cgraphclones.c: Include stringpool.h.
2930 Include function.h.
2931 Include emit-rtl.h.
2932 Move inclusion of rtl.h earlier in the file.
2933 * cgraphunit.c: Include varasm.h.
2934 Include stor-layout.h.
2935 Include stringpool.h.
2936 * cilk-common.c: Include stringpool.h.
2937 Include stor-layout.h.
2938 * combine.c: Include stor-layout.h.
2939 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
2940 Include stringpool.h.
2941 Include calls.h.
2942 * config/aarch64/aarch64.c: Include stringpool.h.
2943 Include stor-layout.h.
2944 Include calls.h.
2945 Include varasm.h.
2946 * config/alpha/alpha.c: Include stor-layout.h.
2947 Include calls.h.
2948 Include varasm.h.
2949 * config/arc/arc.c: Include varasm.h.
2950 Include stor-layout.h.
2951 Include stringpool.h.
2952 Include calls.h.
2953 * config/arm/arm.c: Include stringpool.h.
2954 Include stor-layout.h.
2955 Include calls.h.
2956 Include varasm.h.
2957 * config/avr/avr-c.c: Include stor-layout.h.
2958 * config/avr/avr-log.c: Include print-tree.h.
2959 * config/avr/avr.c: Include print-tree.h.
2960 Include calls.h.
2961 Include stor-layout.h.
2962 Include stringpool.h.
2963 * config/bfin/bfin.c: Include varasm.h.
2964 Include calls.h.
2965 * config/c6x/c6x.c: Include stor-layout.h.
2966 Include varasm.h.
2967 Include calls.h.
2968 Include stringpool.h.
2969 * config/cr16/cr16.c: Include stor-layout.h.
2970 Include calls.h.
2971 * config/cris/cris.c: Include varasm.h.
2972 Include stor-layout.h.
2973 Include calls.h.
2974 Include stmt.h.
2975 * config/darwin.c: Include stringpool.h.
2976 Include varasm.h.
2977 Include stor-layout.h.
2978 * config/epiphany/epiphany.c: Include stor-layout.h.
2979 Include varasm.h.
2980 Include calls.h.
2981 Include stringpool.h.
2982 * config/fr30/fr30.c: Include stor-layout.h.
2983 Include varasm.h.
2984 * config/frv/frv.c: Include varasm.h.
2985 Include stor-layout.h.
2986 Include stringpool.h.
2987 * config/h8300/h8300.c: Include stor-layout.h.
2988 Include varasm.h.
2989 Include calls.h.
2990 Include stringpool.h.
2991 * config/i386/i386.c: Include stringpool.h.
2992 Include attribs.h.
2993 Include calls.h.
2994 Include stor-layout.h.
2995 Include varasm.h.
2996 * config/i386/winnt-cxx.c: Include stringpool.h.
2997 Include attribs.h.
2998 * config/i386/winnt.c: Include stringpool.h.
2999 Include varasm.h.
3000 * config/ia64/ia64-c.c: Include stringpool.h.
3001 * config/ia64/ia64.c: Include stringpool.h.
3002 Include stor-layout.h.
3003 Include calls.h.
3004 Include varasm.h.
3005 * config/iq2000/iq2000.c: Include stor-layout.h.
3006 Include calls.h.
3007 Include varasm.h.
3008 * config/lm32/lm32.c: Include calls.h.
3009 * config/m32c/m32c.c: Include stor-layout.h.
3010 Include varasm.h.
3011 Include calls.h.
3012 * config/m32r/m32r.c: Include stor-layout.h.
3013 Include varasm.h.
3014 Include stringpool.h.
3015 Include calls.h.
3016 * config/m68k/m68k.c: Include calls.h.
3017 Include stor-layout.h.
3018 Include varasm.h.
3019 * config/mcore/mcore.c: Include stor-layout.h.
3020 Include varasm.h.
3021 Include stringpool.h.
3022 Include calls.h.
3023 * config/mep/mep.c: Include varasm.h.
3024 Include calls.h.
3025 Include stringpool.h.
3026 Include stor-layout.h.
3027 * config/microblaze/microblaze.c: Include varasm.h.
3028 Include stor-layout.h.
3029 Include calls.h.
3030 * config/mips/mips.c: Include varasm.h.
3031 Include stringpool.h.
3032 Include stor-layout.h.
3033 Include calls.h.
3034 * config/mmix/mmix.c: Include varasm.h.
3035 Include stor-layout.h.
3036 Include calls.h.
3037 * config/mn10300/mn10300.c: Include stor-layout.h.
3038 Include varasm.h.
3039 Include calls.h.
3040 * config/moxie/moxie.c: Include stor-layout.h.
3041 Include varasm.h.
3042 Include calls.h.
3043 * config/msp430/msp430.c: Include stor-layout.h.
3044 Include calls.h.
3045 * config/nds32/nds32.c: Include stor-layout.h.
3046 Include varasm.h.
3047 Include calls.h.
3048 * config/pa/pa.c: Include stor-layout.h.
3049 Include stringpool.h.
3050 Include varasm.h.
3051 Include calls.h.
3052 * config/pdp11/pdp11.c: Include stor-layout.h.
3053 Include varasm.h.
3054 Include calls.h.
3055 * config/picochip/picochip.c: Include calls.h.
3056 Include stor-layout.h.
3057 Include stringpool.h.
3058 Include varasm.h.
3059 * config/rl78/rl78.c: Include varasm.h.
3060 Include stor-layout.h.
3061 Include calls.h.
3062 * config/rs6000/rs6000-c.c: Include stor-layout.h.
3063 Include stringpool.h.
3064 * config/rs6000/rs6000.c: Include stringpool.h.
3065 Include stor-layout.h.
3066 Include calls.h.
3067 Include print-tree.h.
3068 Include varasm.h.
3069 * config/rx/rx.c: Include varasm.h.
3070 Include stor-layout.h.
3071 Include calls.h.
3072 * config/s390/s390.c: Include print-tree.h.
3073 Include stringpool.h.
3074 Include stor-layout.h.
3075 Include varasm.h.
3076 Include calls.h.
3077 * config/score/score.c: Include stringpool.h.
3078 Include calls.h.
3079 Include varasm.h.
3080 Include stor-layout.h.
3081 * config/sh/sh-c.c: Include stringpool.h.
3082 Include attribs.h.h.
3083 * config/sh/sh.c: Include stringpool.h.
3084 Include stor-layout.h.
3085 Include calls.h.
3086 Include varasm.h.
3087 * config/sol2-c.c: Include stringpool.h.
3088 Include attribs.h.
3089 * config/sol2-cxx.c: Include stringpool.h.
3090 * config/sol2.c: Include stringpool.h.
3091 Include varasm.h.
3092 * config/sparc/sparc.c: Include stringpool.h.
3093 Include stor-layout.h.
3094 Include calls.h.
3095 Include varasm.h.
3096 * config/spu/spu-c.c: Include stringpool.h.
3097 * config/spu/spu.c: Include stringpool.h.
3098 Include stor-layout.h.
3099 Include calls.h.
3100 Include varasm.h.
3101 * config/stormy16/stormy16.c: Include stringpool.h.
3102 Include stor-layout.h.
3103 Include varasm.h.
3104 Include calls.h.
3105 * config/tilegx/tilegx.c: Include stringpool.h.
3106 Include stor-layout.h.
3107 Include varasm.h.
3108 Include calls.h.
3109 * config/tilepro/tilepro.c: Include stringpool.h.
3110 Include stor-layout.h.
3111 Include varasm.h.
3112 Include calls.h.
3113 * config/v850/v850-c.c: Include stringpool.h.
3114 Include attribs.h.
3115 * config/v850/v850.c: Include stringpool.h.
3116 Include stor-layout.h.
3117 Include varasm.h.
3118 Include calls.h.
3119 * config/vax/vax.c: Include calls.h.
3120 Include varasm.h.
3121 * config/vms/vms.c: Include stringpool.h.
3122 * config/vxworks.c: Include stringpool.h.
3123 * config/xtensa/xtensa.c: Include stringpool.h.
3124 Include stor-layout.h.
3125 Include calls.h.
3126 Include varasm.h.
3127 * convert.c: Include stor-layout.h.
3128 * coverage.c: Include stringpool.h.
3129 Include stor-layout.h.
3130 * dbxout.c: Include varasm.h.
3131 Include stor-layout.h.
3132 * dojump.c: Include stor-layout.h.
3133 * dse.c: Include stor-layout.h.
3134 * dwarf2asm.c: Include stringpool.h.
3135 Include varasm.h.
3136 * dwarf2cfi.c: Include stor-layout.h.
3137 * dwarf2out.c: Include rtl.h.
3138 Include stringpool.h.
3139 Include stor-layout.h.
3140 Include varasm.h.
3141 Include function.h.
3142 Include emit-rtl.h.
3143 Move inclusion of rtl.h earlier in the file.
3144 * emit-rtl.c: Include varasm.h.
3145 * except.c: Include stringpool.h.
3146 Include stor-layout.h.
3147 * explow.c: Include stor-layout.h.
3148 * expmed.c: Include stor-layout.h.
3149 * expr.c: Include stringpool.h.
3150 Include stor-layout.h.
3151 Include attribs.h.
3152 Include varasm.h.
3153 * final.c: Include varasm.h.
3154 * fold-const.c: Include stor-layout.h.
3155 Include calls.h.
3156 Include tree-iterator.h.
3157 * function.c: Include stor-layout.h.
3158 Include varasm.h.
3159 Include stringpool.h.
3160 * genattrtab.c (write_header): Emit includes for varasm.h,
3161 stor-layout.h and calls.h.
3162 * genautomata.c (main): Likewise.
3163 * genemit.c: Likewise.
3164 * genopinit.c: Likewise.
3165 * genoutput.c (output_prologue): Likewise.
3166 * genpeep.c: Likewise.
3167 * genpreds.c (write_insn_preds_c): Likewise.
3168 * gengtype.c (open_base_files): Add stringpool.h.
3169 * gimple-expr.c: Include stringpool.h.
3170 Include stor-layout.h.
3171 * gimple-fold.c: Include stringpool.h.
3172 Include expr.h.
3173 Include stmt.h.
3174 Include stor-layout.h.
3175 * gimple-low.c: Include tree-nested.h.
3176 Include calls.h.
3177 * gimple-pretty-print.c: Include stringpool.h.
3178 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
3179 Include expr.h.
3180 * gimple-walk.c: Include stmt.h.
3181 * gimple.c: Include calls.h.
3182 Include stmt.h.
3183 Include stor-layout.h.
3184 * gimplify.c: Include stringpool.h.
3185 Include calls.h.
3186 Include varasm.h.
3187 Include stor-layout.h.
3188 Include stmt.h.
3189 Include print-tree.h.
3190 Include expr.h.
3191 * gimplify-me.c: Include stmt.h
3192 Include stor-layout.h
3193 * internal-fn.c: Include stor-layout.h.
3194 * ipa-devirt.c: Include print-tree.h.
3195 Include calls.h.
3196 * ipa-inline-analysis.c: Include stor-layout.h.
3197 Include stringpool.h.
3198 Include print-tree.h.
3199 * ipa-inline.c: Include trans-mem.h.
3200 Include calls.h.
3201 * ipa-prop.c: Include expr.h.
3202 Include stor-layout.h.
3203 Include print-tree.h.
3204 * ipa-pure-const.c: Include print-tree.h.
3205 Include calls.h.
3206 * ipa-reference.c: Include calls.h.
3207 * ipa-split.c: Include stringpool.h.
3208 Include expr.h.
3209 Include calls.h.
3210 * ipa.c: Include calls.h.
3211 Include stringpool.h.
3212 * langhooks.c: Include stringpool.h.
3213 Include attribs.h.
3214 * lto-cgraph.c: Include stringpool.h.
3215 * lto-streamer-in.c: Include stringpool.h.
3216 * lto-streamer-out.c: Include stor-layout.h.
3217 Include stringpool.h.
3218 * omp-low.c: Include stringpool.h.
3219 Include stor-layout.h.
3220 Include expr.h.
3221 * optabs.c: Include stor-layout.h.
3222 Include stringpool.h.
3223 Include varasm.h.
3224 * passes.c: Include varasm.h.
3225 * predict.c: Include calls.h.
3226 * print-rtl.c: Include print-tree.h.
3227 * print-tree.c: Include varasm.h.
3228 Include print-rtl.h.
3229 Include stor-layout.h.
3230 * realmpfr.c: Include stor-layout.h.
3231 * reg-stack.c: Include varasm.h.
3232 * sdbout.c: Include varasm.h.
3233 Include stor-layout.h.
3234 * simplify-rtx.c: Include varasm.h.
3235 * stmt.c: Include varasm.h.
3236 Include stor-layout.h.
3237 * stor-layout.c: Include stor-layout.h.
3238 Include stringpool.h.
3239 Include varasm.h.
3240 Include print-tree.h.
3241 * symtab.c: Include rtl.h.
3242 Include print-tree.h.
3243 Include varasm.h.
3244 Include function.h.
3245 Include emit-rtl.h.
3246 * targhooks.c: Include stor-layout.h.
3247 Include varasm.h.
3248 * toplev.c: Include varasm.h.
3249 Include tree-inline.h.
3250 * trans-mem.c: Include calls.h.
3251 Include function.h.
3252 Include rtl.h.
3253 Include emit-rtl.h.
3254 * tree-affine.c: Include expr.h.
3255 * tree-browser.c: Include print-tree.h.
3256 * tree-call-cdce.c: Include stor-layout.h.
3257 * tree-cfg.c: Include trans-mem.h.
3258 Include stor-layout.h.
3259 Include print-tree.h.
3260 * tree-complex.c: Include stor-layout.h.
3261 * tree-data-ref.c: Include expr.h.
3262 * tree-dfa.c: Include stor-layout.h.
3263 * tree-eh.c: Include expr.h.
3264 Include calls.h.
3265 * tree-emutls.c: Include stor-layout.h.
3266 Include varasm.h.
3267 * tree-if-conv.c: Include stor-layout.h.
3268 * tree-inline.c: Include stor-layout.h.
3269 Include calls.h.
3270 * tree-loop-distribution.c: Include stor-layout.h.
3271 * tree-nested.c: Include stringpool.h.
3272 Include stor-layout.h.
3273 * tree-object-size.c: Include tree-object-size.h.
3274 * tree-outof-ssa.c: Include stor-layout.h.
3275 * tree-parloops.c: Include stor-layout.h.
3276 Include tree-nested.h.
3277 * tree-pretty-print.c: Include stor-layout.h.
3278 Include expr.h.
3279 * tree-profile.c: Include varasm.h.
3280 Include tree-nested.h.
3281 * tree-scalar-evolution.c: Include expr.h.
3282 * tree-sra.c: Include stor-layout.h.
3283 * tree-ssa-address.c: Include stor-layout.h.
3284 * tree-ssa-ccp.c: Include stor-layout.h.
3285 * tree-ssa-dce.c: Include calls.h.
3286 * tree-ssa-dom.c: Include stor-layout.h.
3287 * tree-ssa-forwprop.c: Include stor-layout.h.
3288 * tree-ssa-ifcombine.c: Include stor-layout.h.
3289 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
3290 * tree-ssa-loop-niter.c: Include calls.h.
3291 Include expr.h.
3292 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
3293 * tree-ssa-math-opts.c: Include stor-layout.h.
3294 * tree-ssa-operands.c: Include stmt.h.
3295 Include print-tree.h.
3296 * tree-ssa-phiopt.c: Include stor-layout.h.
3297 * tree-ssa-reassoc.c: Include stor-layout.h.
3298 * tree-ssa-sccvn.c: Include stor-layout.h.
3299 * tree-ssa-sink.c: Include stor-layout.h.
3300 * tree-ssa-strlen.c: Include stor-layout.h.
3301 * tree-ssa-structalias.c: Include stor-layout.h.
3302 Include stmt.h.
3303 * tree-ssa-tail-merge.c: Include stor-layout.h.
3304 Include trans-mem.h.
3305 * tree-ssa-uncprop.c: Include stor-layout.h.
3306 * tree-ssa.c: Include stor-layout.h.
3307 * tree-ssanames.c: Include stor-layout.h.
3308 * tree-streamer-in.c: Include stringpool.h.
3309 * tree-streamer-out.c: Include stor-layout.h.
3310 * tree-switch-conversion.c: Include varasm.h.
3311 Include stor-layout.h.
3312 * tree-tailcall.c: Include stor-layout.h.
3313 * tree-vect-data-refs.c: Include stor-layout.h.
3314 * tree-vect-generic.c: Include stor-layout.h.
3315 * tree-vect-loop.c: Include stor-layout.h.
3316 * tree-vect-patterns.c: Include stor-layout.h.
3317 * tree-vect-slp.c: Include stor-layout.h.
3318 * tree-vect-stmts.c: Include stor-layout.h.
3319 * tree-vectorizer.c: Include stor-layout.h.
3320 * tree-vrp.c: Include stor-layout.h.
3321 Include calls.h.
3322 * tree.c: Include stor-layout.h.
3323 Include calls.h.
3324 Include attribs.h.
3325 Include varasm.h.
3326 * tsan.c: Include expr.h.
3327 * ubsan.c: Include stor-layout.h.
3328 Include stringpool.h.
3329 * value-prof.c: Include tree-nested.h.
3330 Include calls.h.
3331 * var-tracking.c: Include varasm.h.
3332 Include stor-layout.h.
3333 * varasm.c: Include stor-layout.h.
3334 Include stringpool.h.
3335 Include gcc-symtab.h.
3336 Include varasm.h.
3337 * varpool.c: Include varasm.h.
3338 * vmsdbgout.c: Include varasm.h.
3339 * xcoffout.c: Include varasm.h.
3340
3341 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
3342
3343 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
3344 use (.&-4) idiom.
3345
3346 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3347
3348 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
3349
3350 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3351 Alan Modra <amodra@gmail.com>
3352
3353 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
3354 (RS6000_SAVE_TOC): Remove.
3355 (RS6000_TOC_SAVE_SLOT): New macro.
3356 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
3357 (rs6000_parm_start): Use it.
3358 (rs6000_function_arg_advance_1): Likewise.
3359 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
3360 (rs6000_emit_epilogue): Likewise.
3361 (rs6000_call_aix): Likewise.
3362 (rs6000_output_function_prologue): Do not save/restore r11
3363 around calling _mcount for ABI_ELFv2.
3364
3365 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3366 Alan Modra <amodra@gmail.com>
3367
3368 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
3369 Add prototype.
3370 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
3371 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
3372 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
3373 (rs6000_function_parms_need_stack): Likewise.
3374 (rs6000_reg_parm_stack_space): Likewise.
3375 (rs6000_function_arg): Do not replace BLKmode by Pmode when
3376 returning a register argument.
3377
3378 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3379 Michael Gschwind <mkg@us.ibm.com>
3380
3381 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
3382 (ALTIVEC_ARG_MAX_RETURN): Likewise.
3383 (FUNCTION_VALUE_REGNO_P): Use them.
3384 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
3385 (rs6000_return_in_msb): New function.
3386 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
3387 Handle aggregates of up to 16 bytes for ELFv2.
3388 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
3389
3390 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3391 Michael Gschwind <mkg@us.ibm.com>
3392
3393 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3394 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3395 (rs6000_discover_homogeneous_aggregate): Likewise.
3396 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3397 (rs6000_function_arg_advance_1): Likewise.
3398 (rs6000_function_arg): Likewise.
3399 (rs6000_arg_partial_bytes): Likewise.
3400 (rs6000_psave_function_arg): Handle BLKmode arguments.
3401
3402 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3403 Michael Gschwind <mkg@us.ibm.com>
3404
3405 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3406 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3407 (rs6000_discover_homogeneous_aggregate): Likewise.
3408 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3409 (rs6000_function_arg_advance_1): Likewise.
3410 (rs6000_function_arg): Likewise.
3411 (rs6000_arg_partial_bytes): Likewise.
3412 (rs6000_psave_function_arg): Handle BLKmode arguments.
3413
3414 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3415
3416 * config/rs6000/rs6000.c (machine_function): New member
3417 r2_setup_needed.
3418 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
3419 (rs6000_output_mi_thunk): Set r2_setup_needed.
3420 (rs6000_output_function_prologue): Output global entry point
3421 prologue and local entry point marker if needed for ABI_ELFv2.
3422 Output -mprofile-kernel code here.
3423 (output_function_profiler): Do not output -mprofile-kernel
3424 code here; moved to rs6000_output_function_prologue.
3425 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
3426
3427 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
3428 (rs6000_output_function_entry): Likewise.
3429 (rs6000_assemble_integer): Likewise.
3430 (rs6000_elf_encode_section_info): Likewise.
3431 (rs6000_elf_declare_function_name): Do not create dot symbols
3432 or .opd section for ABI_ELFv2.
3433
3434 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
3435 (rs6000_trampoline_init): Likewise.
3436 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
3437
3438 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
3439 for function descriptors in ABI_ELFv2.
3440
3441 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
3442 on ABI_AIX only, not ABI_ELFv2.
3443 ("*call_value_indirect_aix<mode>"): Likewise.
3444 ("*call_indirect_elfv2<mode>"): New pattern.
3445 ("*call_value_indirect_elfv2<mode>"): Likewise.
3446
3447 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
3448 check for function descriptors in ABI_ELFv2.
3449 ("current_file_function_operand"): Likewise.
3450
3451 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
3452 (toc): Undefine.
3453 (FUNC_NAME): Define ELFv2 variant.
3454 (JUMP_TARGET): Likewise.
3455 (FUNC_START): Likewise.
3456 (HIDDEN_FUNC): Likewise.
3457 (FUNC_END): Likeiwse.
3458
3459 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3460
3461 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
3462 and --with-abi=elfv2.
3463 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
3464 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
3465 (mabi=elfv2): Likewise.
3466 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
3467 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
3468 if !RS6000_BI_ARCH.
3469 (ELFv2_ABI_CHECK): New macro.
3470 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
3471 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
3472 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
3473 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
3474 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
3475
3476 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
3477 (debug_stack_info): Likewise.
3478 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
3479 (rs6000_legitimize_tls_address): Likewise.
3480 (rs6000_conditional_register_usage): Likewise.
3481 (rs6000_emit_move): Likewise.
3482 (init_cumulative_args): Likewise.
3483 (rs6000_function_arg_advance_1): Likewise.
3484 (rs6000_function_arg): Likewise.
3485 (rs6000_arg_partial_bytes): Likewise.
3486 (rs6000_output_function_entry): Likewise.
3487 (rs6000_assemble_integer): Likewise.
3488 (rs6000_savres_strategy): Likewise.
3489 (rs6000_stack_info): Likewise.
3490 (rs6000_function_ok_for_sibcall): Likewise.
3491 (rs6000_emit_load_toc_table): Likewise.
3492 (rs6000_savres_routine_name): Likewise.
3493 (ptr_regno_for_savres): Likewise.
3494 (rs6000_emit_prologue): Likewise.
3495 (rs6000_emit_epilogue): Likewise.
3496 (rs6000_output_function_epilogue): Likewise.
3497 (output_profile_hook): Likewise.
3498 (output_function_profiler): Likewise.
3499 (rs6000_trampoline_size): Likewise.
3500 (rs6000_trampoline_init): Likewise.
3501 (rs6000_elf_output_toc_section_asm_op): Likewise.
3502 (rs6000_elf_encode_section_info): Likewise.
3503 (rs6000_elf_reloc_rw_mask): Likewise.
3504 (rs6000_elf_declare_function_name): Likewise.
3505 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
3506 except that rs6000_compat_align_parm is always assumed false.
3507 (rs6000_gimplify_va_arg): Likewise.
3508 (rs6000_call_aix): Update comment.
3509 (rs6000_sibcall_aix): Likewise.
3510 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
3511 Treat ABI_ELFv2 the same as ABI_AIX.
3512 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3513 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
3514 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3515 ("load_toc_aix_si"): Likewise.
3516 ("load_toc_aix_di"): Likewise.
3517 ("call"): Likewise.
3518 ("call_value"): Likewise.
3519 ("*call_local_aix<mode>"): Likewise.
3520 ("*call_value_local_aix<mode>"): Likewise.
3521 ("*call_nonlocal_aix<mode>"): Likewise.
3522 ("*call_value_nonlocal_aix<mode>"): Likewise.
3523 ("*call_indirect_aix<mode>"): Likewise.
3524 ("*call_value_indirect_aix<mode>"): Likewise.
3525 ("sibcall"): Likewise.
3526 ("sibcall_value"): Likewise.
3527 ("*sibcall_aix<mode>"): Likewise.
3528 ("*sibcall_value_aix<mode>"): Likewise.
3529 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
3530 ("current_file_function_operand"): Likewise.
3531
3532 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3533
3534 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
3535 by making use of the fact that for vector / floating point arguments
3536 passed both in VRs/FPRs and in the fixed parameter area, the partial
3537 bytes mechanism is in fact not used.
3538
3539 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3540
3541 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
3542 (rs6000_finish_function_arg): Likewise.
3543 (rs6000_function_arg): Use rs6000_psave_function_arg and
3544 rs6000_finish_function_arg to handle both vector and floating
3545 point arguments that are also passed in GPRs / the stack.
3546
3547 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3548
3549 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
3550 (USE_ALTIVEC_FOR_ARG_P): Likewise.
3551 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
3552 (rs6000_function_arg_advance_1):Likewise.
3553 (rs6000_darwin64_record_arg_recurse): Likewise.
3554 (rs6000_function_arg): Likewise.
3555 (rs6000_arg_partial_bytes): Likewise.
3556
3557 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3558
3559 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
3560 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
3561 (rs6000_savres_strategy): Likewise.
3562 (rs6000_return_addr): Likewise.
3563 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
3564 testing for ABI_V4 (since ABI_DARWIN is impossible here).
3565 (rs6000_emit_prologue): Likewise.
3566 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
3567 (rs6000_elf_declare_function_name): Remove duplicated test.
3568 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
3569 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
3570 ("load_toc_v4_PIC_1_normal"): Likewise.
3571 ("load_toc_v4_PIC_1_476"): Likewise.
3572 ("load_toc_v4_PIC_1b"): Likewise.
3573 ("load_toc_v4_PIC_1b_normal"): Likewise.
3574 ("load_toc_v4_PIC_1b_476"): Likewise.
3575 ("load_toc_v4_PIC_2"): Likewise.
3576 ("load_toc_v4_PIC_3b"): Likewise.
3577 ("load_toc_v4_PIC_3c"): Likewise.
3578 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
3579 (RS6000_SAVE_AREA): Likewise.
3580 (FP_ARG_MAX_REG): Likewise.
3581 (RETURN_ADDRESS_OFFSET): Likewise.
3582 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
3583 of ABI_AIX.
3584 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
3585 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3586
3587 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3588
3589 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
3590 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
3591 Create call insn directly instead of via various gen_... routines.
3592 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
3593 (rs6000_sibcall_aix): New function.
3594 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
3595 (TOC_SAVE_OFFSET_64BIT): Likewise.
3596 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
3597 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
3598 (AIX_FUNC_DESC_SC_32BIT): Likewise.
3599 (AIX_FUNC_DESC_SC_64BIT): Likewise.
3600 ("call" expander): Call rs6000_call_aix.
3601 ("call_value" expander): Likewise.
3602 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
3603 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3604 ("*call_indirect_aix<mode>"): ... by this insn pattern.
3605 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
3606 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3607 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
3608 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
3609 ("*call_nonlocal_aix<mode>"): ... this pattern.
3610 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
3611 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
3612 ("*call_local_aix<mode>"): New insn pattern.
3613 ("*call_value_local_aix<mode>"): Likewise.
3614 ("sibcall" expander): Call rs6000_sibcall_aix.
3615 ("sibcall_value" expander): Likewise. Move earlier in file.
3616 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
3617 ("*sibcall_aix<mode>"): ... this pattern.
3618 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
3619 ("*sibcall_value_aix<mode>"): ... this pattern.
3620 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
3621 (rs6000_call_aix): Add prototype.
3622 (rs6000_sibcall_aix): Likewise.
3623
3624 2013-11-14 Jakub Jelinek <jakub@redhat.com>
3625
3626 PR sanitizer/59122
3627 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
3628 isn't confused by the artificial decl.
3629
3630 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3631
3632 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
3633 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
3634 Instead, add USEs of all modified call-saved CR fields to the
3635 insn storing the result to the stack slot, and provide an
3636 appropriate REG_FRAME_RELATED_EXPR for that insn.
3637 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
3638 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
3639
3640 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3641 Alan Modra <amodra@gmail.com>
3642
3643 * function.c (assign_parms): Use all.reg_parm_stack_space instead
3644 of re-evaluating REG_PARM_STACK_SPACE target macro.
3645 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
3646 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
3647 (assign_parm_find_entry_rtl): Update call.
3648 * calls.c (initialize_argument_information): Update call.
3649 (emit_library_call_value_1): Likewise.
3650 * expr.h (locate_and_pad_parm): Update prototype.
3651
3652 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3653
3654 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
3655 arguments.
3656
3657 2013-11-14 DJ Delorie <dj@redhat.com>
3658
3659 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
3660 to 16 bits.
3661
3662 2013-11-14 Jeff Law <law@redhat.com>
3663
3664 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
3665 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
3666
3667 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3668
3669 * doc/invoke.texi: Update documentation for AArch64's -mcpu
3670 and -mtune options.
3671
3672 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3673
3674 * config/aarch64/aarch64-cores.def (example-1): Remove.
3675 (example-2): Likewise.
3676 * config/aarch64/aarch64-tune.md: Regenerate.
3677 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
3678 (generic_sched): Remove "large", "small".
3679 * config/aarch64/large.md: Delete.
3680 * config/aarch64/small.md: Delete.
3681
3682 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3683
3684 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
3685 * config/aarch64/aarch64-tune.md: Regenerate.
3686 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
3687 (generic_sched): "no" if we are tuning for cortexa15.
3688 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
3689 relative path.
3690
3691 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3692
3693 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
3694 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
3695 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
3696 (all_cores): Use cortexa53 when tuning for "generic".
3697 (aarch64_override_options): Fix comment.
3698 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
3699 * config/aarch64/aarch64-generic.md: Delete.
3700
3701 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3702
3703 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
3704
3705 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3706
3707 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
3708 (generic_rtx_cost_table): Remove.
3709 (aarch64_rtx_costs): Use fields from cpu_cost_table.
3710 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
3711 insn_extra_cost.
3712 (cpu_rtx_cost_table): Remove.
3713
3714 2013-11-14 Julian Brown <julian@codesourcery.com>
3715 Joey Ye <joey.ye@arm.com>
3716
3717 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
3718 (arm_v7m_tune): New.
3719 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
3720 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
3721 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
3722 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
3723
3724 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
3725
3726 PR target/57491
3727 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
3728 flag setting.
3729
3730 2013-11-14 Jakub Jelinek <jakub@redhat.com>
3731 Uros Bizjak <ubizjak@gmail.com>
3732
3733 PR target/59101
3734 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
3735 operands[2] satisfies_constraint_Z that might have bit 31 set.
3736
3737 2013-11-13 Jeff Law <law@redhat.com>
3738
3739 PR tree-optimization/59102
3740 * gimple-ssa-isolate-paths.c
3741 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
3742 gimple assignment before looking at gimple_assign_lhs.
3743
3744 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
3745
3746 * ira.c: Add comment about threads at the top of file.
3747
3748 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
3749
3750 * ira-color.c (coalesce_allocnos): Don't allocate and free
3751 sorted_copies.
3752
3753 2013-11-14 Tom de Vries <tom@codesourcery.com>
3754
3755 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
3756 equality for GIMPLE_ASSIGN.
3757
3758 2013-11-14 Tom de Vries <tom@codesourcery.com>
3759
3760 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
3761 function out of ...
3762 (gimple_equal_p): ... here.
3763
3764 2013-11-14 Tom de Vries <tom@codesourcery.com>
3765
3766 * trans-mem.c (is_tm_ending): New function.
3767 * gimple.h (is_tm_ending): Declare.
3768 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
3769 BUILT_IN_TM_COMMIT.
3770 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
3771
3772 2013-11-14 Tom de Vries <tom@codesourcery.com>
3773
3774 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
3775
3776 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
3777
3778 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
3779 (struct walk_stmt_info): Relocate here from gimple.h.
3780 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
3781 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
3782 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
3783 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
3784 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
3785 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
3786 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
3787 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
3788 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
3789 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
3790 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
3791 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
3792 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
3793 (struct walk_stmt_info): Move to gimple-walk.h.
3794 (gimple_seq_set_location): Move to gimple.c
3795 * gimple-walk.c: New File.
3796 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
3797 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
3798 walk_stmt_load_store_ops): Relocate here from gimple.c.
3799 * gimple-iterator.c: Include gimple-iterator.h.
3800 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
3801 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
3802 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
3803 gimple-walk.c.
3804 (gimple_seq_set_location): Relocate from gimple.h.
3805 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
3806 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
3807 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
3808 * Makefile.in (OBJS): Add gimple-walk.o
3809 * asan.c: Update Include list as required for gimple-iterator.h and
3810 gimple-walk.h.
3811 * cfgexpand.c: Likewise.
3812 * cfgloop.c: Likewise.
3813 * cfgloopmanip.c: Likewise.
3814 * cgraph.c: Likewise.
3815 * cgraphbuild.c: Likewise.
3816 * cgraphunit.c: Likewise.
3817 * gimple-fold.c: Likewise.
3818 * gimple-low.c: Likewise.
3819 * gimple-pretty-print.c: Likewise.
3820 * gimple-ssa-isolate-paths.c: Likewise.
3821 * gimple-ssa-strength-reduction.c: Likewise.
3822 * gimple-streamer-in.c: Likewise.
3823 * gimple-streamer-out.c: Likewise.
3824 * gimplify.c: Likewise.
3825 * graphite-blocking.c: Likewise.
3826 * graphite-clast-to-gimple.c: Likewise.
3827 * graphite-dependences.c: Likewise.
3828 * graphite-interchange.c: Likewise.
3829 * graphite-optimize-isl.c: Likewise.
3830 * graphite-poly.c: Likewise.
3831 * graphite-scop-detection.c: Likewise.
3832 * graphite-sese-to-poly.c: Likewise.
3833 * graphite.c: Likewise.
3834 * ipa-inline-analysis.c: Likewise.
3835 * ipa-profile.c: Likewise.
3836 * ipa-prop.c: Likewise.
3837 * ipa-pure-const.c: Likewise.
3838 * ipa-split.c: Likewise.
3839 * lto-streamer-in.c: Likewise.
3840 * lto-streamer-out.c: Likewise.
3841 * omp-low.c: Likewise.
3842 * predict.c: Likewise.
3843 * profile.c: Likewise.
3844 * sese.c: Likewise.
3845 * tracer.c: Likewise.
3846 * trans-mem.c: Likewise.
3847 * tree-call-cdce.c: Likewise.
3848 * tree-cfg.c: Likewise.
3849 * tree-cfgcleanup.c: Likewise.
3850 * tree-complex.c: Likewise.
3851 * tree-data-ref.c: Likewise.
3852 * tree-dfa.c: Likewise.
3853 * tree-eh.c: Likewise.
3854 * tree-emutls.c: Likewise.
3855 * tree-if-conv.c: Likewise.
3856 * tree-inline.c: Likewise.
3857 * tree-into-ssa.c: Likewise.
3858 * tree-loop-distribution.c: Likewise.
3859 * tree-nested.c: Likewise.
3860 * tree-nrv.c: Likewise.
3861 * tree-object-size.c: Likewise.
3862 * tree-outof-ssa.c: Likewise.
3863 * tree-parloops.c: Likewise.
3864 * tree-predcom.c: Likewise.
3865 * tree-profile.c: Likewise.
3866 * tree-scalar-evolution.c: Likewise.
3867 * tree-sra.c: Likewise.
3868 * tree-ssa-ccp.c: Likewise.
3869 * tree-ssa-coalesce.c: Likewise.
3870 * tree-ssa-copy.c: Likewise.
3871 * tree-ssa-copyrename.c: Likewise.
3872 * tree-ssa-dce.c: Likewise.
3873 * tree-ssa-dom.c: Likewise.
3874 * tree-ssa-dse.c: Likewise.
3875 * tree-ssa-forwprop.c: Likewise.
3876 * tree-ssa-ifcombine.c: Likewise.
3877 * tree-ssa-live.c: Likewise.
3878 * tree-ssa-loop-ch.c: Likewise.
3879 * tree-ssa-loop-im.c: Likewise.
3880 * tree-ssa-loop-ivcanon.c: Likewise.
3881 * tree-ssa-loop-ivopts.c: Likewise.
3882 * tree-ssa-loop-manip.c: Likewise.
3883 * tree-ssa-loop-niter.c: Likewise.
3884 * tree-ssa-loop-prefetch.c: Likewise.
3885 * tree-ssa-loop.c: Likewise.
3886 * tree-ssa-math-opts.c: Likewise.
3887 * tree-ssa-phiopt.c: Likewise.
3888 * tree-ssa-phiprop.c: Likewise.
3889 * tree-ssa-pre.c: Likewise.
3890 * tree-ssa-propagate.c: Likewise.
3891 * tree-ssa-reassoc.c: Likewise.
3892 * tree-ssa-sink.c: Likewise.
3893 * tree-ssa-strlen.c: Likewise.
3894 * tree-ssa-structalias.c: Likewise.
3895 * tree-ssa-tail-merge.c: Likewise.
3896 * tree-ssa-ter.c: Likewise.
3897 * tree-ssa-threadedge.c: Likewise.
3898 * tree-ssa-threadupdate.c: Likewise.
3899 * tree-ssa-uncprop.c: Likewise.
3900 * tree-ssa-uninit.c: Likewise.
3901 * tree-ssa.c: Likewise.
3902 * tree-stdarg.c: Likewise.
3903 * tree-switch-conversion.c: Likewise.
3904 * tree-tailcall.c: Likewise.
3905 * tree-vect-data-refs.c: Likewise.
3906 * tree-vect-generic.c: Likewise.
3907 * tree-vect-loop-manip.c: Likewise.
3908 * tree-vect-loop.c: Likewise.
3909 * tree-vect-patterns.c: Likewise.
3910 * tree-vect-slp.c: Likewise.
3911 * tree-vect-stmts.c: Likewise.
3912 * tree-vectorizer.c: Likewise.
3913 * tree-vrp.c: Likewise.
3914 * tree.c: Likewise.
3915 * tsan.c: Likewise.
3916 * value-prof.c: Likewise.
3917 * vtable-verify.c: Likewise.
3918
3919 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
3920
3921 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
3922 fix.
3923
3924 2013-11-13 Jeff Law <law@redhat.com>
3925
3926 * PR middle-end/59119
3927 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
3928 function, extracted from gimple_ssa_isolate_erroneous_paths.
3929 (find_explicit_erroneous_behaviour): Similarly.
3930 (insert_trap_and_remove_trailing_statements): Remove statements
3931 in reverse order.
3932
3933 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
3934
3935 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
3936 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
3937 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
3938 looking at INSN_CODE.
3939 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
3940 active_insn_p object, respect basic block boundaries.
3941 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
3942 follows immediately after the jump table data label.
3943 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
3944 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
3945 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
3946
3947 2013-11-13 Teresa Johnson <tejohnson@google.com>
3948
3949 PR ipa/58862
3950 * predict.c (drop_profile): Error is currently too strict.
3951 (handle_missing_profiles): Pass call_count to drop_profile.
3952
3953 2013-11-13 Teresa Johnson <tejohnson@google.com>
3954
3955 PR ipa/58862
3956 * ipa-inline.c (edge_badness): Fix overflow.
3957
3958 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
3959
3960 PR rtl-optimization/59036
3961 * ira-color.c (struct allocno_color_data): Add new members
3962 first_thread_allocno, next_thread_allocno, thread_freq.
3963 (sorted_copies): New static var.
3964 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
3965 (allocno_thread_conflict_p, merge_threads)
3966 (form_threads_from_copies, form_threads_from_bucket)
3967 (form_threads_from_colorable_allocno, init_allocno_threads): New
3968 functions.
3969 (bucket_allocno_compare_func): Add comparison by thread frequency
3970 and threads.
3971 (add_allocno_to_ordered_bucket): Rename to
3972 add_allocno_to_ordered_colorable_bucket. Remove parameter.
3973 (push_only_colorable): Call form_threads_from_bucket.
3974 (color_pass): Call init_allocno_threads. Use
3975 consideration_allocno_bitmap instead of coloring_allocno_bitmap
3976 for nuillify allocno color data.
3977 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
3978 (coalesce_allocnos): Use static sorted copies.
3979
3980 2013-11-13 Jakub Jelinek <jakub@redhat.com>
3981
3982 * passes.c (execute_todo): Don't call do_per_function if
3983 flags are zero.
3984 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
3985 execute_function_dump if dump_file is NULL.
3986
3987 2013-11-13 Martin Jambor <mjambor@suse.cz>
3988
3989 * cgraph.c (cgraph_get_create_node): Do what
3990 cgraph_get_create_real_symbol_node used to do.
3991 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
3992 call cgraph_get_create_node.
3993 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
3994 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
3995 cgraph_get_create_node. Assert we get a node.
3996
3997 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
3998
3999 * config/aarch64/aarch64-simd.md (vec_extract): New.
4000
4001 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
4002
4003 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
4004 the constraint.
4005
4006 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
4007
4008 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
4009 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
4010 or if optimization is enabled.
4011 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
4012 require that all the names based on a PARM_DECL or a RESULT_DECL that
4013 isn't ignored for debug info be coalesced.
4014
4015 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4016
4017 * config/c6x/c6x.c: Include "gimple-expr.h".
4018
4019 2013-11-13 Richard Biener <rguenther@suse.de>
4020
4021 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
4022 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
4023 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
4024 dealing with type mismatches inside component reference chains.
4025
4026 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
4027
4028 PR tree-optimization/59077
4029 * ipa-pure-const.c (better_state): Update *state.
4030
4031 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
4032
4033 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
4034 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
4035 Update offset calculations.
4036
4037 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
4038
4039 PR ada/35998
4040 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
4041 for fields. Do not add the attribute if the size is negative.
4042
4043 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4044
4045 * config/arm/arm.c: Include aarch-cost-tables.h.
4046 (generic_extra_costs): Move from here...
4047 * config/arm/aarch-cost-tables.h: ... To here. New file.
4048
4049 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
4050 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4051 Sergey Lega <sergey.s.lega@intel.com>
4052 Anna Tikhonova <anna.tikhonova@intel.com>
4053 Ilya Tocar <ilya.tocar@intel.com>
4054 Andrey Turetskiy <andrey.turetskiy@intel.com>
4055 Ilya Verbin <ilya.verbin@intel.com>
4056 Kirill Yukhin <kirill.yukhin@intel.com>
4057 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4058
4059 * config/i386/i386.c (ix86_print_operand): Support z-masking.
4060 * config/i386/predicate.md (const_0_to_4_operand): New.
4061 (const_0_to_5_operand): Ditto.
4062 * config/i386/sse.md (UNSPEC_COMPRESS): New.
4063 (UNSPEC_COMPRESS_STORE): Ditto.
4064 (UNSPEC_EXPAND): Ditto.
4065 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
4066 (define_mode_attr ssescalarsize): Ditto.
4067 (avx512f_load<mode>_mask): Ditto.
4068 (avx512f_store<mode>_mask): Ditto.
4069 (avx512f_storedqu<mode>_mask): Ditto.
4070 (avx512f_vmcmp<mode>3_mask): Ditto.
4071 (avx512f_fmadd_<mode>_mask): Ditto.
4072 (avx512f_fmadd_<mode>_mask3): Ditto.
4073 (avx512f_fmsub_<mode>_mask): Ditto.
4074 (avx512f_fmsub_<mode>_mask3): Ditto.
4075 (avx512f_fnmadd_<mode>_mask): Ditto.
4076 (avx512f_fnmadd_<mode>_mask3): Ditto.
4077 (avx512f_fnmsub_<mode>_mask): Ditto.
4078 (avx512f_fnmsub_<mode>_mask3): Ditto.
4079 (avx512f_fmaddsub_<mode>_mask): Ditto.
4080 (avx512f_fmaddsub_<mode>_mask3): Ditto.
4081 (avx512f_fmsubadd_<mode>_mask): Ditto.
4082 (avx512f_fmsubadd_<mode>_mask3): Ditto.
4083 (vec_unpacku_float_lo_v16si): Ditto.
4084 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
4085 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
4086 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
4087 (vec_extract_lo_<mode>_maskm): Ditto.
4088 (vec_extract_hi_<mode>_maskm): Ditto.
4089 (avx512f_vternlog<mode>_mask): Ditto.
4090 (avx512f_shufps512_mask): Ditto.
4091 (avx512f_fixupimm<mode>_mask): Ditto.
4092 (avx512f_shufpd512_mask): Ditto.
4093 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
4094 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
4095 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
4096 (ashr<mode>3<mask_name>): Ditto.
4097 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
4098 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
4099 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
4100 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
4101 (avx512f_pshufdv3_mask): Ditto.
4102 (avx512f_perm<mode>_mask): Ditto.
4103 (avx512f_vpermi2var<mode>3_mask): Ditto.
4104 (avx512f_vpermt2var<mode>3_mask): Ditto.
4105 (avx512f_compress<mode>_mask): Ditto.
4106 (avx512f_compressstore<mode>_mask): Ditto.
4107 (avx512f_expand<mode>_mask): Ditto.
4108 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
4109 to support masking.
4110 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
4111 (<plusminus_insn><mode>3<mask_name>): Ditto.
4112 (*<plusminus_insn><mode>3<mask_name>): Ditto.
4113 (mul<mode>3<mask_name>): Ditto.
4114 (*mul<mode>3<mask_name>): Ditto.
4115 (<sse>_div<mode>3<mask_name>): Ditto.
4116 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
4117 (<sse>_sqrt<mode>2<mask_name>): Ditto.
4118 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
4119 (<code><mode>3<mask_name>/smaxmin): Ditto.
4120 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
4121 (*<code><mode>3<mask_name>/smaxmin): Ditto.
4122 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
4123 (ufloatv16siv16sf2<mask_name>): Ditto.
4124 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
4125 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
4126 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
4127 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
4128 (ufloatv8siv8df<mask_name>): Ditto.
4129 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
4130 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
4131 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
4132 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
4133 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
4134 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
4135 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
4136 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
4137 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
4138 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4139 (vec_extract_lo_<mode><mask_name>): Ditto.
4140 (vec_extract_hi_<mode><mask_name>): Ditto.
4141 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
4142 (avx512f_movddup512<mask_name>): Ditto.
4143 (avx512f_unpcklpd512<mask_name>): Ditto.
4144 (*avx512f_unpcklpd512<mask_name>): Ditto.
4145 (*avx512f_vmscalef<mode>): Ditto.
4146 (avx512f_scalef<mode><mask_name>): Ditto.
4147 (avx512f_getexp<mode><mask_name>): Ditto.
4148 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
4149 (avx512f_rndscale<mode><mask_name>): Ditto.
4150 (avx512f_shufps512_1<mask_name>): Ditto.
4151 (avx512f_shufpd512_1<mask_name>): Ditto.
4152 (<plusminus_insn><mode>3<mask_name>): Ditto.
4153 (*<plusminus_insn><mode>3<mask_name>): Ditto.
4154 (vec_widen_umult_even_v16si<mask_name>): Ditto.
4155 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
4156 (vec_widen_smult_even_v16si<mask_name>): Ditto.
4157 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
4158 (mul<mode>3<mask_name>): Ditto.
4159 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
4160 (<shift_insn><mode>3<mask_name>): Ditto.
4161 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
4162 (avx512f_<rotate><mode><mask_name>): Ditto.
4163 (<code><mode>3<mask_name>/maxmin): Ditto.
4164 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
4165 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
4166 (*andnot<mode>3<mask_name>): Ditto.
4167 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
4168 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
4169 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
4170 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
4171 (vec_set_lo_<mode><mask_name>): Ditto.
4172 (vec_set_hi_<mode><mask_name>): Ditto.
4173 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
4174 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
4175 (avx512f_pshufd_1<mask_name>): Ditto.
4176 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
4177 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
4178 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
4179 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
4180 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
4181 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
4182 (avx512er_exp2<mode><mask_name>): Ditto.
4183 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
4184 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
4185 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
4186 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
4187 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
4188 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
4189 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
4190 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
4191 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
4192 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
4193 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
4194 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
4195 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
4196 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
4197 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
4198 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
4199 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
4200 (avx512f_getmant<mode><mask_name>): Ditto.
4201 (clz<mode>2<mask_name>): Ditto.
4202 (<mask_codefor>conflict<mode><mask_name>): Ditto.
4203 (*srcp14<mode>): Remove visibility.
4204 (*rsqrt14<mode>): Ditto.
4205 (*fma_fmsub_<mode>): Ditto.
4206 (*fma_fnmadd_<mode>): Ditto.
4207 (*avx512f_rndscale<mode>): Ditto.
4208 * config/i386/subst.md: New file.
4209
4210 2013-11-13 Joseph Myers <joseph@codesourcery.com>
4211
4212 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
4213 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
4214 (atomic_load_explicit, atomic_exchange_explicit)
4215 (atomic_compare_exchange_strong_explicit)
4216 (atomic_compare_exchange_weak_explicit): Use __auto_type to
4217 declare variable initialized with PTR argument.
4218
4219 2013-11-12 Jeff Law <law@redhat.com>
4220
4221 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
4222 backedge_seen_p. Set, use and pass it to children appropriately.
4223 (thread_through_normal_block): Similarly.
4224 (thread_across_edge): Similarly.
4225
4226 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
4227 memory references as volatile.
4228 (insert_trap_and_remove_trailing_statements): Fix comment.
4229
4230 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
4231
4232 PR other/58712
4233 * ira-costs.c (record_operand_costs): Check operands number for
4234 the single set.
4235
4236 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4237
4238 PR target/59054
4239 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
4240 constraints that would allow DImode into the traditional Altivec
4241 registers, but cause undesirable code generation when loading 0 as
4242 a constant.
4243 (movdi_internal64): Likewise.
4244 (cmp<mode>_fpr): Do not use %x for CR register output.
4245 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
4246 -mallow-upper-sf debug switches are used.
4247
4248 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
4249
4250 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
4251 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
4252 Relocate prototypes from gimple.h.
4253 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
4254 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
4255 from gimple.h.
4256 * gimple.h: Move some prototypes to gimplify.h.
4257 (gimple_predicate, enum fallback, enum gimplify_status): Move to
4258 gimplify.h.
4259 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
4260 Relocate from gimpify.c.
4261 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
4262 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
4263 is_gimple_reg_rhs) Relocate from gimplify.c.
4264 * gimplify.c (mark_addressable): Move to gimple-expr.c.
4265 (gimple_seq_add_stmt_without_update): Move to gimple.c.
4266 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
4267 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
4268 is_gimple_reg_rhs): Move to gimple-expr.c.
4269 (should_carry_location_p): Move to gimple.c.
4270 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
4271 to gimple.h.
4272 (annotate_one_with_location, annotate_all_with_location_after,
4273 annotate_all_with_location): Move to gimple.c.
4274 (compare_case_labels, sort_case_labels,
4275 preprocess_case_label_vec_for_gimple): Move to gimple.c.
4276 (rhs_predicate_for): Make static.
4277 (gimplify_assign): Relocate from gimple.c.
4278 * gimple.c (gimplify_assign): Move to gimplify.c.
4279 (gimple_seq_add_stmt_without_update, should_carry_location_p,
4280 annotate_one_with_location, annotate_all_with_location_after,
4281 annotate_all_with_location, compare_case_labels, sort_case_labels,
4282 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
4283 * tree.h (unshare_expr, unshare_expr_without_location,
4284 mark_addressable): Move prototypes to gimplify.h.
4285 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
4286 tmp_var_id_num
4287 * asan.c: Include gimplify.h rather than gimple.h.
4288 * cfgloopmanip.c: Likewise.
4289 * cgraphunit.c: Likewise.
4290 * cilk-common.c: Likewise.
4291 * dwarf2out.c: Dont include gimple.h.
4292 * fold-const.c: Include gimplify.h rather than gimple.h.
4293 * function.c: Likewise.
4294 * gimple-fold.c: Likewise.
4295 * gimple-ssa-strength-reduction.c: Likewise.
4296 * graphite-clast-to-gimple.c: Likewise.
4297 * graphite-sese-to-poly.c: Likewise.
4298 * ipa-prop.c: Likewise.
4299 * ipa-split.c: Likewise.
4300 * ipa.c: Likewise.
4301 * langhooks.c: Dont include gimple.h.
4302 * loop-init.c: Include gimplify.h rather than gimple.h.
4303 * omp-low.c: Likewise.
4304 * sese.c: Likewise.
4305 * stor-layout.c: Likewise.
4306 * targhooks.c: Likewise.
4307 * trans-mem.c: Likewise.
4308 * tree-affine.c: Likewise.
4309 * tree-cfg.c: Likewise.
4310 * tree-cfgcleanup.c: Likewise.
4311 * tree-complex.c: Likewise.
4312 * tree-if-conv.c: Likewise.
4313 * tree-inline.c: Likewise.
4314 * tree-iterator.c: Likewise.
4315 * tree-loop-distribution.c: Likewise.
4316 * tree-nested.c: Likewise.
4317 * tree-parloops.c: Likewise.
4318 * tree-predcom.c: Likewise.
4319 * tree-profile.c: Likewise.
4320 * tree-scalar-evolution.c: Likewise.
4321 * tree-sra.c: Likewise.
4322 * tree-ssa-address.c: Likewise.
4323 * tree-ssa-ccp.c: Likewise.
4324 * tree-ssa-dce.c: Likewise.
4325 * tree-ssa-forwprop.c: Likewise.
4326 * tree-ssa-ifcombine.c: Likewise.
4327 * tree-ssa-loop-im.c: Likewise.
4328 * tree-ssa-loop-ivopts.c: Likewise.
4329 * tree-ssa-loop-manip.c: Likewise.
4330 * tree-ssa-loop-niter.c: Likewise.
4331 * tree-ssa-loop-prefetch.c: Likewise.
4332 * tree-ssa-loop-unswitch.c: Likewise.
4333 * tree-ssa-math-opts.c: Likewise.
4334 * tree-ssa-phiopt.c: Likewise.
4335 * tree-ssa-phiprop.c: Likewise.
4336 * tree-ssa-pre.c: Likewise.
4337 * tree-ssa-propagate.c: Likewise.
4338 * tree-ssa-reassoc.c: Likewise.
4339 * tree-ssa-sccvn.c: Likewise.
4340 * tree-ssa-strlen.c: Likewise.
4341 * tree-ssa.c: Likewise.
4342 * tree-switch-conversio: Likewise.n.c
4343 * tree-tailcall.c: Likewise.
4344 * tree-vect-data-refs.c: Likewise.
4345 * tree-vect-generic.c: Likewise.
4346 * tree-vect-loop-manip.c: Likewise.
4347 * tree-vect-loop.c: Likewise.
4348 * tree-vect-patterns.c: Likewise.
4349 * tree-vect-stmts.c: Likewise.
4350 * tsan.c: Likewise.
4351 * value-prof.c: Likewise.
4352 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
4353 * config/alpha/alpha.c: Likewise.
4354 * config/darwin.c: Likewise.
4355 * config/i386/i386.c: Likewise.
4356 * config/ia64/ia64.c: Likewise.
4357 * config/mep/mep.c: Likewise.
4358 * config/mips/mips.c: Likewise.
4359 * config/rs6000/rs6000.c: Likewise.
4360 * config/s390/s390.c: Likewise.
4361 * config/sh/sh.c: Likewise.
4362 * config/sparc/sparc.c: Likewise.
4363 * config/spu/spu.c: Likewise.
4364 * config/stormy16/stormy16.c: Likewise.
4365 * config/tilegx/tilegx.c: Likewise.
4366 * config/tilepro/tilepro.c: Likewise.
4367 * config/xtensa/xtensa.c: Likewise.
4368
4369 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
4370
4371 * tree.c (grow_tree_vec_stat): New function ...
4372 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
4373 and macro front-end.
4374
4375 2013-11-12 Marek Polacek <polacek@redhat.com>
4376
4377 * final.c (update_alignments): Initialize label to NULL_RTX.
4378
4379 2013-11-12 Jeff Law <law@redhat.com>
4380
4381 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
4382 (insert_trap_and_remove_trailing_statements): New argument OP which
4383 is the NULL pointer. Emit the trap after the load/store through
4384 the NULL pointer. Simplify the RHS of a store through a NULL pointer
4385 when trivial to do so.
4386 (isolate_path): Corresponding changes.
4387 (gimple_ssa_isolate_erroneous_path): Likewise.
4388
4389 2013-11-12 Teresa Johnson <tejohnson@google.com>
4390 Jan Hubicka <jh@suse.cz>
4391
4392 * predict.c (drop_profile): New function.
4393 (handle_missing_profiles): Ditto.
4394 (counts_to_freqs): Don't overwrite estimated frequencies
4395 when function has no profile counts.
4396 * predict.h (handle_missing_profiles): Declare.
4397 * tree-inline.c (freqs_to_counts): New function.
4398 (copy_cfg_body): Invoke freqs_to_counts as needed.
4399 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
4400
4401 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
4402
4403 PR target/59088
4404 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
4405 Set for m_HASWELL.
4406 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
4407
4408 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
4409
4410 PR target/59084
4411 * config/i386/i386.c (ix86_option_override_internal): Check
4412 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
4413 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
4414 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
4415 MASK_AVX256_SPLIT_UNALIGNED_STORE.
4416
4417 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
4418 Clear m_COREI7_AVX and update comments.
4419 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
4420
4421 2013-11-12 Martin Jambor <mjambor@suse.cz>
4422
4423 PR rtl-optimization/10474
4424 * ira.c (interesting_dest_for_shprep): New function.
4425 (split_live_ranges_for_shrink_wrap): Likewise.
4426 (find_moveable_pseudos): Move calculation of dominance info,
4427 df_analysios and the final anlyses to...
4428 (ira): ...here, call split_live_ranges_for_shrink_wrap.
4429
4430 2013-11-12 Bin Cheng <bin.cheng@arm.com>
4431
4432 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
4433 Handle type conversion.
4434
4435 2013-11-11 Martin Liska <marxin.liska@gmail.com>
4436 Jan Hubicka <jh@suse.cz>
4437
4438 * cgraph.c (dump_cgraph_node): Profile dump added.
4439 * cgraph.h (struct cgraph_node): New time profile variable added.
4440 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
4441 * gcov-io.h (gcov_type): New profiler type introduced.
4442 * ipa-profile.c (lto_output_node): Streaming for time profile added.
4443 (input_node): Time profiler is read from LTO stream.
4444 * predict.c (maybe_hot_count_p): Hot prediction changed.
4445 * profile.c (instrument_values): New case for time profiler added.
4446 (compute_value_histograms): Read of time profile.
4447 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
4448 * tree-profile.c (init_ic_make_global_vars): Time profiler
4449 function added.
4450 (gimple_init_edge_profiler): TP function instrumentation.
4451 (gimple_gen_time_profiler): New.
4452 * value-prof.c (gimple_add_histogram_value): Support for time profiler
4453 added.
4454 (dump_histogram_value): TP type added to dumps.
4455 (visit_hist): More sensitive check that takes TP into account.
4456 (gimple_find_values_to_profile): TP instrumentation.
4457 * value-prof.h (hist_type): New histogram type added.
4458 (struct histogram_value_t): Pointer to struct function added.
4459 * libgcc/Makefile.in: New GCOV merge function for TP added.
4460 * libgcov.c: function_counter variable introduced.
4461 (_gcov_merge_time_profile): New.
4462 (_gcov_time_profiler): New.
4463
4464 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
4465 Jeff Law <law@redhat.com>
4466
4467 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
4468 ao_ref_init_from_ptr_and_size for builtins.
4469
4470 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
4471 H.J. Lu <hongjiu.lu@intel.com>
4472
4473 PR target/58853
4474 * config/i386/x86-tune.def
4475 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
4476 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
4477 * config/i386/i386.h
4478 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
4479 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
4480 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
4481 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
4482 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
4483 misaligned_prologue_used. Check that
4484 desired_aling <= epilogue_size_needed.
4485
4486 2013-11-11 Cong Hou <congh@google.com>
4487
4488 PR tree-optimization/59050
4489 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
4490
4491 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
4492
4493 PR middle-end/59049
4494 * expmed.c (emit_store_flag): Fail for const-const comparison.
4495
4496 2013-11-11 Tristan Gingold <gingold@adacore.com>
4497 Eric Botcazou <ebotcazou@adacore.com>
4498
4499 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
4500 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
4501 * tree.def (CONSTRUCTOR): Likewise.
4502 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
4503 * gimplify.c (gimplify_init_constructor): Do not clear the object when
4504 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
4505
4506 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
4507
4508 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
4509 diagnostic_finish.
4510
4511 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4512
4513 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
4514 comparisons.
4515
4516 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
4517
4518 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
4519
4520 2013-11-08 Jeff Law <law@redhat.com>
4521
4522 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
4523 threading paths first, then perform PHI node checks if applicable.
4524
4525 2013-11-10 Karlson2k <k2k@narod.ru>
4526 Kai Tietz <ktietz@redhat.com>
4527
4528 PR plugin/52872
4529 * configure.ac: Adding for exported symbols check
4530 and for rdynamic-check executable-extension.
4531 * configure: Regenerated.
4532
4533 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
4534
4535 * mode-switching.c (optimize_mode_switching): Mark block as
4536 nontransparent, if last_mode at block exit is different from no_mode.
4537
4538 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4539
4540 * function.c (NAME__MAIN): Move to...
4541 * cfgexpand.c (NAME__MAIN): ...here.
4542
4543 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
4544
4545 * target.def (can_use_doloop_p): New hook.
4546 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
4547 * doc/tm.texi: Regenerate.
4548 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
4549 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
4550 * hooks.c (hook_bool_dint_dint_uint_true): New function.
4551 * targhooks.h (can_use_doloop_if_innermost): Declare.
4552 * targhooks.c (can_use_doloop_if_innermost): New function.
4553 * target.h: Include double-int.h.
4554 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
4555 Remove iteration count, maximum iteration count, loop depth and
4556 enter-at-top inputs from doloop_begin and doloop_end.
4557 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
4558 interface.
4559 * config/arc/arc.c (arc_can_use_doloop_p): New function.
4560 (TARGET_CAN_USE_DOLOOP_P): Define.
4561 * config/arm/thumb2.md (doloop_end): Update for new interface.
4562 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
4563 * config/bfin/bfin.md (doloop_end): Update for new interface.
4564 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
4565 (TARGET_CAN_USE_DOLOOP_P): Define.
4566 * config/c6x/c6x.md (doloop_end): Update for new interface.
4567 * config/ia64/ia64.md (doloop_end): Update for new interface.
4568 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
4569 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
4570 interface.
4571 * config/mep/mep.c (mep_emit_doloop): Likewise.
4572 (TARGET_CAN_USE_DOLOOP_P): Define.
4573 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
4574 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
4575 * config/s390/s390.md (doloop_end): Update for new interface.
4576 * config/sh/sh.md (doloop_end): Likewise.
4577 * config/spu/spu.md (doloop_end): Likewise.
4578 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
4579 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
4580 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
4581 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
4582 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
4583 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
4584 interface.
4585 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
4586
4587 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
4588
4589 PR other/59055
4590 * doc/extend.texi: Move Cilk Plus Builtins node before Other
4591 Builtins node.
4592
4593 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
4594 Joseph Myers <joseph@codesourcery.com>
4595
4596 * ginclude/stdatomic.h: New file.
4597 * Makefile.in (USER_H): Add stdatomic.h.
4598
4599 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4600
4601 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
4602 comparisons.
4603
4604 2013-11-08 Jeff Law <law@redhat.com>
4605
4606 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
4607 * tree-ssa-threadupdate.c (delete_thread_path): New function.
4608 (ssa_redirect_edges, thread_block_1): Use it.
4609 (thread_through_loop_header, mark_threaded_blocks): Likewise.
4610 (thread_through_all_blocks, register_jump_thread): Likewise.
4611 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
4612
4613 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
4614
4615 * config/arm/aarch-common.c
4616 (search_term): New typedef.
4617 (shift_rtx_costs): New array.
4618 (arm_rtx_shift_left_p): New.
4619 (arm_find_sub_rtx_with_search_term): Likewise.
4620 (arm_find_sub_rtx_with_code): Likewise.
4621 (arm_early_load_addr_dep): Add sanity checking.
4622 (arm_no_early_alu_shift_dep): Likewise.
4623 (arm_no_early_alu_shift_value_dep): Likewise.
4624 (arm_no_early_mul_dep): Likewise.
4625 (arm_no_early_store_addr_dep): Likewise.
4626
4627 2013-11-08 Richard Biener <rguenther@suse.de>
4628
4629 PR tree-optimization/59047
4630 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
4631
4632 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
4633
4634 * common.opt (fcheck-pointer-bounds): Move to ...
4635 * c-family/c.opt: ... here.
4636 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
4637 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
4638 * langhooks.h (lang_hooks): Remove chkp_supported field.
4639 * toplev.c (process_options): Remove chkp_supported check.
4640
4641 2013-11-08 Richard Biener <rguenther@suse.de>
4642
4643 PR tree-optimization/59038
4644 PR tree-optimization/58955
4645 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
4646 previous change. Handle known dependences correctly.
4647
4648 2013-11-08 Tom de Vries <tom@codesourcery.com>
4649
4650 * config/rs6000/t-xilinx: Remove duplicate contents.
4651
4652 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
4653 Joseph Myers <joseph@codesourcery.com>
4654
4655 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
4656 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
4657 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
4658 (struct tree_base): Add atomic_flag field.
4659 * tree.h (TYPE_ATOMIC): New accessor macro.
4660 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
4661 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
4662 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
4663 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
4664 * tree.c (set_type_quals): Set TYPE_ATOMIC.
4665 (find_atomic_core_type): New function.
4666 (build_qualified_type): Adjust alignment for qualified types.
4667 (build_atomic_base): New function
4668 (build_common_tree_nodes): Build atomicQI_type_node,
4669 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
4670 atomicTI_type_node.
4671 * print-tree.c (print_node): Print atomic qualifier.
4672 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
4673 * target.def (atomic_assign_expand_fenv): New hook.
4674 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
4675 * doc/tm.texi: Regenerate.
4676 * targhooks.c (default_atomic_assign_expand_fenv): New function.
4677 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
4678 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
4679 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
4680 function type.
4681 * config/i386/i386.c (enum ix86_builtins): Add
4682 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
4683 IX86_BUILTIN_FNCLEX.
4684 (bdesc_special_args): Add __builtin_ia32_fnstenv,
4685 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
4686 (ix86_expand_builtin): Handle the new built-in functions.
4687 (ix86_atomic_assign_expand_fenv): New function.
4688 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
4689 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
4690 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
4691 (fnstenv, fldenv, fnstsw, fnclex): New insns.
4692
4693 2013-11-07 Steve Ellcey <sellcey@mips.com>
4694
4695 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
4696 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
4697 (MULTILIB_DIRNAMES): Add fp64 directory.
4698 (MULTILIB_EXCEPTIONS): Add new exclusions.
4699
4700 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
4701
4702 * gimplify.c (gimple_regimplify_operands): Do not set
4703 SSA_NAME_DEF_STMT.
4704 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
4705 (rewrite_close_phi_out_of_ssa): Same.
4706 (rewrite_phi_out_of_ssa): Same.
4707 (rewrite_degenerate_phi): Same.
4708 (handle_scalar_deps_crossing_scop_limits): Same.
4709 * tree-if-conv.c (predicate_scalar_phi): Same.
4710 * tree-parloops.c (create_loads_for_reductions): Same.
4711 (create_final_loads_for_reduction): Same.
4712 (create_loads_and_stores_for_name): Same.
4713 (transform_to_exit_first_loop): Same.
4714 (create_parallel_loop): Same.
4715 * tree-ssa-loop-im.c
4716 (move_computations_dom_walker::before_dom_children): Same.
4717 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
4718 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
4719 * tree-ssa-propagate.c (substitute_and_fold): Same.
4720 * tree-vect-loop.c (vect_finalize_reduction): Same.
4721 * tree-vect-stmts.c (vectorizable_call): Same.
4722
4723 2013-11-07 Mike Stump <mikestump@comcast.net>
4724
4725 * config/pdp11/pdp11.c: Include dbxout.h.
4726 * config/picochip/picochip.c: Likewise.
4727
4728 2013-11-07 Cong Hou <congh@google.com>
4729
4730 PR tree-optimization/56764
4731 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4732 Combine alias checks if it is possible to amortize the runtime
4733 overhead. Return the number of alias checks after merging.
4734 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4735 Use the function vect_create_cond_for_alias_checks () to check
4736 the number of alias checks.
4737
4738 2013-11-07 Jeff Law <law@redhat.com>
4739
4740 * varpool.c (ctor_for_folding): Fix typo in comment.
4741
4742 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
4743
4744 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
4745 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
4746
4747 2013-11-07 Jeff Law <law@redhat.com>
4748
4749 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
4750
4751 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
4752 No longer check if we have __builtin_trap, assume it's available.
4753
4754 2013-11-07 Diego Novillo <dnovillo@google.com>
4755
4756 * attribs.c (lookup_scoped_attribute_spec): Make static.
4757 (get_attribute_namespace): Likewise.
4758 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
4759 (validate_arglist): Move earlier in the file. Make static.
4760 (expand_stack_restore): Move from stmt.c
4761 (expand_stack_save): Move from stmt.c
4762 (rewrite_call_expr_array): Move earlier in the file.
4763 (rewrite_call_expr_valist): Likewise.
4764 * cfgexpand.c: Include hard-reg-set.h before tree.h
4765 Include recog.h.
4766 Include output.h.
4767 (expand_asm_loc): Move from stmt.c.
4768 (n_occurrences): Move from stmt.c.
4769 (check_operand_nalternatives): Move from stmt.c.
4770 (tree_conflicts_with_clobbers_p): Move from stmt.c.
4771 (expand_asm_operands): Move from stmt.c
4772 (expand_asm_stmt): Move from stmt.c
4773 (expand_computed_goto): Move from stmt.c
4774 (expand_goto): Move from stmt.c
4775 (expand_null_return_1): Move from stmt.c
4776 (expand_null_return): Move from stmt.c
4777 (expand_value_return): Move from stmt.c
4778 (expand_return): Move from stmt.c
4779 (expand_main_function): Move from function.c
4780 (stack_protect_prologue): Move from function.c
4781 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
4782 (build_function_decl_skip_args): Move from tree.c.
4783 * explow.c (tree_expr_size): Move from tree.c.
4784 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
4785 (fields_length): Move from tree.c.
4786 * fold-const.c (size_low_cst): Move from tree.c.
4787 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
4788 (tree_expr_nonzero_p): Make static. Move earlier in the file.
4789 (fold_build3_initializer_loc): Remove.
4790 (tree_invalid_nonnegative_warnv_p): Make static.
4791 * function.c (expand_main_function): Move to cfgexpand.c.
4792 (stack_protect_prologue): Move to cfgexpand.c.
4793 (set_insn_locations): Move earlier in the file.
4794 * gimple-fold.c: Include langhooks.h.
4795 (truth_type_for): Move from tree.c.
4796 * print-tree.c (print_vec_tree): Remove.
4797 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
4798 (expand_goto): Move to cfgexpand.c.
4799 (n_occurrences): Move to cfgexpand.c.
4800 (expand_asm_loc): Move to cfgexpand.c
4801 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
4802 (expand_asm_operands): Move to cfgexpand.c.
4803 (expand_asm_stmt): Move to cfgexpand.c.
4804 (check_operand_nalternatives): Move to cfgexpand.c
4805 (expand_null_return): Move to cfgexpand.c.
4806 (expand_value_return): Move to cfgexpand.c.
4807 (expand_null_return_1): Move to cfgexpand.c.
4808 (expand_return): Move to cfgexpand.c.
4809 (expand_stack_save): Move to builtins.c.
4810 (expand_stack_restore): Move to builtins.c
4811 * symtab.c: Include output.h.
4812 (decl_assembler_name_hash): Move from tree.c.
4813 (decl_assembler_name_equal): Move from tree.c.
4814 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
4815 * tree-eh.c (in_array_bounds_p): Move from tree.c.
4816 (range_in_array_bounds_p): Move from tree.c.
4817 * tree-object-size.c (fini_object_sizes): Make static.
4818 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
4819 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
4820 * tree.c (decl_assembler_name_equal): Move to symtab.c.
4821 (tree_expr_size): Move to explow.c.
4822 (decl_assembler_name_hash): Move to symtab.c.
4823 (real_twop): Remove.
4824 (tree_expr_size): Move to explow.c.
4825 (stabilize_reference_1): Move earlier in the file. Make static.
4826 (omp_remove_redundant_declare_simd_attrs): Remove.
4827 (simple_cst_list_equal): Move earlier in the file. Make static.
4828 (size_low_cst): Move to fold-const.c.
4829 (build_type_no_quals): Remove.
4830 (build_function_type_skip_args): Move to cgraphclones.c.
4831 (build_function_decl_skip_args): Move to cgraphclones.c.
4832 (in_array_bounds_p): Move to tree-eh.c.
4833 (range_in_array_bounds_p): Move to tree-eh.c.
4834 (truth_type_for): Move to gimple-fold.c.
4835 (list_equal_p): Remove.
4836 * tree.h (decl_assembler_name_equal): Remove.
4837 (decl_assembler_name_hash): Remove.
4838 (truth_type_for): Remove.
4839 (build_type_no_quals): Remove.
4840 (build_function_decl_skip_args): Remove.
4841 (in_array_bounds_p): Remove.
4842 (range_in_array_bounds_p): Remove.
4843 (size_low_cst): Remove.
4844 (omp_remove_redundant_declare_simd_attrs): Remove.
4845 (tree_expr_size): Remove.
4846 (fields_length): Remove.
4847 (stabilize_reference_1): Remove.
4848 (expand_goto): Remove.
4849 (expand_stack_save): Remove.
4850 (expand_stack_restore): Remove.
4851 (expand_return): Remove.
4852 (fold_build3_initializer_loc): Remove.
4853 (tree_expr_nonzero_p): Remove.
4854 (tree_invalid_nonnegative_warnv_p): Remove.
4855 (tree_expr_nonzero_warnv_p): Remove.
4856 (fold_builtin_snprintf_chk): Remove.
4857 (validate_arglist): Remove.
4858 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
4859 (simple_cst_list_equal): Remove.
4860 (real_twop): Remove.
4861 (expand_main_function): Remove.
4862 (stack_protect_prologue): Remove.
4863 (print_vec_tree): Remove.
4864 (lookup_scoped_attribute_spec): Remove.
4865 (get_attribute_namespace): Remove.
4866 (expand_computed_goto): Remove.
4867 (expand_asm_stmt): Remove.
4868 (list_equal_p): Remove.
4869 (ssa_name_nonnegative_p): Remove.
4870 (fini_object_sizes): Remove.
4871 (addr_expr_of_non_mem_decl_p): Remove.
4872 (is_tm_safe_or_pure): Move to trans-mem.c.
4873 (more_const_call_expr_args_p): Remove.
4874 (save_vtable_map_decl): Remove.
4875
4876 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
4877
4878 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
4879 linker plugins, too.
4880
4881 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
4882 link to libgomp and its dependencies.
4883 * config/ia64/hpux.h (LIB_SPEC): Likewise.
4884 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4885 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4886 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
4887
4888 2013-11-07 Jakub Jelinek <jakub@redhat.com>
4889
4890 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
4891 (determine_value_range): Add loop argument. Use get_range_info to
4892 improve range.
4893 (bound_difference): Adjust caller.
4894
4895 2013-11-07 Richard Biener <rguenther@suse.de>
4896 Jakub Jelinek <jakub@redhat.com>
4897
4898 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
4899 latches from header PHI arguments from the latch edge.
4900
4901 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
4902
4903 PR c++/58176
4904 * varasm.c (output_constant): Handle NULLPTR_TYPE.
4905
4906 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
4907
4908 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
4909 misaligned_prologue_used when it has been set.
4910
4911 2013-11-07 Yury Gribov <y.gribov@samsung.com>
4912 Jakub Jelinek <jakub@redhat.com>
4913
4914 PR sanitizer/59029
4915 * asan.c (get_mem_refs_of_builtin_call): Allow
4916 integer literals as addresses in instrumented builtins.
4917
4918 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4919
4920 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
4921 Explain why plus_constant is not used.
4922
4923 2013-11-07 Richard Biener <rguenther@suse.de>
4924
4925 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
4926 (canonicalize_value): ... this. Also handle stripping of
4927 TREE_OVERFLOW.
4928 (get_value, set_lattice_value, get_value_for_expr): Adjust.
4929 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
4930 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
4931
4932 2013-11-07 Richard Biener <rguenther@suse.de>
4933
4934 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
4935
4936 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
4937
4938 PR target/59034
4939 * config/i386/i386.md (push peepholer/splitter): Use Pmode
4940 with stack_pointer_rtx.
4941
4942 2013-11-07 Bin Cheng <bin.cheng@arm.com>
4943
4944 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
4945 using operand_equal_p.
4946
4947 2013-11-07 Bin Cheng <bin.cheng@arm.com>
4948
4949 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
4950 * tree-affine.c (get_inner_reference_aff): Return base.
4951 * tree-affine.h (get_inner_reference_aff): Change prototype.
4952
4953 2013-11-06 Tobias Burnus <burnus@net-b.de>
4954
4955 * doc/invoke.texi (Wdate-time): Fix typo.
4956
4957 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
4958
4959 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
4960 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
4961 fp_arith_reg_operand instead of arith_reg_operand.
4962
4963 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
4964
4965 * config/sh/sh.md (adddi3): Remove empty constraints.
4966 Remove can_create_pseudo_p and arith_reg_operand check.
4967 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
4968 Split before reload.
4969
4970 2013-11-06 Jeff Law <law@redhat.com>
4971 Tom Tromey <tromey@redhat.com>
4972
4973 * gdbinit.in: Disable strict type checking.
4974
4975 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
4976
4977 * tree-pass.h (make_pass_live_range_shrinkage): New external.
4978 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
4979 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
4980 (rest_of_handle_live_range_shrinkage): Ditto
4981 (class pass_live_range_shrinkage): Ditto.
4982 (pass_data_live_range_shrinkage): Ditto.
4983 (make_pass_live_range_shrinkage): Ditto.
4984 * sched-int.h (initialize_live_range_shrinkage): New prototype.
4985 (finish_live_range_shrinkage): Ditto.
4986 * sched-deps.c (create_insn_reg_set): Make void return value.
4987 * passes.def: Add pass_live_range_shrinkage.
4988 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
4989 * haifa-sched.c (live_range_shrinkage_p): New.
4990 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
4991 New functions.
4992 (rank_for_schedule): Add code for pressure relief through live
4993 range shrinkage.
4994 (schedule_insn): Print more debug info.
4995 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
4996 through live range shrinkage.
4997 * doc/invoke.texi (-flive-range-shrinkage): New.
4998 * common.opt (flive-range-shrinkage): New.
4999
5000 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
5001
5002 PR target/59021
5003 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
5004 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
5005 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
5006 RTXes that return in AVX256 register.
5007
5008 2013-11-06 Richard Biener <rguenther@suse.de>
5009
5010 PR tree-optimization/58653
5011 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
5012 (prepare_initializers_chain): Adjust.
5013
5014 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
5015
5016 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
5017 (gimple_in_transaction): Use bb_in_transaction.
5018 * basic-block.h (bb_in_transaction): Relocate here and rename.
5019 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
5020
5021 2013-11-06 Richard Biener <rguenther@suse.de>
5022
5023 * tree.c (drop_tree_overflow): New function.
5024 * tree.h (drop_tree_overflow): Declare.
5025 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
5026 * tree-vrp.c (range_int_cst_singleton_p): Use
5027 is_overflow_infinity instead of testing TREE_OVERFLOW.
5028 (extract_range_from_assert): Likewise.
5029 (zero_nonzero_bits_from_vr): Likewise.
5030 (extract_range_basic): Likewise.
5031 (register_new_assert_for): Use drop_tree_overflow.
5032 (vrp_visit_phi_node): Likewise.
5033
5034 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
5035
5036 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
5037 checking for leaf functions without dynamic stack allocation.
5038 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
5039 (ia64_expand_prologue): Likewise.
5040 * config/mips/mips.c (mips_expand_prologue): Likewise.
5041 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5042 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5043 (sparc_flat_expand_prologue): Likewise.
5044
5045 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
5046
5047 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
5048 (__ST3_LANE_FUNC): Likewise.
5049 (__ST4_LANE_FUNC): Likewise.
5050
5051 2013-11-06 Nick Clifton <nickc@redhat.com>
5052
5053 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
5054 name returned by msp430_mcu_name.
5055 (LIB_SPEC): If a -T option has not been specified then set a
5056 default, mcu-specific, linker script.
5057 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
5058 * config/msp430/msp430.c (msp430x_names): Likewise.
5059 Alpha sort the names for ease of comparison.
5060 (msp430_mcu_name): New function: Returns a string suitable for
5061 use as a C preprocessor symbol based upon the name of the MCU
5062 being targeted.
5063 (msp430_option_override): Accept msp430x and msp430xv2 as generic
5064 mcu names.
5065 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
5066
5067 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
5068 unless it is the last part of a spec substring.
5069 * doc/invoke.texi (Spec Files): Document space insertion
5070 behaviour of %*.
5071
5072 2013-11-06 Christian Bruel <christian.bruel@st.com>
5073
5074 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
5075 Factorize probabilities, Use adjust_address instead of
5076 adjust_automodify_address when possible. Enable for optimize.
5077 (sh_expand_strlen): New function.
5078 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
5079 * config/sh/sh.md (strlensi): New pattern.
5080 (UNSPEC_BUILTIN_STRLEN): Define.
5081
5082 2013-11-06 Jakub Jelinek <jakub@redhat.com>
5083
5084 PR middle-end/58970
5085 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
5086 (expand_assignment): If *bitpos is negative, set *offset
5087 and adjust *bitpos, so that it is not negative.
5088
5089 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5090
5091 * config/i386/bdver3.md : Added two additional decoder units
5092 to support issue rate of 4 and remodeled vector unit.
5093 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
5094 architectures is set to 4.
5095 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
5096 lookahead is set to 4 for BD architectures.
5097
5098 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5099
5100 * config/rs6000/rs6000.c (rs6000_option_override_internal):
5101 Remove restriction against use of VSX instructions when generating
5102 code for little endian mode.
5103
5104 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5105
5106 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
5107 for both big and little endian.
5108 (mulv8hi3): Swap input operands for merge high and merge low
5109 instructions for little endian.
5110
5111 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5112
5113 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
5114 define_insn to define_expand that uses even patterns for big
5115 endian and odd patterns for little endian.
5116 (vec_widen_smult_even_v16qi): Likewise.
5117 (vec_widen_umult_even_v8hi): Likewise.
5118 (vec_widen_smult_even_v8hi): Likewise.
5119 (vec_widen_umult_odd_v16qi): Likewise.
5120 (vec_widen_smult_odd_v16qi): Likewise.
5121 (vec_widen_umult_odd_v8hi): Likewise.
5122 (vec_widen_smult_odd_v8hi): Likewise.
5123 (altivec_vmuleub): New define_insn.
5124 (altivec_vmuloub): Likewise.
5125 (altivec_vmulesb): Likewise.
5126 (altivec_vmulosb): Likewise.
5127 (altivec_vmuleuh): Likewise.
5128 (altivec_vmulouh): Likewise.
5129 (altivec_vmulesh): Likewise.
5130 (altivec_vmulosh): Likewise.
5131
5132 2013-11-05 Mike Stump <mikestump@comcast.net>
5133
5134 * Makefile.in (mostlyclean): Remove c-family objects.
5135
5136 2013-11-05 Ian Lance Taylor <iant@google.com>
5137
5138 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
5139 If possible, add .cfi directives to record change to bx.
5140 * config/i386/i386.c (ix86_emit_cfi): New function.
5141 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
5142
5143 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
5144
5145 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
5146 immediately after a label for a tablejump pattern.
5147
5148 * config/arm/arm.c (is_jump_table): Remove.
5149 (create_fix_barrier): Use tablejump_p instead.
5150 (arm_reorg): Likewise.
5151 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
5152 (thumb2_output_casesi): Likewise.
5153 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
5154 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
5155 casesi_shift_media, casesi_load_media): Likewise.
5156 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
5157 * config/microblaze/microblaze.md: Likewise.
5158
5159 2013-11-05 Tobias Burnus <burnus@net-b.de>
5160
5161 * doc/invoke.texi (-Wdate-time): Document.
5162
5163 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
5164
5165 * double-int.c (lshift_double, rshift_double): Remove
5166 SHIFT_COUNT_TRUNCATED handling.
5167
5168 2013-11-05 Jeff Law <law@redhat.com>
5169
5170 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
5171 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
5172 * gimple-ssa-isolate-paths.c: New file.
5173 * gimple.c (check_loadstore): New function.
5174 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
5175 Verify OP is in the argument list and the argument corresponding
5176 to OP is a pointer type. Use operand_equal_p rather than
5177 pointer equality when testing if OP is on the nonnull list.
5178 Use check_loadstore rather than count_ptr_derefs. Handle
5179 GIMPLE_RETURN statements.
5180 * tree-vrp.c (infer_nonnull_range): Remove.
5181 * gimple.h (infer_nonnull_range): Declare.
5182 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
5183 * passes.def: Add pass_isolate_erroneous_paths.
5184 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
5185 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
5186 * tree-ssa.c (struct count_ptr_d): Remove.
5187 (count_ptr_derefs, count_uses_and_derefs): Remove.
5188 * tree-ssa.h (count_uses_and_derefs): Remove.
5189
5190 2013-11-05 Jakub Jelinek <jakub@redhat.com>
5191
5192 PR rtl-optimization/58997
5193 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
5194 get_iv_value to be in iv->mode rather than iv->extend_mode.
5195 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
5196 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
5197 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
5198 mode.
5199
5200 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
5201
5202 * gimple.h: Move some prototypes to gimple-expr.h and add to include
5203 list.
5204 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
5205 Move to gimple-expr.h.
5206 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
5207 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
5208 is_gimple_id, virtual_operand_p, is_gimple_addressable,
5209 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
5210 Relocate here.
5211 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
5212 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
5213 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
5214 is_gimple_address, is_gimple_invariant_address,
5215 is_gimple_ip_invariant_address, is_gimple_min_invariant,
5216 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
5217 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
5218 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
5219 gimple_decl_printable_name, useless_type_conversion_p,
5220 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
5221 gimple-expr.[ch].
5222 * gimple-expr.c: New File.
5223 (useless_type_conversion_p, gimple_set_body, gimple_body,
5224 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
5225 gimple_can_coalesce_p, extract_ops_from_tree_1,
5226 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
5227 is_gimple_address, is_gimple_invariant_address,
5228 is_gimple_ip_invariant_address, is_gimple_min_invariant,
5229 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
5230 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
5231 is_gimple_mem_ref_addr): Relocate here.
5232 * Makefile.in (OBJS): Add gimple-expr.o.
5233
5234 2013-11-05 David Malcolm <dmalcolm@redhat.com>
5235
5236 * gengtype-parse.c (struct_field_seq): Support empty structs.
5237
5238 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
5239
5240 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
5241
5242 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
5243
5244 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
5245 for !TARGET_80387.
5246 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
5247 _SOFT_FLOAT here.
5248 (LONG_DOUBLE_TYPE_SIZE): New define.
5249 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
5250
5251 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
5252
5253 PR c++/58724
5254 * doc/extend.texi [visibility ("visibility_type")]: Add example
5255 about visibility attribute on namespace declaration.
5256
5257 2013-11-05 Richard Biener <rguenther@suse.de>
5258
5259 PR ipa/58492
5260 * passes.def (all_passes): Start with pass_fixup_cfg again.
5261
5262 2013-11-05 Richard Biener <rguenther@suse.de>
5263
5264 PR tree-optimization/58955
5265 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
5266 edge direction.
5267
5268 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5269
5270 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
5271 little endian.
5272 (vec_pack_ufix_trunc_v2df): Likewise.
5273
5274 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
5275
5276 PR middle-end/58981
5277 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
5278 pattern, instead of word_mode.
5279
5280 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
5281 Pmode for size.
5282 (set_storage_via_setmem): Likewise.
5283
5284 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
5285
5286 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
5287 gimple.h and the rest of the condition in eliminate_build.
5288 (eliminate_build): Call new routine.
5289 * gimple.h (phi_ssa_name_p): Delete.
5290
5291 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
5292
5293 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
5294 case of no prefix and reserving zero slots, because when that's the
5295 case we'll never get here.
5296 * vec.h (va_heap::reserve): Don't try and handle
5297 vec_prefix::calculate_allocation returning zero because that should
5298 never happen.
5299
5300 2013-11-05 Richard Biener <rguenther@suse.de>
5301
5302 PR middle-end/58941
5303 * tree-dfa.c (get_ref_base_and_extent): Merge common code
5304 in MEM_REF and TARGET_MEM_REF handling. Make sure to
5305 process trailing array detection before diving into the
5306 view-converted object (and possibly apply some extra offset).
5307
5308 2013-11-05 Joseph Myers <joseph@codesourcery.com>
5309
5310 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
5311 New function.
5312 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
5313
5314 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
5315
5316 PR tree-optimization/58958
5317 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
5318 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
5319
5320 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
5321
5322 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
5323 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
5324
5325 2013-11-05 Jakub Jelinek <jakub@redhat.com>
5326
5327 PR tree-optimization/58984
5328 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
5329 set *SIZE_P if non-NULL on success.
5330 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
5331 callers.
5332 (ipcp_transform_function): Likewise. Punt if size of access
5333 is different from TYPE_SIZE on v->value's type.
5334
5335 2013-11-05 Tobias Burnus <burnus@net-b.de>
5336
5337 * doc/invoke.texi (-fopenmp-simd): Document new option.
5338 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
5339 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
5340 * tree.c (attribute_value_equal): Ditto.
5341
5342 2013-11-04 Wei Mi <wmi@google.com>
5343
5344 * sched-rgn.c (add_branch_dependences): Keep insns in
5345 a SCHED_GROUP at the end of BB to remain their location.
5346
5347 2013-11-04 Wei Mi <wmi@google.com>
5348
5349 * config/i386/i386.c (memory_address_length): Extract a part
5350 of code to rip_relative_addr_p.
5351 (rip_relative_addr_p): New Function.
5352 (ix86_macro_fusion_p): Ditto.
5353 (ix86_macro_fusion_pair_p): Ditto.
5354 * config/i386/i386.h: Add new tune features about macro-fusion.
5355 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
5356 * doc/tm.texi: Generated.
5357 * doc/tm.texi.in: Ditto.
5358 * haifa-sched.c (try_group_insn): New Function.
5359 (group_insns_for_macro_fusion): Ditto.
5360 (sched_init): Call group_insns_for_macro_fusion.
5361 * target.def: Add two hooks: macro_fusion_p and
5362 macro_fusion_pair_p.
5363
5364 2013-11-04 Kostya Serebryany <kcc@google.com>
5365
5366 Update to match the changed asan API.
5367 * asan.c (asan_function_start): New function.
5368 (asan_emit_stack_protection): Update the string stored in the
5369 stack red zone to match new API. Store the PC of the current
5370 function in the red zone.
5371 (asan_global_struct): Update the __asan_global definition to match
5372 the new API.
5373 (asan_add_global): Ditto.
5374 * asan.h (asan_function_start): New prototype.
5375 * final.c (final_start_function): Call asan_function_start.
5376 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
5377 to __asan_init_v3.
5378
5379 2013-11-04 Wei Mi <wmi@google.com>
5380
5381 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
5382 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
5383 * config/i386/i386.c (ix86_option_override_internal): Ditto.
5384 (ix86_issue_rate): Ditto.
5385 (ix86_adjust_cost): Ditto.
5386 (ia32_multipass_dfa_lookahead): Ditto.
5387 (ix86_sched_init_global): Ditto.
5388 (get_builtin_code_for_version): Ditto.
5389 * config/i386/i386.h (enum target_cpu_default): Ditto.
5390 (enum processor_type): Ditto.
5391 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
5392
5393 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
5394
5395 PR rtl-optimization/58967
5396 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
5397 !lra_in_progress for mode sizes bigger word.
5398
5399 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5400
5401 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
5402 arguments to merge instruction for little endian.
5403 (vec_widen_umult_lo_v16qi): Likewise.
5404 (vec_widen_smult_hi_v16qi): Likewise.
5405 (vec_widen_smult_lo_v16qi): Likewise.
5406 (vec_widen_umult_hi_v8hi): Likewise.
5407 (vec_widen_umult_lo_v8hi): Likewise.
5408 (vec_widen_smult_hi_v8hi): Likewise.
5409 (vec_widen_smult_lo_v8hi): Likewise.
5410
5411 2013-11-04 Ian Lance Taylor <iant@google.com>
5412
5413 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
5414 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
5415 builtins that take pointers.
5416 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
5417 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
5418 (run_gcc): Pass -fnon-call-exceptions.
5419
5420 2013-11-04 Jakub Jelinek <jakub@redhat.com>
5421
5422 * optabs.c (expand_vec_perm): Revert one incorrect line from
5423 2013-10-31 change.
5424
5425 PR tree-optimization/58978
5426 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
5427 use_stmt by single_imm_use directly. Only call single_imm_use
5428 on SSA_NAMEs.
5429
5430 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
5431
5432 PR rtl-optimization/58968
5433 * lra-spills.c (return_regno_p): New function.
5434 (lra_final_code_change): Use it.
5435
5436 2013-11-04 Joseph Myers <joseph@codesourcery.com>
5437
5438 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
5439 * target.def (float_exceptions_rounding_supported_p): New hook.
5440 * targhooks.c (default_float_exceptions_rounding_supported_p): New
5441 function.
5442 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
5443 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
5444 New @hook.
5445 * doc/tm.texi: Regenerate.
5446 * config.gcc (powerpc*-*-linux*): Set extra_objs.
5447 * config/rs6000/rs6000-linux.c: New file.
5448 * config/rs6000/rs6000-protos.h
5449 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
5450 * config/rs6000/linux.h
5451 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
5452 * config/rs6000/linux64.h
5453 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
5454 * config/rs6000/t-linux (rs6000-linux.o): New rule.
5455 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
5456
5457 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5458
5459 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
5460 Replace the define_insn_and_split with a define_insn and two
5461 define_splits, with the split after reload re-permuting the source
5462 register to its original value.
5463 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
5464 (*vsx_le_perm_store_v8hi): Likewise.
5465 (*vsx_le_perm_store_v16qi): Likewise.
5466
5467 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5468
5469 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
5470 little endian.
5471
5472 2013-11-04 Jakub Jelinek <jakub@redhat.com>
5473
5474 PR tree-optimization/58946
5475 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
5476 bbs with bbinfo[idx].op != NULL before all blocks with
5477 bbinfo[idx].op == NULL.
5478
5479 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
5480
5481 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
5482 (avr_dump_double_int_hex): Likewise.
5483 (avr_log_vadump): Remove %D and %X handling.
5484 * config/avr/avr.c (avr_double_int_push_digit): Delete.
5485 (avr_map_op_t): Change map from double_int to unsigned int.
5486 (avr_map_op): Update accordingly.
5487 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
5488 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
5489 unsigned ints rather than double_ints.
5490
5491 2013-11-03 Marek Polacek <polacek@redhat.com>
5492
5493 Implement -fsanitize=vla-bound.
5494 * opts.c (common_handle_option): Handle vla-bound.
5495 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
5496 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
5497 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
5498
5499 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
5500
5501 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
5502 little endian.
5503
5504 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
5505
5506 * config/i386/constraints.md (Ts, Tv): New address constrains.
5507 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
5508 constraint for address_no_seg_operand.
5509 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
5510 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
5511 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
5512 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
5513 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
5514 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
5515 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
5516 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
5517 constraint for vsib_address_operand.
5518
5519 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
5520
5521 * gcse.c (pre_delete): Remove references to regmove from comments.
5522 * recog.c: (validate_replace_rtx_1): Likewise.
5523 * config/rl78/rl78.c: Likewise.
5524 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
5525 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
5526 * common/config/mmix/mmix-common.c: Likewise.
5527
5528 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
5529
5530 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
5531 * gimplify.c (gimplify_compound_lval): Likewise.
5532 * graphite-clast-to-gimple.c (gloog): Likewise.
5533 * graphite-dependences.c (loop_is_parallel_p): Likewise.
5534 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
5535 (limit_scop); Likewise.
5536 (build_scops): Likewise.
5537 (dot_scop): Likewise.
5538 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
5539 (build_scop_drs): Likewise.
5540 (insert_stmts): Likewise.
5541 (insert_out_of_ssa_copy): Likewise.
5542 (remove_phi): Likewise.
5543 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
5544 * hw-doloop.c (discover_loop): Likewise.
5545 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
5546 * tree-dfa.c (dump_enumerated_decls): Likewise.
5547 * tree-if-conv.c (if_convertable_loop_p): Likewise.
5548 * tree-inline.c (tree_function_versioning): Likewise.
5549 * tree-loop-distribution.c (build_rdg): Likewise.
5550 (rdg_flag_vertex_and_dependent): Likewise.
5551 (distribute_loop): Likewise.
5552 * tree-parloops.c (loop_parallel_p): Likewise.
5553 (eliminate_local_variables): Likewise.
5554 (separate_decls_in_region): Likewise.
5555 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
5556 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
5557 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
5558 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
5559 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
5560 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
5561 (vectorizable_condition): Likewise.
5562
5563 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
5564
5565 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
5566 * configure: Regenerate.
5567 * config/i386/i386.md (*movdi_internal): Change
5568 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
5569 (*movdf_internal): Ditto.
5570 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
5571 * config/i386/sse.md (vec_concatv2di): Output interunit movq
5572 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
5573
5574 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
5575
5576 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
5577 after comment.
5578
5579 2013-10-31 David Malcolm <dmalcolm@redhat.com>
5580
5581 Automated part of renaming of symtab_node_base to symtab_node.
5582
5583 Patch autogenerated by rename_symtab.py from
5584 https://github.com/davidmalcolm/gcc-refactoring-scripts
5585 revision 58bb219cc090b2f4516a9297d868c245495ee622
5586 with ChangeLog entry fixed up by hand.
5587
5588 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
5589 symtab_node.
5590 (cgraph_node_for_asm): Likewise.
5591 * cgraph.h (symtab_node_base): Likewise.
5592 (cgraph_node): Likewise.
5593 (varpool_node): Likewise.
5594 (is_a_helper <cgraph_node>::test): Likewise.
5595 (is_a_helper <varpool_node>::test): Likewise.
5596 (symtab_nodes): Likewise.
5597 (symtab_register_node): Likewise.
5598 (symtab_unregister_node): Likewise.
5599 (symtab_remove_node): Likewise.
5600 (symtab_get_node): Likewise.
5601 (symtab_node_for_asm): Likewise.
5602 (symtab_node_asm_name): Likewise.
5603 (symtab_node_name): Likewise.
5604 (symtab_insert_node_to_hashtable): Likewise.
5605 (symtab_add_to_same_comdat_group): Likewise.
5606 (symtab_dissolve_same_comdat_group_list): Likewise.
5607 (dump_symtab_node): Likewise.
5608 (debug_symtab_node): Likewise.
5609 (dump_symtab_base): Likewise.
5610 (verify_symtab_node): Likewise.
5611 (verify_symtab_base): Likewise.
5612 (symtab_used_from_object_file_p): Likewise.
5613 (symtab_alias_ultimate_target): Likewise.
5614 (symtab_resolve_alias): Likewise.
5615 (fixup_same_cpp_alias_visibility): Likewise.
5616 (symtab_for_node_and_aliases): Likewise.
5617 (symtab_nonoverwritable_alias): Likewise.
5618 (availability symtab_node_availability): Likewise.
5619 (symtab_semantically_equivalent_p): Likewise.
5620 (fixup_same_cpp_alias_visibility): Likewise.
5621 (symtab_prevail_in_asm_name_hash): Likewise.
5622 (cgraph): Likewise.
5623 (varpool): Likewise.
5624 (varpool_first_variable): Likewise.
5625 (varpool_next_variable): Likewise.
5626 (varpool_first_static_initializer): Likewise.
5627 (varpool_next_static_initializer): Likewise.
5628 (varpool_first_defined_variable): Likewise.
5629 (varpool_next_defined_variable): Likewise.
5630 (cgraph_first_defined_function): Likewise.
5631 (cgraph_next_defined_function): Likewise.
5632 (cgraph_first_function): Likewise.
5633 (cgraph_next_function): Likewise.
5634 (cgraph_first_function_with_gimple_body): Likewise.
5635 (cgraph_next_function_with_gimple_body): Likewise.
5636 (symtab_alias_target): Likewise.
5637 (symtab_real_symbol_p): Likewise.
5638 (symtab_can_be_discarded): Likewise.
5639 * cgraphbuild.c (mark_address): Likewise.
5640 (mark_load): Likewise.
5641 (mark_store): Likewise.
5642 * cgraphunit.c (decide_is_symbol_needed): Likewise.
5643 (first): Likewise.
5644 (enqueue_node): Likewise.
5645 (referred_to_p): Likewise.
5646 (cgraph_process_same_body_aliases): Likewise.
5647 (analyze_functions): Likewise.
5648 (handle_alias_pairs): Likewise.
5649 (output_weakrefs): Likewise.
5650 (compile): Likewise.
5651 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
5652 * ipa-inline-analysis.c (inline_write_summary): Likewise.
5653 * ipa-prop.c (remove_described_reference): Likewise.
5654 (try_decrement_rdesc_refcount): Likewise.
5655 (ipa_edge_duplication_hook): Likewise.
5656 * ipa-ref.c (ipa_record_reference): Likewise.
5657 (ipa_maybe_record_reference): Likewise.
5658 (ipa_clone_ref): Likewise.
5659 (ipa_clone_references): Likewise.
5660 (ipa_clone_referring): Likewise.
5661 (ipa_find_reference): Likewise.
5662 (ipa_remove_stmt_references): Likewise.
5663 (ipa_clear_stmts_in_references): Likewise.
5664 * ipa-ref.h (symtab_node_base): Likewise.
5665 (ipa_ref): Likewise.
5666 (ipa_record_reference): Likewise.
5667 (ipa_maybe_record_reference): Likewise.
5668 (ipa_clone_references): Likewise.
5669 (ipa_clone_referring): Likewise.
5670 (ipa_clone_ref): Likewise.
5671 (ipa_find_reference): Likewise.
5672 (ipa_remove_stmt_references): Likewise.
5673 (ipa_clear_stmts_in_references): Likewise.
5674 * ipa-reference.c (ipa_reference_write_optimization_summary):
5675 Likewise.
5676 * ipa.c (enqueue_node): Likewise.
5677 (process_references): Likewise.
5678 (walk_polymorphic_call_targets): Likewise.
5679 (symtab_remove_unreachable_nodes): Likewise.
5680 (address_taken_from_non_vtable_p): Likewise.
5681 (comdat_can_be_unshared_p_1): Likewise.
5682 (comdat_can_be_unshared_p): Likewise.
5683 (can_replace_by_local_alias): Likewise.
5684 (function_and_variable_visibility): Likewise.
5685 * is-a.h: Likewise (within example in comment).
5686 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
5687 (lto_symtab_encoder_encode): Likewise.
5688 (lto_symtab_encoder_delete_node): Likewise.
5689 (lto_symtab_encoder_in_partition_p): Likewise.
5690 (lto_set_symtab_encoder_in_partition): Likewise.
5691 (output_refs): Likewise.
5692 (compute_ltrans_boundary): Likewise.
5693 (output_symtab): Likewise.
5694 (input_node): Likewise.
5695 (input_ref): Likewise.
5696 (input_edge): Likewise.
5697 (input_cgraph_1): Likewise.
5698 (input_refs): Likewise.
5699 (output_cgraph_opt_summary): Likewise.
5700 (input_node_opt_summary): Likewise.
5701 (input_cgraph_opt_section): Likewise.
5702 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
5703 Likewise.
5704 * lto-streamer-out.c (lto_output): Likewise.
5705 (output_symbol_p): Likewise.
5706 (produce_symtab): Likewise.
5707 * lto-streamer.h (lto_encoder_entry): Likewise.
5708 (lto_free_function_in_decl_state_for_node): Likewise.
5709 (lto_symtab_encoder_encode): Likewise.
5710 (lto_symtab_encoder_delete_node): Likewise.
5711 (lto_symtab_encoder_in_partition_p): Likewise.
5712 (lto_set_symtab_encoder_in_partition): Likewise.
5713 (lto_symtab_encoder_lookup): Likewise.
5714 (lsei_node): Likewise.
5715 (lto_symtab_encoder_deref): Likewise.
5716 * symtab.c (symtab_hash): Likewise.
5717 (assembler_name_hash): Likewise.
5718 (symtab_nodes): Likewise.
5719 (hash_node): Likewise.
5720 (eq_node): Likewise.
5721 (hash_node_by_assembler_name): Likewise.
5722 (eq_assembler_name): Likewise.
5723 (insert_to_assembler_name_hash): Likewise.
5724 (unlink_from_assembler_name_hash): Likewise.
5725 (symtab_prevail_in_asm_name_hash): Likewise.
5726 (symtab_register_node): Likewise.
5727 (symtab_insert_node_to_hashtable): Likewise.
5728 (symtab_unregister_node): Likewise.
5729 (symtab_get_node): Likewise.
5730 (symtab_remove_node): Likewise.
5731 (symtab_initialize_asm_name_hash): Likewise.
5732 (symtab_node_for_asm): Likewise.
5733 (symtab_add_to_same_comdat_group): Likewise.
5734 (symtab_dissolve_same_comdat_group_list): Likewise.
5735 (symtab_node_asm_name): Likewise.
5736 (symtab_node_name): Likewise.
5737 (dump_symtab_base): Likewise.
5738 (dump_symtab_node): Likewise.
5739 (dump_symtab): Likewise.
5740 (debug_symtab_node): Likewise.
5741 (verify_symtab_base): Likewise.
5742 (verify_symtab_node): Likewise.
5743 (verify_symtab): Likewise.
5744 (symtab_used_from_object_file_p): Likewise.
5745 (symtab_node_availability): Likewise.
5746 (symtab_alias_ultimate_target): Likewise.
5747 (fixup_same_cpp_alias_visibility): Likewise.
5748 (symtab_resolve_alias): Likewise.
5749 (symtab_for_node_and_aliases): Likewise.
5750 (symtab_for_node_and_aliases): Likewise.
5751 (symtab_nonoverwritable_alias_1): Likewise.
5752 (symtab_nonoverwritable_alias): Likewise.
5753 (symtab_semantically_equivalent_p): Likewise.
5754 * value-prof.c (init_node_map): Likewise.
5755 * varasm.c (find_decl): Likewise.
5756 * varpool.c (varpool_node_for_asm): Likewise.
5757 (varpool_remove_unreferenced_decls): Likewise.
5758
5759 2013-10-31 David Malcolm <dmalcolm@redhat.com>
5760
5761 Manual part of renaming of symtab_node_base to symtab_node.
5762
5763 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
5764 clashes with the preferred name for the base class.
5765 (const_symtab_node): Remove redundant typedef.
5766
5767 2013-10-31 Jakub Jelinek <jakub@redhat.com>
5768
5769 * optabs.c (expand_vec_perm): Avoid vector mode punning
5770 SUBREGs in SET_DEST.
5771 * expmed.c (store_bit_field_1): Likewise.
5772 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
5773 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
5774 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
5775 * config/i386/i386.c (ix86_expand_vector_move_misalign,
5776 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
5777 ix86_expand_sse_unpack, ix86_expand_args_builtin,
5778 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
5779 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
5780 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
5781 expand_vec_perm_vpshufb2_vpermq,
5782 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
5783 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
5784 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
5785 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
5786 than *d itself.
5787
5788 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
5789
5790 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
5791 Use gcc_unreachable for unhandled modes. Do not check results of
5792 expand_simple_binop. If not expanded to target, move the result.
5793
5794 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
5795 Shiva Chen <shiva0217@gmail.com>
5796
5797 * config.gcc (nds32*-*-*): Add nds32 target.
5798 * config/nds32/nds32.c: New file.
5799 * config/nds32/nds32.h: New file.
5800 * config/nds32/nds32.md: New file.
5801 * config/nds32/constants.md: New file.
5802 * config/nds32/constraints.md: New file.
5803 * config/nds32/iterators.md: New file.
5804 * config/nds32/nds32-doubleword.md: New file.
5805 * config/nds32/nds32-intrinsic.md: New file.
5806 * config/nds32/nds32_intrinsic.h: New file.
5807 * config/nds32/nds32-modes.def: New file.
5808 * config/nds32/nds32-multiple.md: New file.
5809 * config/nds32/nds32.opt: New file.
5810 * config/nds32/nds32-opts.h: New file.
5811 * config/nds32/nds32-protos.h: New file.
5812 * config/nds32/nds32-peephole2.md: New file.
5813 * config/nds32/pipelines.md: New file.
5814 * config/nds32/predicates.md: New file.
5815 * config/nds32/t-mlibs: New file.
5816 * common/config/nds32: New directory and files.
5817
5818 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
5819 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
5820 * doc/install.texi (Cross-Compiler-Specific Options): Document
5821 --with-nds32-lib for nds32 target.
5822 * doc/extend.texi (Function Attributes, Target Builtins): Document
5823 nds32 specific attributes.
5824
5825 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
5826
5827 * lra-constraints (process_alt_operands): Use the result
5828 elimination register for operand when matching constraints.
5829
5830 2013-10-31 Jakub Jelinek <jakub@redhat.com>
5831
5832 * tree-vrp.c (maybe_set_nonzero_bits): New function.
5833 (remove_range_assertions): Call it.
5834
5835 * tree.c (tree_ctz): New function.
5836 * tree.h (tree_ctz): New prototype.
5837 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
5838 first argument from tree to const_tree.
5839 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
5840 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
5841 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
5842 static.
5843 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
5844 * tree-vect-loop.c (vect_analyze_loop_operations,
5845 vect_transform_loop): Don't force scalar loop for bound just because
5846 number of iterations is unknown, only do it if it is not known to be
5847 a multiple of vectorization_factor.
5848 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
5849
5850 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
5851 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
5852 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
5853 (set_nonzero_bits, get_nonzero_bits): New prototypes.
5854 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
5855 a default def isn't partially constant.
5856 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
5857 is known to be partially zero.
5858 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
5859 to see if a default def isn't partially constant.
5860 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
5861 creation of a range, if VR_RANGE, try to improve nonzero_bits from
5862 the range.
5863 (set_nonzero_bits, get_nonzero_bits): New functions.
5864
5865 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
5866 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
5867 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
5868 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
5869 uses but in the condition and ASSERT_EXPR and the other successor of
5870 the predecessor bb is __builtin_unreachable (), set_range_info of the
5871 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
5872
5873 2013-10-31 Martin Jambor <mjambor@suse.cz>
5874
5875 PR rtl-optimization/58934
5876 Revert:
5877 2013-10-30 Martin Jambor <mjambor@suse.cz>
5878 PR rtl-optimization/10474
5879 * ira.c (find_moveable_pseudos): Do not calculate dominance info
5880 nor df analysis.
5881 (interesting_dest_for_shprep): New function.
5882 (split_live_ranges_for_shrink_wrap): Likewise.
5883 (ira): Calculate dominance info and df analysis. Call
5884 split_live_ranges_for_shrink_wrap.
5885
5886 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5887 Yury Gribov <y.gribov@samsung.com>
5888
5889 PR sanitizer/58543
5890 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
5891 shadow pointer to avoid clobbering the main one.
5892
5893 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5894
5895 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
5896
5897 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
5898
5899 PR bootstrap/58933
5900 * ira-color.c (update_costs_from_copies): Add new parameter. Use
5901 it for calling update_costs_from_allocno.
5902 (assign_hard_reg): Call restore_costs_from_copies only for
5903 !retry_p. Pass new argument to update_costs_from_copies.
5904 (color_pass): Pass new argument to update_costs_from_copies.
5905 (ira_mark_allocation_change): Ditto.
5906
5907 2013-10-30 Sharad Singhai <singhai@google.com>
5908
5909 PR middle-end/58134
5910 * opts.c (common_handle_option): Remove deprecated option
5911 -ftree-vectorizer-verbose.
5912 * doc/invoke.texi (Debugging Options): Ditto.
5913 * opts-global.c (handle_common_deferred_options): Ditto.
5914 (dump_remap_tree_vectorizer_verbose): Delete.
5915 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
5916
5917 2013-10-30 DJ Delorie <dj@redhat.com>
5918
5919 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
5920 that take no arguments.
5921
5922 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
5923
5924 PR other/58545
5925 * reload1.c (update_eliminables_and_spill): New function, broken
5926 out of reload.
5927 (reload): Use it. Check for frame size change after frame size
5928 alignment, and call update_eliminables_and_spill first if continue-ing.
5929
5930 2013-10-30 Cong Hou <congh@google.com>
5931
5932 PR target/58762
5933 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
5934 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
5935 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
5936
5937 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
5938
5939 PR rtl-optimization/58369
5940 * reload1.c (compute_reload_subreg_offset): New function.
5941 (choose_reload_regs): Use it to pass endian-correct
5942 offset to subreg_regno_offset.
5943
5944 2013-10-30 Tobias Burnus <burnus@net-b.de>
5945
5946 PR other/33426
5947 * tree-cfg.c (replace_loop_annotate): Replace warning by
5948 warning_at.
5949
5950 2013-10-30 Jason Merrill <jason@redhat.com>
5951
5952 * configure.ac (loose_warn): Add -Wno-format if
5953 --disable-build-format-warnings.
5954
5955 2013-10-30 David Malcolm <dmalcolm@redhat.com>
5956
5957 * cgraphunit.c (analyze_functions): Split symtab_node declarations
5958 onto multiple lines to make things easier for rename_symtab.py.
5959
5960 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
5961 (symtab_semantically_equivalent_p): Likewise.
5962
5963 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
5964
5965 PR target/58784
5966 * lra.c (check_rtl): Remove address check before LRA work.
5967
5968 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
5969
5970 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
5971 POINTER_PLUS_EXPR in the defining statement.
5972
5973 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
5974
5975 * regmove.c: Remove.
5976 * tree-pass.h (make_pass_regmove): Remove.
5977 * timevar.def (TV_REGMOVE): Remove.
5978 * passes.def (pass_regmove): Remove.
5979 * opts.c (default_options_table): Remove entry for regmove.
5980 * doc/passes.texi: Remove regmove pass description.
5981 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
5982 options.
5983 (-fdump-rtl-regmove): Ditto.
5984 * common.opt (foptimize-register-move, fregmove): Ignore.
5985 * Makefile.in (OBJS): Remove regmove.o.
5986 * regmove.c: Remove.
5987 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
5988 and type.
5989 (struct ira_allocno) New member allocno_prefs.
5990 (ALLOCNO_PREFS): New macro.
5991 (ira_prefs, ira_prefs_num): New external vars.
5992 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
5993 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
5994 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
5995 Ditto.
5996 (ira_add_allocno_copy_to_list): Remove prototype.
5997 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
5998 (ira_pref_iterator): New type.
5999 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
6000 (FOR_EACH_PREF): New macro.
6001 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
6002 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
6003 code.
6004 (ira_setup_alts): New function.
6005 (decrease_live_ranges_number): New function.
6006 (ira): Call the above function.
6007 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
6008 (ira_create_allocno): Initialize allocno prefs.
6009 (pref_pool, pref_vec): New static vars.
6010 (initiate_prefs, find_allocno_pref, ira_create_pref): New
6011 functions.
6012 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
6013 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
6014 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
6015 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
6016 (ira_add_allocno_copy_to_list): Make static. Rename to
6017 add_allocno_copy_to_list.
6018 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
6019 swap_allocno_copy_ends_if_necessary.
6020 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
6021 ira_remove_allocno_prefs.
6022 (ira_flattening): Ditto.
6023 (ira_build): Call initiate_prefs, print_prefs.
6024 (ira_destroy): Call finish_prefs.
6025 * ira-color.c (struct update_cost_record): New.
6026 (struct allocno_color_data): Add new member update_cost_records.
6027 (update_cost_record_pool): New static var.
6028 (init_update_cost_records, get_update_cost_record): New functions.
6029 (free_update_cost_record_list, finish_update_cost_records): Ditto.
6030 (struct update_cost_queue_elem): Add member from.
6031 (initiate_cost_update): Call init_update_cost_records.
6032 (finish_cost_update): Call finish_update_cost_records.
6033 (queue_update_cost, get_next_update_cost): Add new param from.
6034 (Update_allocno_cost, update_costs_from_allocno): New functions.
6035 (update_costs_from_prefs): Ditto.
6036 (update_copy_costs): Rename to update_costs_from_copies.
6037 (restore_costs_from_copies): New function.
6038 (update_conflict_hard_regno_costs): Don't go back.
6039 (assign_hard_reg): Call restore_costs_from_copies. Add printing
6040 more debug info.
6041 (pop_allocnos): Add priniting more debug info.
6042 (color_allocnos): Remove prefs for conflicting hard regs.
6043 Call update_costs_from_prefs.
6044 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
6045 (get_dup_num): Rename, modify, and move to ira.c
6046 (process_regs_for_copy): Add prefs.
6047 (add_insn_allocno_copies): Put src as first arg of
6048 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
6049 * ira-costs.c (record_reg_classes): Modify and move code into
6050 record_operands_costs.
6051 (find_costs_and_classes): Create prefs for the hard reg of small
6052 reg class.
6053 (process_bb_node_for_hard_reg_moves): Add prefs.
6054
6055 2013-10-30 Richard Biener <rguenther@suse.de>
6056
6057 PR middle-end/57100
6058 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
6059 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
6060 as worker for ...
6061 (pre_and_rev_post_order_compute): ... which now wraps it.
6062 * graph.c (draw_cfg_nodes_no_loops): Use
6063 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
6064 on cfun.
6065
6066 2013-10-30 Christian Bruel <christian.bruel@st.com>
6067
6068 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
6069 (sh_expand_cmpstr): Handle known align and schedule improvements.
6070 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
6071 * config/sh/sh.md (cmpstrnsi): New pattern.
6072
6073 2013-10-30 Martin Jambor <mjambor@suse.cz>
6074
6075 PR rtl-optimization/10474
6076 * ira.c (find_moveable_pseudos): Do not calculate dominance info
6077 nor df analysis.
6078 (interesting_dest_for_shprep): New function.
6079 (split_live_ranges_for_shrink_wrap): Likewise.
6080 (ira): Calculate dominance info and df analysis. Call
6081 split_live_ranges_for_shrink_wrap.
6082
6083 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6084
6085 PR target/58854
6086 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
6087
6088 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
6089
6090 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
6091 * tree.h (POINTER_BOUNDS_P): New.
6092 (BOUNDED_TYPE_P): New.
6093 (BOUNDED_P): New.
6094 (pointer_bounds_type_node): New.
6095 * tree.c (build_common_tree_nodes): Initialize
6096 pointer_bounds_type_node.
6097 * gimple.h (gimple_call_get_nobnd_arg_index): New.
6098 (gimple_call_num_nobnd_args): New.
6099 (gimple_call_nobnd_arg): New.
6100 (gimple_return_retbnd): New.
6101 (gimple_return_set_retbnd): New
6102 * gimple.c (gimple_build_return): Increase number of ops
6103 for return statement.
6104 (gimple_call_get_nobnd_arg_index): New.
6105 * gimple-pretty-print.c (dump_gimple_return): Print second op.
6106
6107 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
6108
6109 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
6110 with "chkp ctor" and "bnd_legacy" attributes.
6111 * gimplify.c (gimplify_init_constructor): Avoid infinite
6112 loop during gimplification of bounds initializer.
6113
6114 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
6115
6116 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
6117 (handle_bnd_legacy): New.
6118 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
6119 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
6120 attributes.
6121
6122 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
6123
6124 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
6125 (BT_FN_PTR_CONST_PTR): New.
6126 (BT_FN_CONST_PTR_CONST_PTR): New.
6127 (BT_FN_PTR_CONST_PTR_SIZE): New.
6128 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
6129 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
6130 (BT_FN_VOID_CONST_PTR_SIZE): New.
6131 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
6132 * chkp-builtins.def: New.
6133 * builtins.def: include chkp-builtins.def.
6134 (DEF_CHKP_BUILTIN): New.
6135 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
6136 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
6137 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
6138 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
6139 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
6140 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
6141 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
6142 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
6143 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
6144 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
6145 * common.opt (fcheck-pointer-bounds): New.
6146 * toplev.c (process_options): Check Pointer Bounds Checker is
6147 supported.
6148 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
6149
6150 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
6151
6152 * target.def (builtin_chkp_function): New.
6153 (chkp_bound_type): New.
6154 (chkp_bound_mode): New.
6155 (fn_abi_va_list_bounds_size): New.
6156 (load_bounds_for_arg): New.
6157 (store_bounds_for_arg): New.
6158 * targhooks.h (default_load_bounds_for_arg): New.
6159 (default_store_bounds_for_arg): New.
6160 (default_fn_abi_va_list_bounds_size): New.
6161 (default_chkp_bound_type): New.
6162 (default_chkp_bound_mode): New.
6163 (default_builtin_chkp_function): New.
6164 * targhooks.c (default_load_bounds_for_arg): New.
6165 (default_store_bounds_for_arg): New.
6166 (default_fn_abi_va_list_bounds_size): New.
6167 (default_chkp_bound_type): New.
6168 (default_chkp_bound_mode); New.
6169 (default_builtin_chkp_function): New.
6170 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
6171 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
6172 (TARGET_STORE_BOUNDS_FOR_ARG): New.
6173 (TARGET_BUILTIN_CHKP_FUNCTION): New.
6174 (TARGET_CHKP_BOUND_TYPE): New.
6175 (TARGET_CHKP_BOUND_MODE): New.
6176 * doc/tm.texi: Regenerated.
6177 * langhooks.h (lang_hooks): Add chkp_supported field.
6178 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
6179 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
6180
6181 2013-10-29 Andrew Pinski <apinski@cavium.com>
6182
6183 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
6184 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
6185 fails, combining the branches anyways.
6186 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
6187 increases the number of combinings.
6188 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
6189
6190 2013-10-29 Mike Stump <mikestump@comcast.net>
6191
6192 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
6193 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
6194 (make_vector_mode): Increase namebuf to 16.
6195 (emit_insn_modes_h): When processing BImode, don't
6196 also match partial int modes.
6197 (emit_class_narrowest_mode): Likewise.
6198
6199 * config/bfin/bfin-modes.def: Add precision to PDI.
6200 * config/m32c/m32c-modes.def: Add precision to PSI.
6201 * config/msp430/msp430-modes.def: Add precision to PSI.
6202 * config/rs6000/rs6000-modes.def: Add precision to PTI.
6203 * config/sh/sh-modes.def: Add precision to PSI and PDI.
6204
6205 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
6206
6207 PR target/54236
6208 * config/sh/sh.md (*addc): Rename existing variations to ...
6209 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
6210 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
6211 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
6212 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
6213
6214 2013-10-29 Teresa Johnson <tejohnson@google.com>
6215
6216 PR ipa/58862
6217 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
6218 insanities when updating probabilities.
6219
6220 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6221
6222 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
6223 prettyprinter for cgraph_node to reflect the conversion of the
6224 symtable types to a C++ class hierarchy: it now *is* a
6225 symtab_node_base, rather than having one (named "symbol").
6226
6227 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
6228
6229 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
6230 __cilkrts_pop_frame. If matched, then return true for built-in
6231 function name.
6232 (expand_builtin): Added BUILT_IN_CILK_DETACH and
6233 BUILT_IN_CILK_POP_FRAME case.
6234 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
6235 (lhs_cilk_detect_spawn): Likewise.
6236 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
6237 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
6238 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
6239 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
6240 (LANG_HOOKS_CILKPLUS): Likewise.
6241 * tree.h (CILK_SPAWN_FN): Likewise.
6242 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
6243 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
6244 (OBJS): Added cilk-common.o.
6245 (BUILTINS_DEF): Added cilk-builtins.def.
6246 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
6247 (lhd_cilk_detect_spawn): Likewise.
6248 * langhooks.h (lang_hooks_for_cilkplus): New struct.
6249 (struct lang_hooks): Added new field called "cilkplus."
6250 * cilk-common.c: New file.
6251 * cilk.h: Likewise.
6252 * cilk-builtins.def: Likewise.
6253 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
6254 "__cilk" macro and set it to 200.
6255 * function.h (struct function::cilk_frame_decl): New field.
6256 (struct function::is_cilk_function): Likewise.
6257 (struct function::calls_cilk_spawn): Likewise.
6258 * gimplify.c (gimplify_call_expr): Added a check if the function call
6259 being gimplified is a spawn detach point. If so, then add pop_frame
6260 and detach function calls.
6261 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
6262 for gimplifying _Cilk_spawn and _Cilk_sync statements.
6263 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
6264 function. If so, added a _Cilk_sync and gimplified it.
6265 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
6266 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
6267 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
6268 spawner function.
6269 (can_inline_edge_p): Prevent inling of spawnee function.
6270 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
6271 for functions that use Cilk keywords.
6272 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
6273 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
6274 CILK_SYNC_STMT cases.
6275 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
6276 trees.
6277 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
6278 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
6279 * passes.texi (Cilk Keywords): New section that describes the compiler
6280 code changes for handling Cilk Keywords.
6281
6282 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6283
6284 Patch autogenerated by refactor_symtab.py from
6285 https://github.com/davidmalcolm/gcc-refactoring-scripts
6286 revision 58bb219cc090b2f4516a9297d868c245495ee622
6287
6288 * asan.c (asan_finish_file): Update for conversion of symtab types to
6289 a true class hierarchy.
6290 * cfgexpand.c (estimated_stack_frame_size): Likewise.
6291 * cgraph.c (cgraph_get_body): Likewise.
6292 (cgraph_get_create_real_symbol_node): Likewise.
6293 (verify_cgraph_node): Likewise.
6294 (verify_edge_corresponds_to_fndecl): Likewise.
6295 (verify_edge_count_and_frequency): Likewise.
6296 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
6297 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
6298 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
6299 (cgraph_node_cannot_return): Likewise.
6300 (cgraph_set_pure_flag_1): Likewise.
6301 (cgraph_set_const_flag_1): Likewise.
6302 (cgraph_set_nothrow_flag_1): Likewise.
6303 (cgraph_make_node_local_1): Likewise.
6304 (cgraph_for_node_and_aliases): Likewise.
6305 (cgraph_for_node_thunks_and_aliases): Likewise.
6306 (cgraph_node_can_be_local_p): Likewise.
6307 (cgraph_node_cannot_be_local_p_1): Likewise.
6308 (cgraph_function_body_availability): Likewise.
6309 (dump_cgraph_node): Likewise.
6310 (cgraph_rtl_info): Likewise.
6311 (cgraph_mark_address_taken_node): Likewise.
6312 (cgraph_remove_node): Likewise.
6313 (cgraph_release_function_body): Likewise.
6314 (cgraph_update_edges_for_call_stmt_node): Likewise.
6315 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
6316 (cgraph_make_edge_direct): Likewise.
6317 (cgraph_resolve_speculation): Likewise.
6318 (cgraph_speculative_call_info): Likewise.
6319 (cgraph_turn_edge_to_speculative): Likewise.
6320 (cgraph_create_edge_1): Likewise.
6321 (cgraph_set_call_stmt): Likewise.
6322 (cgraph_node_for_asm): Likewise.
6323 (cgraph_add_thunk): Likewise.
6324 (cgraph_same_body_alias): Likewise.
6325 (cgraph_create_function_alias): Likewise.
6326 (cgraph_create_node): Likewise.
6327 (cgraph_create_empty_node): Likewise.
6328 (record_function_versions): Likewise.
6329 (used_from_object_file_p): Likewise.
6330 * cgraph.h (symtab_can_be_discarded): Likewise.
6331 (symtab_real_symbol_p): Likewise.
6332 (cgraph_mark_force_output_node): Likewise.
6333 (cgraph_edge_recursive_p): Likewise.
6334 (symtab_alias_target): Likewise.
6335 (varpool_all_refs_explicit_p): Likewise.
6336 (varpool_can_remove_if_no_refs): Likewise.
6337 (cgraph_only_called_directly_or_aliased_p): Likewise.
6338 (cgraph_next_function_with_gimple_body): Likewise.
6339 (cgraph_first_function_with_gimple_body): Likewise.
6340 (cgraph_function_with_gimple_body_p): Likewise.
6341 (cgraph_next_function): Likewise.
6342 (cgraph_first_function): Likewise.
6343 (cgraph_next_defined_function): Likewise.
6344 (cgraph_first_defined_function): Likewise.
6345 (varpool_next_defined_variable): Likewise.
6346 (varpool_first_defined_variable): Likewise.
6347 (varpool_next_static_initializer): Likewise.
6348 (varpool_first_static_initializer): Likewise.
6349 (varpool_next_variable): Likewise.
6350 (varpool_first_variable): Likewise.
6351 (varpool_node_name): Likewise.
6352 (varpool): Likewise.
6353 (cgraph): Likewise.
6354 (is_a_helper <varpool_node>::test): Likewise.
6355 (is_a_helper <cgraph_node>::test): Likewise.
6356 (varpool_variable_node): Likewise.
6357 (cgraph_function_or_thunk_node): Likewise.
6358 (varpool_alias_target): Likewise.
6359 (cgraph_alias_target): Likewise.
6360 (cgraph_node_name): Likewise.
6361 (varpool_node_asm_name): Likewise.
6362 (cgraph_node_asm_name): Likewise.
6363 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
6364 (cgraph_rebuild_references): Likewise.
6365 (rebuild_cgraph_edges): Likewise.
6366 (record_eh_tables): Likewise.
6367 (build_cgraph_edges): Likewise.
6368 (mark_store): Likewise.
6369 (mark_load): Likewise.
6370 (mark_address): Likewise.
6371 (record_type_list): Likewise.
6372 (record_reference): Likewise.
6373 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
6374 (cgraph_materialize_clone): Likewise.
6375 (cgraph_function_versioning): Likewise.
6376 (cgraph_copy_node_for_versioning): Likewise.
6377 (update_call_expr): Likewise.
6378 (cgraph_find_replacement_node): Likewise.
6379 (cgraph_create_virtual_clone): Likewise.
6380 (cgraph_clone_node): Likewise.
6381 * cgraphunit.c (compile): Likewise.
6382 (output_weakrefs): Likewise.
6383 (output_in_order): Likewise.
6384 (expand_function): Likewise.
6385 (assemble_thunks_and_aliases): Likewise.
6386 (expand_thunk): Likewise.
6387 (mark_functions_to_output): Likewise.
6388 (handle_alias_pairs): Likewise.
6389 (analyze_functions): Likewise.
6390 (walk_polymorphic_call_targets): Likewise.
6391 (varpool_finalize_decl): Likewise.
6392 (process_function_and_variable_attributes): Likewise.
6393 (cgraph_process_same_body_aliases): Likewise.
6394 (analyze_function): Likewise.
6395 (cgraph_add_new_function): Likewise.
6396 (cgraph_finalize_function): Likewise.
6397 (referred_to_p): Likewise.
6398 (cgraph_reset_node): Likewise.
6399 (cgraph_process_new_functions): Likewise.
6400 (enqueue_node): Likewise.
6401 (decide_is_symbol_needed): Likewise.
6402 * coverage.c (coverage_compute_profile_id): Likewise.
6403 * dbxout.c (dbxout_expand_expr): Likewise.
6404 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
6405 (reference_to_unused): Likewise.
6406 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
6407 * gimplify.c (unvisit_body): Likewise.
6408 (unshare_body): Likewise.
6409 * ipa-cp.c (ipcp_generate_summary): Likewise.
6410 (ipcp_decision_stage): Likewise.
6411 (identify_dead_nodes): Likewise.
6412 (decide_whether_version_node): Likewise.
6413 (decide_about_value): Likewise.
6414 (perhaps_add_new_callers): Likewise.
6415 (create_specialized_node): Likewise.
6416 (update_profiling_info): Likewise.
6417 (ipcp_propagate_stage): Likewise.
6418 (estimate_local_effects): Likewise.
6419 (good_cloning_opportunity_p): Likewise.
6420 (devirtualization_time_bonus): Likewise.
6421 (propagate_constants_accross_call): Likewise.
6422 (initialize_node_lattices): Likewise.
6423 (ipcp_cloning_candidate_p): Likewise.
6424 (determine_versionability): Likewise.
6425 (print_all_lattices): Likewise.
6426 (print_lattice): Likewise.
6427 (ipcp_discover_new_direct_edges): Likewise.
6428 * ipa-devirt.c (ipa_devirt): Likewise.
6429 (likely_target_p): Likewise.
6430 (update_type_inheritance_graph): Likewise.
6431 (possible_polymorphic_call_target_p): Likewise.
6432 (dump_possible_polymorphic_call_targets): Likewise.
6433 (devirt_variable_node_removal_hook): Likewise.
6434 (record_binfo): Likewise.
6435 (maybe_record_node): Likewise.
6436 (build_type_inheritance_graph): Likewise.
6437 * ipa-inline-analysis.c (inline_write_summary): Likewise.
6438 (inline_generate_summary): Likewise.
6439 (inline_analyze_function): Likewise.
6440 (do_estimate_growth): Likewise.
6441 (simple_edge_hints): Likewise.
6442 (estimate_node_size_and_time): Likewise.
6443 (estimate_edge_devirt_benefit): Likewise.
6444 (compute_inline_parameters): Likewise.
6445 (estimate_function_body_sizes): Likewise.
6446 (compute_bb_predicates): Likewise.
6447 (initialize_inline_failed): Likewise.
6448 (dump_inline_summary): Likewise.
6449 (dump_inline_edge_summary): Likewise.
6450 * ipa-inline-transform.c (inline_transform): Likewise.
6451 (preserve_function_body_p): Likewise.
6452 (save_inline_function_body): Likewise.
6453 (inline_call): Likewise.
6454 (clone_inlined_nodes): Likewise.
6455 (can_remove_node_now_p): Likewise.
6456 (can_remove_node_now_p_1): Likewise.
6457 * ipa-inline.c (early_inliner): Likewise.
6458 (early_inline_small_functions): Likewise.
6459 (inline_always_inline_functions): Likewise.
6460 (ipa_inline): Likewise.
6461 (flatten_function): Likewise.
6462 (inline_small_functions): Likewise.
6463 (speculation_useful_p): Likewise.
6464 (recursive_inlining): Likewise.
6465 (update_caller_keys): Likewise.
6466 (reset_edge_caches): Likewise.
6467 (update_edge_key): Likewise.
6468 (edge_badness): Likewise.
6469 (relative_time_benefit): Likewise.
6470 (want_inline_self_recursive_call_p): Likewise.
6471 (want_inline_small_function_p): Likewise.
6472 (want_early_inline_function_p): Likewise.
6473 (num_calls): Likewise.
6474 (can_early_inline_edge_p): Likewise.
6475 (can_inline_edge_p): Likewise.
6476 (report_inline_failed_reason): Likewise.
6477 * ipa-profile.c (ipa_profile): Likewise.
6478 (ipa_propagate_frequency): Likewise.
6479 (ipa_propagate_frequency_1): Likewise.
6480 (ipa_profile_generate_summary): Likewise.
6481 * ipa-prop.c (ipcp_transform_function): Likewise.
6482 (read_replacements_section): Likewise.
6483 (ipa_prop_read_section): Likewise.
6484 (ipa_modify_call_arguments): Likewise.
6485 (ipa_print_node_params): Likewise.
6486 (propagate_controlled_uses): Likewise.
6487 (update_indirect_edges_after_inlining): Likewise.
6488 (remove_described_reference): Likewise.
6489 (ipa_make_edge_direct_to_target): Likewise.
6490 (ipa_analyze_node): Likewise.
6491 (ipa_analyze_params_uses): Likewise.
6492 (ipa_compute_jump_functions): Likewise.
6493 (ipa_get_callee_param_type): Likewise.
6494 (ipa_print_node_jump_functions): Likewise.
6495 (ipa_initialize_node_params): Likewise.
6496 (ipa_populate_param_decls): Likewise.
6497 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
6498 (write_agg_replacement_chain): Likewise.
6499 (ipa_write_node_info): Likewise.
6500 (ipa_edge_duplication_hook): Likewise.
6501 (try_decrement_rdesc_refcount): Likewise.
6502 * ipa-pure-const.c (propagate_nothrow): Likewise.
6503 (propagate_pure_const): Likewise.
6504 (pure_const_read_summary): Likewise.
6505 (pure_const_write_summary): Likewise.
6506 (analyze_function): Likewise.
6507 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
6508 (ipa_ref_referring_ref_list): Likewise.
6509 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
6510 (ipa_remove_stmt_references): Likewise.
6511 (ipa_find_reference): Likewise.
6512 (ipa_dump_referring): Likewise.
6513 (ipa_dump_references): Likewise.
6514 (ipa_record_reference): Likewise.
6515 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
6516 (ipa_reference_write_optimization_summary): Likewise.
6517 (write_node_summary_p): Likewise.
6518 (propagate): Likewise.
6519 (read_write_all_from_decl): Likewise.
6520 (generate_summary): Likewise.
6521 (analyze_function): Likewise.
6522 (propagate_bits): Likewise.
6523 (ipa_reference_get_not_written_global): Likewise.
6524 (ipa_reference_get_not_read_global): Likewise.
6525 * ipa-split.c (execute_split_functions): Likewise.
6526 (split_function): Likewise.
6527 * ipa-utils.c (ipa_merge_profiles): Likewise.
6528 (dump_cgraph_node_set): Likewise.
6529 (ipa_reverse_postorder): Likewise.
6530 (ipa_edge_within_scc): Likewise.
6531 (ipa_get_nodes_in_cycle): Likewise.
6532 (ipa_free_postorder_info): Likewise.
6533 (ipa_reduced_postorder): Likewise.
6534 (searchc): Likewise.
6535 (recursive_call_p): Likewise.
6536 * ipa.c (ipa_cdtor_merge): Likewise.
6537 (record_cdtor_fn): Likewise.
6538 (function_and_variable_visibility): Likewise.
6539 (varpool_externally_visible_p): Likewise.
6540 (cgraph_externally_visible_p): Likewise.
6541 (comdat_can_be_unshared_p): Likewise.
6542 (comdat_can_be_unshared_p_1): Likewise.
6543 (address_taken_from_non_vtable_p): Likewise.
6544 (ipa_discover_readonly_nonaddressable_vars): Likewise.
6545 (symtab_remove_unreachable_nodes): Likewise.
6546 (walk_polymorphic_call_targets): Likewise.
6547 (process_references): Likewise.
6548 (enqueue_node): Likewise.
6549 (has_addr_references_p): Likewise.
6550 (cgraph_non_local_node_p_1): Likewise.
6551 * is-a.h (varpool_analyze_node): Likewise.
6552 * lto-cgraph.c (input_symtab): Likewise.
6553 (merge_profile_summaries): Likewise.
6554 (input_cgraph_1): Likewise.
6555 (input_edge): Likewise.
6556 (input_varpool_node): Likewise.
6557 (input_node): Likewise.
6558 (input_overwrite_node): Likewise.
6559 (compute_ltrans_boundary): Likewise.
6560 (output_refs): Likewise.
6561 (lto_output_varpool_node): Likewise.
6562 (lto_output_node): Likewise.
6563 (reachable_from_other_partition_p): Likewise.
6564 (referenced_from_other_partition_p): Likewise.
6565 (lto_output_edge): Likewise.
6566 (output_node_opt_summary): Likewise.
6567 (add_node_to): Likewise.
6568 (reachable_from_this_partition_p): Likewise.
6569 (lto_set_symtab_encoder_in_partition): Likewise.
6570 (lto_symtab_encoder_in_partition_p): Likewise.
6571 (lto_set_symtab_encoder_encode_initializer): Likewise.
6572 (lto_symtab_encoder_encode_initializer_p): Likewise.
6573 (lto_set_symtab_encoder_encode_body): Likewise.
6574 (lto_symtab_encoder_encode_body_p): Likewise.
6575 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
6576 Likewise.
6577 * lto-streamer-in.c (lto_read_body): Likewise.
6578 (fixup_call_stmt_edges): Likewise.
6579 (fixup_call_stmt_edges_1): Likewise.
6580 * lto-streamer-out.c (produce_symtab): Likewise.
6581 (output_symbol_p): Likewise.
6582 (write_symbol): Likewise.
6583 (lto_output): Likewise.
6584 (copy_function): Likewise.
6585 (output_function): Likewise.
6586 * passes.c (function_called_by_processed_nodes_p): Likewise.
6587 (ipa_write_optimization_summaries): Likewise.
6588 (ipa_write_summaries): Likewise.
6589 (do_per_function_toporder): Likewise.
6590 (do_per_function): Likewise.
6591 (dump_passes): Likewise.
6592 * symtab.c (symtab_semantically_equivalent_p): Likewise.
6593 (symtab_nonoverwritable_alias): Likewise.
6594 (symtab_nonoverwritable_alias_1): Likewise.
6595 (symtab_for_node_and_aliases): Likewise.
6596 (symtab_resolve_alias): Likewise.
6597 (fixup_same_cpp_alias_visibility): Likewise.
6598 (symtab_alias_ultimate_target): Likewise.
6599 (symtab_used_from_object_file_p): Likewise.
6600 (verify_symtab_base): Likewise.
6601 (dump_symtab_base): Likewise.
6602 (symtab_node_name): Likewise.
6603 (symtab_node_asm_name): Likewise.
6604 (symtab_dissolve_same_comdat_group_list): Likewise.
6605 (symtab_add_to_same_comdat_group): Likewise.
6606 (symtab_unregister_node): Likewise.
6607 (symtab_insert_node_to_hashtable): Likewise.
6608 (symtab_register_node): Likewise.
6609 (unlink_from_assembler_name_hash): Likewise.
6610 (insert_to_assembler_name_hash): Likewise.
6611 (eq_assembler_name): Likewise.
6612 (hash_node_by_assembler_name): Likewise.
6613 (eq_node): Likewise.
6614 (hash_node): Likewise.
6615 * toplev.c (wrapup_global_declaration_2): Likewise.
6616 * trans-mem.c (ipa_tm_execute): Likewise.
6617 (ipa_tm_transform_clone): Likewise.
6618 (ipa_tm_transform_transaction): Likewise.
6619 (ipa_tm_transform_calls_redirect): Likewise.
6620 (ipa_tm_insert_gettmclone_call): Likewise.
6621 (ipa_tm_insert_irr_call): Likewise.
6622 (ipa_tm_create_version): Likewise.
6623 (ipa_tm_create_version_alias): Likewise.
6624 (ipa_tm_mark_forced_by_abi_node): Likewise.
6625 (ipa_tm_mark_force_output_node): Likewise.
6626 (ipa_tm_diagnose_tm_safe): Likewise.
6627 (ipa_tm_mayenterirr_function): Likewise.
6628 (ipa_tm_scan_irr_function): Likewise.
6629 (ipa_tm_note_irrevocable): Likewise.
6630 (ipa_tm_scan_calls_clone): Likewise.
6631 (get_cg_data): Likewise.
6632 * tree-eh.c (tree_could_trap_p): Likewise.
6633 * tree-emutls.c (ipa_lower_emutls): Likewise.
6634 (create_emultls_var): Likewise.
6635 (lower_emutls_function_body): Likewise.
6636 (gen_emutls_addr): Likewise.
6637 (emutls_decl): Likewise.
6638 (new_emutls_decl): Likewise.
6639 * tree-inline.c (tree_function_versioning): Likewise.
6640 (optimize_inline_calls): Likewise.
6641 (expand_call_inline): Likewise.
6642 (estimate_num_insns): Likewise.
6643 (copy_bb): Likewise.
6644 (delete_unreachable_blocks_update_callgraph): Likewise.
6645 * tree-nested.c (gimplify_all_functions): Likewise.
6646 (create_nesting_tree): Likewise.
6647 (check_for_nested_with_variably_modified): Likewise.
6648 * tree-pretty-print.c (dump_function_header): Likewise.
6649 * tree-profile.c (tree_profiling): Likewise.
6650 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6651 (modify_function): Likewise.
6652 (convert_callers): Likewise.
6653 (convert_callers_for_node): Likewise.
6654 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
6655 (associate_varinfo_to_alias): Likewise.
6656 (create_variable_info_for): Likewise.
6657 (get_constraint_for_ssa_var): Likewise.
6658 * tree-vectorizer.c (increase_alignment): Likewise.
6659 * tree.c (find_decls_types_in_var): Likewise.
6660 (find_decls_types_in_node): Likewise.
6661 (free_lang_data_in_decl): Likewise.
6662 * value-prof.c (gimple_ic_transform): Likewise.
6663 (gimple_ic): Likewise.
6664 (check_ic_target): Likewise.
6665 (init_node_map): Likewise.
6666 * varasm.c (decl_binds_to_current_def_p): Likewise.
6667 (default_binds_local_p_1): Likewise.
6668 (dump_tm_clone_pairs): Likewise.
6669 (assemble_alias): Likewise.
6670 (find_decl): Likewise.
6671 (mark_decl_referenced): Likewise.
6672 * varpool.c (varpool_for_node_and_aliases): Likewise.
6673 (varpool_extra_name_alias): Likewise.
6674 (varpool_create_variable_alias): Likewise.
6675 (add_new_static_var): Likewise.
6676 (varpool_finalize_named_section_flags): Likewise.
6677 (varpool_remove_unreferenced_decls): Likewise.
6678 (enqueue_node): Likewise.
6679 (varpool_assemble_decl): Likewise.
6680 (assemble_aliases): Likewise.
6681 (varpool_analyze_node): Likewise.
6682 (cgraph_variable_initializer_availability): Likewise.
6683 (varpool_add_new_variable): Likewise.
6684 (ctor_for_folding): Likewise.
6685 (dump_varpool_node): Likewise.
6686 (varpool_remove_initializer): Likewise.
6687 (varpool_remove_node): Likewise.
6688 (varpool_node_for_decl): Likewise.
6689 (varpool_create_empty_node): Likewise.
6690 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
6691 (ix86_get_function_versions_dispatcher): Likewise.
6692
6693 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6694
6695 * cgraph.h (symtab_node_base): Convert to a class;
6696 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
6697 chain_next/prev from symtab_node_def.
6698 (cgraph_node): Inherit from symtab_node; add GTY option
6699 tag ("SYMTAB_FUNCTION").
6700 (varpool_node): Inherit from symtab_node; add GTY option
6701 tag ("SYMTAB_VARIABLE").
6702 (symtab_node_def): Remove.
6703 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
6704 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
6705 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
6706 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
6707
6708 * ipa-ref.h (symtab_node_def): Drop.
6709 (symtab_node): Change underlying type from symtab_node_def to
6710 symtab_node_base.
6711 (const_symtab_node): Likwise.
6712
6713 * is-a.h: Update examples in comment.
6714
6715 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
6716 (assembler_name_hash): Likewise.
6717
6718 2013-10-29 Martin Liska <marxin.liska@gmail.com>
6719
6720 * doc/tree-ssa.texi (gimple_phi_result): Document.
6721 (gimple_phi_num_args, gimple_phi_arg): Likewise.
6722 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
6723 (PHI_RESULT, PHI_NUM_ARGS): Remove.
6724 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
6725
6726 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
6727
6728 * expr.h: Revert change and include tree-core.h.
6729 * rtl.h: Revert change and don't include tree-core.h.
6730
6731 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
6732
6733 * config/darwin.c: Include gimple.h.
6734 * config/i386/winnt.c: Likewise.
6735
6736 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
6737
6738 PR tree-optimization/19831
6739 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
6740
6741 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
6742
6743 * tree-outof-ssa.h: Remove include files.
6744 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
6745 * expr.c: Likewise.
6746 * tree-ssa-coalesce.c: Likewise.
6747 * cfgexpand.c: Likewise.
6748 * tree-ssa-ter.c: Likewise.
6749 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
6750 * lto-streamer.h: Likewise.
6751 * cgraphbuild.c: Add gimple.h to include list.
6752 * data-streamer-in.c: Likewise.
6753 * ipa-cp.c: Likewise.
6754 * tree-streamer.c: Likewise.
6755 * lto-compress.c: Likewise.
6756 * ipa-reference.c: Likewise.
6757 * data-streamer-out.c: Likewise.
6758 * lto-cgraph.c: Likewise.
6759 * cgraphclones.c: Likewise.
6760 * ipa-utils.c: Likewise.
6761 * data-streamer.c: Likewise.
6762 * ipa-split.c: Likewise.
6763 * lto-section-in.c: Likewise.
6764 * tree-streamer-out.c: Likewise.
6765 * ipa-prop.c: Likewise.
6766 * tree-streamer-in.c: Likewise.
6767 * symtab.c: Likewise.
6768 * opts-global.c: Likewise.
6769 * lto-opts.c: Likewise.
6770 * lto-section-out.c: Likewise.
6771 * lto-streamer.c: Likewise.
6772 * rtl.h: Add tree-core.h to include list.
6773 * expr.h: Remove tree-core.h from include list.
6774 * gimple.h: Likewise.
6775 * ipa-utils.h: Likewise.
6776 * streamer-hooks.h: Likewise.
6777 * streamer-hooks.c: Include input.h.
6778
6779 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6780
6781 * config/arm/arm.c (cortexa7_extra_costs): New table.
6782 (arm_cortex_a7_tune): New.
6783 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
6784
6785 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
6786
6787 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
6788
6789 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6790
6791 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
6792 to use autogenerated markers for a class-hierarchy, every class
6793 must have a GTY marker.
6794 * gengtype.h (struct type): Add linked list of subclasses to
6795 the "s" member of the union.
6796 (add_subclass): New decl.
6797 * gengtype-state.c (read_state_struct_type): Set up subclass
6798 linked list.
6799 * gengtype.c (get_ultimate_base_class): New.
6800 (add_subclass): New.
6801 (new_structure): Set up subclass linked list.
6802 (set_gc_used_type): Propagate usage information to subclasses.
6803 (output_mangled_typename): Use get_ultimate_base_class.
6804 (walk_subclasses): Use the subclass linked list, avoiding an
6805 O(N^2) when writing out all types.
6806 (walk_type): Issue an error if the base class is missing a tag,
6807 rather than generating bogus C code. Add a gcc_unreachable
6808 default case, in case people omit tags from concrete subclasses,
6809 or get the values wrong.
6810 (write_func_for_structure): Issue an error for subclasses for
6811 which the base doesn't have a "desc", since otherwise the
6812 autogenerated routines for the base would silently fail to visit
6813 any subclass fields.
6814 (write_root): Use get_ultimate_base_class, tweaking constness of
6815 tp to match that function's signature.
6816
6817 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6818
6819 * doc/gty.texi (GTY Options): Add note about inheritance to
6820 description of desc and tag.
6821 (Inheritance and GTY): New.
6822
6823 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6824
6825 * gengtype-parse.c (opts_have): Drop "static" so that
6826 we can use this from gengtype.c.
6827 * gengtype.c (set_gc_used_type): Mark any base class as used;
6828 update field traversal to visit inherited fields.
6829 (output_mangled_typename): Convert references to classes within
6830 an inheritance hierarchy to reference the ultimate base class,
6831 since only it will have gt_ functions.
6832 (get_string_option): New.
6833 (walk_subclasses): New.
6834 (walk_type): Treat GTY structs that have a "desc" as being the
6835 root of an inheritance hierarchy. Generate a switch on it
6836 within the marking function which walks all subclasses, adding
6837 cases for them via walk_subclasses. For subclasses, visit all
6838 fields of the type (including inherited ones).
6839 (write_func_for_structure): Don't write fns for subclasses, only
6840 for the ultimate base class within an inheritance hierarchy.
6841 Subclasses-marking will be handled by the base class marking functions.
6842 (write_types): Likewise.
6843 (write_local_func_for_structure): Likewise.
6844 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
6845 a "tag" option (and are thus concrete subclasses).
6846 (write_root): Use the marker function for the ultimate base class.
6847 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
6848 (opts_have): Add declaration.
6849
6850 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
6851
6852 * lra-spills.c (lra_final_code_change): Remove useless move insns
6853 originated from moves of pseudos.
6854
6855 2013-10-28 Jeff Law <law@redhat.com>
6856
6857 * lower-subreg.c (resolve_simple_move): Fix comment typo.
6858
6859 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
6860
6861 * df-scan.c (df_collection_rec): Adjust.
6862 (copy_defs): New constant.
6863 (copy_uses): Likewise.
6864 (copy_eq_uses): Likewise.
6865 (copy_mw): Likewise.
6866 (copy_all): Likewise.
6867 (df_insn_rescan): Adjust.
6868 (df_notes_rescan): Likewise.
6869 (df_swap_refs): Likewise.
6870 (df_sort_and_compress_refs): Likewise.
6871 (df_sort_and_compress_mws): Likewise.
6872 (df_install_refs): Likewise.
6873 (df_install_mws): Likewise.
6874 (df_refs_add_to_chains): Add flags parameter controlling which vectors
6875 are coppied.
6876 (df_bb_refs_record): Adjust.
6877 (df_record_entry_block_defs): Likewise.
6878 (df_record_exit_block_defs): Likewise.
6879 (df_refs_verify): Likewise.
6880 (df_mws_verify): Likewise.
6881 (df_insn_refs_verify): Likewise.
6882 (df_bb_verify): Likewise.
6883 * ipa-pure-const.c (finish_state): Remove.
6884 (propagate): Adjust.
6885 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
6886 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
6887 var-tracking.c: Adjust.
6888 * vec.c (stack_vecs): Remove.
6889 (register_stack_vec): Likewise.
6890 (stack_vec_register_index): Likewise.
6891 (unregister_stack_vec): Likewise.
6892 * vec.h (struct va_stack): Remove.
6893 (struct vec<T, A, vl_ptr>): Specialize as
6894 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
6895 allocation strategy compatable with the vl_ptr layout.
6896 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
6897 specialization anyway.
6898 (class stack_vec): New class.
6899 (vec_stack_alloc): Remove.
6900 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
6901
6902 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
6903 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6904 Sergey Lega <sergey.s.lega@intel.com>
6905 Anna Tikhonova <anna.tikhonova@intel.com>
6906 Ilya Tocar <ilya.tocar@intel.com>
6907 Andrey Turetskiy <andrey.turetskiy@intel.com>
6908 Ilya Verbin <ilya.verbin@intel.com>
6909 Kirill Yukhin <kirill.yukhin@intel.com>
6910 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6911
6912 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
6913 (*prefetch_avx512pf_<mode>): New.
6914 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
6915 (avx512f_maskcmp<mode>3): Ditto.
6916 (vashrv16si3): Ditto.
6917
6918 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
6919 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6920 Sergey Lega <sergey.s.lega@intel.com>
6921 Anna Tikhonova <anna.tikhonova@intel.com>
6922 Ilya Tocar <ilya.tocar@intel.com>
6923 Andrey Turetskiy <andrey.turetskiy@intel.com>
6924 Ilya Verbin <ilya.verbin@intel.com>
6925 Kirill Yukhin <kirill.yukhin@intel.com>
6926 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6927
6928 * config/i386/i386.md (any_truncate): New.
6929 (trunsuffix): Ditto.
6930 * config/i386/predicates.md (const_8_to_9_operand): New.
6931 (const_10_to_11_operand): Ditto.
6932 (const_12_to_13_operand): Ditto.
6933 (const_14_to_15_operand): Ditto.
6934 (const_16_to_19_operand): Ditto.
6935 (const_20_to_23_operand): Ditto.
6936 (const_24_to_27_operand): Ditto.
6937 (const_28_to_31_operand): Ditto.
6938 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
6939 (cvtusi2<ssescalarmodesuffix>32): New.
6940 (cvtusi2<ssescalarmodesuffix>64): Ditto.
6941 (ufloatv16siv16sf2): Ditto.
6942 (avx512f_fix_notruncv16sfv16si): Ditto.
6943 (avx512f_ufix_notruncv16sfv16si): Ditto.
6944 (avx512f_vcvtss2usi): Ditto.
6945 (avx512f_vcvtss2usiq): Ditto.
6946 (avx512f_vcvttss2usi): Ditto.
6947 (avx512f_vcvttss2usiq): Ditto.
6948 (avx512f_vcvtsd2usi): Ditto.
6949 (avx512f_vcvtsd2usiq): Ditto.
6950 (avx512f_vcvttsd2usi): Ditto.
6951 (avx512f_vcvttsd2usiq): Ditto.
6952 (ufloatv8siv8df): Ditto.
6953 (avx512f_cvtdq2pd512_2): Ditto.
6954 (avx512f_cvtpd2dq512): Ditto.
6955 (avx512f_ufix_notruncv8dfv8si): Ditto.
6956 (avx512f_cvtpd2ps512): Ditto.
6957 (vec_unpacks_lo_v16sf): Ditto.
6958 (vec_unpacks_hi_v16sf): Ditto.
6959 (vec_unpacks_float_hi_v16si): Ditto.
6960 (vec_unpacks_float_lo_v16si): Ditto.
6961 (avx512f_unpckhps512): Ditto.
6962 (avx512f_unpcklps512): Ditto.
6963 (avx512f_movshdup512): Ditto.
6964 (avx512f_movsldup512): Ditto.
6965 (vec_extract_lo_v32hi): Ditto.
6966 (vec_extract_hi_v32hi): Ditto.
6967 (vec_extract_lo_v64qi): Ditto.
6968 (vec_extract_hi_v64qi): Ditto.
6969 (avx512f_unpckhpd512): Ditto.
6970 (avx512f_movddup512): Ditto.
6971 (avx512f_unpcklpd512): Ditto.
6972 (*avx512f_unpcklpd512): Ditto.
6973 (avx512f_shufps512_1): Ditto.
6974 (avx512f_shufpd512_1): Ditto.
6975 (avx512f_interleave_highv8di): Ditto.
6976 (avx512f_interleave_lowv8di): Ditto.
6977 (PMOV_DST_MODE): Ditto.
6978 (pmov_src_mode): Ditto.
6979 (pmov_src_lower): Ditto.
6980 (pmov_suff): Ditto.
6981 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
6982 (*avx512f_<code>v8div16qi2): Ditto.
6983 (*avx512f_<code>v8div16qi2_store): Ditto.
6984 (vec_widen_umult_even_v16si): Ditto.
6985 (*vec_widen_umult_even_v16si): Ditto.
6986 (vec_widen_smult_even_v16si): Ditto.
6987 (*vec_widen_smult_even_v16si): Ditto.
6988 (avx512f_interleave_highv16si): Ditto.
6989 (avx512f_interleave_lowv16si): Ditto.
6990 (avx512f_<code>v16qiv16si2): Ditto.
6991 (avx512f_<code>v16hiv16si2): Ditto.
6992 (avx512f_<code>v8qiv8di2): Ditto.
6993 (avx512f_<code>v8hiv8di2): Ditto.
6994 (avx512f_<code>v8siv8di2): Ditto.
6995 (avx512cd_maskb_vec_dupv8di): Ditto.
6996 (avx512cd_maskw_vec_dupv16si): Ditto.
6997 (avx512f_vcvtph2ps512): Ditto.
6998 (avx512f_vcvtps2ph512): Ditto.
6999 (VEC_EXTRACT_MODE): Extened with wider modes.
7000 (VEC_PERM_AVX2): Ditto.
7001 (VEC_PERM_CONST): Ditto.
7002
7003 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
7004
7005 * config/arc/arc.c (arc_ccfsm_post_advance):
7006 Add comment about TYPE_RETURN.
7007
7008 2013-10-28 Bin Cheng <bin.cheng@arm.com>
7009
7010 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
7011 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
7012 (strip_offset): Convert offset to unsigned number.
7013
7014 2013-10-27 Tom de Vries <tom@codesourcery.com>
7015
7016 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
7017 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
7018
7019 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
7020
7021 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
7022 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
7023 (TARGET_BIG_ENDIAN): New macro.
7024 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
7025 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
7026 * config/sh/sh.c: Likewise.
7027 * config/sh/sh.h: Likewise.
7028
7029 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
7030
7031 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
7032 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
7033
7034 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
7035
7036 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
7037 Fix formatting.
7038 (cmpstr_t, cmpstrsi): Fix formatting.
7039
7040 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
7041
7042 PR target/52483
7043 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
7044 addressing, do not use general_operand for memory operands.
7045
7046 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
7047
7048 Revert:
7049 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
7050 * lra-spills.c (lra_final_code_change): Remove useless move insns.
7051
7052 2013-10-26 Jeff Law <law@redhat.com>
7053
7054 * predict.c (PRED_MUDFLAP): Remove.
7055 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
7056
7057 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
7058 (OBJS): Remove tree-nomudflap.o
7059 (GTFILES): Remove tree-mudflap.c
7060 * builtins.c (expand_builtin_alloc): Remove mudflap support.
7061 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
7062 (mfwrap_spec, mflib_spec): Likewise.
7063 (cpp_unique_options, cc1_options, static_specs): Likewise.
7064 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
7065 * passes.def: Likewise.
7066 * toplev.c (compile_file, process_options): Likewise.
7067 * tree-inline.c (copy_tree_r): Likewise.
7068 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
7069 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
7070 (build_constant_desc, output_constant_def_contents): Likewise.
7071 (categorize_decl_for_section): Likewise.
7072 * tree-mudflap.c: Removed.
7073 * tree-mudflap.h: Removed.
7074 * tree-nomudflap.c: Removed.
7075 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
7076 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
7077 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
7078 * config/sol2.h (MFLIB_SPEC): Likewise.
7079 * doc/install.texi: Remove mudflap references.
7080 * doc/passes.texi: Similarly.
7081 * doc/sourcebuild.texi: Similarly.
7082 * doc/invoke.texi: Remove mudlfap related options.
7083
7084 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
7085
7086 PR rtl-optimization/58759
7087 * lra-constraints.c (lra_constraints): Remove wrong condition to
7088 remove insn setting up an equivalent pseudo.
7089
7090 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
7091
7092 * config/rs6000/rs6000-protos.h
7093 (rs6000_secondary_memory_needed_mode): New prototype.
7094 * config/rs6000/rs6000.c: Include ira.h.
7095 (TARGET_LRA_P): Redefine.
7096 (rs6000_legitimate_offset_address_p): Call
7097 legitimate_constant_pool_address_p in strict mode for LRA.
7098 (rs6000_legitimate_address_p): Ditto.
7099 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
7100 (rs6000_emit_move): Add LRA version of code to generate load/store
7101 of SDmode values.
7102 (rs6000_secondary_memory_needed_mode): New.
7103 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
7104 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
7105 constants, memory, and FP registers.
7106 (rs6000_lra_p): New.
7107 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
7108 * config/rs6000/rs6000.opt (mlra): New option.
7109 * lra-spills.c (lra_final_code_change): Remove useless move insns.
7110
7111 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
7112
7113 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
7114 has_single_use () and not do the conversion if has_single_use ()
7115 returns false for the multiplication result.
7116
7117 2013-10-25 David Malcolm <dmalcolm@redhat.com>
7118
7119 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
7120 to "NODE", since this works on a "tree", not an
7121 "enum tree_code".
7122 (CONSTANT_CLASS_P): Likewise.
7123 (TYPE_P): Likewise.
7124 (DECL_P): Likewise.
7125 (INDIRECT_REF_P): Likewise.
7126 (REFERENCE_CLASS_P): Likewise.
7127 (COMPARISON_CLASS_P): Likewise.
7128 (UNARY_CLASS_P): Likewise.
7129 (BINARY_CLASS_P): Likewise.
7130 (STATEMENT_CLASS_P): Likewise.
7131 (VL_EXP_CLASS_P): Likewise.
7132 (EXPRESSION_CLASS_P): Likewise.
7133 (IS_TYPE_OR_DECL_P): Likewise.
7134
7135 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
7136
7137 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
7138 ADDR_EXPR in the defining statement.
7139
7140 2013-10-25 Richard Biener <rguenther@suse.de>
7141
7142 PR tree-optimization/58626
7143 * tree-loop-distribution.c (enum rdg_dep_type): Remove
7144 anti_dd, output_dd and input_dd.
7145 (struct rdg_edge): Remove level and relation members.
7146 (RDGE_LEVEL, RDGE_RELATION): Remove.
7147 (dot_rdg_1): Adjust.
7148 (create_rdg_edge_for_ddr): Remove.
7149 (create_rdg_edges_for_scalar): Adjust.
7150 (create_edge_for_control_dependence): Likewise.
7151 (create_rdg_edges): Split into ...
7152 (create_rdg_flow_edges): ... this
7153 (create_rdg_cd_edges): ... and this.
7154 (free_rdg): Adjust.
7155 (build_rdg): Likewise, do not compute data dependences or
7156 add edges for them.
7157 (pg_add_dependence_edges): New function.
7158 (pgcmp): Likewise.
7159 (distribute_loop): First apply all non-dependence based
7160 partition mergings. Then compute dependences between partitions
7161 and merge and order partitions according to them.
7162
7163 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
7164
7165 PR rtl-optimization/58831
7166 * alias.c (init_alias_analysis): At the beginning of each iteration,
7167 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
7168
7169 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
7170
7171 * recog.c (search_ofs): New static variable moved from...
7172 (peep2_find_free_register): ...here.
7173 (peephole2_optimize): Initialize it.
7174
7175 2013-10-25 Tobias Burnus <burnus@net-b.de>
7176
7177 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
7178
7179 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
7180
7181 * config/i386/i386.h (TARGET_MPX): New define.
7182 (TARGET_MPX_P): Ditto.
7183
7184 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
7185
7186 * config/i386/constraints.md (B): New.
7187 (Ti): New.
7188 (Tb): New.
7189 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
7190 * config/i386/i386-modes.def (BND32): New.
7191 (BND64): New.
7192 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
7193 * config/i386/i386.c (isa_opts): Add mmpx.
7194 (regclass_map): Add bound registers.
7195 (dbx_register_map): Likewise.
7196 (dbx64_register_map): Likewise.
7197 (svr4_dbx_register_map): Likewise.
7198 (PTA_MPX): New.
7199 (ix86_option_override_internal): Support MPX ISA.
7200 (ix86_conditional_register_usage): Support bound registers.
7201 (print_reg): Likewise.
7202 (ix86_code_end): Add MPX bnd prefix.
7203 (output_set_got): Likewise.
7204 (ix86_output_call_insn): Likewise.
7205 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
7206 (ix86_print_operand_punct_valid_p): Likewise.
7207 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
7208 UNSPEC_BNDMK_ADDR.
7209 (ix86_class_likely_spilled_p): Add bound regs support.
7210 (ix86_hard_regno_mode_ok): Likewise.
7211 (x86_order_regs_for_local_alloc): Likewise.
7212 (ix86_bnd_prefixed_insn_p): New.
7213 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
7214 (FIXED_REGISTERS): Add bound registers.
7215 (CALL_USED_REGISTERS): Likewise.
7216 (REG_ALLOC_ORDER): Likewise.
7217 (HARD_REGNO_NREGS): Likewise.
7218 (TARGET_MPX): New.
7219 (VALID_BND_REG_MODE): New.
7220 (FIRST_BND_REG): New.
7221 (LAST_BND_REG): New.
7222 (reg_class): Add BND_REGS.
7223 (REG_CLASS_NAMES): Likewise.
7224 (REG_CLASS_CONTENTS): Likewise.
7225 (BND_REGNO_P): New.
7226 (ANY_BND_REG_P): New.
7227 (BNDmode): New.
7228 (HI_REGISTER_NAMES): Add bound registers.
7229 * config/i386/i386.md (UNSPEC_BNDMK): New.
7230 (UNSPEC_BNDMK_ADDR): New.
7231 (UNSPEC_BNDSTX): New.
7232 (UNSPEC_BNDLDX): New.
7233 (UNSPEC_BNDLDX_ADDR): New.
7234 (UNSPEC_BNDCL): New.
7235 (UNSPEC_BNDCU): New.
7236 (UNSPEC_BNDCN): New.
7237 (UNSPEC_MPX_FENCE): New.
7238 (BND0_REG): New.
7239 (BND1_REG): New.
7240 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
7241 (length_immediate): Likewise.
7242 (prefix_0f): Likewise.
7243 (memory): Likewise.
7244 (prefix_rep): Check for bnd prefix.
7245 (length_nobnd): New.
7246 (length): Use length_nobnd if specified.
7247 (BND): New.
7248 (bnd_ptr): New.
7249 (BNDCHECK): New.
7250 (bndcheck): New.
7251 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
7252 (*jcc_2): Likewise.
7253 (jump): Likewise.
7254 (simple_return_internal): Likewise.
7255 (simple_return_pop_internal): Likewise.
7256 (*indirect_jump): Add MPX bnd prefix.
7257 (*tablejump_1): Likewise.
7258 (simple_return_internal_long): Likewise.
7259 (simple_return_indirect_internal): Likewise.
7260 (<mode>_mk): New.
7261 (*<mode>_mk): New.
7262 (mov<mode>): New.
7263 (*mov<mode>_internal_mpx): New.
7264 (<mode>_<bndcheck>): New.
7265 (*<mode>_<bndcheck>): New.
7266 (<mode>_ldx): New.
7267 (*<mode>_ldx): New.
7268 (<mode>_stx): New.
7269 (*<mode>_stx): New.
7270 * config/i386/predicates.md (lea_address_operand): Rename to...
7271 (address_no_seg_operand): ... this.
7272 (address_mpx_no_base_operand): New.
7273 (address_mpx_no_index_operand): New.
7274 (bnd_mem_operator): New.
7275 * config/i386/i386.opt (mmpx): New.
7276 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
7277 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
7278
7279 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
7280
7281 * mode-classes.def (MODE_POINTER_BOUNDS): New.
7282 * tree.def (POINTER_BOUNDS_TYPE): New.
7283 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
7284 (POINTER_BOUNDS_MODE): New.
7285 (make_pointer_bounds_mode): New.
7286 * machmode.h (POINTER_BOUNDS_MODE_P): New.
7287 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
7288 (layout_type): Support POINTER_BOUNDS_TYPE.
7289 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
7290 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
7291 (type_contains_placeholder_1): Likewise.
7292 * tree.h (POINTER_BOUNDS_TYPE_P): New.
7293 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
7294 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
7295
7296 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
7297
7298 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
7299 mode of address computation when calling memory_address_addr_space.
7300
7301 2013-08-24 Richard Henderson <rth@twiddle.net>
7302
7303 PR rtl/58542
7304 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
7305 instead of create_convert_operand_to.
7306 (maybe_emit_sync_lock_test_and_set): Likewise.
7307 (expand_atomic_compare_and_swap): Likewise.
7308 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
7309
7310 2013-08-24 Sriraman Tallam <tmsriram@google.com>
7311
7312 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
7313 Change param_is to use the struct and not the pointer to the struct.
7314
7315 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
7316
7317 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
7318 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
7319 Move to targhooks.c.
7320 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
7321 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
7322 Relocate from gimplify.c.
7323 * targhooks.h: Add 2 prototypes.
7324 * tree.h: Delete 2 prototypes.
7325
7326 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
7327
7328 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
7329 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
7330
7331 2013-10-24 Cong Hou <congh@google.com>
7332
7333 * convert.c (convert_to_real): Guard those unsafe math function
7334 convertions with flag_unsafe_math_optimizations. Handle sqrt()
7335 specially.
7336
7337 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
7338
7339 PR ipa/58712
7340 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
7341 as argument.
7342 (cgraph_create_edge): Use the new argument.
7343 (cgraph_create_indirect_edge): Likewise.
7344
7345 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
7346
7347 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
7348 TYPE_UNCOND_BRANCH.
7349 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
7350 changes statep->state.
7351
7352 2013-10-24 Tobias Burnus <burnus@net-b.de>
7353
7354 PR other/33426
7355 * tree-cfg.c (replace_loop_annotate): New function.
7356 (execute_build_cfg): Call it.
7357 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
7358 * internal-fn.c (expand_ANNOTATE): New function.
7359 * internal-fn.def (ANNOTATE): Define as new internal function.
7360 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
7361 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
7362 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
7363 * doc/extend.texi (Pragmas): Document #pragma ivdep.
7364 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
7365
7366 2013-10-17 Ian Bolton <ian.bolton@arm.com>
7367 Marcus Shawcroft <marcus.shawcroft@arm.com>
7368
7369 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
7370 Special case reload SP+C into none GENERAL_REGS.
7371
7372 2013-10-24 Michael Matz <matz@suse.de>
7373
7374 * gengtype.c (is_file_equal): Check that files will be same length.
7375
7376 2013-10-25 Christian Bruel <christian.bruel@st.com>
7377
7378 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
7379 * config/sh/t-sh (sh-mem.o): New rule.
7380 * config/sh/sh-mem.cc (expand_block_move): Moved here.
7381 (sh_expand_cmpstr): New function.
7382 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
7383 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
7384 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
7385 (rotlhi3_8): Rename.
7386
7387 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7388
7389 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
7390 * Makefile.in (CXXDEPMODE): Assign and change users.
7391 (CCDEPMODE): Delete.
7392 * configure: Regenerate.
7393
7394 2013-10-23 David Malcolm <dmalcolm@redhat.com>
7395
7396 * gengtype-parse.c (require_without_advance): New.
7397 (type): For GTY-marked types that are not GTY((user)), parse any
7398 base classes, requiring them to be single-inheritance, and not
7399 be templates. For non-GTY-marked types and GTY((user)),
7400 continue to skip over any C++ inheritance specification.
7401 * gengtype-state.c (state_writer::write_state_struct_type):
7402 Write base class of type (if any).
7403 (read_state_struct_type): Read base class of type (if any).
7404 * gengtype.c (new_structure): Add a "base_class" parameter.
7405 (create_optional_field_): Update for new parameter to new_structure.
7406 (adjust_field_rtx_def): Likewise.
7407 (adjust_field_tree_exp): Likewise.
7408 * gengtype.h (struct type): Add "base_class" field to the s
7409 union field.
7410 (new_structure): Add "base" parameter.
7411
7412 2013-10-23 Sriraman Tallam <tmsriram@google.com>
7413
7414 PR target/57756
7415 * config/i386/i386.c (ix86_option_override_internal):
7416 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
7417 (ix86_valid_target_attribute_tree):
7418 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
7419 Change TARGET_SSE to TARGET_SSE_P (opts->...)
7420
7421 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
7422
7423 * tree-ssa-loop.h: Remove include files.
7424 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7425 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
7426 * graphite-clast-to-gimple.c: Likewise.
7427 * graphite-scop-detection.c: Likewise.
7428 * graphite-sese-to-poly.c: Likewise.
7429 * ipa-inline-analysis.c: Likewise.
7430 * ipa-pure-const.c: Likewise.
7431 * loop-init.c: Likewise.
7432 * passes.c: Likewise.
7433 * predict.c: Likewise.
7434 * tree-cfg.c: Likewise.
7435 * tree-cfgcleanup.c: Likewise.
7436 * tree-chrec.c: Likewise.
7437 * tree-data-ref.c: Likewise.
7438 * tree-loop-distribution.c: Likewise.
7439 * tree-parloops.c: Likewise.
7440 * tree-predcom.c: Likewise.
7441 * tree-scalar-evolution.c: Likewise.
7442 * tree-ssa-address.c: Likewise.
7443 * tree-ssa.c: Likewise.
7444 * tree-ssa-dce.c: Likewise.
7445 * tree-ssa-loop.c: Likewise.
7446 * tree-ssa-loop-im.c: Likewise.
7447 * tree-ssa-loop-ivcanon.c: Likewise.
7448 * tree-ssa-loop-ivopts.c: Likewise.
7449 * tree-ssa-loop-manip.c: Likewise.
7450 * tree-ssa-loop-niter.c: Likewise.
7451 * tree-ssa-loop-prefetch.c: Likewise.
7452 * tree-ssa-loop-unswitch.c: Likewise.
7453 * tree-ssa-reassoc.c: Likewise.
7454 * tree-vect-data-refs.c: Likewise.
7455 * tree-vect-loop.c: Likewise.
7456 * tree-vect-loop-manip.c: Likewise.
7457 * tree-vectorizer.c: Likewise.
7458 * tree-vect-stmts.c: Likewise.
7459 * tree-vrp.c: Likewise.
7460
7461 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7462
7463 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
7464
7465 2013-10-23 Jakub Jelinek <jakub@redhat.com>
7466
7467 PR tree-optimization/58775
7468 PR tree-optimization/58791
7469 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
7470 (insert_stmt_after): Rewritten, don't move the stmt, but really
7471 insert it.
7472 (get_stmt_uid_with_default): Remove.
7473 (build_and_add_sum): Use insert_stmt_after and
7474 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
7475 (update_range_test): Set uid on stmts added by
7476 force_gimple_operand_gsi. Don't immediately modify statements
7477 in inter-bb optimization, just update oe->op values.
7478 (optimize_range_tests): Return bool whether any changed have been made.
7479 (update_ops): New function.
7480 (struct inter_bb_range_test_entry): New type.
7481 (maybe_optimize_range_tests): Perform statement changes here.
7482 (not_dominated_by, appears_later_in_bb, get_def_stmt,
7483 ensure_ops_are_available): Remove.
7484 (find_insert_point): Rewritten.
7485 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
7486 return LHS of the (new resp. old) stmt. Don't call
7487 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
7488 instead of last, move new stmt at the right place.
7489 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
7490 (negate_value): Likewise. Set uids.
7491 (break_up_subtract_bb): Initialize uids.
7492 (reassociate_bb): Adjust rewrite_expr_tree caller.
7493 (do_reassoc): Don't call renumber_gimple_stmt_uids.
7494
7495 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
7496
7497 PR target/58838
7498 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
7499 TARGET_32BIT final condition.
7500 (mulsi3_internal2 and splitter): Same.
7501
7502 2013-10-23 Jeff Law <law@redhat.com>
7503
7504 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
7505 through joiner blocks with abnormal outgoing edges.
7506
7507 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
7508 Add parameter JOINERS, to allow/disallow threading through joiner
7509 blocks.
7510 (thread_block): New. Call thread_block_1.
7511 (mark_threaded_blocks): Remove code to filter out certain cases
7512 of threading through joiner blocks.
7513 (thread_through_all_blocks): Document how we can have a dangling
7514 edge AUX field and clear it.
7515
7516 2013-10-23 Ian Lance Taylor <iant@google.com>
7517
7518 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
7519 (C++ Dialect Options): Likewise.
7520 (Optimize Options): Likewise.
7521
7522 2013-10-23 Tom de Vries <tom@codesourcery.com>
7523
7524 PR tree-optimization/58805
7525 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
7526
7527 2013-10-23 Jakub Jelinek <jakub@redhat.com>
7528
7529 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
7530 sequence based on get_range_info returned range.
7531
7532 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
7533
7534 * tree-ssa.h: Remove all #include's
7535 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7536 * alias.c: Move required includes from tree-ssa.h.
7537 * asan.c: Likewise.
7538 * builtins.c: Likewise.
7539 * calls.c: Likewise.
7540 * cfgexpand.c: Likewise.
7541 * cfghooks.c: Likewise.
7542 * cfgloop.c: Likewise.
7543 * cfgloopmanip.c: Likewise.
7544 * cgraph.c: Likewise.
7545 * cgraphbuild.c: Likewise.
7546 * cgraphclones.c: Likewise.
7547 * cgraphunit.c: Likewise.
7548 * dse.c: Likewise.
7549 * except.c: Likewise.
7550 * expr.c: Likewise.
7551 * final.c: Likewise.
7552 * fold-const.c: Likewise.
7553 * ggc-page.c: Likewise.
7554 * gimple-builder.c: Likewise.
7555 * gimple-fold.c: Likewise.
7556 * gimple-iterator.c: Likewise.
7557 * gimple-low.c: Likewise.
7558 * gimple-pretty-print.c: Likewise.
7559 * gimple-ssa-strength-reduction.c: Likewise.
7560 * gimple-streamer-in.c: Likewise.
7561 * gimple-streamer-out.c: Likewise.
7562 * gimplify.c: Likewise.
7563 * graphite-blocking.c: Likewise.
7564 * graphite-clast-to-gimple.c: Likewise.
7565 * graphite-dependences.c: Likewise.
7566 * graphite-interchange.c: Likewise.
7567 * graphite-optimize-isl.c: Likewise.
7568 * graphite-poly.c: Likewise.
7569 * graphite-scop-detection.c: Likewise.
7570 * graphite-sese-to-poly.c: Likewise.
7571 * graphite.c: Likewise.
7572 * ipa-cp.c: Likewise.
7573 * ipa-inline-analysis.c: Likewise.
7574 * ipa-inline-transform.c: Likewise.
7575 * ipa-inline.c: Likewise.
7576 * ipa-prop.c: Likewise.
7577 * ipa-pure-const.c: Likewise.
7578 * ipa-reference.c: Likewise.
7579 * ipa-split.c: Likewise.
7580 * ipa-utils.c: Likewise.
7581 * loop-init.c: Likewise.
7582 * lto-cgraph.c: Likewise.
7583 * lto-section-in.c: Likewise.
7584 * lto-section-out.c: Likewise.
7585 * lto-streamer-in.c: Likewise.
7586 * lto-streamer-out.c: Likewise.
7587 * lto-streamer.c: Likewise.
7588 * omp-low.c: Likewise.
7589 * passes.c: Likewise.
7590 * predict.c: Likewise.
7591 * print-tree.c: Likewise.
7592 * profile.c: Likewise.
7593 * sese.c: Likewise.
7594 * targhooks.c: Likewise.
7595 * tracer.c: Likewise.
7596 * trans-mem.c: Likewise.
7597 * tree-call-cdce.c: Likewise.
7598 * tree-cfg.c: Likewise.
7599 * tree-cfgcleanup.c: Likewise.
7600 * tree-chrec.c: Likewise.
7601 * tree-complex.c: Likewise.
7602 * tree-data-ref.c: Likewise.
7603 * tree-dfa.c: Likewise.
7604 * tree-eh.c: Likewise.
7605 * tree-emutls.c: Likewise.
7606 * tree-if-conv.c: Likewise.
7607 * tree-inline.c: Likewise.
7608 * tree-into-ssa.c: Likewise.
7609 * tree-loop-distribution.c: Likewise.
7610 * tree-mudflap.c: Likewise.
7611 * tree-nested.c: Likewise.
7612 * tree-nrv.c: Likewise.
7613 * tree-object-size.c: Likewise.
7614 * tree-outof-ssa.c: Likewise.
7615 * tree-parloops.c: Likewise.
7616 * tree-phinodes.c: Likewise.
7617 * tree-predcom.c: Likewise.
7618 * tree-pretty-print.c: Likewise.
7619 * tree-profile.c: Likewise.
7620 * tree-scalar-evolution.c: Likewise.
7621 * tree-sra.c: Likewise.
7622 * tree-ssa-address.c: Likewise.
7623 * tree-ssa-alias.c: Likewise.
7624 * tree-ssa-ccp.c: Likewise.
7625 * tree-ssa-coalesce.c: Likewise.
7626 * tree-ssa-copy.c: Likewise.
7627 * tree-ssa-copyrename.c: Likewise.
7628 * tree-ssa-dce.c: Likewise.
7629 * tree-ssa-dom.c: Likewise.
7630 * tree-ssa-dse.c: Likewise.
7631 * tree-ssa-forwprop.c: Likewise.
7632 * tree-ssa-ifcombine.c: Likewise.
7633 * tree-ssa-live.c: Likewise.
7634 * tree-ssa-loop-ch.c: Likewise.
7635 * tree-ssa-loop-im.c: Likewise.
7636 * tree-ssa-loop-ivcanon.c: Likewise.
7637 * tree-ssa-loop-ivopts.c: Likewise.
7638 * tree-ssa-loop-manip.c: Likewise.
7639 * tree-ssa-loop-niter.c: Likewise.
7640 * tree-ssa-loop-prefetch.c: Likewise.
7641 * tree-ssa-loop-unswitch.c: Likewise.
7642 * tree-ssa-loop.c: Likewise.
7643 * tree-ssa-math-opts.c: Likewise.
7644 * tree-ssa-operands.c: Likewise.
7645 * tree-ssa-phiopt.c: Likewise.
7646 * tree-ssa-phiprop.c: Likewise.
7647 * tree-ssa-pre.c: Likewise.
7648 * tree-ssa-propagate.c: Likewise.
7649 * tree-ssa-reassoc.c: Likewise.
7650 * tree-ssa-sccvn.c: Likewise.
7651 * tree-ssa-sink.c: Likewise.
7652 * tree-ssa-strlen.c: Likewise.
7653 * tree-ssa-structalias.c: Likewise.
7654 * tree-ssa-tail-merge.c: Likewise.
7655 * tree-ssa-ter.c: Likewise.
7656 * tree-ssa-threadedge.c: Likewise.
7657 * tree-ssa-threadupdate.c: Likewise.
7658 * tree-ssa-uncprop.c: Likewise.
7659 * tree-ssa-uninit.c: Likewise.
7660 * tree-ssa.c: Likewise.
7661 * tree-ssanames.c: Likewise.
7662 * tree-stdarg.c: Likewise.
7663 * tree-streamer-in.c: Likewise.
7664 * tree-switch-conversion.c: Likewise.
7665 * tree-tailcall.c: Likewise.
7666 * tree-vect-data-refs.c: Likewise.
7667 * tree-vect-generic.c: Likewise.
7668 * tree-vect-loop-manip.c: Likewise.
7669 * tree-vect-loop.c: Likewise.
7670 * tree-vect-patterns.c: Likewise.
7671 * tree-vect-slp.c: Likewise.
7672 * tree-vect-stmts.c: Likewise.
7673 * tree-vectorizer.c: Likewise.
7674 * tree-vrp.c: Likewise.
7675 * tree.c: Likewise.
7676 * tsan.c: Likewise.
7677 * value-prof.c: Likewise.
7678 * var-tracking.c: Likewise.
7679 * varpool.c: Likewise.
7680 * vtable-verify.c: Likewise.
7681
7682 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7683
7684 * config/tilegx/tilegx.c: Include "tree.h".
7685
7686 2013-10-23 Jakub Jelinek <jakub@redhat.com>
7687
7688 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
7689 the info, not after it.
7690 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
7691 dump_ssaname_info call.
7692 (pp_gimple_stmt_1): Adjust caller.
7693 (dump_phi_nodes): Likewise. Don't print "# " here.
7694
7695 2013-10-22 Jan Hubicka <jh@suse.cz>
7696
7697 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
7698 tuning flag.
7699 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
7700 * i386.c (expand_small_movmem_or_setmem): New function.
7701 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
7702 function.
7703 (alg_usable_p): Add support for value ranges; cleanup.
7704 (ix86_expand_set_or_movmem): Add support for misaligned moves.
7705
7706 2013-10-22 Sterling Augustine <saugustine@google.com>
7707
7708 * doc/invoke.texi: Document -ggnu-pubnames.
7709 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
7710 logic.
7711 * dwarf2out.c: Include gdb/gdb-index.h.
7712 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
7713 debug_generate_pub_sections.
7714 (is_java, output_pubtables, output_pubname): New functions.
7715 (include_pubname_in_output): Handle debug_generate_pub_sections at
7716 level 2.
7717 (size_of_pubnames): Use new local space_for_flags based on
7718 debug_generate_pub_sections.
7719 (output_pubnames): Unify pubnames and pubtypes output logic.
7720 Genericize comments. Call output_pubname.
7721 (dwarf2out_finish): Move logic to output_pubnames and call it.
7722
7723 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
7724
7725 PR target/58779
7726 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
7727 Remove CCCmode handling.
7728 <case LTU>: Return 'c' suffix for CCCmode.
7729 <case GEU>: Return 'nc' suffix for CCCmode.
7730 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
7731 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
7732 (*sub<mode>3_cc_overflow): Ditto.
7733 (*subsi3_zext_cc_overflow): Ditto.
7734
7735 2013-10-22 Steve Ellcey <sellcey@mips.com>
7736
7737 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
7738 (AND (NOT OP1) (NOT OP2)).
7739
7740 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
7741
7742 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
7743 meaning of merge-high and merge-low masks for little endian; avoid
7744 use of vector-pack masks for little endian for mismatched modes.
7745
7746 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7747
7748 * config/tilepro/tilepro.c: Include "tree.h".
7749
7750 2013-10-22 Andreas Schwab <schwab@suse.de>
7751
7752 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
7753 with PRE_DEC.
7754
7755 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
7756
7757 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
7758 [Ed Smith-Rowland]): New entries.
7759 ([Stephen M. Webb]): Update.
7760
7761 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
7762
7763 * tree-ssa-ter.h: Remove duplicate copy of file contents.
7764
7765 2013-10-21 Marek Polacek <polacek@redhat.com>
7766
7767 PR middle-end/58809
7768 * fold-const.c (fold_range_test): Return 0 if the type is not
7769 an integral type.
7770
7771 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
7772
7773 * system.h: Move hwint.h include further down.
7774 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
7775 gcc_checking_asserts.
7776 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
7777
7778 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7779
7780 Fix volatile issues in optimize_bit_field_compare.
7781 * fold-const.c (optimize_bit_field_compare): Bail out if
7782 lvolatilep or rvolatilep.
7783
7784 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7785
7786 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
7787 and get_inner_reference returning different pmode for non-volatile
7788 bit-field members dependent on flag_strict_volatile_bitfields.
7789 * stor-layout.c (layout_decl): Remove special handling of
7790 flag_strict_volatile_bitfields.
7791 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
7792 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
7793
7794 2013-10-21 Paulo Matos <pmatos@broadcom.com>
7795
7796 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
7797 calculations.
7798
7799 2013-10-21 Jeff Law <law@redhat.com>
7800
7801 * tree-ssa-threadedge.c (thread_through_normal_block): New
7802 argument VISITED. Remove VISISTED as a local variable. When we
7803 have a threadable jump, verify the destination of the jump has not
7804 been visised.
7805 (thread_across_edge): Allocate VISITED bitmap once at function
7806 scope and use it throughout. Make sure to set appropriate bits in
7807 VISITED for E (start of jump thread path).
7808 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
7809 through a joiner if any edge on the path has a recorded jump thread.
7810
7811 2013-10-21 Ian Lance Taylor <iant@google.com>
7812
7813 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
7814 don't imply that attributes can solve all problems.
7815 (Directory Options): Fix typo.
7816
7817 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7818
7819 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
7820 extend and extend_add.
7821
7822 2013-10-21 Richard Biener <rguenther@suse.de>
7823
7824 PR tree-optimization/58794
7825 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
7826 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
7827
7828 2013-10-21 Richard Biener <rguenther@suse.de>
7829
7830 PR middle-end/58742
7831 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
7832 to (T) X for sign-changing conversions (or no conversion).
7833
7834 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
7835
7836 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
7837
7838 2013-10-20 Jan Hubicka <jh@suse.cz>
7839
7840 * config/i386/i386-tune.def: Add comment; organize into categories
7841
7842 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
7843
7844 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
7845 argument. Update function comment.
7846 (expand_set_or_movmem_via_rep): New function combining
7847 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
7848 (expand_movmem_via_rep_mov): Remove.
7849 expand_setmem_via_rep_stos): Remove.
7850 (expand_movmem_epilogue): Update calls correspondingly.
7851 (expand_setmem_epilogue_via_loop): Likewise.
7852 (emit_memset): New.
7853 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
7854 (expand_set_or_movmem_prologue): New function combining
7855 expand_movmem_prologue and expand_setmem_prologue.
7856 (expand_movmem_prologue): Remove.
7857 (expand_setmem_prologue): Remove.
7858 (expand_set_or_movmem_constant_prologue): New function combining
7859 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
7860 (expand_constant_movmem_prologue): Remove.
7861 (expand_constant_setmem_prologue): Remove.
7862 (promote_duplicated_reg): Allow vector-const0 value.
7863 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
7864 and ix86_expand_setmem.
7865 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
7866 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
7867
7868 2013-10-21 Diego Novillo <dnovillo@google.com>
7869
7870 * asan.c: Include tree.h
7871 * bb-reorder.c: Likewise.
7872 * cfgcleanup.c: Likewise.
7873 * cfgloopmanip.c: Likewise.
7874 * data-streamer-in.c: Likewise.
7875 * data-streamer-out.c: Likewise.
7876 * data-streamer.c: Likewise.
7877 * dwarf2cfi.c: Likewise.
7878 * graphite-blocking.c: Likewise.
7879 * graphite-clast-to-gimple.c: Likewise.
7880 * graphite-dependences.c: Likewise.
7881 * graphite-interchange.c: Likewise.
7882 * graphite-optimize-isl.c: Likewise.
7883 * graphite-poly.c: Likewise.
7884 * graphite-scop-detection.c: Likewise.
7885 * graphite-sese-to-poly.c: Likewise.
7886 * graphite.c: Likewise.
7887 * ipa-devirt.c: Likewise.
7888 * ipa-profile.c: Likewise.
7889 * ipa.c: Likewise.
7890 * ira.c: Likewise.
7891 * loop-init.c: Likewise.
7892 * loop-unroll.c: Likewise.
7893 * lower-subreg.c: Likewise.
7894 * lto/lto-object.c: Likewise.
7895 * recog.c: Likewise.
7896 * reginfo.c: Likewise.
7897 * tree-loop-distribution.c: Likewise.
7898 * tree-parloops.c: Likewise.
7899 * tree-ssa-strlen.c: Likewise.
7900 * tree-streamer.c: Likewise.
7901 * value-prof.c: Likewise.
7902 * target-globals.c: Likewise.
7903 * expr.h: Include tree-core.h instead of tree.h.
7904 * gimple.h: Likewise.
7905 * ipa-prop.h: Likewise.
7906 * ipa-utils.h: Likewise.
7907 * lto-streamer.h: Likewise.
7908 * streamer-hooks.h: Likewise.
7909 * ipa-reference.h: Include cgraph.h instead of tree.h.
7910 * cgraph.h: Include basic-block.h instead of tree.h.
7911 * tree-streamer.h: Do not include tree.h.
7912 * genattrtab.c (write_header): Generate inclusion of tree.h.
7913 * genautomata.c (main): Likewise.
7914 * genemit.c: Likewise.
7915 * genopinit.c: Likewise.
7916 * genoutput.c (output_prologue): Likewise.
7917 * genpeep.c: Likewise.
7918
7919 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7920
7921 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
7922 little endian.
7923 (vec_unpacku_hi_v8hi): Likewise.
7924 (vec_unpacku_lo_v16qi): Likewise.
7925 (vec_unpacku_lo_v8hi): Likewise.
7926
7927 2013-10-20 Jan Hubicka <jh@suse.cz>
7928
7929 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
7930 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
7931 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
7932
7933 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
7934
7935 * config/mips/mips.h (ISA_HAS_WSBH): Define.
7936 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
7937 constants.
7938 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
7939
7940 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
7941
7942 PR target/58603
7943 * system.h: Undef m_slot.
7944
7945 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7946
7947 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
7948 all elements for both endian flavors.
7949
7950 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
7951
7952 PR target/58792
7953 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
7954 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
7955 and SI_REG for 64bit SYSV ABI targets.
7956
7957 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
7958
7959 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
7960 to multi_reg_return. Clarify that we are skipping USEs of multiple
7961 return registers. Use bool type where appropriate.
7962
7963 2013-10-18 Jan Hubicka <jh@suse.cz>
7964
7965 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
7966 for cold functions.
7967 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
7968 (X86_TUNE_PUSH_MEMORY): Likewise.
7969 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
7970 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
7971 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
7972 New.
7973 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
7974 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
7975 Remove.
7976 (ix86_option_override_internal): Update to use tune features instead
7977 of variables.
7978
7979 2013-10-18 Cong Hou <congh@google.com>
7980
7981 PR tree-optimization/58508
7982 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
7983 statement that contains data refs with zero-step.
7984
7985 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
7986
7987 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
7988 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
7989 * gimple-low.c (gimple_check_call_arg,
7990 gimple_check_call_matching_types): Move to cgraph.c.
7991 * gimple-low.h: Remove prototype.
7992 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
7993 Relocate from gimple-low.c.
7994 * cgraph.h: Add prototype. Don't include basic-block.h.
7995 * gimplify.c: Add gimple-low to include list.
7996 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
7997 * tree-eh.c: Add gimple-low to include list.
7998 * tree-nested.c: Likewise.
7999 * cfgexpand.c: Add tree-ssa-address.h to include list.
8000 * expr.c: Likewise.
8001 * gimple-fold.c: Likewise.
8002 * gimple-ssa-strength-reduction.c: Likewise.
8003 * trans-mem.c: Likewise.
8004 * tree-mudflap.c: Likewise.
8005 * tree-ssa-loop-ivopts.c: Likewise.
8006 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
8007 (degenerate_phi_result): Move to tree-phinodes.c.
8008 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
8009 * tree-ssa-threadedge.c: Likewise.
8010 * tree-vrp.c: Likewise.
8011 * tree-phinodes.c (degenerate_phi_result): Relocate here.
8012 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
8013 * tree-phinodes.h (degenerate_phi_result): Add prototype.
8014 * tree-ssa-copy.c: Include tree-ssa-dom.h.
8015 * tree-ssa-forwprop.c: Likewise.
8016 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
8017 pass_data_cleanup_cfg_post_optimizing,
8018 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
8019 * tree-optimize.c: Delete File.
8020 * graphite.c: Include tree-cfgcleanup.h.
8021 * passes.c: Likewise.
8022 * tree-cfg.c: Likewise.
8023 * tree-profile.c: Likewise.
8024 * tree-ssa-dse.c: Likewise.
8025 * tree-ssa-loop-ivcanon.c: Likewise.
8026 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
8027 * tree-outof-ssa.c: Include sbitmap.h.
8028 * tree-ssa-live.c: Likewise.
8029 * tree-ssa-propagate.c: Likewise.
8030 * tree-ssa-structalias.c: Likewise.
8031 * tree-stdarg.c: Likewise.
8032 * Makefile.in (OBJS): Delete tree-optimize.o.
8033 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
8034 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
8035 * varasm.c: Include basic-block.h.
8036 * cfgloop.h: Include function.h instead of basic-block.h
8037 (bb_loop_depth): Move to cfgloop.c.
8038 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
8039
8040 2013-10-18 Teresa Johnson <tejohnson@google.com>
8041
8042 * predict.c (probably_never_executed): Compare frequency-based
8043 count to number of training runs.
8044 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
8045
8046 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8047
8048 * config/arm/arm.c (cortexa9_extra_costs): New table.
8049 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
8050
8051 2013-10-18 Jeff Law <law@redhat.com>
8052
8053 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
8054
8055 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
8056 (register_jump_thread): Add "registered_jump_thread" debug
8057 counter support.
8058 * dbgcnt.def (registered_jump_thread): New debug counter.
8059
8060 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
8061
8062 * config/rs6000/rs6000.c: Include cgraph.h.
8063
8064 2013-10-18 Teresa Johnson <tejohnson@google.com>
8065
8066 * tree-ssa-tail-merge.c (replace_block_by): Update edge
8067 weights during merging.
8068
8069 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
8070
8071 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
8072 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
8073 * tree-ssa-operands.h: Remove prototype.
8074 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
8075 * gimple.c (virtual_operand_p): Relocate from gimple.c.
8076 * gimple.h: Add prototype.
8077 * gimple-ssa.h: Include tree-ssa-operands.h.
8078 * tree-dump.c: Add tree-cfg.h to include list.
8079 * tree-ssa-alias.c: Add ipa-reference.h to include list.
8080 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
8081 * config/i386/i386.c: Don't include tree-flow.h.
8082 * config/rs6000/rs6000.c: Likewise.
8083
8084 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8085
8086 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
8087
8088 2013-10-18 Richard Biener <rguenther@suse.de>
8089
8090 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
8091 or TYPE_UNSIGNED of integral types.
8092 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
8093 NULL_TREE for zero-precision integral types.
8094
8095 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
8096
8097 * config/aarch64/arm_neon.h
8098 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
8099
8100 2013-10-17 Sriraman Tallam <tmsriram@google.com>
8101
8102 PR target/57756
8103 * opth-gen.awk: Define target_flags_explicit.
8104
8105 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
8106
8107 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
8108 fields to the reg_addr array that describes the valid addressing
8109 mode for any register, general purpose registers, floating point
8110 registers, and Altivec registers.
8111 (FIRST_RELOAD_REG_CLASS): Likewise.
8112 (LAST_RELOAD_REG_CLASS): Likewise.
8113 (struct reload_reg_map_type): Likewise.
8114 (reload_reg_map_type): Likewise.
8115 (RELOAD_REG_VALID): Likewise.
8116 (RELOAD_REG_MULTIPLE): Likewise.
8117 (RELOAD_REG_INDEXED): Likewise.
8118 (RELOAD_REG_OFFSET): Likewise.
8119 (RELOAD_REG_PRE_INCDEC): Likewise.
8120 (RELOAD_REG_PRE_MODIFY): Likewise.
8121 (reg_addr): Likewise.
8122 (mode_supports_pre_incdec_p): New helper functions to say whether
8123 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
8124 (mode_supports_pre_modify_p): Likewise.
8125 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
8126 print the valid address mode bits for each mode.
8127 (rs6000_debug_print_mode): Likewise.
8128 (rs6000_debug_reg_global): Likewise.
8129 (rs6000_setup_reg_addr_masks): New function to set up the address
8130 mask bits for each type.
8131 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
8132 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
8133 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
8134 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
8135 PRE_MODIFY are supported.
8136 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
8137 registers, instead of {src,dest}_av_p.
8138 (rs6000_print_options_internal): Tweak the debug output slightly.
8139
8140 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
8141
8142 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
8143 isa attribute.
8144
8145 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
8146
8147 * tree-flow.h (struct omp_region): Move to omp-low.c.
8148 Remove omp_ prototypes and variables.
8149 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
8150 (copy_var_decl): Relocate prototype from tree-flow.h.
8151 * gimple.c (copy_var_decl): Relocate from omp-low.c.
8152 * tree.h: Move prototype to omp-low.h.
8153 * omp-low.h: New File. Relocate prototypes here.
8154 * omp-low.c (struct omp_region): Make local here.
8155 (root_omp_region): Make static.
8156 (copy_var_decl) Move to gimple.c.
8157 (new_omp_region): Make static.
8158 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
8159 * tree-cfg.c: Include omp-low.h.
8160 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
8161 * gimplify.c: Include omp-low.h.
8162 * tree-parloops.c: Likewise.
8163
8164 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
8165
8166 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
8167 operands are in memory, prefer to force non-matched operand 1 to
8168 the register.
8169
8170 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
8171
8172 PR target/58673
8173 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
8174 restrict TImode addresses to single indirect registers if both
8175 -mquad-memory and -mvsx-timode are used.
8176 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
8177 we should emit load/store quad. Remove using %y for quad memory
8178 addresses.
8179
8180 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
8181 constraints to allow load/store quad on machines where TImode is
8182 not allowed in VSX registers. Use 'n' instead of 'F' constraint
8183 for TImode to load integer constants.
8184
8185 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8186
8187 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
8188
8189 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
8190
8191 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
8192 handling of STACK_REG.
8193
8194 2013-10-17 Richard Biener <rguenther@suse.de>
8195
8196 PR tree-optimization/58143
8197 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
8198 New function.
8199 (rewrite_to_defined_overflow): Likewise.
8200 (move_computations_dom_walker::before_dom): Rewrite stmts
8201 with undefined signed overflow that are not always executed
8202 into unsigned arithmetic.
8203
8204 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
8205
8206 PR target/57756
8207 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
8208 explicit isa flag to be an options variable, instead of using
8209 global_options_set. Remove define from rs6000.h.
8210 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
8211
8212 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8213 Initialize rs6000_isa_flags_explicit.
8214 (rs6000_function_specific_save): Add gcc_options* parameter, so
8215 that the powerpc builds after the 2013-10-15 changes.
8216 (rs6000_function_specific_restore): Likewise.
8217
8218 2013-10-16 DJ Delorie <dj@redhat.com>
8219
8220 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
8221 op is a REG before checking REGNO.
8222 (rl78_alloc_physical_registers): Verify pattern is a SET before
8223 checking SET_SRC.
8224
8225 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8226
8227 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
8228 endianness.
8229 (vec_unpacks_lo_v4sf): Likewise.
8230 (vec_unpacks_float_hi_v4si): Likewise.
8231 (vec_unpacks_float_lo_v4si): Likewise.
8232 (vec_unpacku_float_hi_v4si): Likewise.
8233 (vec_unpacku_float_lo_v4si): Likewise.
8234
8235 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8236
8237 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
8238 (vsx_concat_v2sf): Likewise.
8239
8240 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
8241
8242 * config/aarch64/aarch64.md
8243 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
8244
8245 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
8246
8247 PR tree-optimization/58697
8248 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
8249 estimated_loop_iterations_int.
8250 (max_stmt_executions_int): Call get_max_loop_iterations_int.
8251 (get_max_loop_iterations_int): New. HWINT version of
8252 get_max_loop_iterations.
8253 * cfgloop.h: Add prototypes.
8254 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
8255 * loop-unroll.c (decide_peel_once_rolling): Call
8256 get_estimated_loop_iterations_int.
8257 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
8258 * tree-ssa-loop-niter.h: Tweak prototypes.
8259
8260 2013-10-16 David Malcolm <dmalcolm@redhat.com>
8261
8262 * gengtype-parse.c (struct_field_seq): Ignore access-control
8263 keywords ("public:" etc).
8264
8265 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
8266
8267 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
8268 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
8269
8270 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
8271
8272 * config/arm/arm.opt (mlra): New option.
8273 * config/arm/arm.c (arm_lra_p): New function.
8274 (TARGET_LRA_P): Define.
8275
8276 2013-10-16 Paulo Matos <pmatos@broadcom.com>
8277
8278 * tree-core.h (tree_code_name): Remove.
8279 * tree.h (get_tree_code_name): New prototype.
8280 * tree.c (tree_code_name): Make static.
8281 (get_tree_code_name): New function.
8282 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
8283 tree_class_check_failed, tree_range_check_failed,
8284 tree_not_class_check_failed, omp_clause_check_failed,
8285 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
8286 wrapper get_tree_code_name instead of calling tree_code_name directly.
8287 * tree-vrp.c (dump_asserts_for): Likewise.
8288 * tree-dump.c (dequeue_and_dump): Likewise.
8289 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
8290 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
8291 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
8292 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
8293 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
8294 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
8295 dump_gimple_omp_for): Likewise.
8296 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
8297 * tree-ssa-pre.c (print_pre_expr): Likewise.
8298 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
8299 * print-tree.c (print_node_brief, print_node): Likewise.
8300 * gimple.c (gimple_check_failed): Likewise.
8301 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
8302 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
8303 * config/mep/mep.c (mep_validate_vliw): Likewise.
8304 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
8305 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
8306
8307 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8308
8309 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
8310 for AMD bdver3.
8311
8312 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
8313
8314 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
8315 (MULTILIB_MATCHES): Add multilib for -march=v8.
8316
8317 2013-10-15 Sriraman Tallam <tmsriram@google.com>
8318
8319 PR target/57756
8320 * optc-save-gen.awk: Add extra parameter to the save and restore
8321 target calls.
8322 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
8323 * tree.c (build_optimization_node): New parameter. Add extra parameter
8324 to call to cl_optimization_save.
8325 (build_target_option_node): New parameter. Add extra parameter
8326 to call to cl_target_option_save.
8327 * tree.h (build_optimization_node): New parameter.
8328 (build_target_option_node): New parameter.
8329 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
8330 build_optimization_node and build_target_option_node.
8331 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
8332 (handle_pragma_push_options): Ditto.
8333 * toplev.c (process_options): Ditto.
8334 * opts.c (init_options_struct): Check for opts_set non-null.
8335 * target.def (target_option.save): New parameter.
8336 (target_option.restore): New parameter.
8337 * tm.texi: Generate.
8338 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
8339 (ix86_pragma_target_parse): Ditto.
8340 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
8341 parameters.
8342 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
8343 to build_optimization_node and build_target_option_node.
8344 (rs6000_valid_attribute_p): Ditto.
8345 (rs6000_pragma_target_parse): Ditto.
8346 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
8347 data.
8348 * config/i386/i386.h:
8349 TARGET_64BIT_P: New Macro
8350 TARGET_MMX_P: New Macro.
8351 TARGET_3DNOW_P: New Macro.
8352 TARGET_3DNOW_A_P: New Macro.
8353 TARGET_SSE_P: New Macro.
8354 TARGET_SSE2_P: New Macro.
8355 TARGET_SSE3_P: New Macro.
8356 TARGET_SSSE3_P: New Macro.
8357 TARGET_SSE4_1_P: New Macro.
8358 TARGET_SSE4_2_P: New Macro.
8359 TARGET_AVX_P: New Macro.
8360 TARGET_AVX2_P: New Macro.
8361 TARGET_AVX512F_P: New Macro.
8362 TARGET_AVX512PF_P: New Macro.
8363 TARGET_AVX512ER_P: New Macro.
8364 TARGET_AVX512CD_P: New Macro.
8365 TARGET_FMA_P: New Macro.
8366 TARGET_SSE4A_P: New Macro.
8367 TARGET_FMA4_P: New Macro.
8368 TARGET_XOP_P: New Macro.
8369 TARGET_LWP_P: New Macro.
8370 TARGET_ABM_P: New Macro.
8371 TARGET_BMI_P: New Macro.
8372 TARGET_BMI2_P: New Macro.
8373 TARGET_LZCNT_P: New Macro.
8374 TARGET_TBM_P: New Macro.
8375 TARGET_POPCNT_P: New Macro.
8376 TARGET_SAHF_P: New Macro.
8377 TARGET_MOVBE_P: New Macro.
8378 TARGET_CRC32_P: New Macro.
8379 TARGET_AES_P: New Macro.
8380 TARGET_PCLMUL_P: New Macro.
8381 TARGET_CMPXCHG16B_P: New Macro.
8382 TARGET_FSGSBASE_P: New Macro.
8383 TARGET_RDRND_P: New Macro.
8384 TARGET_F16C_P: New Macro.
8385 TARGET_RTM_P: New Macro.
8386 TARGET_HLE_P: New Macro.
8387 TARGET_RDSEED_P: New Macro.
8388 TARGET_PRFCHW_P: New Macro.
8389 TARGET_ADX_P: New Macro.
8390 TARGET_FXSR_P: New Macro.
8391 TARGET_XSAVE_P: New Macro.
8392 TARGET_XSAVEOPT_P: New Macro.
8393 TARGET_LP64_P: New Macro.
8394 TARGET_X32_P: New Macro.
8395 TARGET_FPMATH_DEFAULT_P: New Macro.
8396 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
8397 * config/i386/i386.c (ix86_option_override_internal): New parameters.
8398 opts and opts_set.
8399 Change ix86_tune_string to access opts->x_ix86_tune_string.
8400 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
8401 Change ix86_arch_string to access opts->x_ix86_arch_string.
8402 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
8403 Change ix86_pmode to access opts->x_ix86_pmode.
8404 Change ix86_abi to access opts->x_ix86_abi.
8405 Change ix86_cmodel to access opts->x_ix86_cmodel.
8406 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
8407 Change ix86_isa_flags_explicit to access
8408 opts->x_ix86_isa_flags_explicit.
8409 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
8410 Change ix86_regparm to access opts->x_ix86_regparm.
8411 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
8412 Change ix86_preferred_stack_boundary_arg to access
8413 opts->x_ix86_preferred_stack_boundary_arg.
8414 Change ix86_force_align_arg_pointer to access
8415 opts->x_ix86_force_align_arg_pointer.
8416 Change ix86_incoming_stack_boundar_arg to access
8417 opts->x_ix86_incoming_stack_boundar_arg.
8418 Change ix86_fpmath to access opts->x_ix86_fpmath.
8419 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
8420 Change ix86_recip_name to access opts->x_ix86_recip_name.
8421 Change ix86_stack_protector_guard to access
8422 opts->x_ix86_stack_protector_guard.
8423 Change ix86_tune_memcpy_strategy to access
8424 opts->x_ix86_tune_memcpy_strategy.
8425 Change ix86_tune_memset_strategy to access
8426 opts->x_ix86_tune_memset_strategy.
8427 Change global_options to access opts.
8428 Change global_options_set to access opts_set.
8429 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
8430 Change TARGET_MMX to TARGET_MMX_P (opts->...).
8431 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
8432 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
8433 Change TARGET_SSE to TARGET_SSE_P (opts->...).
8434 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
8435 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
8436 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
8437 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
8438 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
8439 Change TARGET_AVX to TARGET_AVX_P (opts->...).
8440 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
8441 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
8442 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
8443 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
8444 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
8445 Change TARGET_FMA to TARGET_FMA_P (opts->...).
8446 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
8447 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
8448 Change TARGET_XOP to TARGET_XOP_P (opts->...).
8449 Change TARGET_LWP to TARGET_LWP_P (opts->...).
8450 Change TARGET_ABM to TARGET_ABM_P (opts->...).
8451 Change TARGET_BMI to TARGET_BMI_P (opts->...).
8452 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
8453 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
8454 Change TARGET_TBM to TARGET_TBM_P (opts->...).
8455 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
8456 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
8457 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
8458 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
8459 Change TARGET_AES to TARGET_AES_P (opts->...).
8460 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
8461 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
8462 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
8463 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
8464 Change TARGET_F16C to TARGET_F16C_P (opts->...).
8465 Change TARGET_RTM to TARGET_RTM_P (opts->...).
8466 Change TARGET_HLE to TARGET_HLE_P (opts->...).
8467 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
8468 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
8469 Change TARGET_ADX to TARGET_ADX_P (opts->...).
8470 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
8471 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
8472 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
8473 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
8474 Change TARGET_X32 to TARGET_X32_P (opts->...).
8475 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
8476 Change TARGET_FLOAT_RETURNS_IN_80387 to
8477 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
8478 (ix86_function_specific_save): New parameter. Use opts-> fields
8479 to replace global fields.
8480 (ix86_function_specific_restore): Ditto.
8481 (ix86_valid_target_attribute_inner_p): New parameters.
8482 Fix recursive call.
8483 Fix call to ix86_handle_option and set_option.
8484 (ix86_valid_target_attribute_tree): New parameters.
8485 Change global_options to access opts.
8486 Change global_options_set to access opts_set.
8487 Fix call to ix86_valid_target_attribute_inner_p.
8488 Change ix86_tune_string to access opts->x_ix86_tune_string.
8489 Change ix86_arch_string to access opts->x_ix86_arch_string.
8490 Change ix86_fpmath to access opts->x_ix86_fpmath
8491 Fix call to ix86_option_override_internal.
8492 Fix call to ix86_add_new_builtins.
8493 Fix calls to build_optimization_node and build_target_option_node.
8494 (ix86_valid_target_attribute_p): Remove access to global_options.
8495 Use new gcc_options structure func_options.
8496 Fix call to ix86_valid_target_attribute_tree.
8497 Fix call to build_optimization_node.
8498 (get_builtin_code_for_version): Fix call to
8499 ix86_valid_target_attribute_tree.
8500
8501 2013-10-15 David Malcolm <dmalcolm@redhat.com>
8502
8503 * Makefile.in (PICFLAG): New.
8504 (enable_host_shared): New.
8505 (INTERNAL_CFLAGS): Use PICFLAG.
8506 (LIBIBERTY): Use pic build of libiberty.a if configured with
8507 --enable-host-shared.
8508 * configure.ac: Add --enable-host-shared, setting up new
8509 PICFLAG variable.
8510 * configure: Regenerate.
8511 * doc/install.texi (--enable-shared): Add note contrasting it with ...
8512 (--enable-host-shared): New option.
8513
8514 2013-10-15 Richard Biener <rguenther@suse.de>
8515
8516 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
8517 for built-in functions.
8518
8519 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
8520
8521 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
8522 (optimize_range_tests_1): New function,
8523 extracted from optimize_range_tests.
8524 (optimize_range_tests_xor): Similarly.
8525 (optimize_range_tests_diff): New function.
8526 (optimize_range_tests): Use optimize_range_tests_1.
8527
8528 2013-10-15 Cong Hou <congh@google.com>
8529
8530 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
8531 requirement of the reduction pattern so that one operand of the
8532 reduction operation can come from outside of the loop.
8533
8534 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8535
8536 * config/arm/neon-schedgen.ml: Remove.
8537 * config/arm/cortex-a9-neon.md: Remove comment regarding
8538 neon-schedgen.ml.
8539
8540 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8541
8542 * config/arm/types: Remove old neon types.
8543
8544 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8545
8546 * config/arm/cortex-a7.md
8547 (cortex_a7_neon_type): New.
8548 (cortex_a7_neon_mul): Update for new types.
8549 (cortex_a7_neon_mla): Likewise.
8550 (cortex_a7_neon): Likewise.
8551
8552 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8553
8554 * config/arm/cortex-a15-neon.md
8555 (cortex_a15_neon_type): New,
8556
8557 (cortex_a15_neon_int_1): Remove.
8558 (cortex_a15_neon_int_2): Likewise.
8559 (cortex_a15_neon_int_3): Likewise.
8560 (cortex_a15_neon_int_4): Likewise.
8561 (cortex_a15_neon_int_5): Likewise.
8562 (cortex_a15_neon_vqneg_vqabs): Likewise.
8563 (cortex_a15_neon_vmov): Likewise.
8564 (cortex_a15_neon_vaba): Likewise.
8565 (cortex_a15_neon_vaba_qqq): Likewise.
8566 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8567 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8568 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8569 Likewise.
8570 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8571 (cortex_a15_neon_mla_qqq_8_16): Likewise.
8572 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
8573 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8574 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8575 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
8576 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8577 (cortex_a15_neon_shift_1): Likewise.
8578 (cortex_a15_neon_shift_2): Likewise.
8579 (cortex_a15_neon_shift_3): Likewise.
8580 (cortex_a15_neon_vshl_ddd): Likewise.
8581 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8582 (cortex_a15_neon_vsra_vrsra): Likewise.
8583 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8584 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8585 (cortex_a15_neon_bp_3cycle): Likewise.
8586 (cortex_a15_neon_ldm_2): Likewise.
8587 (cortex_a15_neon_stm_2): Likewise.
8588 (cortex_a15_neon_mcr): Likewise.
8589 (cortex_a15_neon_mrc): Likewise.
8590 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
8591 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
8592 (cortex_a15_neon_fp_vmul_ddd): Likewise.
8593 (cortex_a15_neon_fp_vmul_qqd): Likewise.
8594 (cortex_a15_neon_fp_vmla_ddd): Likewise.
8595 (cortex_a15_neon_fp_vmla_qqq): Likewise.
8596 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8597 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8598 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8599 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8600 (cortex_a15_neon_bp_simple): Likewise.
8601 (cortex_a15_neon_bp_2cycle): Likewise.
8602 (cortex_a15_neon_bp_3cycle): Likewise.
8603 (cortex_a15_neon_vld1_1_2_regs): Likewise.
8604 (cortex_a15_neon_vld1_3_4_regs): Likewise.
8605 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8606 (cortex_a15_neon_vld2_4_regs): Likewise.
8607 (cortex_a15_neon_vld3_vld4): Likewise.
8608 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8609 (cortex_a15_neon_vst1_3_4_regs): Likewise.
8610 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
8611 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
8612 (cortex_a15_neon_vst3_vst4): Rename to...
8613 (cortex_a15_neon_vst4): This, update for new attributes.
8614 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
8615 (cortex_a15_neon_vld3_vld4_lane): Likewise.
8616 (cortex_a15_neon_vst1_vst2_lane): Likewise.
8617 (cortex_a15_neon_vst3_vst4_lane): Likewise.
8618 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
8619 (cortex_a15_neon_ldm_2): Likewise.
8620 (cortex_a15_neon_stm_2): Likewise.
8621 (cortex_a15_neon_mcr): Likewise.
8622 (cortex_a15_neon_mcr_2_mcrr): Likewise.
8623 (cortex_a15_neon_mrc): Likewise.
8624 (cortex_a15_neon_mrrc): Likewise.
8625
8626 (cortex_a15_neon_abd): New.
8627 (cortex_a15_neon_abd_q): Likewise.
8628 (cortex_a15_neon_aba): Likewise.
8629 (cortex_a15_neon_aba_q): Likewise.
8630 (cortex_a15_neon_acc): Likewise.
8631 (cortex_a15_neon_acc_q): Likewise.
8632 (cortex_a15_neon_arith_basic): Likewise.
8633 (cortex_a15_neon_arith_complex): Likewise.
8634 (cortex_a15_neon_multiply): Likewise.
8635 (cortex_a15_neon_multiply_q): Likewise.
8636 (cortex_a15_neon_mla): Likewise.
8637 (cortex_a15_neon_mla_q): Likewise.
8638 (cortex_a15_neon_sat_mla_long): Likewise.
8639 (cortex_a15_neon_shift_acc): Likewise.
8640 (cortex_a15_neon_shift_imm_basic): Likewise.
8641 (cortex_a15_neon_shift_imm_complex): Likewise.
8642 (cortex_a15_neon_shift_reg_basic): Likewise.
8643 (cortex_a15_neon_shift_reg_basic_q): Likewise.
8644 (cortex_a15_neon_shift_reg_complex): Likewise.
8645 (cortex_a15_neon_shift_reg_complex_q): Likewise.
8646 (cortex_a15_neon_fp_negabs): Likewise
8647 (cortex_a15_neon_fp_arith): Likewise
8648 (cortex_a15_neon_fp_arith_q): Likewise
8649 (cortex_a15_neon_fp_cvt_int): Likewise
8650 (cortex_a15_neon_fp_cvt_int_q): Likewise
8651 (cortex_a15_neon_fp_cvt_16): Likewise
8652 (cortex_a15_neon_fp_mul): Likewise
8653 (cortex_a15_neon_fp_mul_q): Likewise
8654 (cortex_a15_neon_fp_mla): Likewise
8655 (cortex_a15_neon_fp_mla_q): Likewise
8656 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
8657 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
8658 (cortex_a15_neon_bitops): Likewise.
8659 (cortex_a15_neon_bitops_q): Likewise.
8660 (cortex_a15_neon_from_gp): Likewise.
8661 (cortex_a15_neon_from_gp_q): Likewise.
8662 (cortex_a15_neon_tbl3_tbl4): Likewise.
8663 (cortex_a15_neon_zip_q): Likewise.
8664 (cortex_a15_neon_to_gp): Likewise.
8665 (cortex_a15_neon_load_a): Likewise.
8666 (cortex_a15_neon_load_b): Likewise.
8667 (cortex_a15_neon_load_c): Likewise.
8668 (cortex_a15_neon_load_d): Likewise.
8669 (cortex_a15_neon_load_e): Likewise.
8670 (cortex_a15_neon_load_f): Likewise.
8671 (cortex_a15_neon_store_a): Likewise.
8672 (cortex_a15_neon_store_b): Likewise.
8673 (cortex_a15_neon_store_c): Likewise.
8674 (cortex_a15_neon_store_d): Likewise.
8675 (cortex_a15_neon_store_e): Likewise.
8676 (cortex_a15_neon_store_f): Likewise.
8677 (cortex_a15_neon_store_g): Likewise.
8678 (cortex_a15_neon_store_h): Likewise.
8679 (cortex_a15_vfp_to_from_gp): Likewise.
8680
8681 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8682
8683 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
8684
8685 (cortex_a9_neon_vshl_ddd): Remove.
8686 (cortex_a9_neon_vst3_vst4): Likewise.
8687 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8688
8689 (cortex_a9_neon_bit_ops_q): New.
8690
8691 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
8692 (cortex_a9_neon_int_2): Likewise.
8693 (cortex_a9_neon_int_3): Likewise.
8694 (cortex_a9_neon_int_4): Likewise.
8695 (cortex_a9_neon_int_5): Likewise.
8696 (cortex_a9_neon_vqneg_vqabs): Likewise.
8697 (cortex_a9_neon_vmov): Likewise.
8698 (cortex_a9_neon_vaba): Likewise.
8699 (cortex_a9_neon_vaba_qqq): Likewise.
8700 (cortex_a9_neon_shift_1): Likewise.
8701 (cortex_a9_neon_shift_2): Likewise.
8702 (cortex_a9_neon_shift_3): Likewise.
8703 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8704 (cortex_a9_neon_vsra_vrsra): Likewise.
8705 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8706 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8707 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8708 Likewise.
8709 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8710 (cortex_a9_neon_mla_qqq_8_16): Likewise.
8711 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
8712 Likewise.
8713 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8714 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8715 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
8716 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8717 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
8718 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
8719 (cortex_a9_neon_fp_vsum): Likewise.
8720 (cortex_a9_neon_fp_vmul_ddd): Likewise.
8721 (cortex_a9_neon_fp_vmul_qqd): Likewise.
8722 (cortex_a9_neon_fp_vmla_ddd): Likewise.
8723 (cortex_a9_neon_fp_vmla_qqq): Likewise.
8724 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
8725 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
8726 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8727 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8728 (cortex_a9_neon_bp_simple): Likewise.
8729 (cortex_a9_neon_bp_2cycle): Likewise.
8730 (cortex_a9_neon_bp_3cycle): Likewise.
8731 (cortex_a9_neon_ldr): Likewise.
8732 (cortex_a9_neon_str): Likewise.
8733 (cortex_a9_neon_vld1_1_2_regs): Likewise.
8734 (cortex_a9_neon_vld1_3_4_regs): Likewise.
8735 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8736 (cortex_a9_neon_vld2_4_regs): Likewise.
8737 (cortex_a9_neon_vld3_vld4): Likewise.
8738 (cortex_a9_neon_vld1_vld2_lane): Likewise.
8739 (cortex_a9_neon_vld3_vld4_lane): Likewise.
8740 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8741 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8742 (cortex_a9_neon_vst1_3_4_regs): Likewise.
8743 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
8744 (cortex_a9_neon_vst1_vst2_lane): Likewise.
8745 (cortex_a9_neon_vst3_vst4_lane): Likewise.
8746 (cortex_a9_neon_mcr): Likewise.
8747 (cortex_a9_neon_mcr_2_mcrr): Likewise.
8748 (cortex_a9_neon_mrc): Likewise.
8749 (cortex_a9_neon_mrrc): Likewise.
8750
8751 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8752
8753 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
8754
8755 (cortex_a8_neon_vshl_ddd): Remove.
8756 (cortex_a8_neon_vst3_vst4): Likewise.
8757 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
8758
8759 (cortex_a8_neon_bit_ops_q): New.
8760
8761 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
8762 (cortex_a8_neon_int_2): Likewise..
8763 (cortex_a8_neon_int_3): Likewise.
8764 (cortex_a8_neon_int_5): Likewise.
8765 (cortex_a8_neon_vqneg_vqabs): Likewise.
8766 (cortex_a8_neon_int_4): Likewise.
8767 (cortex_a8_neon_vaba): Likewise.
8768 (cortex_a8_neon_vaba_qqq): Likewise.
8769 (cortex_a8_neon_shift_1): Likewise.
8770 (cortex_a8_neon_shift_2): Likewise.
8771 (cortex_a8_neon_shift_3): Likewise.
8772 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8773 (cortex_a8_neon_vsra_vrsra): Likewise.
8774 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8775 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8776 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8777 Likewise.
8778 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8779 (cortex_a8_neon_mla_qqq_8_16): Likewise.
8780 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
8781 Likewise.
8782 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8783 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8784 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
8785 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8786 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
8787 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
8788 (cortex_a8_neon_fp_vsum): Likewise.
8789 (cortex_a8_neon_fp_vmul_ddd): Likewise.
8790 (cortex_a8_neon_fp_vmul_qqd): Likewise.
8791 (cortex_a8_neon_fp_vmla_ddd): Likewise.
8792 (cortex_a8_neon_fp_vmla_qqq): Likewise.
8793 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
8794 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
8795 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8796 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8797 (cortex_a8_neon_bp_simple): Likewise.
8798 (cortex_a8_neon_bp_2cycle): Likewise.
8799 (cortex_a8_neon_bp_3cycle): Likewise.
8800 (cortex_a8_neon_ldr): Likewise.
8801 (cortex_a8_neon_str): Likewise.
8802 (cortex_a8_neon_vld1_1_2_regs): Likewise.
8803 (cortex_a8_neon_vld1_3_4_regs): Likewise.
8804 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8805 (cortex_a8_neon_vld2_4_regs): Likewise.
8806 (cortex_a8_neon_vld3_vld4): Likewise.
8807 (cortex_a8_neon_vld1_vld2_lane): Likewise.
8808 (cortex_a8_neon_vld3_vld4_lane): Likewise.
8809 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8810 (cortex_a8_neon_vst1_3_4_regs): Likewise.
8811 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
8812 (cortex_a8_neon_vst1_vst2_lane): Likewise.
8813 (cortex_a8_neon_vst3_vst4_lane): Likewise.
8814 (cortex_a8_neon_mcr): Likewise.
8815 (cortex_a8_neon_mcr_2_mcrr): Likewise.
8816 (cortex_a8_neon_mrc): Likewise.
8817 (cortex_a8_neon_mrrc): Likewise.
8818
8819 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8820
8821 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
8822 (fp): New.
8823 * config/aarch64/aarch64-simd.md (neon_type): Remove.
8824 (aarch64_simd_dup<mode>): Add "type" attribute.
8825 (aarch64_dup_lane<mode>): Likewise.
8826 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
8827 (*aarch64_simd_mov<mode>): Likewise.
8828 (aarch64_simd_mov_from_<mode>low): Likewise.
8829 (aarch64_simd_mov_from_<mode>high): Likewise.
8830 (orn<mode>3): Likewise.
8831 (bic<mode>3): Likewise.
8832 (add<mode>3): Likewise.
8833 (sub<mode>3): Likewise.
8834 (mul<mode>3): Likewise.
8835 (*aarch64_mul3_elt<mode>): Likewise.
8836 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
8837 (*aarch64_mul3_elt_to_128df): Likewise.
8838 (*aarch64_mul3_elt_to_64v2df): Likewise.
8839 (neg<mode>2): Likewise.
8840 (abs<mode>2): Likewise.
8841 (abd<mode>_3): Likewise.
8842 (aba<mode>_3): Likewise.
8843 (fabd<mode>_3): Likewise.
8844 (*fabd_scalar<mode>3): Likewise.
8845 (and<mode>3): Likewise.
8846 (ior<mode>3): Likewise.
8847 (xor<mode>3): Likewise.
8848 (one_cmpl<mode>2): Likewise.
8849 (aarch64_simd_vec_set<mode>): Likewise.
8850 (aarch64_simd_lshr<mode>): Likewise.
8851 (aarch64_simd_ashr<mode>): Likewise.
8852 (aarch64_simd_imm_shl<mode>): Likewise.
8853 (aarch64_simd_reg_sshl<mode): Likewise.
8854 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
8855 (aarch64_simd_reg_shl<mode>_signed): Likewise.
8856 (aarch64_simd_vec_setv2di): Likewise.
8857 (aarch64_simd_vec_set<mode>): Likewise.
8858 (aarch64_mla<mode>): Likewise.
8859 (*aarch64_mla_elt<mode>): Likewise.
8860 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
8861 (aarch64_mls<mode>): Likewise.
8862 (*aarch64_mls_elt<mode>): Likewise.
8863 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
8864 (<su><maxmin><mode>3): Likewise.
8865 (move_lo_quad_<mode>): Likewise.
8866 (aarch64_simd_move_hi_quad_<mode>): Likewise.
8867 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
8868 (vec_pack_trunc_<mode>): Likewise.
8869 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
8870 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
8871 (*aarch64_<su>mlal_lo<mode>): Likewise.
8872 (*aarch64_<su>mlal_hi<mode>): Likewise.
8873 (*aarch64_<su>mlsl_lo<mode>): Likewise.
8874 (*aarch64_<su>mlsl_hi<mode>): Likewise.
8875 (*aarch64_<su>mlal<mode>): Likewise.
8876 (*aarch64_<su>mlsl<mode>): Likewise.
8877 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
8878 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
8879 (add<mode>3): Likewise.
8880 (sub<mode>3): Likewise.
8881 (mul<mode>3): Likewise.
8882 (div<mode>3): Likewise.
8883 (neg<mode>2): Likewise.
8884 (abs<mode>2): Likewise.
8885 (fma<mode>4): Likewise.
8886 (*aarch64_fma4_elt<mode>): Likewise.
8887 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
8888 (*aarch64_fma4_elt_to_128df): Likewise.
8889 (*aarch64_fma4_elt_to_64v2df): Likewise.
8890 (fnma<mode>4): Likewise.
8891 (*aarch64_fnma4_elt<mode>): Likewise.
8892 (*aarch64_fnma4_elt_<vswap_width_name><mode>
8893 (*aarch64_fnma4_elt_to_128df): Likewise.
8894 (*aarch64_fnma4_elt_to_64v2df): Likewise.
8895 (<frint_pattern><mode>2): Likewise.
8896 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
8897 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
8898 (vec_unpacks_lo_v4sf): Likewise.
8899 (aarch64_float_extend_lo_v2df): Likewise.
8900 (vec_unpacks_hi_v4sf): Likewise.
8901 (aarch64_float_truncate_lo_v2sf): Likewise.
8902 (aarch64_float_truncate_hi_v4sf): Likewise.
8903 (aarch64_vmls<mode>): Likewise.
8904 (<su><maxmin><mode>3): Likewise.
8905 (<maxmin_uns><mode>3): Likewise.
8906 (reduc_<sur>plus_<mode>): Likewise.
8907 (reduc_<sur>plus_v2di): Likewise.
8908 (reduc_<sur>plus_v2si): Likewise.
8909 (reduc_<sur>plus_<mode>): Likewise.
8910 (aarch64_addpv4sf): Likewise.
8911 (clz<mode>2): Likewise.
8912 (reduc_<maxmin_uns>_<mode>): Likewise.
8913 (reduc_<maxmin_uns>_v2di): Likewise.
8914 (reduc_<maxmin_uns>_v2si): Likewise.
8915 (reduc_<maxmin_uns>_<mode>): Likewise.
8916 (reduc_<maxmin_uns>_v4sf): Likewise.
8917 (aarch64_simd_bsl<mode>_internal): Likewise.
8918 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
8919 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
8920 (aarch64_get_lane<mode>): Likewise.
8921 (*aarch64_combinez<mode>): Likewise.
8922 (aarch64_combine<mode>): Likewise.
8923 (aarch64_simd_combine<mode>): Likewise.
8924 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
8925 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
8926 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
8927 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
8928 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
8929 (aarch64_<sur>h<addsub><mode>): Likewise.
8930 (aarch64_<sur><addsub>hn<mode>): Likewise.
8931 (aarch64_<sur><addsub>hn2<mode>): Likewise.
8932 (aarch64_pmul<mode>): Likewise.
8933 (aarch64_<su_optab><optab><mode>): Likewise.
8934 (aarch64_<sur>qadd<mode>): Likewise.
8935 (aarch64_sqmovun<mode>): Likewise.
8936 (aarch64_<sur>qmovn<mode>): Likewise.
8937 (aarch64_s<optab><mode>): Likewise.
8938 (aarch64_sq<r>dmulh<mode>): Likewise.
8939 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
8940 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
8941 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
8942 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
8943 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8944 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8945 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
8946 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
8947 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
8948 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
8949 (aarch64_sqdmull<mode>): Likewise.
8950 (aarch64_sqdmull_lane<mode>_internal): Likewise.
8951 (aarch64_sqdmull_n<mode>): Likewise.
8952 (aarch64_sqdmull2<mode>_internal): Likewise.
8953 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
8954 (aarch64_sqdmull2_n<mode>_internal): Likewise.
8955 (aarch64_<sur>shl<mode>): Likewise.
8956 (aarch64_<sur>q<r>shl<mode>
8957 (aarch64_<sur>shll_n<mode>): Likewise.
8958 (aarch64_<sur>shll2_n<mode>): Likewise.
8959 (aarch64_<sur>shr_n<mode>): Likewise.
8960 (aarch64_<sur>sra_n<mode>): Likewise.
8961 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
8962 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
8963 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
8964 (aarch64_cm<optab><mode>): Likewise.
8965 (aarch64_cm<optab>di): Likewise.
8966 (aarch64_cm<optab><mode>): Likewise.
8967 (aarch64_cm<optab>di): Likewise.
8968 (aarch64_cmtst<mode>): Likewise.
8969 (aarch64_cmtstdi): Likewise.
8970 (aarch64_cm<optab><mode>): Likewise.
8971 (*aarch64_fac<optab><mode>): Likewise.
8972 (aarch64_addp<mode>): Likewise.
8973 (aarch64_addpdi): Likewise.
8974 (sqrt<mode>2): Likewise.
8975 (vec_load_lanesoi<mode>): Likewise.
8976 (vec_store_lanesoi<mode>): Likewise.
8977 (vec_load_lanesci<mode>): Likewise.
8978 (vec_store_lanesci<mode>): Likewise.
8979 (vec_load_lanesxi<mode>): Likewise.
8980 (vec_store_lanesxi<mode>): Likewise.
8981 (*aarch64_mov<mode>): Likewise.
8982 (aarch64_ld2<mode>_dreg): Likewise.
8983 (aarch64_ld2<mode>_dreg): Likewise.
8984 (aarch64_ld3<mode>_dreg): Likewise.
8985 (aarch64_ld3<mode>_dreg): Likewise.
8986 (aarch64_ld4<mode>_dreg): Likewise.
8987 (aarch64_ld4<mode>_dreg): Likewise.
8988 (aarch64_tbl1<mode>): Likewise.
8989 (aarch64_tbl2v16qi): Likewise.
8990 (aarch64_combinev16qi): Likewise.
8991 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
8992 (aarch64_st2<mode>_dreg): Likewise.
8993 (aarch64_st2<mode>_dreg): Likewise.
8994 (aarch64_st3<mode>_dreg): Likewise.
8995 (aarch64_st3<mode>_dreg): Likewise.
8996 (aarch64_st4<mode>_dreg): Likewise.
8997 (aarch64_st4<mode>_dreg): Likewise.
8998 (*aarch64_simd_ld1r<mode>): Likewise.
8999 (aarch64_frecpe<mode>): Likewise.
9000 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
9001 (aarch64_frecps<mode>): Likewise.
9002
9003 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9004
9005 * config/arm/iterators.md (V_elem_ch): New.
9006 (q): Likewise.
9007 (VQH_type): Likewise.
9008 * config/arm/arm.md (is_neon_type): New.
9009 (conds): Use is_neon_type.
9010 (anddi3_insn): Update type attribute.
9011 (xordi3_insn): Likewise.
9012 (one_cmpldi2): Likewise.
9013 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
9014 * config/arm/neon.md (neon_mov): Update type attribute.
9015 (*movmisalign<mode>_neon_store): Likewise.
9016 (*movmisalign<mode>_neon_load): Likewise.
9017 (vec_set<mode>_internal): Likewise.
9018 (vec_set<mode>_internal): Likewise.
9019 (vec_setv2di_internal): Likewise.
9020 (vec_extract<mode>): Likewise.
9021 (vec_extract<mode>): Likewise.
9022 (vec_extractv2di): Likewise.
9023 (*add<mode>3_neon): Likewise.
9024 (adddi3_neon): Likewise.
9025 (*sub<mode>3_neon): Likewise.
9026 (subdi3_neon): Likewise.
9027 (fma<VCVTF:mode>4): Likewise.
9028 (fma<VCVTF:mode>4_intrinsic): Likewise.
9029 (*fmsub<VCVTF:mode>4): Likewise.
9030 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
9031 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
9032 (ior<mode>3): Likewise.
9033 (and<mode>3): Likewise.
9034 (orn<mode>3_neon): Likewise.
9035 (orndi3_neon): Likewise.
9036 (bic<mode>3_neon): Likewise.
9037 (bicdi3_neon): Likewise.
9038 (xor<mode>3): Likewise.
9039 (one_cmpl<mode>2): Likewise.
9040 (abs<mode>2): Likewise.
9041 (neg<mode>2): Likewise.
9042 (negdi2_neon): Likewise.
9043 (*umin<mode>3_neon): Likewise.
9044 (*umax<mode>3_neon): Likewise.
9045 (*smin<mode>3_neon): Likewise.
9046 (*smax<mode>3_neon): Likewise.
9047 (vashl<mode>3): Likewise.
9048 (vashr<mode>3_imm): Likewise.
9049 (vlshr<mode>3_imm): Likewise.
9050 (ashl<mode>3_signed): Likewise.
9051 (ashl<mode>3_unsigned): Likewise.
9052 (neon_load_count): Likewise.
9053 (ashldi3_neon_noclobber): Likewise.
9054 (ashldi3_neon): Likewise.
9055 (signed_shift_di3_neon): Likewise.
9056 (unsigned_shift_di3_neon): Likewise.
9057 (ashrdi3_neon_imm_noclobber): Likewise.
9058 (lshrdi3_neon_imm_noclobber): Likewise.
9059 (<shift>di3_neon): Likewise.
9060 (widen_ssum<mode>3): Likewise.
9061 (widen_usum<mode>3): Likewise.
9062 (quad_halves_<code>v4si): Likewise.
9063 (quad_halves_<code>v4sf): Likewise.
9064 (quad_halves_<code>v8hi): Likewise.
9065 (quad_halves_<code>v16qi): Likewise.
9066 (reduc_splus_v2di): Likewise.
9067 (neon_vpadd_internal<mode>): Likewise.
9068 (neon_vpsmin<mode>): Likewise.
9069 (neon_vpsmax<mode>): Likewise.
9070 (neon_vpumin<mode>): Likewise.
9071 (neon_vpumax<mode>): Likewise.
9072 (*ss_add<mode>_neon): Likewise.
9073 (*us_add<mode>_neon): Likewise.
9074 (*ss_sub<mode>_neon): Likewise.
9075 (*us_sub<mode>_neon): Likewise.
9076 (neon_vadd<mode>_unspec): Likewise.
9077 (neon_vaddl<mode>): Likewise.
9078 (neon_vaddw<mode>): Likewise.
9079 (neon_vhadd<mode>): Likewise.
9080 (neon_vqadd<mode>): Likewise.
9081 (neon_vaddhn<mode>): Likewise.
9082 (neon_vmul<mode>): Likewise.
9083 (neon_vfms<VCVTF:mode>): Likewise.
9084 (neon_vmlal<mode>): Likewise.
9085 (neon_vmls<mode>): Likewise.
9086 (neon_vmlsl<mode>): Likewise.
9087 (neon_vqdmulh<mode>): Likewise.
9088 (neon_vqdmlal<mode>): Likewise.
9089 (neon_vqdmlsl<mode>): Likewise.
9090 (neon_vmull<mode>): Likewise.
9091 (neon_vqdmull<mode>): Likewise.
9092 (neon_vsub<mode>_unspec): Likewise.
9093 (neon_vsubl<mode>): Likewise.
9094 (neon_vsubw<mode>): Likewise.
9095 (neon_vqsub<mode>): Likewise.
9096 (neon_vhsub<mode>): Likewise.
9097 (neon_vsubhn<mode>): Likewise.
9098 (neon_vceq<mode>): Likewise.
9099 (neon_vcge<mode>): Likewise.
9100 (neon_vcgeu<mode>): Likewise.
9101 (neon_vcgt<mode>): Likewise.
9102 (neon_vcgtu<mode>): Likewise.
9103 (neon_vcle<mode>): Likewise.
9104 (neon_vclt<mode>): Likewise.
9105 (neon_vcage<mode>): Likewise.
9106 (neon_vcagt<mode>): Likewise.
9107 (neon_vtst<mode>): Likewise.
9108 (neon_vabd<mode>): Likewise.
9109 (neon_vabdl<mode>): Likewise.
9110 (neon_vaba<mode>): Likewise.
9111 (neon_vabal<mode>): Likewise.
9112 (neon_vmax<mode>): Likewise.
9113 (neon_vmin<mode>): Likewise.
9114 (neon_vpaddl<mode>): Likewise.
9115 (neon_vpadal<mode>): Likewise.
9116 (neon_vpmax<mode>): Likewise.
9117 (neon_vpmin<mode>): Likewise.
9118 (neon_vrecps<mode>): Likewise.
9119 (neon_vrsqrts<mode>): Likewise.
9120 (neon_vqabs<mode>): Likewise.
9121 (neon_vqneg<mode>): Likewise.
9122 (neon_vcls<mode>): Likewise.
9123 (clz<mode>2): Likewise.
9124 (popcount<mode>2): Likewise.
9125 (neon_vrecpe<mode>): Likewise.
9126 (neon_vrsqrte<mode>): Likewise.
9127 (neon_vget_lane<mode>_sext_internal): Likewise.
9128 (neon_vget_lane<mode>_zext_internal): Likewise.
9129 (neon_vdup_n<mode>): Likewise.
9130 (neon_vdup_n<mode>): Likewise.
9131 (neon_vdup_nv2di): Likewise.
9132 (neon_vdup_lane<mode>_interal): Likewise.
9133 (*neon_vswp<mode>): Likewise.
9134 (neon_vcombine<mode>): Likewise.
9135 (float<mode><V_cvtto>2): Likewise.
9136 (floatuns<mode><V_cvtto>2): Likewise.
9137 (fix_trunc<mode><V_cvtto>2): Likewise.
9138 (fixuns_trunc<mode><V_cvtto>2
9139 (neon_vcvt<mode>): Likewise.
9140 (neon_vcvt<mode>): Likewise.
9141 (neon_vcvtv4sfv4hf): Likewise.
9142 (neon_vcvtv4hfv4sf): Likewise.
9143 (neon_vcvt_n<mode>): Likewise.
9144 (neon_vcvt_n<mode>): Likewise.
9145 (neon_vmovn<mode>): Likewise.
9146 (neon_vqmovn<mode>): Likewise.
9147 (neon_vqmovun<mode>): Likewise.
9148 (neon_vmovl<mode>): Likewise.
9149 (neon_vmul_lane<mode>): Likewise.
9150 (neon_vmul_lane<mode>): Likewise.
9151 (neon_vmull_lane<mode>): Likewise.
9152 (neon_vqdmull_lane<mode>): Likewise.
9153 (neon_vqdmulh_lane<mode>): Likewise.
9154 (neon_vqdmulh_lane<mode>): Likewise.
9155 (neon_vmla_lane<mode>): Likewise.
9156 (neon_vmla_lane<mode>): Likewise.
9157 (neon_vmlal_lane<mode>): Likewise.
9158 (neon_vqdmlal_lane<mode>): Likewise.
9159 (neon_vmls_lane<mode>): Likewise.
9160 (neon_vmls_lane<mode>): Likewise.
9161 (neon_vmlsl_lane<mode>): Likewise.
9162 (neon_vqdmlsl_lane<mode>): Likewise.
9163 (neon_vext<mode>): Likewise.
9164 (neon_vrev64<mode>): Likewise.
9165 (neon_vrev32<mode>): Likewise.
9166 (neon_vrev16<mode>): Likewise.
9167 (neon_vbsl<mode>_internal): Likewise.
9168 (neon_vshl<mode>): Likewise.
9169 (neon_vqshl<mode>): Likewise.
9170 (neon_vshr_n<mode>): Likewise.
9171 (neon_vshrn_n<mode>): Likewise.
9172 (neon_vqshrn_n<mode>): Likewise.
9173 (neon_vqshrun_n<mode>): Likewise.
9174 (neon_vshl_n<mode>): Likewise.
9175 (neon_vqshl_n<mode>): Likewise.
9176 (neon_vqshlu_n<mode>): Likewise.
9177 (neon_vshll_n<mode>): Likewise.
9178 (neon_vsra_n<mode>): Likewise.
9179 (neon_vsri_n<mode>): Likewise.
9180 (neon_vsli_n<mode>): Likewise.
9181 (neon_vtbl1v8qi): Likewise.
9182 (neon_vtbl2v8qi): Likewise.
9183 (neon_vtbl3v8qi): Likewise.
9184 (neon_vtbl4v8qi): Likewise.
9185 (neon_vtbl1v16qi): Likewise.
9186 (neon_vtbl2v16qi): Likewise.
9187 (neon_vcombinev16qi): Likewise.
9188 (neon_vtbx1v8qi): Likewise.
9189 (neon_vtbx2v8qi): Likewise.
9190 (neon_vtbx3v8qi): Likewise.
9191 (neon_vtbx4v8qi): Likewise.
9192 (*neon_vtrn<mode>_insn): Likewise.
9193 (*neon_vzip<mode>_insn): Likewise.
9194 (*neon_vuzp<mode>_insn): Likewise.
9195 (neon_vld1<mode>): Likewise.
9196 (neon_vld1_lane<mode>): Likewise.
9197 (neon_vld1_lane<mode>): Likewise.
9198 (neon_vld1_dup<mode>): Likewise.
9199 (neon_vld1_dup<mode>): Likewise.
9200 (neon_vld1_dupv2di): Likewise.
9201 (neon_vst1<mode>): Likewise.
9202 (neon_vst1_lane<mode>): Likewise.
9203 (neon_vst1_lane<mode>): Likewise.
9204 (neon_vld2<mode>): Likewise.
9205 (neon_vld2<mode>): Likewise.
9206 (neon_vld2_lane<mode>): Likewise.
9207 (neon_vld2_lane<mode>): Likewise.
9208 (neon_vld2_dup<mode>): Likewise.
9209 (neon_vst2<mode>): Likewise.
9210 (neon_vst2<mode>): Likewise.
9211 (neon_vst2_lane<mode>): Likewise.
9212 (neon_vst2_lane<mode>): Likewise.
9213 (neon_vld3<mode>): Likewise.
9214 (neon_vld3qa<mode>): Likewise.
9215 (neon_vld3qb<mode>): Likewise.
9216 (neon_vld3_lane<mode>): Likewise.
9217 (neon_vld3_lane<mode>): Likewise.
9218 (neon_vld3_dup<mode>): Likewise.
9219 (neon_vst3<mode>): Likewise.
9220 (neon_vst3qa<mode>): Likewise.
9221 (neon_vst3qb<mode>): Likewise.
9222 (neon_vst3_lane<mode>): Likewise.
9223 (neon_vst3_lane<mode>): Likewise.
9224 (neon_vld4<mode>): Likewise.
9225 (neon_vld4qa<mode>): Likewise.
9226 (neon_vld4qb<mode>): Likewise.
9227 (neon_vld4_lane<mode>): Likewise.
9228 (neon_vld4_lane<mode>): Likewise.
9229 (neon_vld4_dup<mode>): Likewise.
9230 (neon_vst4<mode>): Likewise.
9231 (neon_vst4qa<mode>): Likewise.
9232 (neon_vst4qb<mode>): Likewise.
9233 (neon_vst4_lane<mode>): Likewise.
9234 (neon_vst4_lane<mode>): Likewise.
9235 (neon_vec_unpack<US>_lo_<mode>): Likewise.
9236 (neon_vec_unpack<US>_hi_<mode>): Likewise.
9237 (neon_vec_<US>mult_lo_<mode>): Likewise.
9238 (neon_vec_<US>mult_hi_<mode>): Likewise.
9239 (neon_vec_<US>shiftl_<mode>): Likewise.
9240 (neon_unpack<US>_<mode>): Likewise.
9241 (neon_vec_<US>mult_<mode>): Likewise.
9242 (vec_pack_trunc_<mode>): Likewise.
9243 (neon_vec_pack_trunc_<mode>): Likewise.
9244 (neon_vabd<mode>_2): Likewise.
9245 (neon_vabd<mode>_3): Likewise.
9246
9247 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9248
9249 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
9250 (load_pair): Update type attribute.
9251 (store_pair): Update type attribute.
9252 * config/aarch64/iterators.md (q): New.
9253
9254 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9255
9256 * config/arm/types.md: Add new types for Neon insns.
9257
9258 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
9259 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9260 Sergey Lega <sergey.s.lega@intel.com>
9261 Anna Tikhonova <anna.tikhonova@intel.com>
9262 Ilya Tocar <ilya.tocar@intel.com>
9263 Andrey Turetskiy <andrey.turetskiy@intel.com>
9264 Ilya Verbin <ilya.verbin@intel.com>
9265 Kirill Yukhin <kirill.yukhin@intel.com>
9266 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9267
9268 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
9269 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
9270 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
9271 (rcp14<mode>): New.
9272 (srcp14<mode>): Ditto.
9273 (rsqrt14<mode>): Ditto.
9274 (rsqrt14<mode>): Ditto.
9275 (avx512f_vmscalef<mode>): Ditto.
9276 (avx512f_scalef<mode>): Ditto.
9277 (avx512f_getexp<mode>): Ditto.
9278 (avx512f_sgetexp<mode>): Ditto.
9279 (avx512f_fixupimm<mode>): Ditto.
9280 (avx512f_sfixupimm<mode>): Ditto.
9281 (avx512f_rndscale<mode>): Ditto.
9282 (*avx512er_exp2<mode>): Ditto.
9283 (*avx512er_rcp28<mode>): Ditto.
9284 (avx512er_rsqrt28<mode>): Ditto.
9285 (avx512f_getmant<mode>): Ditto.
9286 (avx512f_getmant<mode>): Ditto.
9287 (avx512f_rndscale<mode>): Fix formatting.
9288
9289 2013-10-15 Martin Jambor <mjambor@suse.cz>
9290
9291 * ipa-utils.h (ipa_edge_within_scc): Declare.
9292 * ipa-cp.c (edge_within_scc): Moved...
9293 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
9294
9295 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
9296 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9297 Sergey Lega <sergey.s.lega@intel.com>
9298 Anna Tikhonova <anna.tikhonova@intel.com>
9299 Ilya Tocar <ilya.tocar@intel.com>
9300 Andrey Turetskiy <andrey.turetskiy@intel.com>
9301 Ilya Verbin <ilya.verbin@intel.com>
9302 Kirill Yukhin <kirill.yukhin@intel.com>
9303 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9304
9305 * config/i386/predicates.md (const_8_to_15_operand): New.
9306 (const_16_to_31_operand): Ditto.
9307 * config/i386/sse.md (V8FI): New.
9308 (V16FI): Ditto.
9309 (reduc_splus_v8df): Ditto.
9310 (reduc_splus_v16sf): Ditto.
9311 (avx512f_vextract<shuffletype>32x4_1): Ditto.
9312 (vec_extract_hi_<mode>): Ditto.
9313 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
9314 (vec_set_lo_<mode>): Ditto.
9315 (vec_set_hi_<mode>): Ditto.
9316 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
9317 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
9318 (avx512f_pshufd_1): Ditto.
9319 (avx512f_broadcast<mode>): Ditto.
9320 (avx512f_broadcast<mode>): Ditto.
9321 (define_split): Split vec_extract_lo into move.
9322 (ssequartermode): Ditto.
9323 (ssedoublemode): Extened with wider modes.
9324 (vec_extract_lo_<mode>): Ditto.
9325
9326 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
9327 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9328 Sergey Lega <sergey.s.lega@intel.com>
9329 Anna Tikhonova <anna.tikhonova@intel.com>
9330 Ilya Tocar <ilya.tocar@intel.com>
9331 Andrey Turetskiy <andrey.turetskiy@intel.com>
9332 Ilya Verbin <ilya.verbin@intel.com>
9333 Kirill Yukhin <kirill.yukhin@intel.com>
9334 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9335
9336 * config/i386/predicates.md (register_or_constm1_operand): New.
9337 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
9338 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
9339 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
9340 UNSPEC_SCATTER_PREFETCH
9341 (VI48_512): New.
9342 (avx512f_ucmp<mode>3): Ditto.
9343 (avx512f_vternlog<mode>): Ditto.
9344 (avx512f_align<mode>): Ditto.
9345 (<shift_insn><mode>3): Ditto.
9346 (avx512f_<rotate>v<mode>): Ditto.
9347 (avx512f_<rotate><mode>): Ditto.
9348 (avx512f_eq<mode>3): Ditto.
9349 (avx512f_eq<mode>3_1): Ditto.
9350 (avx512f_gt<mode>3): Ditto.
9351 (avx512f_testm<mode>3): Ditto.
9352 (avx512f_testnm<mode>3): Ditto.
9353 (avx512pf_gatherpf<mode>): Ditto.
9354 (*avx512pf_gatherpf<mode>_mask): Ditto.
9355 (*avx512pf_gatherpf<mode>): Ditto.
9356 (avx512pf_scatterpf<mode>): Ditto.
9357 (*avx512pf_scatterpf<mode>_mask): Ditto.
9358 (*avx512pf_scatterpf<mode>): Ditto.
9359 (avx512f_vec_dup_gpr<mode>): Ditto.
9360 (clz<mode>2): Ditto.
9361 (conflict<mode>): Ditto.
9362 (REDUC_SMINMAX_MODE): Extened with wider modes.
9363 (reduc_<code>_<mode>): Ditto.
9364 (vlshr<mode>3): Ditto.
9365 (vashl<mode>3): Ditto.
9366
9367 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
9368 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9369 Sergey Lega <sergey.s.lega@intel.com>
9370 Anna Tikhonova <anna.tikhonova@intel.com>
9371 Ilya Tocar <ilya.tocar@intel.com>
9372 Andrey Turetskiy <andrey.turetskiy@intel.com>
9373 Ilya Verbin <ilya.verbin@intel.com>
9374 Kirill Yukhin <kirill.yukhin@intel.com>
9375 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9376
9377 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
9378 UNSPEC_SCATTER.
9379 (VI48F_512): New.
9380 (avx512fmaskmode): Ditto.
9381 (bcstscalarsuff): Ditto.
9382 (avx512f_blendm<mode>): Ditto.
9383 (cmp_imm_predicate): Ditto.
9384 (avx512f_cmp<mode>3): Ditto.
9385 (avx512f_vec_dup<mode>): Ditto.
9386 (avx512f_vec_dup_mem<mode>): Ditto.
9387 (avx512f_vpermi2var<mode>3): Ditto.
9388 (avx512f_vpermt2var<mode>3): Ditto.
9389 (vec_init<mode>): Ditto.
9390 (avx512f_gathersi<mode>): Ditto.
9391 (*avx512f_gathersi<mode>): Ditto.
9392 (*avx512f_gathersi<mode>_2): Ditto.
9393 (avx512f_gatherdi<mode>): Ditto.
9394 (*avx512f_gatherdi<mode>): Ditto.
9395 (*avx512f_gatherdi<mode>_2): Ditto.
9396 (avx512f_scattersi<mode>): Ditto.
9397 (*avx512f_scattersi<mode>): Ditto.
9398 (avx512f_scatterdi<mode>): Ditto.
9399 (*avx512f_scatterdi<mode>): Ditto.
9400 (sseintprefix): Extened with wider modes.
9401 (VEC_GATHER_IDXSI): Ditto.
9402 (VEC_GATHER_IDXDI): Ditto.
9403 (VEC_GATHER_SRCDI): Ditto.
9404
9405 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9406 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9407
9408 * config/arm/t-aprofile: New file.
9409 * config.gcc: Handle --with-multilib-list option.
9410
9411 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
9412
9413 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
9414 the input for r2.
9415
9416 2013-10-15 Richard Biener <rguenther@suse.de>
9417
9418 * tree-loop-distribution.c (build_empty_rdg): Inline into
9419 single user.
9420 (rdg_flag_vertex): Inline into single user.
9421 (rdg_flag_vertex_and_dependent): Likewise.
9422 (build_rdg_partition_for_vertex): Remove processed bitmap.
9423 (rdg_build_partitions): Simplify.
9424
9425 2013-10-15 Richard Biener <rguenther@suse.de>
9426
9427 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
9428 Restructure forwarding through conversions and copies to
9429 avoid performing copy-propagation the wrong way. Adjust
9430 recursion invocations.
9431 (forward_propagate_addr_expr): Add argument stating if we
9432 are recursing from a single-use.
9433 (ssa_forward_propagate_and_combine): Adjust.
9434
9435 2013-10-14 David Malcolm <dmalcolm@redhat.com>
9436
9437 * dumpfile.h (gcc::dump_manager): New class, to hold state
9438 relating to dumpfile management.
9439 (get_dump_file_name): Remove in favor of method of dump_manager.
9440 (dump_initialized_p): Likewise.
9441 (dump_start): Likewise.
9442 (dump_finish): Likewise.
9443 (dump_switch_p): Likewise.
9444 (dump_register): Likewise.
9445 (get_dump_file_info): Likewise.
9446 * context.c (gcc::context::context): Construct the dump_manager
9447 instance.
9448 * context.h (gcc::context::get_dumps): New.
9449 (gcc::context::m_dumps): New.
9450 * coverage.c (coverage_init): Port to dump_manager API.
9451 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
9452 (extra_dump_files_in_use): Likewise.
9453 (extra_dump_files_alloced): Likewise.
9454 (gcc::dump_manager::dump_manager): New.
9455 (dump_register): Convert to...
9456 (gcc::dump_manager::dump_register): ...method, replacing
9457 function-static next_dump with m_next_dump field.
9458 (get_dump_file_info): Convert to...
9459 (gcc::dump_manager::get_dump_file_info): ...method.
9460 (get_dump_file_name): Convert to...
9461 (gcc::dump_manager::get_dump_file_name): ...method.
9462 (dump_start): Convert to...
9463 (gcc::dump_manager::dump_start): ...method.
9464 (dump_finish): Convert to...
9465 (gcc::dump_manager::dump_finish): ...method.
9466 (dump_begin): Replace body with...
9467 (gcc::dump_manager::dump_begin): ...new method.
9468 (dump_phase_enabled_p): Convert to...
9469 (gcc::dump_manager::dump_phase_enabled_p): ...method.
9470 (dump_phase_enabled_p): Convert to...
9471 (gcc::dump_manager::dump_phase_enabled_p): ...method.
9472 (dump_initialized_p): Convert to...
9473 (gcc::dump_manager::dump_initialized_p): ...method.
9474 (dump_flag_name): Replace body with...
9475 (gcc::dump_manager::dump_flag_name): ...new method.
9476 (dump_enable_all): Convert to...
9477 (gcc::dump_manager::dump_enable_all): ...new method.
9478 (opt_info_enable_passes): Convert to...
9479 (gcc::dump_manager::opt_info_enable_passes): ...new method.
9480 (dump_switch_p_1): Convert to...
9481 (gcc::dump_manager::dump_switch_p_1): ...new method.
9482 (dump_switch_p): Convert to...
9483 (gcc::dump_manager::dump_switch_p): ...new method.
9484 (opt_info_switch_p): Port to dump_manager API.
9485 (enable_rtl_dump_file): Likewise.
9486 * opts-global.c (handle_common_deferred_options): Port to new
9487 dump_manager API.
9488 * passes.c (pass_manager::finish_optimization_passes): Likewise.
9489 (pass_manager::register_one_dump_file): Likewise.
9490 (pass_manager::register_pass): Likewise.
9491 (pass_init_dump_file): Likewise.
9492 (pass_fini_dump_file): Likewise.
9493 * statistics.c (statistics_early_init): Likewise.
9494
9495 2013-10-14 Richard Biener <rguenther@suse.de>
9496
9497 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
9498 iterative_hash_canonical_type, gimple_canonical_type_hash,
9499 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
9500 gimple_register_canonical_type, print_gimple_types_stats,
9501 free_gimple_type_tables): Move to lto/lto.c
9502 (gt-gimple.h): Do not include.
9503 * gimple.h (gimple_register_canonical_type,
9504 print_gimple_types_stats, free_gimple_type_tables): Remove.
9505 * Makefile.in (GTFILES): Remove gimple.c.
9506
9507 2013-10-14 Travis Snoozy <quandary@remstate.com>
9508
9509 PR target/58716
9510 * config/msp430/msp430.c (msp430_option_override): Correct thinko
9511 scanning for msp430x targets.
9512
9513 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
9514
9515 PR bootstrap/58509
9516 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
9517 (registers_ok_for_ldd_peep): Move around.
9518 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
9519 * config/sparc/sparc.md (widening peepholes): Use it.
9520
9521 2013-10-14 Richard Biener <rguenther@suse.de>
9522
9523 PR middle-end/58712
9524 PR middle-end/55358
9525 * gimple.c (iterative_hash_canonical_type): Make sure to
9526 record the hash into the correct hashtable slot.
9527
9528 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
9529
9530 PR rtl-optimization/58662
9531 * combine.c (try_combine): Take into account death nodes on I2 when
9532 splitting a PARALLEL of two independent SETs. Fix dump message.
9533
9534 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
9535
9536 PR target/51244
9537 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
9538 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
9539 extra_objs.
9540 * config/sh/t-sh (sh_treg_combine.o): New entry.
9541 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
9542 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
9543 (register_sh_passes): New function. Register sh_treg_combine pass.
9544 (sh_option_override): Invoke it.
9545 (sh_canonicalize_comparison): Handle op0_preserve_value.
9546 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
9547 opportunities. Canonicalize branch condition.
9548 (nott): Allow only if pseudos can be created for non-SH2A.
9549
9550 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
9551
9552 PR target/58690
9553 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
9554 (ix86_expand_movmem): Replace copy_addr_to_reg with
9555 ix86_copy_addr_to_reg.
9556 (ix86_expand_setmem): Likewise.
9557
9558 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
9559
9560 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
9561 provided by ix86_fp_compare_mode instead of CCFPUmode.
9562
9563 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
9564
9565 * config/aarch64/arm_neon.h
9566 (vtbx<1,3>_<psu>8): Fix register constriants.
9567
9568 2013-10-11 Jeff Law <law@redhat.com>
9569
9570 PR tree-optimization/58640
9571 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9572 threading paths that cross over two loop entry points.
9573
9574 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9575
9576 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
9577 handle vector float as well.
9578 (*vsx_le_perm_load_v4si): Likewise.
9579 (*vsx_le_perm_store_v2di): Likewise.
9580 (*vsx_le_perm_store_v4si): Likewise.
9581
9582 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9583
9584 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
9585 directly to circumvent subtract from splat{31} workaround.
9586 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
9587 prototype.
9588 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
9589 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
9590 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
9591 (altivec_vperm_<mode>): Convert to define_insn_and_split to
9592 separate big and little endian logic.
9593 (*altivec_vperm_<mode>_internal): New define_insn.
9594 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
9595 separate big and little endian logic.
9596 (*altivec_vperm_<mode>_uns_internal): New define_insn.
9597 (vec_permv16qi): Add little endian logic.
9598
9599 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
9600
9601 * doc/extend.texi (returns_nonnull): Remove arguments.
9602
9603 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9604 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9605 Sergey Lega <sergey.s.lega@intel.com>
9606 Anna Tikhonova <anna.tikhonova@intel.com>
9607 Ilya Tocar <ilya.tocar@intel.com>
9608 Andrey Turetskiy <andrey.turetskiy@intel.com>
9609 Ilya Verbin <ilya.verbin@intel.com>
9610 Kirill Yukhin <kirill.yukhin@intel.com>
9611 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9612
9613 * config/i386/sse.md (VI48F_256_512): New.
9614 (avx2_permvar<mode>): Change to ...
9615 (<avx2_avx512f>_permvar<mode>): This.
9616
9617 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9618 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9619 Sergey Lega <sergey.s.lega@intel.com>
9620 Anna Tikhonova <anna.tikhonova@intel.com>
9621 Ilya Tocar <ilya.tocar@intel.com>
9622 Andrey Turetskiy <andrey.turetskiy@intel.com>
9623 Ilya Verbin <ilya.verbin@intel.com>
9624 Kirill Yukhin <kirill.yukhin@intel.com>
9625 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9626
9627 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
9628 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
9629 * config/i386/sse.md (VI4_AVX): New.
9630 (sf2simodelower): Ditto.
9631 (sse2_cvtps2dq): Change to ...
9632 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
9633
9634 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9635 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9636 Sergey Lega <sergey.s.lega@intel.com>
9637 Anna Tikhonova <anna.tikhonova@intel.com>
9638 Ilya Tocar <ilya.tocar@intel.com>
9639 Andrey Turetskiy <andrey.turetskiy@intel.com>
9640 Ilya Verbin <ilya.verbin@intel.com>
9641 Kirill Yukhin <kirill.yukhin@intel.com>
9642 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9643
9644 * config/i386/sse.md (V_512): New.
9645 (VI_512): Ditto.
9646 (vcond<V_512:mode><VF_512:mode>): Ditto.
9647 (vcond<V_512:mode><VI_512:mode>): Ditto.
9648 (vcondu<V_512:mode><VI_512:mode>): Ditto.
9649
9650 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9651 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9652 Sergey Lega <sergey.s.lega@intel.com>
9653 Anna Tikhonova <anna.tikhonova@intel.com>
9654 Ilya Tocar <ilya.tocar@intel.com>
9655 Andrey Turetskiy <andrey.turetskiy@intel.com>
9656 Ilya Verbin <ilya.verbin@intel.com>
9657 Kirill Yukhin <kirill.yukhin@intel.com>
9658 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9659
9660 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
9661 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
9662 (FMAMODE): Ditto.
9663 (fma<mode>4): Removed condition.
9664 (fms<mode>4): Ditto.
9665 (fnma<mode>4): Ditto.
9666 (fnms<mode>4): Ditto.
9667 (fma4i_fmadd_<mode>): Ditto.
9668 (*fma_fmadd_<mode>): Ditto.
9669 (*fma_fmsub_<mode>): Ditto.
9670 (*fma_fnmadd_<mode>): Ditto.
9671 (*fma_fnmsub_<mode>): Ditto.
9672 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
9673 (*fma_fmaddsub_<mode>): Ditto.
9674 (*fma_fmsubadd_<mode>): Ditto.
9675 (*fmai_fmadd_<mode>): Ditto.
9676 (*fmai_fmsub_<mode>): Ditto.
9677 (*fmai_fnmadd_<mode>): Ditto.
9678 (*fmai_fnmsub_<mode>): Ditto.
9679
9680 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9681 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9682 Sergey Lega <sergey.s.lega@intel.com>
9683 Anna Tikhonova <anna.tikhonova@intel.com>
9684 Ilya Tocar <ilya.tocar@intel.com>
9685 Andrey Turetskiy <andrey.turetskiy@intel.com>
9686 Ilya Verbin <ilya.verbin@intel.com>
9687 Kirill Yukhin <kirill.yukhin@intel.com>
9688 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9689
9690 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
9691 (VI124_256): Changed to ...
9692 (VI124_256_48_512): This.
9693 (ssepackmode): Extended with wider modes.
9694 (<code><mode>3): Changed iterator.
9695 (*avx2_<code><mode>3): Ditto.
9696 (vec_pack_trunc_<mode>): Ditto.
9697
9698 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9699 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9700 Sergey Lega <sergey.s.lega@intel.com>
9701 Anna Tikhonova <anna.tikhonova@intel.com>
9702 Ilya Tocar <ilya.tocar@intel.com>
9703 Andrey Turetskiy <andrey.turetskiy@intel.com>
9704 Ilya Verbin <ilya.verbin@intel.com>
9705 Kirill Yukhin <kirill.yukhin@intel.com>
9706 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9707
9708 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
9709 (VI8F_256_512): Ditto.
9710 (abs<mode>2): Changed iterator.
9711 (avx2_perm<mode>): Changed to ...
9712 (<avx2_avx512f>_perm<mode>): This.
9713 (avx2_perm<mode>_1): Changed to ...
9714 (<avx2_avx512f>_perm<mode>_1): This.
9715
9716 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9717 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9718 Sergey Lega <sergey.s.lega@intel.com>
9719 Anna Tikhonova <anna.tikhonova@intel.com>
9720 Ilya Tocar <ilya.tocar@intel.com>
9721 Andrey Turetskiy <andrey.turetskiy@intel.com>
9722 Ilya Verbin <ilya.verbin@intel.com>
9723 Kirill Yukhin <kirill.yukhin@intel.com>
9724 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9725
9726 * config/i386/sse.md (VI48_AVX512F): New.
9727 (VI48_AVX2): Changed to ...
9728 (VI48_AVX2_48_AVX512F): This.
9729 (avx2_ashrv<mode>): Changed to ...
9730 (<avx2_avx512f>_ashrv<mode>): This.
9731 (avx2_<shift_insn>v<mode>): Changed to ...
9732 (<avx2_avx512f>_<shift_insn>v<mode>): This.
9733
9734 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9735 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9736 Sergey Lega <sergey.s.lega@intel.com>
9737 Anna Tikhonova <anna.tikhonova@intel.com>
9738 Ilya Tocar <ilya.tocar@intel.com>
9739 Andrey Turetskiy <andrey.turetskiy@intel.com>
9740 Ilya Verbin <ilya.verbin@intel.com>
9741 Kirill Yukhin <kirill.yukhin@intel.com>
9742 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9743
9744 * config/i386/sse.md (VI4_AVX512F): New.
9745 (VI8_AVX2_AVX512F): Ditto.
9746 (mul<mode>3): Extended with wider modes.
9747 (*<sse4_1_avx2>_mul<mode>3): Ditto.
9748 (mul<mode>3): Ditto.
9749 (vec_widen_<s>mult_odd_<mode>): Ditto.
9750
9751 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9752 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9753 Sergey Lega <sergey.s.lega@intel.com>
9754 Anna Tikhonova <anna.tikhonova@intel.com>
9755 Ilya Tocar <ilya.tocar@intel.com>
9756 Andrey Turetskiy <andrey.turetskiy@intel.com>
9757 Ilya Verbin <ilya.verbin@intel.com>
9758 Kirill Yukhin <kirill.yukhin@intel.com>
9759 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9760
9761 * config/i386/sse.md (VI2_AVX512F): New.
9762 (VI124_AVX512F): Ditto.
9763 (sseunpackmode): Extended with wider modes.
9764 (sseunpackfltmode): Ditto.
9765 (vec_unpacks_float_hi_<mode>): Ditto.
9766 (vec_unpacks_float_lo_<mode>): Ditto.
9767 (vec_unpacku_float_hi_<mode>): Ditto.
9768 (vec_unpacku_float_lo_<mode>): Ditto.
9769 (vec_unpacks_lo_<mode>): Ditto.
9770 (vec_unpacks_hi_<mode>): Ditto.
9771 (vec_unpacku_lo_<mode>): Ditto.
9772 (vec_unpacku_hi_<mode>): Ditto.
9773
9774 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9775 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9776 Sergey Lega <sergey.s.lega@intel.com>
9777 Anna Tikhonova <anna.tikhonova@intel.com>
9778 Ilya Tocar <ilya.tocar@intel.com>
9779 Andrey Turetskiy <andrey.turetskiy@intel.com>
9780 Ilya Verbin <ilya.verbin@intel.com>
9781 Kirill Yukhin <kirill.yukhin@intel.com>
9782 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9783
9784 * config/i386/i386.md (multdiv): New.
9785 (multdiv_mnemonic): Ditto.
9786 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
9787 (<sse>_vm<multdiv_mnemonic><mode>3): This.
9788 (<sse>_vmdiv<mode>3): Removed.
9789
9790 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9791 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9792 Sergey Lega <sergey.s.lega@intel.com>
9793 Anna Tikhonova <anna.tikhonova@intel.com>
9794 Ilya Tocar <ilya.tocar@intel.com>
9795 Andrey Turetskiy <andrey.turetskiy@intel.com>
9796 Ilya Verbin <ilya.verbin@intel.com>
9797 Kirill Yukhin <kirill.yukhin@intel.com>
9798 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9799
9800 * config/i386/sse.md (V): Extended with wider modes.
9801 (VF2): Ditto.
9802 (ssehalfvecmode): Ditto.
9803 (i128): Ditto.
9804 (ssepackfltmode): Ditto.
9805 (avx_vec_concat<mode>): Ditto.
9806 (V_256_512): New iterator.
9807 (VF2_512_256): Ditto.
9808 (si2dfmode): New attribute.
9809 (si2dfmodelower): Ditto.
9810 (sf2dfmode): Ditto.
9811 (concat_tg_mode): Ditto.
9812 (floatv4siv4df2): Changed to ...
9813 (float<si2dfmodelower><mode>2): This.
9814 (avx_cvtps2pd256): Changed to ...
9815 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
9816 (vec_pack_trunc_v4df): Changed to ...
9817 (vec_pack_trunc_<mode>): This.
9818 (avx_vpermil<mode>): Changed to ...
9819 (<sse2_avx_avx512f>_vpermil<mode>): This.
9820 (<fixsuffix>fix_truncv8dfv8si2): New.
9821 (vec_pack_sfix_trunc_v8df): Ditto.
9822 (avx512f_rndscale<mode>): Ditto.
9823 (avx512f_roundpd512): Ditto.
9824 (vec_pack_ufix_trunc_<mode>): Updated iterator.
9825
9826 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9827 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9828 Sergey Lega <sergey.s.lega@intel.com>
9829 Anna Tikhonova <anna.tikhonova@intel.com>
9830 Ilya Tocar <ilya.tocar@intel.com>
9831 Andrey Turetskiy <andrey.turetskiy@intel.com>
9832 Ilya Verbin <ilya.verbin@intel.com>
9833 Kirill Yukhin <kirill.yukhin@intel.com>
9834 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9835
9836 * config/i386/i386.md (any_fix): New iterator.
9837 (fixsuffix): New attribute.
9838 * config/i386/sse.md (VF1): Extened with wider modes.
9839 (VI): Ditto.
9840 (VI_AVX2): Ditto.
9841 (VI8): Ditto.
9842 (sseintvecmodelower): Ditto.
9843 (ssescalarmode): Ditto.
9844 (ssescalarnum): Ditto.
9845 (VF1_128_256): New.
9846 (ssexmmmode): Ditto.
9847 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
9848 (<sse>_rcp<mode>2): Change iterator.
9849 (rsqrt<mode>2): Ditto.
9850 (<sse>_rsqrt<mode>2): Ditto.
9851 (avx2_vec_dup<mode>): Ditto.
9852 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
9853 (round<mode>2_sfix): Ditto.
9854 (avx2_pbroadcast<mode>): Ditto.
9855 (*andnot<mode>3): Handle XI mode.
9856 (*<code><mode>3): Ditto.
9857 (AVXTOSSEMODE): Removed.
9858 (avx_vpermil<mode>): Changed to ...
9859 (<sse2_avx_avx512f>_vpermil<mode>): This.
9860
9861 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9862 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9863 Sergey Lega <sergey.s.lega@intel.com>
9864 Anna Tikhonova <anna.tikhonova@intel.com>
9865 Ilya Tocar <ilya.tocar@intel.com>
9866 Andrey Turetskiy <andrey.turetskiy@intel.com>
9867 Ilya Verbin <ilya.verbin@intel.com>
9868 Kirill Yukhin <kirill.yukhin@intel.com>
9869 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9870
9871 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
9872 (<sse>_comi): Ditto.
9873 (<sse>_ucomi): Ditto.
9874 (sse_cvtss2siq_2): Ditto.
9875 (sse2_cvtsd2si): Ditto.
9876 (sse2_cvtsd2siq): Ditto.
9877 (sse2_cvttsd2si): Ditto.
9878 (sse2_cvttsd2siq): Ditto.
9879 (<shift_insn><mode>3): Ditto.
9880 (sse2_cvtsi2sdq): Update constraint and prefix.
9881 (sse_cvtsi2ss): Update prefix.
9882 (sse_cvtsi2ssq): Ditto.
9883
9884 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9885
9886 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
9887 ignore internal calls.
9888
9889 2013-10-11 Richard Biener <rguenther@suse.de>
9890
9891 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
9892 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
9893 TREE_OVERFLOW is set.
9894
9895 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9896
9897 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
9898
9899 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
9900 * gimple.h: Likewise.
9901
9902 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
9903
9904 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
9905 macros.
9906
9907 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
9908
9909 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
9910 * configure: Regenerate.
9911
9912 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9913
9914 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
9915 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
9916 formatting fixes, use pp_colon instead of pp_character (..., ':'),
9917 similarly pp_right_paren.
9918 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
9919 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
9920 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
9921 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
9922 clauses.
9923 (omp_declare_simd_clauses_equal,
9924 omp_remove_redundant_declare_simd_attrs): New functions.
9925 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
9926 (walk_tree_1): Handle new OpenMP 4.0 clauses.
9927 * tree.h (OMP_LOOP_CHECK): Define.
9928 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
9929 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
9930 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
9931 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
9932 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
9933 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
9934 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
9935 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
9936 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
9937 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
9938 OMP_CLAUSE_SIMDLEN_EXPR): Define.
9939 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
9940 (omp_remove_redundant_declare_simd_attrs): New prototype.
9941 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
9942 GIMPLE_OMP_TEAMS): New codes.
9943 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
9944 * omp-low.c (struct omp_context): Add cancel_label and cancellable
9945 fields.
9946 (target_nesting_level): New variable.
9947 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
9948 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
9949 for collapse > 1 static schedule unless ordered.
9950 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
9951 (determine_parallel_type): Adjust get_ws_args_for caller.
9952 (install_var_field): Handle mask & 4 for double indirection.
9953 (scan_sharing_clauses): Ignore shared clause on teams construct.
9954 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
9955 (create_omp_child_function): If inside target or declare target
9956 constructs, set "omp declare target" attribute on the child function.
9957 (find_combined_for): New function.
9958 (scan_omp_parallel): Handle combined loops.
9959 (scan_omp_target, scan_omp_teams): New functions.
9960 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
9961 restrictions and set ctx->cancellable for cancellable constructs.
9962 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
9963 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
9964 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
9965 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
9966 (omp_clause_aligned_alignment): New function.
9967 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
9968 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
9969 on teams constructs. Handle user defined reductions and new
9970 OpenMP 4.0 clauses.
9971 (lower_reduction_clauses): Don't set placeholder to address of ref
9972 if it has already the right type.
9973 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
9974 (expand_parallel_call): Use the new non-_start suffixed builtins,
9975 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
9976 and GOMP_parallel_end after the call.
9977 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
9978 (expand_omp_for_init_counts): Handle combined loops.
9979 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
9980 loops.
9981 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
9982 end of cancellable loops.
9983 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
9984 Likewise. Handle collapse > 1 loops.
9985 (expand_omp_simd): Handle combined loops.
9986 (expand_omp_for): Add inner_stmt argument, adjust callers of
9987 expand_omp_for* functions, use expand_omp_for_static*chunk even
9988 for collapse > 1 unless ordered.
9989 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
9990 of cancellable sections.
9991 (expand_omp_single): Remove need_barrier variable, just rely on
9992 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
9993 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
9994 (expand_omp_atomic_load, expand_omp_atomic_store,
9995 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
9996 (expand_omp_target): New function.
9997 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
9998 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
9999 (build_omp_regions_1): Immediately close region for
10000 GF_OMP_TARGET_KIND_UPDATE.
10001 (maybe_add_implicit_barrier_cancel): New function.
10002 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
10003 cancellation.
10004 (lower_omp_single): Likewise. Add clobber after the barrier.
10005 (lower_omp_taskgroup): New function.
10006 (lower_omp_for): Handle combined loops. Adjust
10007 lower_rec_input_clauses caller. Handle cancellation.
10008 (lower_depend_clauses): New function.
10009 (lower_omp_taskreg): Lower depend clauses. Adjust
10010 lower_rec_input_clauses caller. Add clobber after the call. Handle
10011 cancellation.
10012 (lower_omp_target, lower_omp_teams): New functions.
10013 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
10014 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
10015 and GOMP_cancellation_point calls.
10016 (lower_omp): Fold stmts inside of target region.
10017 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
10018 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
10019 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
10020 (BT_FN_VOID_OMPFN_PTR_UINT,
10021 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
10022 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
10023 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
10024 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
10025 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
10026 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
10027 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
10028 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
10029 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
10030 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
10031 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10032 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
10033 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
10034 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
10035 BUILT_IN_GOMP_PARALLEL_END.
10036 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
10037 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
10038 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
10039 GF_OMP_FOR_KIND_DISTRIBUTE.
10040 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
10041 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
10042 (dump_gimple_omp_return): Print lhs if it has any.
10043 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
10044 gimple_omp_atomic_seq_cst_p.
10045 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
10046 and GIMPLE_OMP_TEAMS.
10047 * langhooks.c (lhd_omp_mappable_type): New function.
10048 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
10049 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
10050 hook.
10051 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
10052 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
10053 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
10054 (struct gimplify_omp_ctx): Add combined_loop field.
10055 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
10056 on stmts inside of target region.
10057 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
10058 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
10059 ORT_TARGET and ORT_TARGET_DATA.
10060 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
10061 Handle GOVD_MAP.
10062 (omp_notice_threadprivate_variable): Complain about threadprivate
10063 variables in target region.
10064 (omp_notice_variable): Complain about vars with non-mappable type
10065 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
10066 (omp_check_private): Ignore ORT_TARGET* regions.
10067 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
10068 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
10069 (find_combined_omp_for): New function.
10070 (gimplify_omp_for): Handle gimplification of combined loops.
10071 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
10072 OMP_TEAMS.
10073 (gimplify_omp_target_update): New function.
10074 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
10075 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
10076 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
10077 (gimplify_body): If fndecl has "omp declare target" attribute, add
10078 implicit ORT_TARGET context around it.
10079 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
10080 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
10081 * tree-nested.c (convert_nonlocal_reference_stmt,
10082 convert_local_reference_stmt, convert_gimple_call): Handle
10083 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10084 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
10085 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
10086 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
10087 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
10088 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
10089 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
10090 BUILT_IN_GOMP_LOOP_END_CANCEL,
10091 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
10092 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
10093 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
10094 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
10095 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
10096 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
10097 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
10098 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
10099 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
10100 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
10101 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
10102 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
10103 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
10104 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
10105 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
10106 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10107 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
10108 gimple_build_omp_teams): New functions.
10109 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
10110 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
10111 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
10112 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10113 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
10114 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
10115 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
10116 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
10117 GF_OMP_ATOMIC_SEQ_CST): New.
10118 (gimple_build_omp_taskgroup, gimple_build_omp_target,
10119 gimple_build_omp_teams): New prototypes.
10120 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
10121 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10122 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
10123 GIMPLE_OMP_SINGLE as end of range.
10124 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
10125 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
10126 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
10127 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
10128 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
10129 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
10130 gimple_omp_target_kind, gimple_omp_target_set_kind,
10131 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
10132 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
10133 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
10134 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
10135 gimple_omp_teams_set_clauses): New inlines.
10136 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
10137 and GIMPLE_OMP_TASKGROUP.
10138 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
10139 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
10140 enum omp_clause_proc_bind_kind): New.
10141 (union omp_clause_subcode): Add depend_kind, map_kind and
10142 proc_bind_kind fields.
10143 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
10144 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10145 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
10146 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
10147 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
10148
10149 2013-10-10 Teresa Johnson <tejohnson@google.com>
10150
10151 * predict.c (tree_estimate_probability): Add new parameter
10152 for estimate_bb_frequencies.
10153 (estimate_bb_frequencies): Add new parameter to force estimation.
10154 (rebuild_frequencies): When max frequency in function is small,
10155 recompute counts from frequencies.
10156 * predict.h (estimate_bb_frequencies): New parameter.
10157
10158 2013-10-10 David Malcolm <dmalcolm@redhat.com>
10159
10160 * ipa-inline.c (ipa_inline): Fix leak of "order" when
10161 optimizations are disabled.
10162
10163 2013-10-10 David Malcolm <dmalcolm@redhat.com>
10164
10165 * coverage.c (coverage_finish): Fix leak of da_file_name.
10166
10167 2013-10-10 Jan Hubicka <jh@suse.cz>
10168
10169 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
10170 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
10171 Bobcat and generic.
10172
10173 2013-10-10 Jakub Jelinek <jakub@redhat.com>
10174
10175 PR middle-end/58670
10176 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
10177 if any labels are in FALLTHRU_BB, use a special label emitted
10178 immediately after the asm goto insn rather than label_rtx
10179 of the LABEL_DECL.
10180 (expand_asm_stmt): Adjust caller.
10181 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
10182 edge if the last insn in predecessor is a jump with single successor,
10183 but it isn't simplejump_p.
10184
10185 2013-10-10 Richard Biener <rguenther@suse.de>
10186
10187 PR tree-optimization/58656
10188 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
10189
10190 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
10191
10192 * gimplify.c: Include expr.h and tm_p.h for targets with special
10193 va-arg padding requirements.
10194
10195 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
10196
10197 * tree-flow.h: Move some prototypes to gimple.h.
10198 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
10199 * gimple.h: Relocate some prototypes from tree-flow.h
10200 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
10201 Move to gimplify.c.
10202 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
10203 (build_va_arg_indirect_ref): Relocate and make static.
10204 (std_gimplify_va_arg_expr): Relocate here.
10205 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
10206 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
10207
10208 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10209
10210 * doc/md.texi: Document the mnemonic attribute.
10211
10212 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10213
10214 PR target/57377
10215 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
10216 (set_attr_alternative x ...) when searching for user defined
10217 mnemonic attribute.
10218
10219 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
10220
10221 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
10222
10223 2013-10-09 Easwaran Raman <eraman@google.com>
10224
10225 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
10226 * cfgexpand.c (defer_stack_allocation): ...use here
10227 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
10228
10229 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
10230
10231 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
10232 (operand_equal_for_value_replacement): New function, extracted from
10233 value_replacement and enhanced to catch more cases.
10234 (value_replacement): Use operand_equal_for_value_replacement.
10235
10236 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
10237
10238 * loop-doloop.c (doloop_modify, doloop_optimize): Use
10239 get_max_loop_iterations.
10240
10241 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10242
10243 * config/arm/aarch-common.c (arm_early_load_addr_dep):
10244 Place comment above function.
10245
10246 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
10247
10248 * tree-flow.h: Remove all remaining prototypes, enums and structs that
10249 are not related to tree-cfg.c.
10250 * tree-ssa-address.h: New file. Relocate prototypes.
10251 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
10252 (addr_for_mem_ref): New. Combine call to get_address_description and
10253 return addr_for_mem_ref.
10254 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
10255 * tree-ssa-live.h: Adjust prototypes.
10256 * passes.c: Include tree-ssa-live.h.
10257 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
10258 * graphite.c (graphite_transform_loops): Make static.
10259 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
10260 make_pass_graphite, pass_data_graphite_transforms,
10261 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
10262 * ipa-pure-const.c (warn_function_noreturn): Make static.
10263 (execute_warn_function_noreturn, gate_warn_function_noreturn,
10264 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
10265 Relocate from tree-cfg.c
10266 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
10267 static.
10268 (execute_warn_function_noreturn, gate_warn_function_noreturn,
10269 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
10270 Move to ipa-pure-const.c.
10271 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
10272 Relocate from tree-optimize.c.
10273 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
10274 make_pass_fixup_cfg): Move to tree-cfg.c.
10275 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
10276 Relocate some prototypes.
10277 * tree-data-ref.h (tree_check_data_deps) Add prototype.
10278 * tree-dump.c (dump_function_to_file): Remove prototype.
10279 Add tree-flow.h to the include file.
10280 * tree-dump.h: Remove prototype.
10281 * tree-parloops.h: New File. Add prototypes.
10282 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
10283 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
10284 from tree-ssa-loop.c.
10285 * tree-predcom.c (run_tree_predictive_commoning,
10286 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
10287 Relocate here from tree-ssa-loop.c.
10288 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
10289 ssa_name_values.release ().
10290 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
10291 (ssa_name_values): Relocate from tree-flow.h.
10292 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
10293 * tree-ssa-loop.c (run_tree_predictive_commoning,
10294 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
10295 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
10296 make_pass_graphite, pass_data_graphite_transforms,
10297 make_pass_graphite_transforms, gate_tree_parallelize_loops,
10298 tree_parallelize_loops, pass_data_parallelize_loops,
10299 make_pass_parallelize_loops): Move to other files.
10300 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
10301 moved here.
10302 * tree.h: Remove prototypes from tree-address.c.
10303
10304 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
10305
10306 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
10307 (struct int_tree_map): Move to tree-hasher.h
10308 (SCALE, LABEL, PERCENT): Move to gimple.h
10309 * tree-flow-inline.h: Delete. Move functions to other files.
10310 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
10311 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
10312 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
10313 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
10314 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
10315 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
10316 * tree-hasher.h: Don't include tree-flow.h.
10317 (struct int_tree_map): Relocate from tree-flow.h.
10318 * tree-sra.c (contains_view_convert_expr_p): Relocate from
10319 tree-flow-inline.h and make static.
10320 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
10321 tree-flow-inline.h.
10322 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
10323 tree-flow-inline.h and make static.
10324 * tree.h (is_global_var, may_be_aliased): Relocate from
10325 tree-flow-inline.h.
10326 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
10327 * value-prof.c: No longer include tree-flow-inline.h.
10328 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
10329
10330 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
10331
10332 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
10333 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
10334 (enum move_pos): Move to tree-ssa-loop-im.h
10335 * cfgloop.h: Move some prototypes.
10336 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
10337 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
10338 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
10339 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
10340 (loop_containing_stmt): Relocate from tree-flow-inline.h.
10341 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
10342 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
10343 (enum move_pos): Relocate here.
10344 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
10345 tree-ssa-loop.c.
10346 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
10347 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
10348 make_pass_lim): Relocate here from tree-ssa-loop.c.
10349 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
10350 tree-ssa-loop.c.
10351 (loop_edge_to_cancel, unloop_loops): Make static.
10352 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
10353 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
10354 (tree_complete_unroll, gate_tree_complete_unroll,
10355 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
10356 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
10357 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
10358 * tree-ssa-loop-ivopts.c: Remove local prototypes.
10359 (stmt_invariant_in_loop_p): Remove unused function.
10360 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
10361 * tree-ssa-loop-manip.h: New file. Add prototypes.
10362 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
10363 (gcov_type_to_double_int): Move to cfgloop.h.
10364 (double_int_cmp, bound_index,
10365 estimate_numbers_of_iterations_loop): Make static.
10366 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
10367 (max_loop_iterations): Factor out get_max_loop_iterations.
10368 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
10369 cfgloop.c.
10370 * tree-ssa-loop-niter.h: New file. Add prototypes.
10371 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
10372 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
10373 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
10374 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
10375 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
10376 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
10377 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
10378 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
10379 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
10380 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
10381 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
10382 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
10383 pass_data_complete_unroll, make_pass_complete_unroll,
10384 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
10385 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
10386 tree-ssa-loop-ivcanon.c.
10387 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
10388 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
10389 tree-ssa-loop-prefetch.c.
10390 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
10391 tree-ssa-loop-im.c.
10392 (get_lsm_tmp_name): Relocate and add suffix parameter.
10393 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
10394 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
10395 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
10396 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
10397 (get_estimated_loop_iterations): Factor out accessor from
10398 estimated_loop_iterations in tree-ssa-loop-niter.c.
10399 (get_max_loop_iterations): Factor out accessor from
10400 _max_loop_iterations in tree-ssa-niter.c.
10401 * loop-unroll.c (decide_unroll_constant_iterations,
10402 decide_unroll_runtime_iterations, decide_peel_simple,
10403 decide_unroll_stupid): Use new get_* accessors.
10404
10405 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
10406
10407 PR tree-optimization/20318
10408 * doc/extend.texi (returns_nonnull): New function attribute.
10409 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
10410 attribute.
10411 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
10412 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
10413
10414 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
10415
10416 PR middle-end/58570
10417 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
10418 false if both components are bitfields.
10419
10420 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10421
10422 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
10423 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
10424 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
10425 * config/aarch64/aarch64.h
10426 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
10427 * config/aarch64/aarch64-simd-builtins.def
10428 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
10429
10430 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10431
10432 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
10433
10434 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10435
10436 * config/aarch64/arm_neon.h (vdiv_f64): Added.
10437
10438 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10439
10440 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
10441 (vneg_f64): New intrinsic.
10442 (vneg_s8): Asm replaced with C.
10443 (vneg_s16): Likewise.
10444 (vneg_s32): Likewise.
10445 (vneg_s64): New intrinsic.
10446 (vnegq_f32): Asm replaced with C.
10447 (vnegq_f64): Likewise.
10448 (vnegq_s8): Likewise.
10449 (vnegq_s16): Likewise.
10450 (vnegq_s32): Likewise.
10451 (vnegq_s64): Likewise.
10452
10453 2013-10-09 Renlin Li <Renlin.Li@arm.com>
10454
10455 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
10456
10457 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10458
10459 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
10460 packed stack special handling.
10461 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
10462 back to fixed stack slots for FPRs saved due to stdarg.
10463
10464 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10465
10466 * config/s390/s390.c (s390_frame_info): Restructure function.
10467
10468 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10469
10470 * config/s390/s390.c (struct s390_frame_layout): New field
10471 gpr_save_slots.
10472 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
10473 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
10474 regs_ever_clobbered to char*.
10475 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
10476 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
10477 (s390_register_info): Enable FPR save slots. Move/Copy some
10478 functionality into ...
10479 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
10480 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
10481 function.
10482 (s390_frame_info): Do gpr slot allocation here now. stdarg does
10483 not imply a stack frame.
10484 (s390_init_frame_layout): Remove variable clobbered_regs.
10485 (s390_update_register_info): Remove function.
10486 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
10487 cannot be used for register renaming.
10488 (s390_hard_regno_scratch_ok): New function.
10489 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
10490 (s390_initial_elimination_offset): Change offset calculation of
10491 the return address pointer.
10492 (save_gprs): Deal with only r6 being saved from the call-saved regs.
10493 (restore_gprs): Set frame related flag.
10494 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
10495 (s390_emit_prologue): Call s390_register_info instead of
10496 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
10497 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
10498 (s390_optimize_prologue): Call s390_optimize_register_info.
10499 Try to remove also FPR slot save/restore INSNs. Remove frame
10500 related flags from restore INSNs.
10501
10502 2013-10-08 DJ Delorie <dj@redhat.com>
10503
10504 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
10505 (movhi): Likewise.
10506
10507 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
10508 avoid conflict with the MI use of %c.
10509 * config/rl78/rl78-real.md: change %c to %C throughout.
10510 * config/rl78/rl78-virt.md: Likewise.
10511
10512 2013-10-08 Jan Hubicka <jh@suse.cz>
10513
10514 * config/i386/i386.c (ix86_option_override_internal): Switch
10515 to SSE math for -ffast-math when target ISA supports SSE2.
10516
10517 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
10518
10519 * tree-flow.h: Remove some prototypes.
10520 * tree.h: Remove some protypes, add a couple.
10521 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
10522 using_eh_for_cleanups_p): Add interface routines for front ends.
10523 * tree-eh.h: New file. Add protoptyes.
10524 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
10525 (add_stmt_to_eh_lp_fn): Make static.
10526 (lower_try_finally): Use new using_eh_for_cleanups_p.
10527 * emit-rtl.c: Include tree-eh.h.
10528 * gimple.h: Include tree-eh.h.
10529
10530 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
10531
10532 PR tree-optimization/58480
10533 * tree-vrp.c (infer_nonnull_range): New function.
10534 (infer_value_range): Call infer_nonnull_range.
10535
10536 2013-10-08 Dehao Chen <dehao@google.com>
10537
10538 PR tree-optimization/58619
10539 * tree-inline.c (copy_phis_for_bb): Combine location data
10540 only if non-null.
10541
10542 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10543
10544 PR target/58423
10545 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
10546 RTX_FRAME_RELATED_P on INSN.
10547
10548 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10549
10550 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
10551 (altivec_expand_vec_perm_const): Call it.
10552
10553 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10554
10555 * config/rs6000/vector.md (mov<mode>): Emit permuted move
10556 sequences for LE VSX loads and stores at expand time.
10557 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
10558 prototype.
10559 * config/rs6000/rs6000.c (rs6000_const_vec): New.
10560 (rs6000_gen_le_vsx_permute): New.
10561 (rs6000_gen_le_vsx_load): New.
10562 (rs6000_gen_le_vsx_store): New.
10563 (rs6000_gen_le_vsx_move): New.
10564 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
10565 (*vsx_le_perm_load_v4si): New.
10566 (*vsx_le_perm_load_v8hi): New.
10567 (*vsx_le_perm_load_v16qi): New.
10568 (*vsx_le_perm_store_v2di): New.
10569 (*vsx_le_perm_store_v4si): New.
10570 (*vsx_le_perm_store_v8hi): New.
10571 (*vsx_le_perm_store_v16qi): New.
10572 (*vsx_xxpermdi2_le_<mode>): New.
10573 (*vsx_xxpermdi4_le_<mode>): New.
10574 (*vsx_xxpermdi8_le_V8HI): New.
10575 (*vsx_xxpermdi16_le_V16QI): New.
10576 (*vsx_lxvd2x2_le_<mode>): New.
10577 (*vsx_lxvd2x4_le_<mode>): New.
10578 (*vsx_lxvd2x8_le_V8HI): New.
10579 (*vsx_lxvd2x16_le_V16QI): New.
10580 (*vsx_stxvd2x2_le_<mode>): New.
10581 (*vsx_stxvd2x4_le_<mode>): New.
10582 (*vsx_stxvd2x8_le_V8HI): New.
10583 (*vsx_stxvd2x16_le_V16QI): New.
10584
10585 2013-10-07 Renlin Li <Renlin.Li@arm.com>
10586
10587 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
10588
10589 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10590
10591 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
10592 loop to work also for 31bit ABI.
10593 Save the stack pointer for frame_size > 0.
10594
10595 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10596
10597 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
10598 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
10599 constraint letters from expanders.
10600 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
10601 retry count to general_operand.
10602 ("tabort"): Give operand 0 a mode.
10603 ("tabort_1"): Add mode and constraint letter for operand 0.
10604 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
10605
10606 2013-10-04 Jeff Law <law@redhat.com>
10607
10608 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
10609
10610 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
10611 out of ...
10612 (thread_across_edge): Here. Call it.
10613
10614 2013-10-04 Cary Coutant <ccoutant@google.com>
10615
10616 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
10617 discarding a location list expression (or a piece of one).
10618
10619 2013-10-03 Jan Hubicka <jh@suse.cz>
10620
10621 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
10622 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
10623 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
10624
10625 2013-10-03 Jan Hubicka <jh@suse.cz>
10626
10627 * config/i386/i386.c (ix86_option_override_internal): Do not enable
10628 accumulate-outgoing-args when producing unwind info.
10629
10630 2013-10-03 Wei Mi <wmi@google.com>
10631
10632 * lra-constraints.c (insert_move_for_subreg): New function
10633 extracted from simplify_operand_subreg.
10634 (simplify_operand_subreg): Add reload for paradoxical subreg.
10635
10636 2013-10-03 Rong Xu <xur@google.com>
10637
10638 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
10639 the candidate of builtin_expect such that we should fix the
10640 size/time estimation.
10641 (estimate_function_body_sizes): Do the acutally size/time fix-up
10642 for builtin_expect.
10643
10644 2013-10-03 Rong Xu <xur@google.com>
10645
10646 * predict.c (tree_predict_by_opcode): Get the probability
10647 for builtin_expect from param builtin_expect_probability.
10648 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
10649 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
10650 * doc/invoke.texi: Add documentation for builtin-expect-probability.
10651
10652 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
10653
10654 PR c++/19476
10655 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
10656 * calls.c (alloca_call_p): Use get_callee_fndecl.
10657 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
10658 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
10659 Likewise.
10660 (vrp_visit_stmt): Remove duplicated code.
10661
10662 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10663
10664 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
10665 ceildf2, btruncdf2, instead of vsx_* name.
10666
10667 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
10668 iterators to only do V2DF and V4SF here. Move the DF code to
10669 rs6000.md where it is combined with SF mode. Replace <VSv> with
10670 just 'v' since only vector operations are handled with these insns
10671 after moving the DF support to rs6000.md.
10672 (vsx_sub<mode>3): Likewise.
10673 (vsx_mul<mode>3): Likewise.
10674 (vsx_div<mode>3): Likewise.
10675 (vsx_fre<mode>2): Likewise.
10676 (vsx_neg<mode>2): Likewise.
10677 (vsx_abs<mode>2): Likewise.
10678 (vsx_nabs<mode>2): Likewise.
10679 (vsx_smax<mode>3): Likewise.
10680 (vsx_smin<mode>3): Likewise.
10681 (vsx_sqrt<mode>2): Likewise.
10682 (vsx_rsqrte<mode>2): Likewise.
10683 (vsx_fms<mode>4): Likewise.
10684 (vsx_nfma<mode>4): Likewise.
10685 (vsx_copysign<mode>3): Likewise.
10686 (vsx_btrunc<mode>2): Likewise.
10687 (vsx_floor<mode>2): Likewise.
10688 (vsx_ceil<mode>2): Likewise.
10689 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
10690 (vsx_sminsf3): Likewise.
10691 (vsx_fmadf4): Likewise.
10692 (vsx_fmsdf4): Likewise.
10693 (vsx_nfmadf4): Likewise.
10694 (vsx_nfmsdf4): Likewise.
10695 (vsx_cmpdf_internal1): Likewise.
10696
10697 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
10698 simpler to select whether a target has SPE or traditional floating
10699 point support in iterators.
10700 (TARGET_DF_SPE): Likewise.
10701 (TARGET_SF_FPR): Likewise.
10702 (TARGET_DF_FPR): Likewise.
10703 (TARGET_SF_INSN): Macros to say whether floating point support
10704 exists for a given operation for expanders.
10705 (TARGET_DF_INSN): Likewise.
10706
10707 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
10708 combining of SF/DF mode operations, using both traditional and VSX
10709 registers.
10710 (Fvsx): Likewise.
10711 (Ff): Likewise.
10712 (Fv): Likewise.
10713 (Fs): Likewise.
10714 (Ffre): Likewise.
10715 (FFRE): Likewise.
10716 (abs<mode>2): Combine SF/DF modes using traditional floating point
10717 instructions. Add support for using the upper DF registers with
10718 VSX support, and SF registers with power8-vector support. Update
10719 expanders for operations supported by both the SPE and traditional
10720 floating point units.
10721 (abs<mode>2_fpr): Likewise.
10722 (nabs<mode>2): Likewise.
10723 (nabs<mode>2_fpr): Likewise.
10724 (neg<mode>2): Likewise.
10725 (neg<mode>2_fpr): Likewise.
10726 (add<mode>3): Likewise.
10727 (add<mode>3_fpr): Likewise.
10728 (sub<mode>3): Likewise.
10729 (sub<mode>3_fpr): Likewise.
10730 (mul<mode>3): Likewise.
10731 (mul<mode>3_fpr): Likewise.
10732 (div<mode>3): Likewise.
10733 (div<mode>3_fpr): Likewise.
10734 (sqrt<mode>3): Likewise.
10735 (sqrt<mode>3_fpr): Likewise.
10736 (fre<Fs>): Likewise.
10737 (rsqrt<mode>2): Likewise.
10738 (cmp<mode>_fpr): Likewise.
10739 (smax<mode>3): Likewise.
10740 (smin<mode>3): Likewise.
10741 (smax<mode>3_vsx): Likewise.
10742 (smin<mode>3_vsx): Likewise.
10743 (negsf2): Delete SF operations that are merged with DF.
10744 (abssf2): Likewise.
10745 (addsf3): Likewise.
10746 (subsf3): Likewise.
10747 (mulsf3): Likewise.
10748 (divsf3): Likewise.
10749 (fres): Likewise.
10750 (fmasf4_fpr): Likewise.
10751 (fmssf4_fpr): Likewise.
10752 (nfmasf4_fpr): Likewise.
10753 (nfmssf4_fpr): Likewise.
10754 (sqrtsf2): Likewise.
10755 (rsqrtsf_internal1): Likewise.
10756 (smaxsf3): Likewise.
10757 (sminsf3): Likewise.
10758 (cmpsf_internal1): Likewise.
10759 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
10760 (negdf2): Delete DF operations that are merged with SF.
10761 (absdf2): Likewise.
10762 (nabsdf2): Likewise.
10763 (adddf3): Likewise.
10764 (subdf3): Likewise.
10765 (muldf3): Likewise.
10766 (divdf3): Likewise.
10767 (fred): Likewise.
10768 (rsqrtdf_internal1): Likewise.
10769 (fmadf4_fpr): Likewise.
10770 (fmsdf4_fpr): Likewise.
10771 (nfmadf4_fpr): Likewise.
10772 (nfmsdf4_fpr): Likewise.
10773 (sqrtdf2): Likewise.
10774 (smaxdf3): Likewise.
10775 (smindf3): Likewise.
10776 (cmpdf_internal1): Likewise.
10777 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
10778 (btrunc<mode>2): Delete separate expander, and combine with the
10779 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
10780 (btrunc<mode>2_fpr): Likewise.
10781 (ceil<mode>2): Likewise.
10782 (ceil<mode>2_fpr): Likewise.
10783 (floor<mode>2): Likewise.
10784 (floor<mode>2_fpr): Likewise.
10785 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
10786 Add support for using the upper registers with VSX and
10787 power8-vector. Move insns to be closer to the define_expands. On
10788 VSX systems, prefer the traditional form of FMA over the VSX
10789 version, since the traditional form allows the target not to
10790 overlap with the inputs.
10791 (fms<mode>4_fpr): Likewise.
10792 (nfma<mode>4_fpr): Likewise.
10793 (nfms<mode>4_fpr): Likewise.
10794
10795 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10796 Richard Earnshaw <richard.earnshaw@arm.com>
10797
10798 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
10799 (struct mult_cost_table): Likewise.
10800 (struct mem_cost_table): Likewise.
10801 (struct fp_cost_table): Likewise.
10802 (struct vector_cost_table): Likewise.
10803 (cpu_cost_table): Likewise.
10804 * config/arm/arm.opt (mold-rts-costs): New option.
10805 (mnew-generic-costs): Likewise.
10806 * config/arm/arm.c (generic_extra_costs): New table.
10807 (cortexa15_extra_costs): Likewise.
10808 (arm_slowmul_tune): Use NULL as new costs.
10809 (arm_fastmul_tune): Likewise.
10810 (arm_strongarm_tune): Likewise.
10811 (arm_xscale_tune): Likewise.
10812 (arm_9e_tune): Likewise.
10813 (arm_v6t2_tune): Likewise.
10814 (arm_cortex_a5_tune): Likewise.
10815 (arm_cortex_a9_tune): Likewise.
10816 (arm_v6m_tune): Likewise.
10817 (arm_fa726te_tune): Likewise.
10818 (arm_cortex_a15_tune): Use cortex15_extra_costs.
10819 (arm_cortex_tune): Use generict_extra_costs.
10820 (shifter_op_p): New function.
10821 (arm_unspec_cost): Likewise.
10822 (LIBCALL_COST): Define.
10823 (arm_new_rtx_costs): New function.
10824 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
10825 table is available. Use old costs otherwise unless mnew-generic-costs
10826 is specified.
10827 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
10828 (cpu_cost_table): Declare.
10829
10830 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
10831
10832 PR target/58460
10833 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
10834 (*subs_mul_imm_<mode>)
10835 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
10836 (*sub_<shift>_<mode>)
10837 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
10838 Remove k constraint.
10839
10840 2013-10-03 Ian Bolton <ian.bolton@arm.com>
10841
10842 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
10843 code.
10844 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
10845
10846 2013-10-02 Teresa Johnson <tejohnson@google.com>
10847
10848 * predict.c (probably_never_executed): New function.
10849 (probably_never_executed_bb_p): Invoke probably_never_executed.
10850 (probably_never_executed_edge_p): Ditto.
10851 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10852 Treat profile insanities conservatively.
10853
10854 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
10855
10856 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
10857
10858 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
10859
10860 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
10861 use it. Use smaller increase for scratch. Don't increase reject
10862 for early clobber scratch.
10863 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
10864 setting eliminated regs except setting fp from hfp.
10865 (lra_eliminate): Check lra_insn_recog_data on NULL.
10866
10867 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10868
10869 PR target/58587
10870 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
10871 setting -mvsx-timode by default until the underlying problem is fixed.
10872 (RS6000_CPU, power7 defaults): Likewise.
10873
10874 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
10875
10876 * config/x-linux (host-linux.o): Remove header dependencies.
10877 Use $(COMPILE) and $(POSTCOMPILE).
10878 * config/t-linux-android (linux-android.o): Ditto.
10879
10880 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
10881
10882 * Makefile.in (expmed.o-warn): Remove.
10883
10884 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10885
10886 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
10887 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
10888
10889 2013-10-02 Teresa Johnson <tejohnson@google.com>
10890
10891 * dojump.c (do_jump_1): Divide probability between
10892 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
10893
10894 2013-10-02 Tom Tromey <tromey@redhat.com>
10895
10896 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
10897
10898 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10899
10900 * tree-flow.h: Remove some prototypes.
10901 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
10902 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
10903 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
10904 mark_virtual_phi_result_for_renaming): Relocate here.
10905 * tree-into-ssa.h: Add prototypes.
10906 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
10907 single_pred_before_succ_order.
10908 (blocks_in_phiopt_order): Rename and move to cfganal.c.
10909 (nonfreeing_call_p) Move to gimple.c.
10910 * cfganal.c (single_pred_before_succ_order): Move and renamed from
10911 tree-ssa-phiopt.c.
10912 * basic-block.h (single_pred_before_succ_order): Add prototype.
10913 * gimple.c (nonfreeing_call_p): Relocate here.
10914 * gimple.h: Add prototype.
10915 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
10916 * tree-ssa-dom.h: New file. Relocate prototypes here.
10917 * tree-ssa.h: Include tree-ssa-dom.h.
10918
10919 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
10920
10921 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
10922 Use $(COMPILE) and $(POSTCOMPILE).
10923
10924 * config/alpha/x-alpha (driver-alpha.o): Ditto.
10925
10926 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10927
10928 * tree-flow.h: Remove some prototypes.
10929 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
10930 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
10931 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
10932 propagate_tree_value*): Move from here to...
10933 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
10934 propagate_tree_value*): Relocate here.
10935 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
10936 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
10937 * gimple-fold.c: Remove gimple-fold.h from include list.
10938 * tree-vrp.c: Remove gimple-fold.h from include list.
10939 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
10940 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
10941 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
10942 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
10943 * sese.c: Add tree-ssa-propagate.h to include list.
10944
10945 2013-10-02 Richard Biener <rguenther@suse.de>
10946
10947 * tree-loop-distribution.c: Include tree-vectorizer.h for
10948 find_loop_location.
10949 (enum partition_kind): Remove PKIND_REDUCTION.
10950 (struct partition_s): Remove has_writes member, add reduction_p member.
10951 (partition_alloc): Adjust.
10952 (partition_builtin_p): Likewise.
10953 (partition_has_writes): Remove.
10954 (partition_reduction_p): New function.
10955 (partition_merge_into): Likewise.
10956 (generate_code_for_partition): Commonize builtin partition
10957 handling tail.
10958 (rdg_cannot_recompute_vertex_p): Remove.
10959 (already_processed_vertex_p): Likewise.
10960 (rdg_flag_vertex): Do not set has_writes.
10961 (classify_partition): Adjust.
10962 (rdg_build_partitions): Do not set has_writes, treat all
10963 partitions as useful.
10964 (distribute_loop): Record number of library calls generated. Adjust.
10965 (tree_loop_distribution): Report number of loops and library
10966 calls generated as opt-info.
10967
10968 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10969
10970 * tree-flow.h: Include new .h files. Move prototypes.
10971 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
10972 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
10973 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
10974 * tree-pretty-print.h: Add prototypes from tree-flow.h.
10975 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
10976 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
10977 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
10978 * tree.h (get_ref_base_and_extent): Move prototype out.
10979 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
10980 tree-dfa.h.
10981 * gimple-low.h: New File. Add prototypes from tree-flow.h.
10982 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
10983 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
10984 * tree-scalar-evolution.c: Include tree.h.
10985 * sese.c: Include tree.h.
10986 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
10987 * dwarf2out.c: Include tree-dfa.h.
10988 * tree-chrec.c: Include tree.h.
10989 * tree-data-ref.c: Include tree.h.
10990
10991 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
10992
10993 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
10994 Fix whitespace.
10995
10996 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10997
10998 * config/t-sol2 (sol2-c.o): Remove header dependencies.
10999 Use $(COMPILE) and $(POSTCOMPILE).
11000 (sol2-cxx.o): Likewise.
11001 (sol2-stubs.o): Likewise.
11002 (sol2.o): Likewise.
11003 * config/x-solaris (host-solaris.o): Likewise.
11004
11005 * config/sparc/t-sparc (sparc.o): Remove.
11006 (sparc-c.o): Remove header dependencies.
11007 Use $(COMPILE) and $(POSTCOMPILE).
11008 * config/sparc/x-sparc: Likewise.
11009
11010 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
11011
11012 * config/arc/arc-opts.h: Add 2013 to Copyright years.
11013 * config/arc/arc700.md: Likewise.
11014 * config/arc/arc-modes.def: Likewise.
11015 * config/arc/arc-simd.h: Likewise.
11016 * config/arc/t-arc-uClibc: Likewise.
11017 * config/arc/t-arc-newlib: Likewise.
11018
11019 2013-10-02 Renlin Li <renlin.li@arm.com>
11020
11021 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
11022 plus_constant.
11023 (aarch64_expand_epilogue): Likewise.
11024
11025 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11026 Yufeng Zhang <yufeng.zhang@arm.com>
11027
11028 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
11029 declaration.
11030 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
11031 'base_in' represent a conversion and legal_cast_p_1 holds; set
11032 'base_in' with the returned value from get_unwidened.
11033
11034 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11035
11036 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
11037 plus_constant is not used.
11038
11039 2013-10-01 Wei Mi <wmi@google.com>
11040
11041 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
11042 * config/i386/i386.md: Add define_peephole2 to
11043 break partial reg stall for cvtss2sd/cvtsd2ss.
11044
11045 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
11046
11047 * config/arc/arc.c (pass_arc_ifcvt::clone):
11048 Update for ctxt_ -> m_ctxt change.
11049
11050 2013-10-01 Jeff Law <law@redhat.com>
11051
11052 * tree-ssa-threadupdate.c (struct redirection_data): Delete
11053 outgoing_edge and intermediate_edge fields. Instead store the path.
11054 (redirection_data::hash): Hash on the last edge's destination index.
11055 (redirection_data::equal): Check the entire thread path.
11056 (lookup_redirectio_data): Corresponding changes.
11057 (create_edge_and_update_destination_phis): Likewise.
11058 (thread_single_edge): Likewise.
11059
11060 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
11061 Diego Novillo <dnovillo@google.com>
11062
11063 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
11064 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
11065 (vld32wh_insn, vld32wl_insn): Delete commented-out old
11066 versions of these patterns.
11067
11068 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
11069 (__builtin_arc_aligned): Likewise.
11070
11071 * config/arc/arc.md: Expand adc_0 comment stating the intended
11072 purpose and why it isn't ready.
11073 Replace commented out call_value_via_label_mixed with a
11074 plain comment about bl_s.
11075
11076 * config/arc/arc.c (stdio.h): Don't include directly.
11077 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
11078 Remove if (1) condition.
11079 (arc_encode_section_info): Fix comment.
11080
11081 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
11082
11083 * config/arc/arc.c (arc_conditional_register_usage):
11084 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
11085 Also set reg_alloc_order for DMA config regs.
11086
11087 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
11088 Jeremy Bennett <jeremy.bennett@embecosm.com>
11089
11090 * doc/install.texi (--with-cpu): Mention ARC.
11091 (arc-*-elf32): New paragraph.
11092 (arc-linux-uclibc): Likewise.
11093 * doc/md.texi (Machine Constraints): Add ARC part.
11094 * doc/invoke.texi: (menu): Add ARC Options.
11095 (Machine Dependent Options) <ARC Options>: Add synopsis.
11096 (node ARC Options): Add.
11097 * doc/extend.texi (long_call / short_call attribute): Add ARC.
11098 (ARC Built-in Functions): New section defining
11099 generic ARC built-in functions.
11100 (ARC SIMD Built-in Functions): New section defining SIMD specific
11101 built-in functions.
11102 (Declaring Attributes of Functions): Extended
11103 description of short_call and long_call attributes for ARC and
11104 added index entries.
11105
11106 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
11107 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
11108 Joern Rennecke <joern.rennecke@embecosm.com>
11109 Muhammad Khurram Riaz <khurram.riaz@arc.com>
11110 Brendan Kehoe <brendan@zen.org>
11111 Michael Eager <eager@eagercon.com>
11112 Simon Cook <simon.cook@embecosm.com>
11113 Jeremy Bennett <jeremy.bennett@embecosm.com>
11114
11115 * config/arc, common/config/arc: New directories.
11116
11117 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
11118 Brendan Kehoe <brendan@zen.org>
11119 Simon Cook <simon.cook@embecosm.com>
11120
11121 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
11122
11123 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
11124
11125 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
11126 * tree-ssa-coalesce.h: New. Move prototype to here.
11127 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
11128 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
11129 (gimple_can_coalesce_p): Move to...
11130 * gimple.c (gimple_can_coalesce_p): Here.
11131
11132 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
11133
11134 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
11135 (dump_decl_set): Move to gimple.c.
11136 * gimple.h: Don't include tree-ssa-operands.h.
11137 (dump_decl_set): Add prototype.
11138 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
11139 Move to gimple-ssa.h.
11140 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
11141 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
11142 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
11143 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
11144 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
11145 than PHI_ARG_DEF.
11146 (dump_decl_set): Relocate here.
11147 * gimple-ssa.h: New file.
11148 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
11149 Relocate from gimple.h.
11150 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
11151 * tree-ssa-operands.c (swap_ssa_operands): Rename from
11152 swap_tree_operands and remove non-ssa path.
11153 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
11154 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
11155 swap_ssa_operands.
11156 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
11157 vect_is_simple_reduction_1): Use swap_ssa_operands.
11158 * tree-flow.h: Move various prototypes to tree-phinodes.h.
11159 (enum need_phi_state): Move to tree-into-ssa.c.
11160 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
11161 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
11162 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
11163 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
11164 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
11165 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
11166 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
11167 num_imm_uses): Move to ssa-iterators.h.
11168 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
11169 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
11170 tree-phinodes.h.
11171 (op_iter_done, op_iter_next_def, op_iter_next_tree,
11172 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
11173 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
11174 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
11175 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
11176 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
11177 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
11178 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
11179 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
11180 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
11181 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
11182 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
11183 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
11184 (set_phi_nodes): Move to tree-phinodes.h.
11185 * tree-ssa-operands.h (enum ssa_op_iter_type,
11186 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
11187 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
11188 (dump_decl_set): Remove prototype.
11189 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
11190 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
11191 (set_phi_nodes): Relocate from tree-flow-inline.h.
11192 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
11193 tree-flow-inline.h
11194 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
11195 include list. Temporarily add gimple.h to include list.
11196 * ssa-iterators.h: New file.
11197 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
11198 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
11199 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
11200 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
11201 Relocate from tree-ssa-operands.h.
11202 (delink_imm_use, link_imm_use_to_list, link_imm_use,
11203 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
11204 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
11205 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
11206 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
11207 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
11208 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
11209 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
11210 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
11211 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
11212 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
11213 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
11214 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
11215 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
11216 Relocate from tree-flow-inline.h.
11217 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
11218
11219 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
11220
11221 * aarch64-simd.md
11222 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
11223 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
11224 Insert '\t' to output template.
11225 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
11226 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
11227 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
11228 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
11229
11230 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
11231
11232 * doc/install.texi (Host/target specific installation notes for GCC):
11233 Put @anchor before @heading.
11234 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
11235 Use @email for email addresses.
11236
11237 2013-10-01 Jeff Law <law@redhat.com>
11238
11239 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
11240 a vec. Only delete the path if we create one without successfully
11241 registering a jump thread.
11242 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
11243 as a pointer.
11244 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
11245 (paths): New vector of jump threading paths.
11246 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
11247 (THREAD_PATH): New accessor macro for the entire thread path.
11248 (lookup_redirection_data): Get intermediate and final outgoing edge
11249 from the thread path.
11250 (create_edge_and_update_destination_phis): Copy the threading path.
11251 (ssa_fix_duplicate_block_edges): Get edges and block types from the
11252 jump threading path.
11253 (ssa_redirect_edges): Get edges and block types from the jump threading
11254 path. Free the path vector.
11255 (thread_block): Get edges from the jump threading path. Look at the
11256 entire path to see if we thread to a loop exit. If we cancel a jump
11257 thread request, then free the path vector.
11258 (thread_single_edge): Get edges and block types from the jump threading
11259 path. Free the path vector.
11260 (thread_through_loop_header): Get edges and block types from the jump
11261 threading path. Free the path vector.
11262 (mark_threaded_blocks): Iterate over the vector of paths and store
11263 the path on the appropriate edge. Get edges and block types from the
11264 jump threading path.
11265 (mark_threaded_blocks): Get edges and block types from the jump
11266 threading path. Free the path vector.
11267 (thread_through_all_blocks): Use the vector of paths rather than
11268 a vector of 3-edge sets.
11269 (register_jump_thread): Accept pointer to a path vector rather
11270 than the path vector itself. Store the path vector for later use.
11271 Simplify.
11272
11273 2013-10-01 Jakub Jelinek <jakub@redhat.com>
11274 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11275
11276 PR target/58574
11277 * config/s390/s390.c (s390_split_branches): Modify check for table
11278 jump insns.
11279 (s390_chunkify_start): Rearrange table jump insn check in order to
11280 deal with compare and branch insns correctly.
11281
11282 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
11283
11284 PR target/58578
11285 Revert
11286 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
11287 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
11288 define_insn_and_split.
11289 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
11290 (shiftsi3_compare): New pattern.
11291 (rrx): New pattern.
11292 * config/arm/unspecs.md (UNSPEC_RRX): New.
11293
11294 2013-10-01 Alan Modra <amodra@gmail.com>
11295
11296 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
11297 casing inout operands.
11298
11299 2013-10-01 Richard Biener <rguenther@suse.de>
11300
11301 PR tree-optimization/58553
11302 * tree-loop-distribution.c (struct partition_s): Add niter member.
11303 (classify_partition): Populate niter member for the partition
11304 and properly identify whether the relevant store happens before
11305 or after the loop exit.
11306 (generate_memset_builtin): Use niter member from the partition.
11307 (generate_memcpy_builtin): Likewise.
11308
11309 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
11310
11311 * vec.h (vec_prefix, vec): Prefix member names with "m_".
11312 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
11313
11314 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
11315
11316 * basic-block.h (edge_list): Prefix member names with "m_".
11317 * context.h (context): Likewise.
11318 * domwalk.h (dom_walker): Likewise.
11319 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
11320 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
11321 * hash-table.h (hash_table): Likewise.
11322 * machmode.h (bit_field_mode_iterator): Likewise.
11323 * pass_manager.h (pass_list): Likewise.
11324 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
11325 * tree-pass.h (pass_data): Likewise.
11326 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
11327 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
11328 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
11329 * asan.c (pass_data_asan): Update accordingly.
11330 * cfganal.c (control_dependences::find_control_dependence): Likewise.
11331 (control_dependences::control_dependences): Likewise.
11332 (control_dependences::~control_dependences): Likewise.
11333 (control_dependences::~control_dependences): Likewise.
11334 (control_dependences::get_edges_dependent_on): Likewise.
11335 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
11336 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
11337 * context.c (gcc::context::context): Likewise.
11338 * cprop.c (pass_rtl_cprop::clone): Likewise.
11339 * domwalk.c (dom_walker::walk): Likewise.
11340 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
11341 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
11342 * mode-switching.c (pass_mode_switching::clone): Likewise.
11343 * passes.c (opt_pass::opt_pass): Likewise.
11344 (pass_manager::pass_manager): Likewise.
11345 * predict.c (pass_strip_predict_hints::clone): Likewise.
11346 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
11347 (pass_split_all_insns::clone): Likewise.
11348 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
11349 Likewise.
11350 (bit_field_mode_iterator::next_mode): Likewise.
11351 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
11352 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
11353 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
11354 * tree-complex.c (pass_lower_complex::clone): Likewise.
11355 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
11356 * tree-object-size.c (pass_object_sizes::clone): Likewise.
11357 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
11358 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
11359 (pass_fold_builtins::clone): Likewise.
11360 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
11361 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
11362 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
11363 (pass_cd_dce::clone): Likewise.
11364 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
11365 (pass_phi_only_cprop::clone): Likewise.
11366 * tree-ssa-dse.c (pass_dse::clone): Likewise.
11367 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
11368 * tree-ssa-loop.c (pass_lim::clone): Likewise.
11369 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
11370 * tree-ssa-pre.c (pass_fre::clone): Likewise.
11371 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
11372 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
11373 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
11374 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
11375 * tree-vrp.c (pass_vrp::clone): Likewise.
11376 * tsan.c (pass_tsan::clone): Likewise.
11377
11378 2013-09-30 Jakub Jelinek <jakub@redhat.com>
11379
11380 PR middle-end/58564
11381 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
11382 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
11383
11384 PR middle-end/58564
11385 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
11386 optimization, punt if sign_bit_p looked through any zero extension.
11387
11388 2013-09-30 Teresa Johnson <tejohnson@google.com>
11389
11390 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
11391 Update redirected out edge count in joiner case.
11392 (ssa_redirect_edges): Common the joiner and non-joiner cases
11393 so that joiner case gets profile updates.
11394
11395 2013-09-30 Richard Biener <rguenther@suse.de>
11396
11397 PR tree-optimization/58554
11398 * tree-loop-distribution.c (classify_partition): Require
11399 unconditionally executed stores for memcpy and memset recognition.
11400 (tree_loop_distribution): Calculate dominance info.
11401
11402 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
11403
11404 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
11405 (NO_PROFILE_COUNTERS): Likewise.
11406 (PROFILE_HOOK): Likewise.
11407 (FUNCTION_PROFILER): Likewise.
11408 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
11409
11410 2013-09-30 Iain Sandoe <iain@codesourcery.com>
11411
11412 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
11413 calls and defines in TARGET_MACHO conditional.
11414 (load_macho_picbase_di): Likewise.
11415 (reload_macho_picbase): Likewise.
11416 (reload_macho_picbase_si): Likewise.
11417 (reload_macho_picbase_di): Likewise.
11418 (nonlocal_goto_receiver): Likewise.
11419
11420 2013-09-30 Nick Clifton <nickc@redhat.com>
11421
11422 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
11423 that use the MSP430X ISA.
11424 (msp430_option_override): Scan -mmcu command line option for any
11425 MCU name that supports the MSP430X ISA.
11426 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
11427 -mmcu options which enable the MSP430X ISA.
11428
11429 2013-09-30 Richard Biener <rguenther@suse.de>
11430
11431 PR middle-end/58532
11432 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
11433 before looking for setjmp-like calls.
11434
11435 2013-09-29 Iain Sandoe <iain@codesourcery.com>
11436
11437 PR target/10901
11438 * config/darwin-protos.h (machopic_get_function_picbase): New.
11439 * config/darwin.c (machopic_get_function_picbase): New.
11440 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
11441 label for a new func. (load_macho_picbase_di): Likewise.
11442 (reload_macho_picbase): New expand.
11443 (reload_macho_picbase_si): New insn.
11444 (reload_macho_picbase_di): New insn.
11445 (nonlocal_goto_receiver): New define and split.
11446 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
11447 (unspecv enum): Add UNSPECV_NLGR.
11448
11449 2013-09-29 Iain Sandoe <iain@codesourcery.com>
11450
11451 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
11452 that altivec registers are correctly sized on Darwin.
11453
11454 2013-09-29 Iain Sandoe <iain@codesourcery.com>
11455
11456 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
11457 darwin-driver.o): Use COMPILE and POSTCOMPILE.
11458 * config/x-darwin (host-darwin.o): Likewise.
11459 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
11460 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
11461 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
11462
11463 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
11464
11465 * doc/invoke.texi: Fix usage of @tie{} command.
11466
11467 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
11468
11469 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
11470
11471 2013-09-28 Jan Hubicka <jh@suse.cz>
11472
11473 * config/i386/x86-tune.def: Add documentation for each of the options;
11474 add whitespace.
11475
11476 2013-09-28 Jan Hubicka <jh@suse.cz>
11477
11478 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
11479 generic.
11480 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
11481 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
11482 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
11483 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
11484 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
11485
11486 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
11487
11488 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
11489 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
11490 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
11491 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
11492 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
11493 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
11494 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
11495 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
11496 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
11497 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
11498 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
11499 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
11500 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
11501 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
11502 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
11503 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
11504 gimple.h, godump.c, graphite-clast-to-gimple.c,
11505 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
11506 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
11507 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
11508 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
11509 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
11510 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
11511 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
11512 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
11513 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
11514 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
11515 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
11516 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
11517 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
11518 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
11519 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
11520 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
11521 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
11522 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
11523 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
11524 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
11525 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
11526 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
11527 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
11528 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
11529 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11530 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11531 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
11532 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
11533 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11534 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11535 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11536 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
11537 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
11538 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
11539 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
11540 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
11541 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
11542 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
11543 whitespace before "(".
11544
11545 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
11546
11547 * expr.h (extract_bit_field): Remove packedp parameter.
11548 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
11549 from forward declaration.
11550 (store_split_bit_field): Remove packedp arg from calls to
11551 extract_fixed_bit_field.
11552 (extract_bit_field_1): Remove packedp parameter and packedp
11553 argument from recursive calls and calls to extract_fixed_bit_field.
11554 (extract_bit_field): Remove packedp parameter and corresponding
11555 arg to extract_bit_field_1.
11556 (extract_fixed_bit_field): Remove packedp parameter. Remove code
11557 to issue warnings.
11558 (extract_split_bit_field): Remove packedp arg from call to
11559 extract_fixed_bit_field.
11560 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
11561 (copy_blkmode_from_reg): Likewise.
11562 (copy_blkmode_to_reg): Likewise.
11563 (read_complex_part): Likewise.
11564 (store_field): Likewise.
11565 (expand_expr_real_1): Likewise.
11566 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
11567 to extract_bit_field.
11568 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
11569 call to extract_bit_field.
11570 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
11571 call to extract_bit_field.
11572 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
11573 and special packedp behavior from -fstrict-volatile-bitfields
11574 documentation.
11575
11576 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11577
11578 * lra-eliminations.c (init_elim_table): Guard value_p.
11579
11580 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
11581
11582 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
11583 DFmode, DImode, and SFmode in the upper VSX registers based on the
11584 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
11585 if -mpower8-vector. Combine -mvsx-timode handling with the rest
11586 of the VSX register handling.
11587
11588 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
11589 (f32_sv): Likewise.
11590 (zero_extendsidi2_lfiwzx): Add support for loading into the
11591 Altivec registers with -mpower8-vector. Use wu/wv constraints to
11592 only do VSX memory options on Altivec registers.
11593 (extendsidi2_lfiwax): Likewise.
11594 (extendsfdf2_fpr): Likewise.
11595 (mov<mode>_hardfloat, SF/SD modes): Likewise.
11596 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
11597 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
11598 (movdi_internal64): Likewise.
11599
11600 2013-09-27 Xinliang David Li <davidxl@google.com>
11601
11602 * opts.c (finish_options): Adjust parameters
11603 according to vect cost model.
11604 (common_handle_option): Set dynamic vect cost
11605 model for FDO.
11606 targhooks.c (default_add_stmt_cost): Compute stmt cost
11607 unconditionally.
11608 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
11609 Use helper function.
11610 * tree-vectorizer.h (unlimited_cost_model): New function.
11611 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
11612 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
11613 function.
11614 (vect_enhance_data_refs_alignment): Ditto.
11615 * flag-types.h: New enum.
11616 * common/config/i386/i386-common.c (ix86_option_init_struct):
11617 No need to initialize vect_cost_model flag.
11618 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
11619 unconditionally.
11620
11621 2013-09-27 Diego Novillo <dnovillo@google.com>
11622
11623 * gimple.h (enum ssa_mode): Remove.
11624
11625 2013-09-27 Paulo Matos <pmatos@broadcom.com>
11626
11627 * cfgloop.h (number_of_loops): Fix typo in check for null.
11628
11629 2013-09-27 Jakub Jelinek <jakub@redhat.com>
11630
11631 PR middle-end/58551
11632 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
11633 are children of outermost saved_cfun's loop, and set it up to
11634 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
11635 if loop != loop0 and SESE region contains bbs that belong to loop0.
11636
11637 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
11638
11639 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
11640 (binary_scale_code_p, get_base_term, get_index_term): New functions.
11641 (set_address_segment, set_address_base, set_address_index)
11642 (set_address_disp): Accept the argument unconditionally.
11643 (baseness): Remove must_be_base_p and must_be_index_p checks.
11644 (decompose_normal_address): Classify as much as possible in the
11645 main loop.
11646
11647 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
11648
11649 * cse.c (count_reg_usage): Handle INT_LIST.
11650 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
11651 * reginfo.c (reg_scan_mark_refs): Likewise.
11652 * reload1.c (eliminate_regs_1): Likewise.
11653
11654 2013-09-27 Iain Sandoe <iain@codesourcery.com>
11655
11656 PR middle-end/58547
11657 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
11658 signed.
11659
11660 2013-09-27 Richard Biener <rguenther@suse.de>
11661
11662 PR tree-optimization/58459
11663 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
11664 restriction not propagating into loops.
11665
11666 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
11667
11668 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
11669 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
11670 * doc/tree-ssa.texi (Walking use-def chains): Delete.
11671
11672 2013-09-26 Richard Biener <rguenther@suse.de>
11673
11674 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
11675
11676 2013-09-26 Richard Biener <rguenther@suse.de>
11677
11678 * alias.h (component_uses_parent_alias_set): Rename to ...
11679 (component_uses_parent_alias_set_from): ... this.
11680 * alias.c (component_uses_parent_alias_set): Rename to ...
11681 (component_uses_parent_alias_set_from): ... this and return
11682 the desired parent.
11683 (reference_alias_ptr_type_1): Use the result from
11684 component_uses_parent_alias_set_from instead of stripping
11685 components one at a time.
11686 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
11687
11688 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
11689
11690 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
11691 Move prototypes to...
11692 * tree-ssa-ter.h: New File. Move prototypes here.
11693 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
11694 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
11695 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
11696 from is_replaceable_p.
11697 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
11698 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
11699 (process_replaceable): Use ter_is_replaceable_p.
11700 (find_replaceable_in_bb): Use ter_is_replaceable_p.
11701 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
11702 newly refactored ssa_is_replaceable_p.
11703 * cfgexpand.c: Include tree-outof-ssa.h.
11704 * ssaexpand.h: Delete.
11705
11706 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
11707
11708 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
11709 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
11710 tree-ssa.c
11711 (create_gimple_tmp): Delete.
11712 (get_expr_type, build_assign, build_type_cast): Move to...
11713 * gimple-builder.c: New File.
11714 (get_expr_type): Relocate from gimple.c.
11715 (build_assign, build_type_cast): Change to only create ssanames.
11716 * gimple.h: Move prototypes to...
11717 * gimple-builder.h: New File. Here.
11718 * tree-ssa.h: And here.
11719 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
11720 count_uses_and_derefs): Relocate from gimple.c.
11721 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
11722 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
11723 * tree-ssa-math-opts (execute_cse_reciprocals): Use
11724 gimple_replace_ssa_lhs.
11725 * asan.c: Include gimple-builder.h.
11726 * Makefile.in: Add gimple-builder.o.
11727
11728 2013-09-26 Richard Biener <rguenther@suse.de>
11729
11730 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
11731 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
11732 (loe_visit_block): Use gcc_checking_assert.
11733 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
11734 gimple_assign_ssa_name_copy_p.
11735 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
11736 change.
11737
11738 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
11739
11740 * config/rs6000/t-rs6000 (rs6000.o): Remove.
11741 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
11742
11743 2013-09-26 Richard Biener <rguenther@suse.de>
11744
11745 PR tree-optimization/58539
11746 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
11747 the fact that debug statements are not taking part in loop-closed
11748 SSA construction.
11749
11750 2013-09-26 Nick Clifton <nickc@redhat.com>
11751
11752 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
11753 time warning message.
11754 (msp430_print_operand_raw): Delete unused letter parameter.
11755 (TARGET_PRINT_OPERAND_ADDRESS): Define.
11756 (msp430_print_operand_address): New function.
11757 (msp430_print_operand): Move address printing code from here to
11758 new function.
11759 * config/msp430/msp430.md (movsipsi2): Add comment in generated
11760 assembler.
11761 (zero_extendpsisi2): Likewise.
11762 (extendpsisi2): New pattern.
11763 (andneghi3): New pattern.
11764
11765 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
11766
11767 * config/aarch64/aarch64.opt (mlra): New option.
11768 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
11769 (TARGET_LRA_P): Define.
11770
11771 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
11772
11773 * expr.c (expand_assignment): Remove obsolete comment.
11774
11775 2013-09-25 Jeff Law <law@redhat.com>
11776
11777 * tree-flow.h (thread_through_all_blocks): Prototype moved into
11778 tree-ssa-threadupdate.h.
11779 (register_jump_thread): Similarly.
11780 * tree-ssa-threadupdate.h: New header file.
11781 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
11782 * tree-vrp.c: Likewise.
11783 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
11784 (thread_around_empty_blocks): Change type of path vector argument to
11785 an edge,type pair from just an edge. Initialize both elements when
11786 appending to a jump threading path. Tweak references to elements
11787 appropriately.
11788 (thread_across_edge): Similarly. Release memory for the elements
11789 as needed.
11790 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
11791 (dump_jump_thread_path): New function broken out from
11792 register_jump_thread.
11793 (register_jump_thread): Use dump_jump_thread_path. Change type of
11794 path vector entries. Search the path for NULL edges and dump
11795 the path if one is found. Tweak the conversion of path to 3-edge
11796 form to use the block copy type information embedded in the path.
11797
11798 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
11799
11800 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
11801
11802 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
11803 Vladimir Makarov <vmakarov@redhat.com>
11804
11805 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
11806 from the least significant bit.
11807 (strip_address_mutations): Add bitfield operations handling.
11808 (must_be_index_p): Add shifting and rotate operations handling.
11809 (set_address_base): Use must_be_base_p predicate.
11810 (set_address_index): Use must_be_index_p predicate.
11811
11812 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
11813 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11814 Sergey Lega <sergey.s.lega@intel.com>
11815 Anna Tikhonova <anna.tikhonova@intel.com>
11816 Ilya Tocar <ilya.tocar@intel.com>
11817 Andrey Turetskiy <andrey.turetskiy@intel.com>
11818 Ilya Verbin <ilya.verbin@intel.com>
11819 Kirill Yukhin <kirill.yukhin@intel.com>
11820 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11821
11822 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11823 Use new names.
11824 (ix86_expand_vector_move_misalign): Support new unaligned load and
11825 stores and use new names.
11826 (CODE_FOR_sse2_storedqu): Rename to ...
11827 (CODE_FOR_sse2_storedquv16qi): ... this.
11828 (CODE_FOR_sse2_loaddqu): Rename to ...
11829 (CODE_FOR_sse2_loaddquv16qi): ... this.
11830 (CODE_FOR_avx_loaddqu256): Rename to ...
11831 (CODE_FOR_avx_loaddquv32qi): ... this.
11832 (CODE_FOR_avx_storedqu256): Rename to ...
11833 (CODE_FOR_avx_storedquv32qi): ... this.
11834 * config/i386/i386.md (fpint_logic): New.
11835 * config/i386/sse.md (VMOVE): Extend for AVX512.
11836 (VF): Ditto.
11837 (VF_128_256): New.
11838 (VF_512): Ditto.
11839 (VI_UNALIGNED_LOADSTORE): Ditto.
11840 (sse2_avx_avx512f): Ditto.
11841 (sse2_avx2): Extend for AVX512.
11842 (sse4_1_avx2): Ditto.
11843 (avx2_avx512f): New.
11844 (sse): Extend for AVX512.
11845 (sse2): Ditto.
11846 (sse4_1): Ditto.
11847 (avxsizesuffix): Ditto.
11848 (sseintvecmode): Ditto.
11849 (ssePSmode): Ditto.
11850 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
11851 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
11852 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
11853 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
11854 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
11855 (<sse2_avx_avx512f>_storedqu<mode): ... this.
11856 (<sse>_movnt<mode>): Replace constraint "x" with "v".
11857 (STORENT_MODE): Extend for AVX512.
11858 (*absneg<mode>2): Replace constraint "x" with "v".
11859 (*mul<mode>3): Ditto.
11860 (*ieee_smin<mode>3): Ditto.
11861 (*ieee_smax<mode>3): Ditto.
11862 (avx_cmp<mode>3): Replace VF with VF_128_256.
11863 (*<sse>_maskcmp<mode>3_comm): Ditto.
11864 (<sse>_maskcmp<mode>3): Ditto.
11865 (<sse>_andnot<mode>3): Extend for AVX512.
11866 (<code><mode>3, anylogic): Replace VF with VF_128_256.
11867 (<code><mode>3, fpint_logic): New.
11868 (*<code><mode>3): Extend for AVX512.
11869 (avx512flogicsuff): New.
11870 (avx512f_<logic><mode>): Ditto.
11871 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
11872 VF_128_256.
11873 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
11874 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
11875 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
11876 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
11877 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
11878 (xop_vpermil2<mode>3): Ditto.
11879 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
11880 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
11881 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
11882 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
11883
11884 2013-09-25 Tom Tromey <tromey@redhat.com>
11885
11886 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
11887 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
11888 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
11889 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
11890 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
11891 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
11892 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
11893 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
11894 (GRAPHITE_HTAB_H): Remove.
11895
11896 2013-09-25 Tom Tromey <tromey@redhat.com>
11897
11898 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
11899
11900 2013-09-25 Tom Tromey <tromey@redhat.com>
11901
11902 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
11903
11904 2013-09-25 Tom Tromey <tromey@redhat.com>
11905
11906 * config/i386/t-i386 (i386.o): Remove.
11907 (i386-c.o): Use COMPILE and POSTCOMPILE.
11908
11909 2013-09-25 Tom Tromey <tromey@redhat.com>
11910
11911 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
11912
11913 2013-09-25 Tom Tromey <tromey@redhat.com>
11914
11915 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
11916 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
11917 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
11918 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
11919 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
11920 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
11921 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
11922 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
11923 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
11924 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
11925 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
11926 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
11927 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
11928 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
11929 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
11930 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
11931 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
11932 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
11933 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
11934 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
11935 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
11936 (tree-ssa-pre.o, tree-ssa-sccvn.o)
11937 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
11938 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
11939 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
11940 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
11941 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
11942 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
11943 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
11944 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
11945 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
11946 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
11947 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
11948 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
11949 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
11950 (graphite-clast-to-gimple.o, graphite-dependences.o)
11951 (graphite-interchange.o, graphite-poly.o)
11952 (graphite-scop-detection.o, graphite-sese-to-poly.o)
11953 (graphite-optimize-isl.o, tree-vect-loop.o)
11954 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
11955 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
11956 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
11957 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
11958 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
11959 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
11960 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
11961 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
11962 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
11963 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
11964 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
11965 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
11966 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
11967 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
11968 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
11969 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
11970 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
11971 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
11972 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
11973 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
11974 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
11975 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
11976 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
11977 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
11978 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
11979 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
11980 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
11981 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
11982 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
11983 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
11984 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
11985 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
11986 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
11987 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
11988 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
11989 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
11990 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
11991 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
11992 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
11993 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
11994 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
11995 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
11996 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
11997 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
11998 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
11999 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
12000 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
12001 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
12002 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
12003 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
12004 (gcov-dump.o): Remove.
12005 (default-c.o): Use COMPILE and POSTCOMPILE.
12006 (CFLAGS-gcc.o): New variable.
12007 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
12008
12009 2013-09-25 Tom Tromey <tromey@redhat.com>
12010
12011 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
12012 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
12013 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
12014 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
12015 (c-family/c-pragma.o, c-family/c-pretty-print.o)
12016 (c-family/c-semantics.o, c-family/c-ada-spec.o)
12017 (c-family/array-notation-common.o, c-family/stub-objc.o)
12018 (c-family/c-ubsan.o): Remove.
12019
12020 2013-09-25 Tom Tromey <tromey@redhat.com>
12021
12022 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
12023
12024 2013-09-25 Tom Tromey <tromey@redhat.com>
12025
12026 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
12027 to add -DENABLE_SHARED_LIBGCC.
12028 (gcc.o): Don't use subshell.
12029
12030 2013-09-25 Tom Tromey <tromey@redhat.com>
12031
12032 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
12033 * configure.ac: Don't invoke AM_PROG_CC_C_O.
12034 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
12035 * configure, config.in: Rebuild.
12036
12037 2013-09-25 Tom Tromey <tromey@redhat.com>
12038
12039 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
12040 (COMPILE, POSTCOMPILE): New variables.
12041 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
12042 (DEPFILES): New variable.
12043 Include ".Po" files.
12044 * configure.ac: Add checks for dependency checking.
12045 * configure, aclocal.m4: Regenerate.
12046
12047 2013-09-25 Tom Tromey <tromey@redhat.com>
12048
12049 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
12050 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
12051
12052 2013-09-25 Tom Tromey <tromey@redhat.com>
12053
12054 * Makefile.in (generated_files): Add options.h,
12055 target-hooks-def.h, insn-opinit.h,
12056 common/common-target-hooks-def.h, pass-instances.def,
12057 c-family/c-target-hooks-def.h.
12058
12059 2013-09-25 Jeff Law <law@redhat.com>
12060
12061 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
12062 than foo[foo.length () - 1] to access last member in a vec.
12063 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
12064
12065 2013-09-25 Richard Biener <rguenther@suse.de>
12066
12067 PR middle-end/58521
12068 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
12069
12070 2013-09-25 Jan Hubicka <jh@suse.cz>
12071
12072 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
12073 test.
12074
12075 2013-09-25 Marek Polacek <polacek@redhat.com>
12076
12077 PR sanitizer/58420
12078 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
12079 when determining the type name.
12080
12081 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
12082
12083 * config/sh/sh.md: Fix formatting.
12084
12085 2013-09-24 Xinliang David Li <davidxl@google.com>
12086
12087 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
12088 max peel iterations parameter.
12089 * param.def: New parameter.
12090 * doc/invoke.texi: Document New parameter.
12091
12092 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
12093
12094 * gimple-pretty-print.c: Various whitespace tweaks.
12095 * tree-core.h: Likewise.
12096 * tree-pretty-print.c: Likewise.
12097 * tree-ssa-alias.c: Likewise.
12098 * tree-ssa-copy.c: Likewise.
12099 * tree-ssanames.c: Likewise.
12100 * tree-ssanames.h: Likewise.
12101 * tree-vrp.c: Likewise.
12102
12103 2013-09-24 Alan Modra <amodra@gmail.com>
12104
12105 PR middle-end/57134
12106 PR middle-end/57586
12107 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
12108 for output operands that disallow regs. Don't use EXPAND_WRITE on
12109 inout operands.
12110
12111 2013-09-24 Richard Biener <rguenther@suse.de>
12112
12113 PR middle-end/58513
12114 * tree.c (reference_alias_ptr_type): Move ...
12115 * alias.c (reference_alias_ptr_type): ... here and implement
12116 in terms of the new reference_alias_ptr_type_1.
12117 (ref_all_alias_ptr_type_p): New helper.
12118 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
12119 use ref_all_alias_ptr_type_p.
12120 (get_deref_alias_set): Add flag_strict_aliasing check here.
12121 (reference_alias_ptr_type_1): New function, split out from ...
12122 (get_alias_set): ... here.
12123 (alias_ptr_types_compatible_p): New function.
12124 * alias.h (reference_alias_ptr_type): Declare.
12125 (alias_ptr_types_compatible_p): Likewise.
12126 * tree.h (reference_alias_ptr_type): Remove.
12127 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
12128 to compare MEM_REF alias types.
12129
12130 2013-09-24 Richard Biener <rguenther@suse.de>
12131
12132 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
12133
12134 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12135
12136 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
12137 reload helper function arrays into a single array reg_addr.
12138 (reload_fpr_gpr): Likewise.
12139 (reload_gpr_vsx): Likewise.
12140 (reload_vsx_gpr): Likewise.
12141 (struct rs6000_reg_addr): Likewise.
12142 (reg_addr): Likewise.
12143 (rs6000_debug_reg_global): Change rs6000_vector_reload,
12144 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
12145 (rs6000_init_hard_regno_mode_ok): Likewise.
12146 (rs6000_secondary_reload_direct_move): Likewise.
12147 (rs6000_secondary_reload): Likewise.
12148
12149 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
12150 constraints: wu, ww, and wy. Repurpose wv constraint added during
12151 power8 changes. Put wg constraint in alphabetical order.
12152
12153 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
12154 for future work to add ISA 2.07 VSX single precision support.
12155 (-mvsx-scalar-double): Change default from -1 to 1, update
12156 documentation comment.
12157 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
12158 (-mupper-regs-df): New debug switch to control whether DF values
12159 can go in the traditional Altivec registers.
12160 (-mupper-regs-sf): New debug switch to control whether SF values
12161 can go in the traditional Altivec registers.
12162
12163 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
12164 and wy constraints.
12165 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
12166 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
12167 Add new constraints, wu/ww/wy. Repurpose wv constraint.
12168 (rs6000_debug_legitimate_address_p): Print if we are running
12169 before, during, or after reload.
12170 (rs6000_secondary_reload): Add a comment.
12171 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
12172
12173 * config/rs6000/constraints.md (wa constraint): Sort w<x>
12174 constraints. Update documentation string.
12175 (wd constraint): Likewise.
12176 (wf constraint): Likewise.
12177 (wg constraint): Likewise.
12178 (wn constraint): Likewise.
12179 (ws constraint): Likewise.
12180 (wt constraint): Likewise.
12181 (wx constraint): Likewise.
12182 (wz constraint): Likewise.
12183 (wu constraint): New constraint for ISA 2.07 SFmode scalar
12184 instructions.
12185 (ww constraint): Likewise.
12186 (wy constraint): Likewise.
12187 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
12188 in the previous submissions.
12189 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
12190
12191 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
12192
12193 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
12194 (REG_BR_PROB): Say that the probability is stored in an int_list.
12195 * reg-notes.def: Update commentary to mention INT_LIST.
12196 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
12197 (INT_LIST): New rtx.
12198 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
12199 * rtlanal.c (int_reg_note_p): New function.
12200 (alloc_reg_note): Assert that the note does not have an int argument.
12201 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
12202 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
12203 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
12204 rather than an INSN_LIST. Handle INT_LIST.
12205 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
12206 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
12207 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
12208 Manipulate them as ints rather than rtxes.
12209 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
12210 * regmove.c (copy_src_to_dest): Likewise.
12211 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
12212
12213 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
12214 into the cases that need it.
12215 * config/arm/arm.c (arm_unwind_emit): Likewise.
12216
12217 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
12218 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
12219 * loop-doloop.c (add_test, doloop_modify): Likewise.
12220 * loop-unswitch.c (compare_and_jump_seq): Likewise.
12221 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
12222 * predict.c (combine_predictions_for_insn): Likewise.
12223 * print-rtl.c (print_rtx): Handle INT_LIST.
12224 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
12225 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
12226 * config/arm/arm.c (emit_unlikely_jump): Likewise.
12227 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
12228 (ix86_split_fp_branch, predict_jump): Likewise.
12229 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
12230 * config/sh/sh.c (expand_cbranchsi4): Likewise.
12231 * config/spu/spu.c (ea_load_store_inline): Likewise.
12232
12233 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
12234 value of a REG_BR_PROB note.
12235 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
12236 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
12237 * emit-rtl.c (try_split): Likewise.
12238 * predict.c (br_prob_note_reliable_p): Likewise.
12239 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
12240 * reorg.c (mostly_true_jump): Likewise.
12241 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
12242 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
12243 * config/i386/i386.c (ix86_print_operand): Likewise.
12244 * config/ia64/ia64.c (ia64_print_operand): Likewise.
12245 * config/mmix/mmix.c (mmix_print_operand): Likewise.
12246 * config/rs6000/rs6000.c (output_cbranch): Likewise.
12247 * config/s390/s390.c (s390_expand_tbegin): Likewise.
12248 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
12249 * config/sparc/sparc.c (output_cbranch): Likewise.
12250 * config/spu/spu.c (get_branch_target): Likewise.
12251 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
12252 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
12253
12254 2013-09-23 Jan Hubicka <jh@suse.cz>
12255
12256 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
12257 for ipa-devirt.
12258 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
12259 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
12260 of external calls
12261 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
12262 (gimple_fold_call): Dump inconsistent devirtualizations; add
12263 sanity check for type based devirtualizations.
12264 * ipa-prop.c: Include ipa-utils.h
12265 (ipa_intraprocedural_devirtualization): Add sanity check.
12266 (try_make_edge_direct_virtual_call): Likewise.
12267
12268 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
12269
12270 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
12271 assignment statements.
12272
12273 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12274
12275 * gimple-pretty-print.c (dump_ssaname_info): New function.
12276 (dump_gimple_phi): Call it.
12277 (pp_gimple_stmt_1): Likewise.
12278 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
12279 (range_info_def): Declare.
12280 * tree-pretty-print.c (pp_double_int): New function.
12281 (dump_generic_node): Call it.
12282 * tree-pretty-print.h (pp_double_int): Declare.
12283 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
12284 * tree-ssanames.h (range_info_def): New structure.
12285 (value_range_type): Move definition here.
12286 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
12287 Declare.
12288 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
12289 initialization.
12290 (set_range_info): New function.
12291 (get_range_info): Likewise.
12292 (duplicate_ssa_name_range_info): Likewise.
12293 (duplicate_ssa_name_fn): Check pointer type and call
12294 duplicate_ssa_name_range_info.
12295 * tree-ssa-copy.c (fini_copy_prop): Likewise.
12296 * tree-vrp.c (value_range_type): Remove definition, now in
12297 tree-ssanames.h.
12298 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
12299 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
12300 (SSA_NAME_RANGE_INFO): New macro.
12301
12302 2013-09-23 Richard Biener <rguenther@suse.de>
12303
12304 PR tree-optimization/58464
12305 * tree-ssa-pre.c (phi_trans_lookup): Remove.
12306 (phi_trans_add): Change to add conditionally on being not present.
12307 (phi_translate_1): Remove recursion detection here.
12308 (phi_translate): Pre-seed the cache with NULL to catch
12309 recursion here in a more generic way.
12310 (bitmap_find_leader): Adjust comment.
12311 (get_representative_for): Dump value-numbers.
12312 (create_expression_by_pieces): Likewise.
12313 (insert_into_preds_of_block): Likewise.
12314
12315 2013-09-23 Christian Bruel <christian.bruel@st.com>
12316
12317 PR target/58475
12318 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
12319 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
12320
12321 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
12322
12323 Revert r202780:
12324 2013-09-20 Renlin Li <renlin.li@arm.com>
12325
12326 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12327 plus_constant.
12328 (aarch64_expand_epilogue): Likewise.
12329 (aarch64_legitimize_reload_address): Likewise.
12330
12331 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
12332
12333 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
12334 NULL_TREE before pushing them onto the vector. Likewise for labels.
12335
12336 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
12337
12338 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
12339 comparison operators when -fno-trapping-math is in effect.
12340 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
12341 comparison operators in TFmode and assert that unsupported operators
12342 cannot reach here.
12343 (ia64_print_operand): Likewise.
12344
12345 2013-09-21 Jan Hubicka <jh@suse.cz>
12346
12347 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
12348 (sse_typeless_stores): Enable for core
12349 (sse_load0_by_pxor): Likewise.
12350 (four_jump_limit): Disable for core.
12351 (pad_returns): Likewise.
12352 (avoid_vector_decode): Likewise.
12353 (fuse_cmp_and_branch): Enable for cores.
12354 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
12355
12356 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
12357
12358 PR middle-end/56791
12359 * config/pa/pa.c (pa_option_override): Disable auto increment and
12360 decrement instructions until reload is completed.
12361
12362 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
12363 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
12364 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12365
12366 2013-09-20 DJ Delorie <dj@redhat.com>
12367 Nick Clifton <nickc@redhat.com>
12368
12369 * config/rl78/rl78.c: Various whitespace and comment tweaks.
12370 (need_to_save): Save bank 0 on interrupts.
12371 (characterize_address): Strip far address wrappers.
12372 (rl78_as_legitimate_address): Likewise.
12373 (transcode_memory_rtx): Likewise.
12374 (rl78_peep_movhi_p): Disable this peephole after devirt.
12375 (rl78_propogate_register_origins): Forget all origins when a
12376 CLOBBER is seen.
12377 * config/rl78/rl78-virt.md: Various whitespace tweaks.
12378 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
12379 peephole2's.
12380 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
12381 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
12382 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
12383 relocating.
12384 * config/rl78/constraints.md: Various whitespace and paren tweaks.
12385
12386 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
12387
12388 * config/pa/pa.md: In "scc" insn patterns, change output template to
12389 handle const0_rtx in reg_or_0_operand operands.
12390
12391 2013-09-20 Martin Husemann <martin@NetBSD.org>
12392
12393 PR target/56875
12394 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
12395 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
12396
12397 2013-09-20 Richard Biener <rguenther@suse.de>
12398
12399 PR middle-end/58484
12400 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
12401 remembering SSA name version and block index.
12402 (new_scev_info_str): Adjust.
12403 (hash_scev_info): Likewise. Also hash the block index.
12404 (eq_scev_info): Adjust.
12405 (find_var_scev_info): Likewise.
12406 (struct instantiate_cache_entry): Remove.
12407 (struct instantiate_cache_type): Use a htab to map name, block
12408 to chrec.
12409 (instantiate_cache_type::~instantiate_cache_type): Adjust.
12410 (get_instantiated_value_entry): Likewise.
12411 (hash_idx_scev_info, eq_idx_scev_info): New functions.
12412 (instantiate_scev_name): Adjust.
12413
12414 2013-09-20 Jeff Law <law@redhat.com>
12415
12416 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
12417
12418 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
12419
12420 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
12421 Call aarch64_simd_expand_args to update op[argc].
12422
12423 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
12424
12425 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
12426 plugin argument.
12427
12428 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
12429
12430 * gengtype.c (file_rules): Added rule for *.cc files.
12431 (get_output_file_with_visibility): Give fatal message when no
12432 rules found.
12433
12434 2013-09-20 Renlin Li <renlin.li@arm.com>
12435
12436 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
12437 (aarch64_expand_epilogue): Likewise.
12438 (aarch64_legitimize_reload_address): Likewise.
12439
12440 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12441
12442 PR middle-end/57748
12443 * expr.c (expand_assignment): Remove misalignp code path.
12444
12445 2013-09-20 Marek Polacek <polacek@redhat.com>
12446
12447 PR sanitizer/58413
12448 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
12449 TYPE_PRECISION. Add asserts.
12450
12451 2013-09-20 Richard Biener <rguenther@suse.de>
12452
12453 PR tree-optimization/58453
12454 * tree-loop-distribution.c (distribute_loop): Apply the cost
12455 model for -ftree-loop-distribute-patterns, too.
12456
12457 2013-09-20 Richard Biener <rguenther@suse.de>
12458
12459 PR middle-end/58473
12460 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
12461 make type comparison less strict.
12462
12463 2013-09-20 Alan Modra <amodra@gmail.com>
12464
12465 * configure: Regenerate.
12466 * aclocal.m4: Regenerate.
12467
12468 2013-09-20 Marek Polacek <polacek@redhat.com>
12469
12470 PR other/58467
12471 * doc/extend.texi: Document that attribute used is meant to be used
12472 on variables with static storage duration.
12473
12474 2013-09-19 Jakub Jelinek <jakub@redhat.com>
12475
12476 PR tree-optimization/58472
12477 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
12478 simd_lane_access set inv_p = false.
12479 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
12480 the simduid magic VAR_DECL.
12481
12482 2013-09-19 Jan Hubicka <jh@suse.cz>
12483
12484 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
12485
12486 2013-09-17 Jeff Law <law@redhat.com>
12487
12488 * tree-ssa-dom.c (record_temporary_equivalences): New function
12489 split out of dom_opt_dom_walker::after_dom_children.
12490 (dom_opt_dom_walker::thread_across_edge): Move common code
12491 in here from dom_opt_dom_walker::after_dom_children.
12492 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
12493
12494 2013-09-19 Jan Hubicka <jh@suse.cz>
12495
12496 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
12497 (TARGET_GENERIC): Use PROCESOR_GENERIC
12498 (enum processor_type): Unify generic32 and 64.
12499 * i386.md (cpu): Likewise.
12500 * x86-tune.def (use_leave): Enable for generic32.
12501 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
12502 * athlon.md: Change generic64 to generic in all occurences.
12503 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
12504 (ix86_target_macros_internal): Likewise.
12505 * driver-i386.c (host_detect_local_cpu): Likewise.
12506 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
12507 to ..
12508 (generic_memcpy, generic_memset, generic_cost): This one.
12509 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
12510 (m_GENERIC32, m_GENERIC64): Remove.
12511 (m_GENERIC): Turn into one flag.
12512 (processor_target): Unify generic tunnings.
12513 (ix86_option_override_internal): Replace generic32/64 by generic.
12514 (ix86_issue_rate): Likewise.
12515 (ix86_adjust_cost): Likewise.
12516
12517 2013-09-19 Jan Hubicka <jh@suse.cz>
12518
12519 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
12520 of speculative flag.
12521
12522 2013-09-19 Jakub Jelinek <jakub@redhat.com>
12523
12524 * omp-low.c (expand_omp_sections): Always pass len - 1 to
12525 GOMP_sections_start, even if !exit_reachable.
12526
12527 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
12528
12529 * lra-constraints.c (need_for_all_save_p): Use macro
12530 HARD_REGNO_CALL_PART_CLOBBERED.
12531 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
12532 set up pseudo conflict hard regs.
12533
12534 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
12535
12536 PR target/58452
12537 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
12538 operands.
12539
12540 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
12541
12542 PR rtl-optimization/58438
12543 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
12544 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
12545 from previous subpasses.
12546
12547 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
12548
12549 * arm.c (arm_get_frame_offsets): Validate architecture supports
12550 LDRD/STRD before accepting the tuning preference.
12551 (arm_expand_prologue): Likewise.
12552 (arm_expand_epilogue): Likewise.
12553
12554 2013-09-18 Richard Biener <rguenther@suse.de>
12555
12556 PR tree-optimization/58417
12557 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
12558 have chrecs with symbols defined in the loop as operands.
12559 (chrec_fold_multiply): Likewise.
12560 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
12561 parameters before folding binary operations.
12562 (struct instantiate_cache_entry_hasher): Remove.
12563 (struct instantiate_cache_type): Use a pointer-map.
12564 (instantiate_cache_type::instantiate_cache_type): New function.
12565 (instantiate_cache_type::get): Likewise.
12566 (instantiate_cache_type::set): Likewise.
12567 (instantiate_cache_type::~instantiate_cache_type): Adjust.
12568 (get_instantiated_value_entry): Likewise.
12569 (global_cache): New global.
12570 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
12571 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
12572 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
12573 (instantiate_scev_name): Adjust.
12574 (instantiate_scev): Construct global instead of local cache.
12575 (resolve_mixers): Likewise.
12576
12577 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
12578 Paolo Carlini <paolo.carlini@oracle.com>
12579
12580 PR c++/58458
12581 * doc/implement-cxx.texi: Fix references to the C++ standards.
12582
12583 2013-09-18 Jakub Jelinek <jakub@redhat.com>
12584
12585 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
12586 * tree-vect-data-refs.c (vect_analyze_data_refs): For
12587 simd_lane_access drs, update also DR_ALIGNED_TO.
12588
12589 2013-09-18 Marek Polacek <polacek@redhat.com>
12590
12591 PR sanitizer/58411
12592 * doc/extend.texi: Document no_sanitize_undefined attribute.
12593 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
12594 no_sanitize_undefined attribute.
12595
12596 2013-09-18 Nick Clifton <nickc@redhat.com>
12597
12598 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
12599 (ASM_DECLARE_FUNCTION_NAME): Define.
12600
12601 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
12602
12603 * compare-elim.c (find_comparison_dom_walker): New class
12604 (find_comparisons_in_bb): Rename to
12605 find_comparison_dom_walker::before_dom_children
12606 (find_comparisons): Adjust
12607 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
12608 adjust.
12609 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
12610 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
12611 (init_walk_dominator_tree): Remove declaration.
12612 (fini_walk_dominator_tree): Remove declaration.
12613 * fwprop.c (single_def_use_dom_walker): New class
12614 (single_def_use_enter_block): Convert to
12615 single_def_use_dom_walker::before_dom_children.
12616 (single_def_use_leave_block): Convert to
12617 single_def_use_dom_walker::after_dom_children.
12618 (build_single_def_use_links): Adjust.
12619 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
12620 class.
12621 (find_candidates_in_block): Convert to
12622 find_candidates_dom_walker::before_dom_children.
12623 (execute_strength_reduction): Adjust.
12624 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
12625 (sese_dom_walker): New class.
12626 (sese_dom_walker::sese_dom_walker): New constructor.
12627 (sese_dom_walker::~sese_dom_walker): New destructor.
12628 (build_sese_conditions_before): Convert to
12629 sese_dom_walker::before_dom_children.
12630 (build_sese_conditions_after): Convert to
12631 sese_dom_walker::after_dom_children.
12632 (build_poly_scop): Adjust
12633 * tree-into-ssa.c (rewrite_dom_walker): New class
12634 (rewrite_enter_block): Convert to
12635 rewrite_dom_walker::before_dom_children.
12636 (rewrite_leave_block): Convert to
12637 rewrite_dom_walker::after_dom_children.
12638 (rewrite_update_dom_walker): New class.
12639 (rewrite_update_enter_block): Convert to
12640 rewrite_update_dom_walker::before_dom_children.
12641 (rewrite_update_leave_block): Convert to
12642 rewrite_update_dom_walker::after_dom_children.
12643 (rewrite_blocks, rewrite_into_ssa): Adjust.
12644 (mark_def_dom_walker): New class.
12645 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
12646 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
12647 (mark_def_sites_blocks): Convert to
12648 mark_def_dom_walker::before_dom_children.
12649 (mark_def_site_blocks): Remove.
12650 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
12651 (tree_ssa_dominator_optimize): Adjust.
12652 (dom_thread_across_edge): Convert to method
12653 dom_opt_dom_walker::thread_across_edge.
12654 (dom_opt_enter_block): Convert to member function
12655 dom_opt_dom_walker::before_dom_children.
12656 (dom_opt_leave_block): Convert to member function
12657 dom_opt_dom_walker::after_dom_children.
12658 * tree-ssa-dse.c (dse_dom_walker): New class.
12659 (dse_enter_block): Convert to member function
12660 dse_dom_walker::before_dom_children.
12661 (tree_ssa_dse): Adjust.
12662 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
12663 (determine_invariantness_stmt): Convert to method
12664 invariantness_dom_walker::before_dom_children.
12665 (determine_invariantness): Remove
12666 (move_computations_dom_walker): New class.
12667 (move_computations_stmt): Convert to method
12668 move_computations_dom_walker::before_dom_children.
12669 (move_computations, tree_ssa_lim): Adjust.
12670 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
12671 (nt_init_block): Convert to method
12672 notrappping_dom_walker::before_dom_children.
12673 (nt_fini_block): Convert to method
12674 method nontrapping_dom_walker::after_dom_children.
12675 (get_non_trapping): Adjust.
12676 * tree-ssa-pre.c (eliminate_dom_walker): New class.
12677 (eliminate_bb): Convert to method
12678 eliminate_dom_walker::before_dom_children.
12679 (eliminate_leave_block): Convert to method
12680 eliminate_dom_walker::after_dom_children.
12681 (eliminate): Adjust.
12682 * tree-ssa-strlen.c (strlen_dom_walker): New class.
12683 (strlen_enter_block): Convert to method
12684 strlen_dom_walker::before_dom_children.
12685 (strlen_leave_block): Convert to method
12686 method strlen_dom_walker::after_dom_children.
12687 (tree_ssa_strlen): Adjust.
12688 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
12689 (tree_ssa_uncprop): Adjust.
12690 (uncprop_leave_block): Convert to method
12691 uncprop_dom_walker::after_dom_children.
12692 (uncprop_leave_block): Convert to method
12693 uncprop_dom_walker::before_dom_children.
12694
12695 2013-09-18 Bin Cheng <bin.cheng@arm.com>
12696
12697 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
12698 branch in same basic block. Check both src and dest of the move insn.
12699
12700 2013-09-17 Nick Clifton <nickc@redhat.com>
12701
12702 * config/rl78/rl78-real.md (bf): New pattern.
12703 (bt): New pattern.
12704 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
12705 (rl78_print_operand): Do not put a # before a %B.
12706 * config/rl78/rl78.opt: Tweak doc strings.
12707
12708 2013-09-17 DJ Delorie <dj@redhat.com>
12709
12710 * config/rl78/constraints.md (Wcv): Allow up to $r31.
12711 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
12712 (rl78_option_override): Likewise, if -mallregs.
12713 (is_virtual_register): Likewise.
12714 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
12715 (REGNO_OK_FOR_BASE_P): Likewise.
12716 * config/rl78/rl78.opt (-mallregs): New.
12717
12718 2013-09-17 Nick Clifton <nickc@redhat.com>
12719
12720 * config/rl78/rl78.c (need_to_save): Change return type to bool.
12721 For interrupt functions: save all call clobbered registers if the
12722 interrupt handler is not a leaf function.
12723 (rl78_expand_prologue): Always recompute the frame information.
12724 For interrupt functions: only select bank 0 if one of the bank 0
12725 registers is going to be psuhed.
12726
12727 2013-09-17 DJ Delorie <dj@redhat.com>
12728
12729 * config/rl78/constraints.md: For each W* constraint, rename to C*
12730 and create a W* constraint that checks for an optional ES: prefix
12731 pattern also.
12732 * config/rl78/rl78.md (UNS_ES_ADDR): New.
12733 (es_addr): New. Used to wrap far addresses.
12734 * config/rl78/rl78-protos.h (rl78_es_addr): New.
12735 (rl78_es_base): New.
12736 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
12737 wrapped far addresses.
12738 (rl78_print_operand_1): Unwrap far addresses before processing.
12739 (rl78_lo16): Wrap far addresses in unspecs.
12740 (rl78_es_addr): New.
12741 (rl78_es_base): New.
12742 (insn_ok_now): Check for not-yet-wrapped far addresses.
12743 (transcode_memory_rtx): Properly re-wrap far addresses.
12744
12745 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
12746
12747 * config/sparc/t-rtems: Add leon3 multilibs.
12748
12749 2013-09-17 Cong Hou <congh@google.com>
12750
12751 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
12752 when checking the dot production pattern. The type of rhs operand
12753 of multiply is now checked correctly.
12754
12755 2013-09-17 Jeff Law <law@redhat.com>
12756
12757 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
12758 edge implied equivalences into successor phis.
12759 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
12760 here from tree-ssa-threadedge.c.
12761 (mark_threaded_blocks): When threading through a joiner, if both
12762 successors of the joiner's clone reach the same block, verify the
12763 PHI arguments are equal. If not, cancel the jump threading request.
12764 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
12765 tree-ssa-threadupdate.c
12766 (thread_across_edge): Don't check PHI argument equality when
12767 threading through joiner block here.
12768
12769 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
12770
12771 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
12772 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
12773 (warn_uninit, warn_uninitialized_vars,
12774 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
12775 Move to tree-ssa-uninit.c.
12776 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
12777 (has_undefined_value_p): New. Pass dependant parts of
12778 ssa_undefined_value_p.
12779 (uninit_undefined_value_p): Use has_undefined_value_p.
12780 (warn_uninit, warn_uninitialized_vars,
12781 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
12782 Move from tree-ssa.c.
12783 * tree-ssa.h: Adjust prototypes.
12784
12785 2013-09-17 Jan Hubicka <jh@suse.cz>
12786
12787 PR middle-end/58332
12788 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
12789 * ipa-inline.c (can_inline_edge_p): Do not downgrade
12790 FUNCTION_NOT_OPTIMIZED.
12791 * ipa-inline-analysis.c (compute_inline_parameters): Function
12792 not optimized is not inlinable unless it is alwaysinline.
12793 (inline_analyze_function): Force calls in not optimized
12794 function not inlinable.
12795
12796 2013-09-17 Jan Hubicka <jh@suse.cz>
12797
12798 PR middle-end/58329
12799 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
12800 to return NULL.
12801 * ipa.c (function_and_variable_visibility): Likewise.
12802 * ipa-profile.c (ipa_profile): Likewise.
12803
12804 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
12805
12806 PR ipa/58398
12807 * cgraph.c (cgraph_function_body_availability): Check for ifunc
12808 attribute, and don't inline the resolver in this case.
12809
12810 2013-09-17 Teresa Johnson <tejohnson@google.com>
12811
12812 * coverage.c (get_coverage_counts): Add missing newline.
12813
12814 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12815
12816 PR tree-optimization/58088
12817 * fold-const.c (mask_with_trailing_zeros): New function.
12818 (fold_binary_loc): Make sure we don't recurse infinitely
12819 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
12820 Use mask_with_trailing_zeros where appropriate.
12821
12822 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
12823
12824 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
12825 of 'prev' var to get better distance estimation.
12826
12827 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
12828
12829 * tree-inline.h (struct copy_body_data): Add transform_parameter.
12830 * tree-inline.c (is_parameter_of): New predicate.
12831 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
12832 a parameter has been remapped.
12833 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
12834 (optimize_inline_calls): Initialize transform_parameter.
12835 (copy_gimple_seq_and_replace_locals): Likewise.
12836 (tree_function_versioning): Likewise.
12837 (maybe_inline_call_in_expr): Likewise.
12838
12839 2013-09-17 Nick Clifton <nickc@redhat.com>
12840
12841 * config/msp430/msp430-protos.h: Add prototypes for new functions.
12842 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
12843 interrupt handlers.
12844 (is_attr_func): New function.
12845 (msp430_is_interrupt_func): New function.
12846 (is_naked_func): New function.
12847 (is_reentrant_func): New function.
12848 (is_critical_func): New function.
12849 (msp430_start_function): Add annotations for function attributes.
12850 (msp430_attr): New function.
12851 (msp430_attribute_table): New.
12852 (msp430_function_section): New function.
12853 (TARGET_ASM_FUNCTION_SECTION): Define.
12854 (msp430_builtin): New enum.
12855 (msp430_init_builtins): New function.
12856 (msp430_builtin_devl): New function.
12857 (msp430_expand_builtin): New function.
12858 (TARGET_INIT_BUILTINS): Define.
12859 (TARGET_EXPAND_BUILTINS): Define.
12860 (TARGET_BUILTIN_DECL): Define.
12861 (msp430_expand_prologue): Add support for naked, interrupt,
12862 critical and reentrant functions.
12863 (msp430_expand_epilogue): Likewise.
12864 (msp430_print_operand): Handle 'O' character.
12865 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
12866 NO_TRAMPOLINES.
12867 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
12868 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
12869 (pushm): Use a 'n' rather than an 'i' constraint.
12870 (msp_return): Add generation of the interrupt return instruction.
12871 (disable_interrupts): New pattern.
12872 (enable_interrupts): New pattern.
12873 (push_intr_state): New pattern.
12874 (pop_intr_state): New pattern.
12875 (bic_SR): New pattern.
12876 (bis_SR): New pattern.
12877 * doc/extend.texi: Document MSP430 function attributes and builtin
12878 functions.
12879
12880 2013-09-17 Richard Biener <rguenther@suse.de>
12881
12882 PR tree-optimization/58432
12883 * tree-loop-distribution.c (tree_loop_distribution): Also
12884 scan PHIs for outside loop uses and seed a partition from them.
12885
12886 2013-09-17 Bin Cheng <bin.cheng@arm.com>
12887
12888 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
12889 (restructure_reference): Call backtrace_base_for_ref.
12890
12891 2013-09-17 Alan Modra <amodra@gmail.com>
12892
12893 PR target/57589
12894 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
12895 patch.
12896
12897 2013-09-16 DJ Delorie <dj@redhat.com>
12898
12899 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
12900 vregs location for RL78/G10.
12901 (rl78_expand_prologue): Avoid SEL on G10.
12902 (rl78_expand_epilogue): Likewise.
12903 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
12904 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
12905 __RL78_G10__ when appropriate.
12906 (ASM_SPEC): Pass -mg10 along to the assembler.
12907 * config/rl78/rl78.md (sel_rb): Disable for G10.
12908 * config/rl78/rl78.opt: Add -mg10 option.
12909 * config/rl78/t-rl78: Add -mg10 multilib.
12910
12911 2013-09-16 Xinliang David Li <davidxl@google.com>
12912
12913 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
12914 * omp-low.c (omp_max_vf): Ditto.
12915 (expand_omp_simd): Ditto.
12916 * tree-vectorizer.c (vectorize_loops): Ditto.
12917 (gate_vect_slp): Ditto.
12918 (gate_increase_alignment): Ditto.
12919 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
12920 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
12921 (gate_tree_vectorize): Name change.
12922 (tree_vectorize): Ditto.
12923 (pass_vectorize::gate): Call new function.
12924 (pass_vectorize::execute): Ditto.
12925 * opts.c: O3 default setting change.
12926 (finish_options): Check new flag.
12927 * doc/invoke.texi: Document new flags.
12928 * common.opt: New flags.
12929
12930 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
12931
12932 * doc/tm.texi.in (Cond Exec Macros): Remove node.
12933 (Condition Code): Don't reference it.
12934 * doc/tm.texi: Regenerate.
12935
12936 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
12937
12938 PR middle-end/58418
12939 * lra-constraints.c (undo_optional_reloads): Consider all optional
12940 reload even if it did not get a hard reg.
12941
12942 2013-09-16 Teresa Johnson <tejohnson@google.com>
12943
12944 * dumpfile.c (dump_loc): Remove newline emission.
12945 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
12946 emission to dump_printf_loc calls where missing.
12947 (vect_mark_for_runtime_alias_test): Ditto.
12948 (vect_analyze_data_ref_dependence): Ditto.
12949 (vect_analyze_data_ref_dependences): Ditto.
12950 (vect_slp_analyze_data_ref_dependence): Ditto.
12951 (vect_slp_analyze_data_ref_dependences): Ditto.
12952 (vect_compute_data_ref_alignment): Ditto.
12953 (vect_update_misalignment_for_peel): Ditto.
12954 (vect_verify_datarefs_alignment): Ditto.
12955 (vector_alignment_reachable_p): Ditto.
12956 (vect_get_data_access_cost): Ditto.
12957 (vect_enhance_data_refs_alignment): Ditto.
12958 (vect_find_same_alignment_drs): Ditto.
12959 (vect_analyze_data_refs_alignment): Ditto.
12960 (vect_analyze_group_access): Ditto.
12961 (vect_analyze_data_ref_access): Ditto.
12962 (vect_analyze_data_ref_accesses): Ditto.
12963 (vect_prune_runtime_alias_test_list): Ditto.
12964 (vect_analyze_data_refs): Ditto.
12965 (vect_create_addr_base_for_vector_ref): Ditto.
12966 (vect_create_data_ref_ptr): Ditto.
12967 (vect_grouped_store_supported): Ditto.
12968 (vect_grouped_load_supported): Ditto.
12969 * value-prof.c (check_counter): Ditto.
12970 (check_ic_target): Ditto.
12971 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
12972 (vect_recog_widen_mult_pattern): Ditto.
12973 (vect_recog_widen_sum_pattern): Ditto.
12974 (vect_recog_over_widening_pattern): Ditto.
12975 (vect_recog_widen_shift_pattern): Ditto.
12976 (vect_recog_rotate_pattern): Ditto.
12977 (vect_recog_vector_vector_shift_pattern): Ditto.
12978 (vect_recog_divmod_pattern): Ditto.
12979 (vect_recog_mixed_size_cond_pattern): Ditto.
12980 (vect_recog_bool_pattern): Ditto.
12981 (vect_pattern_recog_1): Ditto.
12982 (vect_pattern_recog): Ditto.
12983 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
12984 (vect_is_simple_iv_evolution): Ditto.
12985 (vect_analyze_scalar_cycles_1): Ditto.
12986 (vect_get_loop_niters): Ditto.
12987 (vect_analyze_loop_1): Ditto.
12988 (vect_analyze_loop_form): Ditto.
12989 (vect_analyze_loop_operations): Ditto.
12990 (vect_analyze_loop_2): Ditto.
12991 (vect_analyze_loop): Ditto.
12992 (report_vect_op): Ditto.
12993 (vect_is_slp_reduction): Ditto.
12994 (vect_is_simple_reduction_1): Ditto.
12995 (vect_get_known_peeling_cost): Ditto.
12996 (vect_estimate_min_profitable_iters): Ditto.
12997 (vect_model_reduction_cost): Ditto.
12998 (vect_model_induction_cost): Ditto.
12999 (get_initial_def_for_induction): Ditto.
13000 (vect_create_epilog_for_reduction): Ditto.
13001 (vectorizable_reduction): Ditto.
13002 (vectorizable_induction): Ditto.
13003 (vectorizable_live_operation): Ditto.
13004 (vect_loop_kill_debug_uses): Ditto.
13005 (vect_transform_loop): Ditto.
13006 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
13007 (vect_stmt_relevant_p): Ditto.
13008 (process_use): Ditto.
13009 (vect_mark_stmts_to_be_vectorized): Ditto.
13010 (vect_model_simple_cost): Ditto.
13011 (vect_model_promotion_demotion_cost): Ditto.
13012 (vect_model_store_cost): Ditto.
13013 (vect_get_store_cost): Ditto.
13014 (vect_model_load_cost): Ditto.
13015 (vect_get_load_cost): Ditto.
13016 (vect_init_vector_1): Ditto.
13017 (vect_get_vec_def_for_operand): Ditto.
13018 (vect_finish_stmt_generation): Ditto.
13019 (vectorizable_call): Ditto.
13020 (vectorizable_conversion): Ditto.
13021 (vectorizable_assignment): Ditto.
13022 (vectorizable_shift): Ditto.
13023 (vectorizable_operation): Ditto.
13024 (vectorizable_store): Ditto.
13025 (vectorizable_load): Ditto.
13026 (vectorizable_condition): Ditto.
13027 (vect_analyze_stmt): Ditto.
13028 (vect_transform_stmt): Ditto.
13029 (vect_is_simple_use): Ditto.
13030 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
13031 (vect_can_advance_ivs_p): Ditto.
13032 (vect_update_ivs_after_vectorizer): Ditto.
13033 (vect_do_peeling_for_loop_bound): Ditto.
13034 (vect_gen_niters_for_prolog_loop): Ditto.
13035 (vect_update_inits_of_drs): Ditto.
13036 (vect_create_cond_for_alias_checks): Ditto.
13037 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
13038 (vect_build_slp_tree_1): Ditto.
13039 (vect_supported_load_permutation_p): Ditto.
13040 (vect_analyze_slp_instance): Ditto.
13041 (vect_analyze_slp): Ditto.
13042 (vect_make_slp_decision): Ditto.
13043 (vect_detect_hybrid_slp): Ditto.
13044 (vect_bb_vectorization_profitable_p): Ditto.
13045 (vect_slp_analyze_bb_1): Ditto.
13046 (vect_update_slp_costs_according_to_vf): Ditto.
13047 (vect_get_mask_element): Ditto.
13048 (vect_transform_slp_perm_load): Ditto.
13049 (vect_schedule_slp_instance): Ditto.
13050 (vect_schedule_slp): Ditto.
13051 (vect_slp_transform_bb): Ditto.
13052 * profile.c (read_profile_edge_counts): Ditto.
13053 (compute_branch_probabilities): Ditto.
13054 * coverage.c (get_coverage_counts): Ditto.
13055
13056 2013-09-16 Diego Novillo <dnovillo@google.com>
13057
13058 * tree-core.h: Add missing comment lines from refactoring of tree.h.
13059
13060 2013-09-16 Jan Hubicka <jh@suse.cz>
13061
13062 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
13063 abstract functions; for static functions check the presence of body.
13064
13065 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
13066
13067 * config/aarch64/aarch64-simd-builtins.def (fma): New.
13068 * config/aarch64/aarch64-simd.md
13069 (aarch64_mla_elt<mode>): New.
13070 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
13071 (aarch64_mls_elt<mode>): Likewise.
13072 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
13073 (aarch64_fma4_elt<mode>): Likewise.
13074 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
13075 (aarch64_fma4_elt_to_128v2df): Likewise.
13076 (aarch64_fma4_elt_to_64df): Likewise.
13077 (fnma<mode>4): Likewise.
13078 (aarch64_fnma4_elt<mode>): Likewise.
13079 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
13080 (aarch64_fnma4_elt_to_128v2df): Likewise.
13081 (aarch64_fnma4_elt_to_64df): Likewise.
13082 * config/aarch64/iterators.md (VDQSF): New.
13083 * config/aarch64/arm_neon.h
13084 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
13085 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
13086
13087 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
13088
13089 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
13090 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
13091 (aarch64_mul3_elt_to_128df): Likewise.
13092 (aarch64_mul3_elt_to_64v2df): Likewise.
13093 * config/aarch64/iterators.md (VEL): Also handle DFmode.
13094 (VMUL): New.
13095 (VMUL_CHANGE_NLANES) Likewise.
13096 (h_con): Likewise.
13097 (f): Likewise.
13098 * config/aarch64/arm_neon.h
13099 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
13100
13101 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
13102
13103 * config/aarch64/arm_neon.h
13104 (vcvtx_high_f32_f64): Fix parameters.
13105
13106 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13107 Uros Bizjak <ubizjak@gmail.com>
13108
13109 * config/alpha.c: Include tree-ssanames.h.
13110
13111 2013-09-16 Richard Biener <rguenther@suse.de>
13112
13113 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
13114 (dot_rdg_1): Handle control_dd.
13115 (create_edge_for_control_dependence): New function.
13116 (create_rdg_edges): Add control dependences if asked for.
13117 (build_rdg): Likewise.
13118 (generate_loops_for_partition): If there are not necessary
13119 control stmts remove all their dependencies.
13120 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
13121 (distribute_loop): Pass on control dependences.
13122 (tree_loop_distribution): Compute control dependences and remove
13123 restriction on number of loop nodes.
13124
13125 2013-09-16 Jakub Jelinek <jakub@redhat.com>
13126
13127 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
13128 for internal calls.
13129
13130 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
13131
13132 * cse.c (try_const_anchors): Punt on CC modes.
13133
13134 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13135
13136 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
13137
13138 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
13139
13140 PR target/58382
13141 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
13142 calls to word_mode.
13143
13144 2013-09-14 Iain Sandoe <iain@codesourcery.com>
13145
13146 PR target/48094
13147 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
13148 seen.
13149 (darwin_objc1_section): Likewise.
13150 (darwin_file_end): Emit Image Info section when required.
13151
13152 2013-09-14 Jan Hubicka <jh@suse.cz>
13153
13154 * tree-into-ssa.c (gate_into_ssa): New.
13155 (pass_data_build_ssa): Use it.
13156 * cgraph.h (expand_thunk): Update prototype.
13157 * cgraphunit.c (analyze_function): Expand thunks early.
13158 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
13159 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
13160 set lowered flag; do not add new function.
13161 (assemble_thunks_and_aliases): Update.
13162 * tree-ssa.c (gate_init_datastructures): New gate.
13163 (pass_data_init_datastructures): Use it.
13164
13165 2013-09-14 Iain Sandoe <iain@codesourcery.com>
13166
13167 PR target/58269
13168 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
13169 xmm register set described in the psABI.
13170
13171 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
13172
13173 * dwarf2out.c (should_emit_struct_debug): Add check
13174 for type_decl variable is not NULL.
13175
13176 2013-09-13 Jacek Caban <jacek@codeweavers.com>
13177
13178 * config.gcc: Use new winnt-c.c target hooks
13179 * config/t-winnt: New file
13180 * config/winnt-c.c: New file
13181 * doc/tm.texi.in: Document new hook
13182 * doc/tm.texi: Regenerated
13183
13184 2013-09-13 Jan Hubicka <jh@suse.cz>
13185
13186 PR middle-end/58094
13187 * ipa-inline.c (check_callers): New function.
13188 (check_caller_edge): Remove.
13189 (want_inline_function_to_all_callers_p): Also permit alises that are
13190 called dirrectly.
13191 (inline_to_all_callers): Terminate the walk when devirtualization
13192 introduce new calls.
13193
13194 2013-09-13 Jan Hubicka <jh@suse.cz>
13195
13196 * ipa-inline-analysis.c (struct growth_data): Add node.
13197 (do_estimate_growth_1): Fix detection of recursion.
13198
13199 2013-09-13 Jakub Jelinek <jakub@redhat.com>
13200
13201 PR tree-optimization/58392
13202 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
13203 to avoid shadowing of outer loop variable. If
13204 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
13205 replace_by_duplicate_decl simduid of loops that have it set and
13206 set dest_cfun->has_simduid_loops and/or
13207 dest_cfun->has_force_vect_loops.
13208 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
13209 instead of maybe_lookup_decl.
13210 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
13211 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
13212 call. Copy over force_vect and copy and remap simduid. Set
13213 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
13214 (copy_cfg_body): Remove blocks_to_copy argument. Use
13215 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
13216 caller. Don't set cfun->has_simduid_loops and/or
13217 cfun->has_force_vect_loops here.
13218 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
13219 caller.
13220 (expand_call_inline, tree_function_versioning): Adjust copy_body
13221 callers.
13222
13223 2013-09-13 Martin Jambor <mjambor@suse.cz>
13224
13225 PR bootstrap/58388
13226 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
13227 the assert if the edge was a speculative one.
13228
13229 2013-09-13 Richard Biener <rguenther@suse.de>
13230
13231 * tree-data-ref.h (known_dependences_p): Move here ...
13232 * tree-loop-distribution.c (known_dependences_p): ... from here.
13233 (dump_rdg_component, debug_rdg_component): Remove.
13234 (dump_rdg): Adjust.
13235 (generate_loops_for_partition): Use gimple_uid instead of
13236 relying on matching stmt visit order.
13237 (rdg_build_partitions): Take starting stmt vector.
13238 (ldist_gen): Merge into ...
13239 (distribute_loop): ... this function. Do not compute starting
13240 vertices vector.
13241 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
13242
13243 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13244
13245 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
13246 Set type attribute correctly. Set predicable_short_it attribute.
13247 (cmpsi_shiftsi): Remove %? from output template.
13248
13249 2013-09-13 Richard Biener <rguenther@suse.de>
13250
13251 * tree-loop-distribution.c (struct rdg_component,
13252 rdg_defs_used_in_other_loops_p, free_rdg_components,
13253 rdg_build_components): Remove.
13254 (stmts_from_loop): Do not record virtual PHIs.
13255 (generate_loops_for_partition): Skip virtual PHIs.
13256 (build_rdg_partition_for_component): Rename to ...
13257 (build_rdg_partition_for_vertex): ... this and adjust.
13258 (rdg_build_partitions): Take a vector of starting vertices
13259 instead of components. Remove unnecessary leftover handling.
13260 (ldist_gen): Do not build components or record other stores.
13261 (distribute_loop): Do not distribute loops containing stmts
13262 with side-effects.
13263
13264 2013-09-13 Christian Bruel <christian.bruel@st.com>
13265
13266 PR target/58314
13267 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
13268
13269 2013-09-13 Kai Tietz <ktietz@redhat.com>
13270
13271 * config.gcc: Separate cases for mingw and cygwin targets,
13272 and add 64-bit cygwin target case.
13273
13274 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
13275 dll-export inline-functions.
13276 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
13277
13278 2013-09-13 Jeff Law <law@redhat.com>
13279
13280 PR middle-end/58387
13281 Revert:
13282 2013-09-06 Jeff Law <law@redhat.com>
13283
13284 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13285 edge implied equivalences into successor phis.
13286
13287 2013-09-12 DJ Delorie <dj@redhat.com>
13288
13289 * config/rl78/rl78-virt.md: Change from | to \; for asm line
13290 separators.
13291
13292 2013-09-12 Brooks Moses <bmoses@google.com>
13293
13294 PR driver/42955
13295 * Makefile.in: Do not install driver binaries in $(target)/bin.
13296
13297 2013-09-12 DJ Delorie <dj@redhat.com>
13298
13299 * config/rl78/rl78.opt (mrelax): New.
13300 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
13301 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
13302
13303 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
13304 between SP and FP.
13305 (rl78_expand_epilogue): Likewise.
13306
13307 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
13308
13309 PR middle-end/58335
13310 * lra-eliminations.c (remove_reg_equal_offset_note): New.
13311 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
13312 pointer elimination with using remove_reg_equal_offset_note.
13313
13314 2013-09-12 DJ Delorie <dj@redhat.com>
13315
13316 * config/msp430/: New port.
13317 * config.gcc (msp430): Added.
13318 * doc/invoke.texi: Document MSP430 options.
13319 * doc/install.texi: Document msp430-elf
13320 * doc/md.texi: Document msp430-elf
13321 * doc/contrib.texi: Document msp430-elf
13322
13323 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
13324 PSImode.
13325
13326 2013-09-12 Martin Jambor <mjambor@suse.cz>
13327
13328 PR ipa/58389
13329 * ipa-prop.c (remove_described_reference): Give up if the edge in the
13330 reference descriptor is NULL.
13331 (ipa_edge_removal_hook): If owning a reference descriptor, set its
13332 edge to NULL.
13333
13334 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
13335
13336 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
13337 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
13338 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
13339 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
13340 make_temp_ssa_name): move to tree-ssanames.h
13341 * tree-ssa-alias.h: Move prototype.
13342 * tree-ssa.h: Include tree-ssanames.h.
13343 * tree-ssanames.c (FREE_SSANAMES): Move to here.
13344 * tree-ssanames.h: New. Move items from tree-flow*.h
13345 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
13346
13347 2013-09-12 Richard Biener <rguenther@suse.de>
13348
13349 PR tree-optimization/58404
13350 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
13351 propagate non-invariant addresses into dereferences wrapped
13352 in component references.
13353
13354 2013-09-12 Richard Biener <rguenther@suse.de>
13355
13356 PR tree-optimization/58402
13357 * passes.def: Move pass_late_warn_uninitialized later.
13358
13359 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
13360
13361 * tree-ssa.h: New. Move content from tree-flow.h and
13362 tree-flow-inline.h.
13363 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
13364 Move prototypes belonging to tree-ssa.c.
13365 * tree-flow-inline.h (redirect_edge_var_map_def,
13366 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
13367 tree-ssa.h.
13368 * gimple.h: Adjust prototypes.
13369 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
13370 to...
13371 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
13372 * tree.h: Move prototype to tree-ssa.h.
13373 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
13374 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
13375 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
13376 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
13377 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
13378 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
13379 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
13380 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
13381 graphite-blocking.c, graphite-clast-to-gimple.c,
13382 graphite-dependences.c, graphite-interchange.c,
13383 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
13384 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
13385 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
13386 ipa-reference.c, ipa-split.c, ipa-utils.c,
13387 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
13388 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
13389 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
13390 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
13391 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
13392 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
13393 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
13394 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
13395 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
13396 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
13397 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
13398 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13399 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
13400 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
13401 value-prof.c, var-tracking.c,
13402 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
13403
13404 2013-09-12 Richard Biener <rguenther@suse.de>
13405
13406 PR tree-optimization/58396
13407 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
13408 (build_rdg): Take a loop-nest parameter, fix memleaks.
13409 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
13410
13411 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
13412
13413 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
13414 for SLM.
13415
13416 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
13417
13418 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
13419 The FMA instruction names should have a 'v' prefix.
13420
13421 2013-09-12 Richard Biener <rguenther@suse.de>
13422
13423 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
13424 (dot_rdg): Use popen instead of system in optional code.
13425 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
13426 (already_processed_vertex_p): Adjust.
13427 (has_anti_or_output_dependence, predecessor_has_mem_write,
13428 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
13429 rdg_flag_uses): Remove.
13430 (rdg_flag_vertex): Simplify.
13431 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
13432 remove recursion.
13433 (build_rdg_partition_for_component): Process the first vertex
13434 of a component only.
13435 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
13436
13437 2013-09-12 Alan Modra <amodra@gmail.com>
13438
13439 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
13440
13441 2013-09-11 DJ Delorie <dj@redhat.com>
13442 Nick Clifton <nickc@redhat.com>
13443
13444 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
13445 (rl78_stack_based_mem): New.
13446 * config/rl78/constraints.md (Iv08): New.
13447 (Iv16): New.
13448 (Iv24): New.
13449 (Is09): New.
13450 (Is17): New.
13451 (Is25): New.
13452 (ISsi): New.
13453 (IShi): New.
13454 (ISqi): New.
13455 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
13456 (movhi): Likewise.
13457 (movsi): Change from expand to insn-and-split.
13458 (ashrsi3): Clobber AX.
13459 (lshrsi3): New.
13460 (ashlsi3): New.
13461 (cbranchsi4): New.
13462 * config/rl78/rl78.md (CC_REG): Fix.
13463 (addsi3): Allow memory and immediate operands.
13464 (addsi3_internal): Split into...
13465 (addsi3_internal_virt): ...new, and ...
13466 (addsi3_internal_real): ...new.
13467 (subsi): New.
13468 (subsi3_internal_virt): New.
13469 (subsi3_internal_real): New.
13470 (mulsi3): Add memory operand.
13471 (mulsi3_rl78): Likewise.
13472 (mulsi3_g13): Likewise.
13473 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
13474 (cbranchqi4_real): Add more constraint options.
13475 (cbranchhi4_real): Expand pattern.
13476 (cbranchhi4_real_signed): New.
13477 (cbranchhi4_real_inverted): New.
13478 (cbranchsi4_real_lt): New.
13479 (cbranchsi4_real_ge): New.
13480 (cbranchsi4_real_signed): New.
13481 (cbranchsi4_real): New.
13482 (peephole2): New.
13483 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
13484 constant shifts.
13485 (lshrsi3_virt): Likewise.
13486 (ashlsi3_virt): Likewise.
13487 (cbranchqi4_virt_signed): New.
13488 (cbranchhi4_virt_signed): New.
13489 (cbranchsi4_virt): New.
13490 * config/rl78/rl78.c: Whitespace fixes throughout.
13491 (move_elim_pass): New.
13492 (pass_data_rl78_move_elim): New.
13493 (pass_rl78_move_elim): New.
13494 (make_pass_rl78_move_elim): New.
13495 (rl78_devirt_info): Run devirt earlier.
13496 (rl78_move_elim_info): New.
13497 (rl78_asm_file_start): Register it.
13498 (rl78_split_movsi): New.
13499 (rl78_as_legitimate_address): Allow virtual base registers when
13500 appropriate.
13501 (rl78_addr_space_convert): Remove spurious debug stuff.
13502 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
13503 (rl78_print_operand): More cases for not printing '#'.
13504 (rl78_expand_compare): Remove most of the logic.
13505 (content_memory): New.
13506 (clear_content_memory): New.
13507 (get_content_index): New.
13508 (get_content_name): New.
13509 (display_content_memory): New.
13510 (update_content): New.
13511 (record_content): New.
13512 (already_contains): New.
13513 (insn_ok_now): Re-recog insns with virtual registers.
13514 (add_postponed_content_update): New.
13515 (process_postponed_content_update): New.
13516 (gen_and_emit_move): New.
13517 (transcode_memory_rtx): Record new location content.
13518 Use gen_and_emit_move.
13519 (force_into_acc): New.
13520 (move_to_acc): Use gen_and_emit_move.
13521 (move_from_acc): Likewise.
13522 (move_acc_to_reg): Likewise.
13523 (move_to_x): Likewise.
13524 (move_to_hl): Likewise.
13525 (move_to_de): Likewise.
13526 (rl78_alloc_physical_registers_op1): Record location content.
13527 (has_constraint): New.
13528 (rl78_alloc_physical_registers_op2): Record location content.
13529 Optimize use of HL.
13530 (rl78_alloc_physical_registers_ro1): Likewise.
13531 (rl78_alloc_physical_registers_cmp): Likewise.
13532 (rl78_alloc_physical_registers_umul): Likewise.
13533 (rl78_alloc_address_registers_macax): New.
13534 (rl78_alloc_physical_registers): Initialize and set location
13535 content memory as needed.
13536 (rl78_reorg): Make sure split2 is called.
13537 (rl78_rtx_costs): New.
13538
13539 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
13540
13541 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
13542 for (not (neg ...)) and (neg (not ...)) cases.
13543
13544 2013-09-11 Richard Biener <rguenther@suse.de>
13545
13546 PR middle-end/58377
13547 * passes.def: Split critical edges before late uninit warning passes.
13548 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
13549
13550 2013-09-11 Jakub Jelinek <jakub@redhat.com>
13551
13552 PR tree-optimization/58385
13553 * fold-const.c (build_range_check): If both low and high are NULL,
13554 use omit_one_operand_loc to preserve exp side-effects.
13555
13556 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13557
13558 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
13559
13560 2013-09-11 Richard Biener <rguenther@suse.de>
13561
13562 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
13563 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
13564 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
13565 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
13566 stmts_from_loop, known_dependences_p, build_empty_rdg,
13567 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
13568 * tree-loop-distribution.c: ... here.
13569 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
13570 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
13571 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
13572 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
13573 * tree-loop-distribution.c: ... here.
13574 * tree-loop-distribution.c: Include gimple-pretty-print.h.
13575 (struct partition_s): Add loops member.
13576 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
13577 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
13578 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
13579
13580 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13581 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13582 Sergey Lega <sergey.s.lega@intel.com>
13583 Anna Tikhonova <anna.tikhonova@intel.com>
13584 Ilya Tocar <ilya.tocar@intel.com>
13585 Andrey Turetskiy <andrey.turetskiy@intel.com>
13586 Ilya Verbin <ilya.verbin@intel.com>
13587 Kirill Yukhin <kirill.yukhin@intel.com>
13588 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13589
13590 * config/i386/constraints.md (k): New.
13591 (Yk): Ditto.
13592 * config/i386/i386.c (const regclass_map): Add new mask registers.
13593 (dbx_register_map): Ditto.
13594 (dbx64_register_map): Ditto.
13595 (svr4_dbx_register_map): Ditto.
13596 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
13597 disabled.
13598 (ix86_preferred_reload_class): Disable constants for mask registers.
13599 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
13600 (ix86_hard_regno_mode_ok): Support new mask registers.
13601 (x86_order_regs_for_local_alloc): Ditto.
13602 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
13603 (FIXED_REGISTERS): Add new mask registers.
13604 (CALL_USED_REGISTERS): Ditto.
13605 (REG_ALLOC_ORDER): Ditto.
13606 (VALID_MASK_REG_MODE): New.
13607 (FIRST_MASK_REG): Ditto.
13608 (LAST_MASK_REG): Ditto.
13609 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
13610 (MAYBE_MASK_CLASS_P): New.
13611 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
13612 (REG_CLASS_CONTENTS): Ditto.
13613 (MASK_REGNO_P): New.
13614 (ANY_MASK_REG_P): Ditto.
13615 (HI_REGISTER_NAMES): Add new mask registers.
13616 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
13617 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
13618 mask registers.
13619 (attribute "type"): Add mskmov, msklog.
13620 (attribute "length_immediate"): Support them.
13621 (attribute "memory"): Ditto.
13622 (attribute "prefix_0f"): Ditto.
13623 (*movhi_internal): Support new mask registers.
13624 (*movqi_internal): Ditto.
13625 (define_split): Split out clobber pattern is a logic
13626 insn on mask registers.
13627 (*k<logic><mode>): New.
13628 (*andhi_1): Extend to support mask regs.
13629 (*andqi_1): Extend to support mask regs.
13630 (kandn<mode>): New.
13631 (define_split): Split and-not to and and not if operands
13632 are not mask regs.
13633 (*<code><mode>_1): Separate HI mode to new pattern...
13634 (*<code>hi_1): This.
13635 (*<code>qi_1): Extend to support mask regs.
13636 (kxnor<mode>): New.
13637 (kortestzhi): Ditto.
13638 (kortestchi): Ditto.
13639 (kunpckhi): Ditto.
13640 (*one_cmpl<mode>2_1): Remove HImode and handle it...
13641 (*one_cmplhi2_1): ...Here, now with mask registers support.
13642 (*one_cmplqi2_1): Support new mask registers.
13643 (HI/QImode arithmetics splitter): Don't split if mask registers
13644 are used.
13645 (HI/QImode not splitter): Ditto.
13646 * config/i386/predicated.md (mask_reg_operand): New.
13647 (general_reg_operand): Ditto.
13648
13649 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13650
13651 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
13652 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
13653
13654 2013-09-10 Jeff Law <law@redhat.com>
13655
13656 PR tree-optimization/58380
13657 * tree-ssa-threadupdate.c (thread_block): Recognize another case
13658 of threading through a buried loop header.
13659
13660 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
13661 return value for single successor case.
13662
13663 2013-09-10 Jan Hubicka <jh@suse.cz>
13664
13665 * ipa-devirt.c (ipa_devirt): Enable with LTO.
13666
13667 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
13668
13669 PR target/58361
13670 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
13671 support conditional execution.
13672 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
13673
13674 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
13675
13676 * lra.c (lra): Clear lra_optional_reload_pseudos before every
13677 constraint pass.
13678 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
13679 Check destination too to check move insn.
13680 (undo_optional_reloads): Add check that the original peudo did not
13681 changed its allocation and the optional reload was inherited on last
13682 inheritance pass. Break loop after deciding to keep optional reload.
13683 (lra_undo_inheritance): Add check that inherited pseudo still in
13684 memory.
13685
13686 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
13687
13688 * config/aarch64/aarch64.md (generic_sched): New.
13689 * config/aarch64/aarch64-generic.md (load): Make conditional
13690 on generic_sched attribute.
13691 (nonload): Likewise.
13692
13693 2013-09-10 Jan Hubicka <jh@suse.cz>
13694
13695 * lto-cgraph.c: Include ipa-utils.h.
13696 (compute_ltrans_boundary): Also add possible targets into the boundary.
13697
13698 2013-09-10 Jan Hubicka <jh@suse.cz>
13699
13700 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
13701 VAR_DECL of vtable rather than full expression.
13702
13703 2013-09-10 Jan Hubicka <jh@suse.cz>
13704 Paolo Carlini <paolo.carlini@oracle.com>
13705
13706 * cgraphunit.c (analyze_functions): Save input_location, set it
13707 to UNKNOWN_LOCATION and restore it at the end.
13708
13709 2013-09-10 Martin Jambor <mjambor@suse.cz>
13710
13711 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
13712 represented by a thunk.
13713
13714 2013-09-10 Jeff Law <law@redhat.com>
13715
13716 PR tree-optimization/58343
13717 * tree-ssa-threadupdate.c (thread_block): Identify and disable
13718 jump threading requests through loop headers buried in the middle
13719 of a jump threading path.
13720
13721 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
13722 in return value/type.
13723
13724 2013-09-10 Jakub Jelinek <jakub@redhat.com>
13725
13726 PR rtl-optimization/58365
13727 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
13728 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
13729 it differs.
13730
13731 2013-09-10 Richard Biener <rguenther@suse.de>
13732
13733 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
13734 * tree-data-ref.c (create_rdg_vertices): Collect all data
13735 references, signal failure to the caller, use data-ref API.
13736 (build_rdg): Compute data references only once. Maintain lifetime
13737 of data references and data dependences from within RDG.
13738 (free_rdg): Free dependence relations.
13739 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
13740 inventing extra dependences.
13741 (distribute_loop): Update for RDG API changes.
13742
13743 2013-09-10 Kai Tietz <ktietz@redhat.com>
13744
13745 * doc/invoke.texi (fms-extensions): Document changed
13746 behavior for ms-abi targets.
13747 * config/i386/i386.c (ix86_option_override_internal):
13748 Set default value of option -fms-extension for ms-abi targets.
13749
13750 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
13751
13752 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
13753
13754 2013-09-10 Alan Modra <amodra@gmail.com>
13755
13756 PR target/58330
13757 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
13758
13759 2013-09-10 Alan Modra <amodra@gmail.com>
13760
13761 * config/rs6000/predicates.md (add_cint_operand): New.
13762 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
13763 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
13764 using add_cint_operand.
13765 (largetoc_high_plus_aix): Likewise.
13766
13767 2013-09-09 Jakub Jelinek <jakub@redhat.com>
13768
13769 PR tree-optimization/58364
13770 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
13771 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
13772 the current range can't be an unconditional true or false.
13773
13774 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
13775
13776 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
13777
13778 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
13779
13780 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
13781
13782 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
13783
13784 PR c++/43452
13785 * doc/invoke.texi (-Wdelete-incomplete): Document it.
13786
13787 2013-09-09 Ian Bolton <ian.bolton@arm.com>
13788
13789 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
13790 NO_REGS for immediate that can't be moved directly into FP_REGS.
13791
13792 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13793
13794 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
13795 comparison with negated operand.
13796 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
13797 RTL form.
13798
13799 2013-09-09 Richard Biener <rguenther@suse.de>
13800
13801 PR middle-end/58326
13802 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
13803 of a subloop record all its block as affecting loop-closed SSA form.
13804
13805 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13806
13807 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
13808 of an rtx/bitpos pair.
13809 (store_fixed_bit_field): Update accordingly.
13810
13811 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13812
13813 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
13814 GEN_INT.
13815 * builtins.c (expand_errno_check): Likewise.
13816 * dwarf2cfi.c (init_return_column_size): Likewise.
13817 * except.c (sjlj_mark_call_sites): Likewise.
13818 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
13819 * lra-constraints.c (emit_inc): Likewise.
13820 * ree.c (combine_set_extension): Likewise.
13821 * regmove.c (fixup_match_2): Likewise.
13822 * reload1.c (inc_for_reload): Likewise.
13823
13824 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13825
13826 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
13827 (force_to_mode, simplify_shift_const_1, simplify_comparison):
13828 Use gen_int_mode with the mode of the associated simplify_* call.
13829 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
13830 * expmed.c (expand_shift_1): Likewise.
13831 * function.c (instantiate_virtual_regs_in_insn): Likewise.
13832 * loop-iv.c (iv_number_of_iterations): Likewise.
13833 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
13834 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13835
13836 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13837
13838 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
13839 of the associated expand_* call.
13840 (asan_emit_stack_protection): Likewise.
13841 * builtins.c (round_trampoline_addr): Likewise.
13842 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
13843 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
13844 (emit_store_flag): Likewise.
13845 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
13846 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
13847 Likewise.
13848 * function.c (instantiate_virtual_regs_in_insn): Likewise.
13849 * ifcvt.c (noce_try_store_flag_constants): Likewise.
13850 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
13851 * modulo-sched.c (generate_prolog_epilog): Likewise.
13852 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
13853 (expand_ctz, expand_ffs, expand_unop): Likewise.
13854
13855 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13856
13857 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
13858 of the associated gen_rtx_* call.
13859 * caller-save.c (init_caller_save): Likewise.
13860 * combine.c (find_split_point, make_extraction): Likewise.
13861 (make_compound_operation): Likewise.
13862 * dwarf2out.c (mem_loc_descriptor): Likewise.
13863 * explow.c (plus_constant, probe_stack_range): Likewise.
13864 * expmed.c (expand_mult_const): Likewise.
13865 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
13866 * reload1.c (init_reload): Likewise.
13867 * valtrack.c (cleanup_auto_inc_dec): Likewise.
13868 * var-tracking.c (adjust_mems): Likewise.
13869 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
13870 rather than gen_rtx_fmt_ee.
13871
13872 2013-09-09 Jan Hubicka <jh@suse.cz>
13873
13874 PR middle-end/58294
13875 * value-prof.c (gimple_ic): Copy also abnormal edges.
13876
13877 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13878
13879 * asan.c (asan_shadow_cst): Use gen_int_mode.
13880
13881 2013-09-08 Jan Hubicka <jh@suse.cz>
13882
13883 * ipa-profile.c: Add toplevel comment.
13884 (ipa_propagate_frequency_1): Be more conservative when profile is read.
13885 (contains_hot_call_p): New function.
13886 (ipa_propagate_frequency): Set frequencies based on counts when
13887 profile is read.
13888 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
13889 profile; do not tamper with profile after inlining if it is read.
13890
13891 2013-09-08 Jan Hubicka <jh@suse.cz>
13892
13893 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
13894 speculative edges.
13895
13896 2013-09-08 Jan Hubicka <jh@suse.cz>
13897
13898 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
13899 summary generation.
13900
13901 2013-09-08 Jeff Law <law@redhat.com>
13902
13903 PR bootstrap/58340
13904 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
13905 of 'found'.
13906
13907 2013-09-08 Andi Kleen <ak@linux.intel.com>
13908
13909 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
13910
13911 2013-09-08 Jan Hubicka <jh@suse.cz>
13912
13913 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
13914
13915 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
13916
13917 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
13918 for non-debug insns.
13919 * lra.c (new_insn_reg): Take the containing insn as a parameter.
13920 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
13921 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
13922 accordingly.
13923
13924 2013-09-08 Jan Hubicka <jh@suse.cz>
13925
13926 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
13927 targets and devirtualize to BUILT_IN_UNREACHABLE.
13928 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
13929 * ipa.c (walk_polymorphic_call_targets): New function.
13930 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
13931 functions; use the new timevar.
13932 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
13933 was removed from the program.
13934 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
13935 not consider it in the walk when its vtable is dead.
13936 (possible_polymorphic_call_targets_1): Pass anonymous flag to
13937 record_binfo.
13938 (devirt_variable_node_removal_hook): New function.
13939 (possible_polymorphic_call_targets): Also register
13940 devirt_variable_node_removal_hook.
13941 (ipa_devirt): Do not do non-speculative devirtualization.
13942 (gate_ipa_devirt): One execute if devirtualizing speculatively.
13943
13944 2013-09-08 Jan Hubicka <jh@suse.cz>
13945
13946 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
13947 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
13948 varpool_remove_variable_insertion_hook): Declare.
13949 * varpool.c (varpool_node_hook_list): New structure.
13950 (first_varpool_node_removal_hook,
13951 first_varpool_variable_insertion_hook): New variables.
13952 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
13953 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
13954 varpool_remove_variable_insertion_hook,
13955 varpool_call_variable_insertion_hooks): New functions.
13956 (varpool_remove_node): Use it.
13957
13958 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
13959
13960 PR c++/54941
13961 * diagnostic.c (diagnostic_build_prefix): When s.file is
13962 "<built-in>" don't output line and column numbers.
13963
13964 2013-09-06 Jan Hubicka <jh@suse.cz>
13965
13966 * cgraphunit.c (expand_thunk): Get body before touching arguments.
13967 * lto-streamer-out.c: Stream thunks, too.
13968 * lto-streamer-in.c (input_function): Pop cfun here
13969 (lto_read_body): Instead of here.
13970
13971 2013-09-06 Caroline Tice <cmtice@google.com>
13972
13973 * doc/install.texi: Add documentation for the --enable-vtable-verify
13974 and the --disable-libvtv configure options.
13975
13976 2013-09-06 Jeff Law <law@redhat.com>
13977
13978 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13979 edge implied equivalences into successor phis.
13980
13981 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
13982
13983 * resource.c (mark_referenced_resources): Handle COND_EXEC.
13984
13985 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
13986
13987 * resource.c (mark_target_live_regs): Compute resources taking
13988 into account if a call is predicated or not.
13989
13990 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
13991
13992 * toplev.c (output_stack_usage): Be prepared for suffixes created by
13993 the compiler in the function names.
13994
13995 2013-09-06 Jan Hubicka <jh@suse.cz>
13996
13997 PR middle-end/58094
13998 * ipa-inline.c (has_caller_p): New function.
13999 (want_inline_function_to_all_callers_p): Use it.
14000 (sum_callers, inline_to_all_callers): Break out from ...
14001 (ipa_inline): ... here.
14002
14003 2013-09-06 Jan Hubicka <jh@suse.cz>
14004
14005 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
14006 only when AVX is enabled.
14007
14008 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14009
14010 * config/aarch64/aarch64.md
14011 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
14012 is fpsimd_<load/store>2.
14013 (load_pair<mode>): Likewise.
14014 (store_pair<mode>): Likewise.
14015
14016 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14017
14018 * config/arm/types.md (type): Add "mrs" type.
14019 * config/aarch64/aarch64.md
14020 (aarch64_load_tp_hard): Make type "mrs".
14021 * config/arm/arm.md
14022 (load_tp_hard): Make type "mrs".
14023 * config/arm/cortex-a15.md: Update with new attributes.
14024 * config/arm/cortex-a5.md: Update with new attributes.
14025 * config/arm/cortex-a53.md: Update with new attributes.
14026 * config/arm/cortex-a7.md: Update with new attributes.
14027 * config/arm/cortex-a8.md: Update with new attributes.
14028 * config/arm/cortex-a9.md: Update with new attributes.
14029 * config/arm/cortex-m4.md: Update with new attributes.
14030 * config/arm/cortex-r4.md: Update with new attributes.
14031 * config/arm/fa526.md: Update with new attributes.
14032 * config/arm/fa606te.md: Update with new attributes.
14033 * config/arm/fa626te.md: Update with new attributes.
14034 * config/arm/fa726te.md: Update with new attributes.
14035
14036 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14037
14038 * config/aarch64/aarch64.md
14039 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
14040 (*movtf_aarch64): Likewise.
14041 * config/arm/arm.md
14042 (thumb1_movdi_insn): Use "multiple" for type where more than one
14043 instruction is used for a move.
14044 (*arm32_movhf): Likewise.
14045 (*thumb_movdf_insn): Likewise.
14046
14047 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14048
14049 * config/arm/types.md (type): Rename fcpys to fmov.
14050 * config/arm/vfp.md
14051 (*arm_movsi_vfp): Rename type fcpys as fmov.
14052 (*thumb2_movsi_vfp): Likewise
14053 (*movhf_vfp_neon): Likewise
14054 (*movhf_vfp): Likewise
14055 (*movsf_vfp): Likewise
14056 (*thumb2_movsf_vfp): Likewise
14057 (*movsfcc_vfp): Likewise
14058 (*thumb2_movsfcc_vfp): Likewise
14059 * config/aarch64/aarch64-simd.md
14060 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
14061 * config/aarch64/aarch64.md
14062 (*movsi_aarch64): Replace type mov_reg with fmovs.
14063 (*movdi_aarch64): Likewise
14064 (*movsf_aarch64): Likewise
14065 (*movdf_aarch64): Likewise
14066 * config/arm/arm.c
14067 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
14068 * config/arm/iwmmxt.md
14069 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
14070 * config/arm/arm1020e.md: Update with new attributes.
14071 * config/arm/cortex-a15-neon.md: Update with new attributes.
14072 * config/arm/cortex-a5.md: Update with new attributes.
14073 * config/arm/cortex-a53.md: Update with new attributes.
14074 * config/arm/cortex-a7.md: Update with new attributes.
14075 * config/arm/cortex-a8-neon.md: Update with new attributes.
14076 * config/arm/cortex-a9.md: Update with new attributes.
14077 * config/arm/cortex-m4-fpu.md: Update with new attributes.
14078 * config/arm/cortex-r4f.md: Update with new attributes.
14079 * config/arm/marvell-pj4.md: Update with new attributes.
14080 * config/arm/vfp11.md: Update with new attributes.
14081
14082 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14083
14084 * config/aarch64/aarch64.md
14085 (*madd<mode>): Fix type attribute.
14086 (*maddsi_uxtw): Likewise.
14087 (*msub<mode>): Likewise.
14088 (*msubsi_uxtw): Likewise.
14089 (<su_optab>maddsidi4): Likewise.
14090 (<su_optab>msubsidi4): Likewise.
14091
14092 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14093
14094 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
14095 * config/arm/arm.md (core_cycles): Remove fdiv.
14096 * config/arm/vfp.md:
14097 (*sqrtsf2_vfp): Update for attribute changes.
14098 (*sqrtdf2_vfp): Likewise.
14099 * config/aarch64/aarch64.md:
14100 (sqrt<mode>2): Update for attribute changes.
14101 * config/arm/arm1020e.md: Update with new attributes.
14102 * config/arm/cortex-a15-neon.md: Update with new attributes.
14103 * config/arm/cortex-a5.md: Update with new attributes.
14104 * config/arm/cortex-a53.md: Update with new attributes.
14105 * config/arm/cortex-a7.md: Update with new attributes.
14106 * config/arm/cortex-a8-neon.md: Update with new attributes.
14107 * config/arm/cortex-a9.md: Update with new attributes.
14108 * config/arm/cortex-m4-fpu.md: Update with new attributes.
14109 * config/arm/cortex-r4f.md: Update with new attributes.
14110 * config/arm/marvell-pj4.md: Update with new attributes.
14111 * config/arm/vfp11.md: Update with new attributes.
14112
14113 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14114
14115 * config/arm/types.md
14116 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
14117 * config/aarch64/aarch64.md
14118 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
14119 new attributes.
14120 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
14121 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
14122 (float<GPI:mode><GPF:mode>2): Likewise.
14123 * config/arm/vfp.md
14124 (*truncsisf2_vfp): Update with new attributes.
14125 (*truncsidf2_vfp): Likewise.
14126 (fixuns_truncsfsi2): Likewise.
14127 (fixuns_truncdfsi2): Likewise.
14128 (*floatsisf2_vfp): Likewise.
14129 (*floatsidf2_vfp): Likewise.
14130 (floatunssisf2): Likewise.
14131 (floatunssidf2): Likewise.
14132 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
14133 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
14134 * config/arm/arm1020e.md: Update with new attributes.
14135 * config/arm/cortex-a15-neon.md: Update with new attributes.
14136 * config/arm/cortex-a5.md: Update with new attributes.
14137 * config/arm/cortex-a53.md: Update with new attributes.
14138 * config/arm/cortex-a7.md: Update with new attributes.
14139 * config/arm/cortex-a8-neon.md: Update with new attributes.
14140 * config/arm/cortex-a9.md: Update with new attributes.
14141 * config/arm/cortex-m4-fpu.md: Update with new attributes.
14142 * config/arm/cortex-r4f.md: Update with new attributes.
14143 * config/arm/marvell-pj4.md: Update with new attributes.
14144 * config/arm/vfp11.md: Update with new attributes.
14145
14146 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14147
14148 * config/aarch64/arm_neon.h
14149 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
14150 (vqtbx<1,2,3,4><q>_s8): Likewise.
14151
14152 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14153
14154 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
14155 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
14156 (add<mode>3): Add type attribute.
14157 (add<mode>3): Likewise.
14158 (usadd<mode>3): Likewise.
14159 (ssadd<mode>3): Likewise.
14160 (sub<mode>3): Likewise.
14161 (sub<mode>3): Likewise.
14162 (ussub<mode>3): Likewise.
14163 (sssub<mode>3): Likewise.
14164 (ssmulsa3): Likewise.
14165 (usmulusa3): Likewise.
14166 (arm_usatsihi): Likewise.
14167 * config/arm/vfp.md
14168 (*movdi_vfp): Add types for all instructions.
14169 (*movdi_vfp_cortexa8): Likewise.
14170 (*movhf_vfp_neon): Likewise.
14171 (*movhf_vfp): Likewise.
14172 (*movdf_vfp): Likewise.
14173 (*thumb2_movdf_vfp): Likewise.
14174 (*thumb2_movdfcc_vfp): Likewise.
14175 * config/arm/arm.md: Add type attribute to all insn patterns.
14176 (*thumb1_adddi3): Add type attribute.
14177 (*arm_adddi3): Likewise.
14178 (*adddi_sesidi_di): Likewise.
14179 (*adddi_zesidi_di): Likewise.
14180 (*thumb1_addsi3): Likewise.
14181 (addsi3_compare0): Likewise.
14182 (*addsi3_compare0_scratch): Likewise.
14183 (*compare_negsi_si): Likewise.
14184 (cmpsi2_addneg): Likewise.
14185 (*addsi3_carryin_<optab>): Likewise.
14186 (*addsi3_carryin_alt2_<optab>): Likewise.
14187 (*addsi3_carryin_clobercc_<optab>): Likewise.
14188 (*subsi3_carryin): Likewise.
14189 (*subsi3_carryin_const): Likewise.
14190 (*subsi3_carryin_compare): Likewise.
14191 (*subsi3_carryin_compare_const): Likewise.
14192 (*arm_subdi3): Likewise.
14193 (*thumb_subdi3): Likewise.
14194 (*subdi_di_zesidi): Likewise.
14195 (*subdi_di_sesidi): Likewise.
14196 (*subdi_zesidi_di): Likewise.
14197 (*subdi_sesidi_di): Likewise.
14198 (*subdi_zesidi_ze): Likewise.
14199 (thumb1_subsi3_insn): Likewise.
14200 (*arm_subsi3_insn): Likewise.
14201 (*anddi3_insn): Likewise.
14202 (*anddi_zesidi_di): Likewise.
14203 (*anddi_sesdi_di): Likewise.
14204 (*ne_zeroextracts): Likewise.
14205 (*ne_zeroextracts): Likewise.
14206 (*ite_ne_zeroextr): Likewise.
14207 (*ite_ne_zeroextr): Likewise.
14208 (*anddi_notdi_di): Likewise.
14209 (*anddi_notzesidi): Likewise.
14210 (*anddi_notsesidi): Likewise.
14211 (andsi_notsi_si): Likewise.
14212 (thumb1_bicsi3): Likewise.
14213 (*iordi3_insn): Likewise.
14214 (*iordi_zesidi_di): Likewise.
14215 (*iordi_sesidi_di): Likewise.
14216 (*thumb1_iorsi3_insn): Likewise.
14217 (*xordi3_insn): Likewise.
14218 (*xordi_zesidi_di): Likewise.
14219 (*xordi_sesidi_di): Likewise.
14220 (*arm_xorsi3): Likewise.
14221 (*andsi_iorsi3_no): Likewise.
14222 (*smax_0): Likewise.
14223 (*smax_m1): Likewise.
14224 (*arm_smax_insn): Likewise.
14225 (*smin_0): Likewise.
14226 (*arm_smin_insn): Likewise.
14227 (*arm_umaxsi3): Likewise.
14228 (*arm_uminsi3): Likewise.
14229 (*minmax_arithsi): Likewise.
14230 (*minmax_arithsi_): Likewise.
14231 (*satsi_<SAT:code>): Likewise.
14232 (arm_ashldi3_1bit): Likewise.
14233 (arm_ashrdi3_1bit): Likewise.
14234 (arm_lshrdi3_1bit): Likewise.
14235 (*arm_negdi2): Likewise.
14236 (*thumb1_negdi2): Likewise.
14237 (*arm_negsi2): Likewise.
14238 (*thumb1_negsi2): Likewise.
14239 (*negdi_extendsid): Likewise.
14240 (*negdi_zero_extend): Likewise.
14241 (*arm_abssi2): Likewise.
14242 (*thumb1_abssi2): Likewise.
14243 (*arm_neg_abssi2): Likewise.
14244 (*thumb1_neg_abss): Likewise.
14245 (one_cmpldi2): Likewise.
14246 (extend<mode>di2): Likewise.
14247 (*compareqi_eq0): Likewise.
14248 (*arm_extendhisi2addsi): Likewise.
14249 (*arm_movdi): Likewise.
14250 (*thumb1_movdi_insn): Likewise.
14251 (*arm_movt): Likewise.
14252 (*thumb1_movsi_insn): Likewise.
14253 (pic_add_dot_plus_four): Likewise.
14254 (pic_add_dot_plus_eight): Likewise.
14255 (tls_load_dot_plus_eight): Likewise.
14256 (*thumb1_movhi_insn): Likewise.
14257 (*thumb1_movsf_insn): Likewise.
14258 (*movdf_soft_insn): Likewise.
14259 (*thumb_movdf_insn): Likewise.
14260 (cbranchsi4_insn): Likewise.
14261 (cbranchsi4_scratch): Likewise.
14262 (*negated_cbranchsi4): Likewise.
14263 (*tbit_cbranch): Likewise.
14264 (*tlobits_cbranch): Likewise.
14265 (*tstsi3_cbranch): Likewise.
14266 (*cbranchne_decr1): Likewise.
14267 (*addsi3_cbranch): Likewise.
14268 (*addsi3_cbranch_scratch): Likewise.
14269 (*arm_cmpdi_insn): Likewise.
14270 (*arm_cmpdi_unsig): Likewise.
14271 (*arm_cmpdi_zero): Likewise.
14272 (*thumb_cmpdi_zero): Likewise.
14273 (*deleted_compare): Likewise.
14274 (*mov_scc): Likewise.
14275 (*mov_negscc): Likewise.
14276 (*mov_notscc): Likewise.
14277 (*cstoresi_eq0_thumb1_insn): Likewise.
14278 (cstoresi_nltu_thumb1): Likewise.
14279 (cstoresi_ltu_thu): Likewise.
14280 (thumb1_addsi3_addgeu): Likewise.
14281 (*arm_jump): Likewise.
14282 (*thumb_jump): Likewise.
14283 (*check_arch2): Likewise.
14284 (arm_casesi_internal): Likewise.
14285 (thumb1_casesi_dispatch): Likewise.
14286 (*arm_indirect_jump): Likewise.
14287 (*thumb1_indirect_jump): Likewise.
14288 (nop): Likewise.
14289 (*and_scc): Likewise.
14290 (*ior_scc): Likewise.
14291 (*compare_scc): Likewise.
14292 (*cond_move): Likewise.
14293 (*cond_arith): Likewise.
14294 (*cond_sub): Likewise.
14295 (*cmp_ite0): Likewise.
14296 (*cmp_ite1): Likewise.
14297 (*cmp_and): Likewise.
14298 (*cmp_ior): Likewise.
14299 (*ior_scc_scc): Likewise.
14300 (*ior_scc_scc_cmp): Likewise.
14301 (*and_scc_scc): Likewise.
14302 (*and_scc_scc_cmp): Likewise.
14303 (*and_scc_scc_nod): Likewise.
14304 (*negscc): Likewise.
14305 (movcond_addsi): Likewise.
14306 (movcond): Likewise.
14307 (*ifcompare_plus_move): Likewise.
14308 (*if_plus_move): Likewise.
14309 (*ifcompare_move_plus): Likewise.
14310 (*if_move_plus): Likewise.
14311 (*ifcompare_arith_arith): Likewise.
14312 (*if_arith_arith): Likewise.
14313 (*ifcompare_arith_move): Likewise.
14314 (*if_arith_move): Likewise.
14315 (*ifcompare_move_arith): Likewise.
14316 (*if_move_arith): Likewise.
14317 (*ifcompare_move_not): Likewise.
14318 (*if_move_not): Likewise.
14319 (*ifcompare_not_move): Likewise.
14320 (*if_not_move): Likewise.
14321 (*ifcompare_shift_move): Likewise.
14322 (*if_shift_move): Likewise.
14323 (*ifcompare_move_shift): Likewise.
14324 (*if_move_shift): Likewise.
14325 (*ifcompare_shift_shift): Likewise.
14326 (*ifcompare_not_arith): Likewise.
14327 (*ifcompare_arith_not): Likewise.
14328 (*if_arith_not): Likewise.
14329 (*ifcompare_neg_move): Likewise.
14330 (*if_neg_move): Likewise.
14331 (*ifcompare_move_neg): Likewise.
14332 (*if_move_neg): Likewise.
14333 (prologue_thumb1_interwork): Likewise.
14334 (*cond_move_not): Likewise.
14335 (*sign_extract_onebit): Likewise.
14336 (*not_signextract_onebit): Likewise.
14337 (stack_tie): Likewise.
14338 (align_4): Likewise.
14339 (align_8): Likewise.
14340 (consttable_end): Likewise.
14341 (consttable_1): Likewise.
14342 (consttable_2): Likewise.
14343 (consttable_4): Likewise.
14344 (consttable_8): Likewise.
14345 (consttable_16): Likewise.
14346 (*thumb1_tablejump): Likewise.
14347 (prefetch): Likewise.
14348 (force_register_use): Likewise.
14349 (thumb_eh_return): Likewise.
14350 (load_tp_hard): Likewise.
14351 (load_tp_soft): Likewise.
14352 (tlscall): Likewise.
14353 (*arm_movtas_ze): Likewise.
14354 (*arm_rev): Likewise.
14355 (*arm_revsh): Likewise.
14356 (*arm_rev16): Likewise.
14357 * config/arm/thumb2.md
14358 (*thumb2_smaxsi3): Likewise.
14359 (*thumb2_sminsi3): Likewise.
14360 (*thumb32_umaxsi3): Likewise.
14361 (*thumb2_uminsi3): Likewise.
14362 (*thumb2_negdi2): Likewise.
14363 (*thumb2_abssi2): Likewise.
14364 (*thumb2_neg_abss): Likewise.
14365 (*thumb2_movsi_insn): Likewise.
14366 (tls_load_dot_plus_four): Likewise.
14367 (*thumb2_movhi_insn): Likewise.
14368 (*thumb2_mov_scc): Likewise.
14369 (*thumb2_mov_negs): Likewise.
14370 (*thumb2_mov_negs): Likewise.
14371 (*thumb2_mov_nots): Likewise.
14372 (*thumb2_mov_nots): Likewise.
14373 (*thumb2_movsicc_): Likewise.
14374 (*thumb2_movsfcc_soft_insn): Likewise.
14375 (*thumb2_indirect_jump): Likewise.
14376 (*thumb2_and_scc): Likewise.
14377 (*thumb2_ior_scc): Likewise.
14378 (*thumb2_ior_scc_strict_it): Likewise.
14379 (*thumb2_cond_move): Likewise.
14380 (*thumb2_cond_arith): Likewise.
14381 (*thumb2_cond_ari): Likewise.
14382 (*thumb2_cond_sub): Likewise.
14383 (*thumb2_negscc): Likewise.
14384 (*thumb2_movcond): Likewise.
14385 (thumb2_casesi_internal): Likewise.
14386 (thumb2_casesi_internal_pic): Likewise.
14387 (*thumb2_alusi3_short): Likewise.
14388 (*thumb2_mov<mode>_shortim): Likewise.
14389 (*thumb2_addsi_short): Likewise.
14390 (*thumb2_subsi_short): Likewise.
14391 (thumb2_addsi3_compare0): Likewise.
14392 (*thumb2_cbz): Likewise.
14393 (*thumb2_cbnz): Likewise.
14394 (*thumb2_one_cmplsi2_short): Likewise.
14395 (*thumb2_negsi2_short): Likewise.
14396 (*orsi_notsi_si): Likewise.
14397 * config/arm/arm1020e.md: Update with new attributes.
14398 * config/arm/arm1026ejs.md: Update with new attributes.
14399 * config/arm/arm1136jfs.md: Update with new attributes.
14400 * config/arm/arm926ejs.md: Update with new attributes.
14401 * config/arm/cortex-a15.md: Update with new attributes.
14402 * config/arm/cortex-a5.md: Update with new attributes.
14403 * config/arm/cortex-a53.md: Update with new attributes.
14404 * config/arm/cortex-a7.md: Update with new attributes.
14405 * config/arm/cortex-a8.md: Update with new attributes.
14406 * config/arm/cortex-a9.md: Update with new attributes.
14407 * config/arm/cortex-m4.md: Update with new attributes.
14408 * config/arm/cortex-r4.md: Update with new attributes.
14409 * config/arm/fa526.md: Update with new attributes.
14410 * config/arm/fa606te.md: Update with new attributes.
14411 * config/arm/fa626te.md: Update with new attributes.
14412 * config/arm/fa726te.md: Update with new attributes.
14413
14414 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14415
14416 * config/aarch64/aarch64-simd.md
14417 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
14418 <vwx> iterator to ensure correct register choice.
14419 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
14420 (aarch64_sqdmull_n<mode>): Likewise.
14421 (aarch64_sqdmull2_n<mode>_internal): Likewise.
14422 * config/aarch64/arm_neon.h
14423 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
14424 (vml<as><q>_n_<su>16): Likewise.
14425 (vml<as>l_high_lane<q>_<su>16): Likewise.
14426 (vml<as>l_high_n_<su>16): Likewise.
14427 (vml<as>l_lane<q>_<su>16): Likewise.
14428 (vml<as>l_n_<su>16): Likewise.
14429 (vmul<q>_lane<q>_<su>16): Likewise.
14430 (vmul<q>_n_<su>16): Likewise.
14431 (vmull_lane<q>_<su>16): Likewise.
14432 (vmull_n_<su>16): Likewise.
14433 (vmull_high_lane<q>_<su>16): Likewise.
14434 (vmull_high_n_<su>16): Likewise.
14435 (vqrdmulh<q>_n_s16): Likewise.
14436
14437 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
14438
14439 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
14440 have the correct lane parameter.
14441
14442 2013-09-06 Richard Biener <rguenther@suse.de>
14443
14444 * cfganal.c (control_dependences::~control_dependences):
14445 Properly free all of the vector.
14446
14447 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
14448
14449 PR target/58269
14450 * config/i386/i386.c (ix86_conditional_register_usage):
14451 Proper initialize extended SSE registers.
14452
14453 2013-09-06 Jan Hubicka <jh@suse.cz>
14454
14455 PR tree-optimization/58311
14456 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
14457
14458 2013-09-06 Jan Hubicka <jh@suse.cz>
14459
14460 * Makefile.in (tree-sra.o): Update dependencies.
14461 * tree-sra.c: Include ipa-utils.h
14462 (scan_function): Use recursive_call_p.
14463 (has_caller_p): New function.
14464 (cgraph_for_node_and_aliases): Count also callers of aliases.
14465
14466 2013-09-06 Jan Hubicka <jh@suse.cz>
14467
14468 PR middle-end/58094
14469 * cgraph.h (symtab_semantically_equivalent_p): Declare.
14470 * tree-tailcall.c: Include ipa-utils.h.
14471 (find_tail_calls): Use it.
14472 * ipa-pure-const.c (check_call): Likewise.
14473 * ipa-utils.c (recursive_call_p): New function.
14474 * ipa-utils.h (recursive_call_p): Dclare.
14475 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
14476 (symtab_semantically_equivalent_p): New function.
14477 * Makefile.in (tree-tailcall.o): Update dependencies.
14478
14479 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
14480
14481 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
14482 non-inlinable part.
14483
14484 2013-09-06 Richard Biener <rguenther@suse.de>
14485
14486 * lto-streamer.h (lto_global_var_decls): Remove.
14487 * Makefile.in (OBJS): Remove lto-symtab.o.
14488 (lto-symtab.o): Remove.
14489 (GTFILES): Remove lto-symtab.c
14490 * lto-symtab.c: Move to lto/
14491
14492 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14493
14494 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
14495 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
14496 (UNSPEC_FPINT_RINT): New constant definitions.
14497 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
14498 definition with 2 attributes.
14499 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
14500 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
14501 definitions.
14502
14503 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14504
14505 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
14506 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
14507 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
14508 attribute to "z196_alone".
14509 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
14510 "zEC12_simple".
14511
14512 2013-09-06 Richard Biener <rguenther@suse.de>
14513
14514 * basic-block.h (class control_dependences): New.
14515 * tree-ssa-dce.c (control_dependence_map): Remove.
14516 (cd): New global.
14517 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
14518 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
14519 find_pdom, find_control_dependence, find_all_control_dependences):
14520 Move to cfganal.c.
14521 (mark_control_dependent_edges_necessary,
14522 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
14523 tree_dce_done, perform_tree_ssa_dce): Adjust.
14524 * cfganal.c (set_control_dependence_map_bit,
14525 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
14526 find_all_control_dependences): Move from tree-ssa-dce.c and
14527 implement as methods of control_dependences class.
14528 (control_dependences::control_dependences): New.
14529 (control_dependences::~control_dependences): Likewise.
14530 (control_dependences::get_edges_dependent_on): Likewise.
14531 (control_dependences::get_edge): Likewise.
14532
14533 2013-09-04 Jan Hubicka <jh@suse.cz>
14534
14535 * tree.c (types_same_for_odr): Drop overactive check.
14536 * ipa-devirt.c (hash_type_name): Likewise.
14537
14538 2013-09-04 Jan Hubicka <jh@suse.cz>
14539
14540 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
14541 (analyze_functions): ... here.
14542
14543 2013-09-04 Jan Hubicka <jh@suse.cz>
14544
14545 PR middle-end/58201
14546 * cgraphunit.c (analyze_functions): Clear AUX fields
14547 after processing; initialize assembler name has.
14548
14549 2013-09-05 Jeff Law <law@redhat.com>
14550
14551 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
14552 from thread_around_empty_block. Record threading path into PATH.
14553 Recurse if threading through the initial block is successful.
14554 (thread_across_edge): Corresponding changes to slightly simplify.
14555
14556 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14557
14558 * config/aarch64/aarch64.md
14559 (type): Remove frecpe, frecps, frecpx.
14560 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
14561 fix to be a TARGET_SIMD instruction.
14562 (aarch64_frecps): Remove.
14563 * config/aarch64/aarch64-simd.md
14564 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
14565 (aarch64_frecps<mode>): Handle all float/vector of float modes.
14566
14567 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14568 Sofiane Naci <sofiane.naci@arm.com>
14569
14570 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
14571 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
14572 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
14573 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
14574 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
14575 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
14576 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
14577 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
14578 into "clz, "rbit". Rename "shift" to "shift_imm".
14579 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
14580 changes. Update for attribute changes all occurrences of arlo_* and
14581 shift* types.
14582 * config/arm/arm-fixed.md: Update for attribute changes
14583 all occurrences of arlo_* types.
14584 * config/arm/thumb2.md: Update for attribute changes all occurrences
14585 of arlo_* types.
14586 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
14587 (cortexa7_older_only): Likewise.
14588 (cortexa7_younger): Likewise.
14589 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
14590 (1020alu_shift_op): Likewise.
14591 (1020alu_shift_reg_op): Likewise.
14592 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
14593 (alu_shift_op): Likewise.
14594 (alu_shift_reg_op): Likewise.
14595 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
14596 (11_alu_shift_op): Likewise.
14597 (11_alu_shift_reg_op): Likewise.
14598 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
14599 (9_alu_shift_reg_op): Likewise.
14600 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
14601 attribute changes.
14602 (cortex_a15_alu_shift): Likewise.
14603 (cortex_a15_alu_shift_reg): Likewise.
14604 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
14605 attribute changes.
14606 (cortex_a5_alu_shift): Likewise.
14607 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
14608 attribute changes.
14609 (cortex_a53_alu_shift): Likewise.
14610 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
14611 attribute changes.
14612 (cortex_a7_alu_reg): Likewise.
14613 (cortex_a7_alu_shift): Likewise.
14614 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
14615 attribute changes.
14616 (cortex_a8_alu_shift): Likewise.
14617 (cortex_a8_alu_shift_reg): Likewise.
14618 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
14619 (cortex_a9_dp_shift): Likewise.
14620 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
14621 attribute changes.
14622 * config/arm/cortex-r4.md
14623 (cortex_r4_alu): Update for attribute changes.
14624 (cortex_r4_mov): Likewise.
14625 (cortex_r4_alu_shift_reg): Likewise.
14626 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
14627 (526_alu_shift_op): Likewise.
14628 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
14629 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
14630 (626te_alu_shift_op): Likewise.
14631 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
14632 (726te_alu_shift_op): Likewise.
14633 (726te_alu_shift_reg_op): Likewise.
14634 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
14635 (mp626_alu_shift_op): Likewise.
14636 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
14637 (pj4_alu_conds): Likewise.
14638 (pj4_shift): Likewise.
14639 (pj4_shift_conds): Likewise.
14640 (pj4_alu_shift): Likewise.
14641 (pj4_alu_shift_conds): Likewise.
14642 * config/aarch64/aarch64.md: Update for attribute change
14643 all occurrences of arlo_* and shift* types.
14644
14645 2013-09-05 Mike Stump <mikestump@comcast.net>
14646
14647 * tree.h: Move documentation for tree_function_decl to tree-core.h
14648 with the declaration.
14649
14650 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
14651
14652 PR target/58139
14653 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
14654 looking for widest mode.
14655
14656 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
14657
14658 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
14659
14660 2013-09-05 Richard Biener <rguenther@suse.de>
14661
14662 PR tree-optimization/58137
14663 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
14664 Do not create vectors of pointers.
14665 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
14666 types for the components of the vector initializer.
14667 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
14668 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
14669
14670 2013-09-05 Martin Jambor <mjambor@suse.cz>
14671
14672 * ipa-prop.c (remove_described_reference): Accept missing references,
14673 return false if that hppens, otherwise return true.
14674 (cgraph_node_for_jfunc): New function.
14675 (try_decrement_rdesc_refcount): Likewise.
14676 (try_make_edge_direct_simple_call): Use them.
14677 (ipa_edge_removal_hook): Remove references from rdescs.
14678 (ipa_edge_duplication_hook): Clone rdescs and their references
14679 when the new edge has the same caller as the old one.
14680 * cgraph.c (cgraph_resolve_speculation): Remove speculative
14681 reference before removing any edges.
14682
14683 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
14684
14685 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
14686 initial store.
14687 * thumb2.md (thumb2_storewb_parisi): New pattern.
14688
14689 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
14690
14691 * config/aarch64/aarch64-option-extensions.def: Add
14692 AARCH64_OPT_EXTENSION of 'crc'.
14693 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
14694 (AARCH64_ISA_CRC): Ditto.
14695 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
14696 description of the CRC extension.
14697
14698 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
14699
14700 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
14701 * config/rs6000/linux.h: Ditto.
14702 * alpha/linux.h: Ditto.
14703 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
14704 no_c99_libc_has_function.
14705 * config/c6x/uclinux-elf.h: Ditto.
14706 * config/lm32/uclinux-elf.h: Ditto.
14707 * config/m68k/uclinux.h: Ditto.
14708 * config/moxie/uclinux.h: Ditto.
14709 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
14710 (crisv32-*-linux*, cris-*-linux*): Ditto.
14711 * config/bfin/bfin.c: Include "tm_p.h".
14712
14713 2013-09-05 Richard Biener <rguenther@suse.de>
14714
14715 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
14716 check for a definition without a basic-block.
14717
14718 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14719 Sofiane Naci <sofiane.naci@arm.com>
14720
14721 * config/aarch64/aarch64.md
14722 (*movti_aarch64): Rename r_2_f and f_2_r.
14723 (*movsf_aarch64): Likewise.
14724 (*movdf_aarch64): Likewise.
14725 (*movtf_aarch64): Likewise.
14726 (aarch64_movdi_<mode>low): Likewise.
14727 (aarch64_movdi_<mode>high): Likewise.
14728 (aarch64_mov<mode>high_di): Likewise.
14729 (aarch64_mov<mode>low_di): Likewise.
14730 (aarch64_movtilow_tilow): Likewise.
14731 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
14732 values to config/arm/types.md
14733 (attribute "conds"): Update for attribute change.
14734 (anddi3_insn): Likewise.
14735 (iordi3_insn): Likewise.
14736 (xordi3_insn): Likewise.
14737 (one_cmpldi2): Likewise.
14738 * config/arm/types.md (type): Add Neon types.
14739 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
14740 use "type" attribute.
14741 (movmisalign<mode>_neon_store): Likewise.
14742 (movmisalign<mode>_neon_load): Likewise.
14743 (vec_set<mode>_internal): Likewise.
14744 (vec_setv2di_internal): Likewise.
14745 (vec_extract<mode>): Likewise.
14746 (vec_extractv2di): Likewise.
14747 (add<mode>3_neon): Likewise.
14748 (adddi3_neon): Likewise.
14749 (sub<mode>3_neon): Likewise.
14750 (subdi3_neon): Likewise.
14751 (mul<mode>3_neon): Likewise.
14752 (mul<mode>3add<mode>_neon): Likewise.
14753 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
14754 (fma<VCVTF:mode>4)): Likewise.
14755 (fma<VCVTF:mode>4_intrinsic): Likewise.
14756 (fmsub<VCVTF:mode>4)): Likewise.
14757 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
14758 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
14759 (ior<mode>3): Likewise.
14760 (and<mode>3): Likewise.
14761 (anddi3_neon): Likewise.
14762 (orn<mode>3_neon): Likewise.
14763 (orndi3_neon): Likewise.
14764 (bic<mode>3_neon): Likewise.
14765 (bicdi3_neon): Likewise.
14766 (xor<mode>3): Likewise.
14767 (one_cmpl<mode>2): Likewise.
14768 (abs<mode>2): Likewise.
14769 (neg<mode>2): Likewise.
14770 (umin<mode>3_neon): Likewise.
14771 (umax<mode>3_neon): Likewise.
14772 (smin<mode>3_neon): Likewise.
14773 (smax<mode>3_neon): Likewise.
14774 (vashl<mode>3): Likewise.
14775 (vashr<mode>3_imm): Likewise.
14776 (vlshr<mode>3_imm): Likewise.
14777 (ashl<mode>3_signed): Likewise.
14778 (ashl<mode>3_unsigned): Likewise.
14779 (neon_load_count): Likewise.
14780 (ashldi3_neon_noclobber): Likewise.
14781 (signed_shift_di3_neon): Likewise.
14782 (unsigned_shift_di3_neon): Likewise.
14783 (ashrdi3_neon_imm_noclobber): Likewise.
14784 (lshrdi3_neon_imm_noclobber): Likewise.
14785 (widen_ssum<mode>3): Likewise.
14786 (widen_usum<mode>3): Likewise.
14787 (quad_halves_<code>v4si): Likewise.
14788 (quad_halves_<code>v4sf): Likewise.
14789 (quad_halves_<code>v8hi): Likewise.
14790 (quad_halves_<code>v16qi): Likewise.
14791 (reduc_splus_v2di): Likewise.
14792 (neon_vpadd_internal<mode>): Likewise.
14793 (neon_vpsmin<mode>): Likewise.
14794 (neon_vpsmax<mode>): Likewise.
14795 (neon_vpumin<mode>): Likewise.
14796 (neon_vpumax<mode>): Likewise.
14797 (ss_add<mode>_neon): Likewise.
14798 (us_add<mode>_neon): Likewise.
14799 (ss_sub<mode>_neon): Likewise.
14800 (us_sub<mode>_neon): Likewise.
14801 (neon_vadd<mode>_unspec): Likewise.
14802 (neon_vaddl<mode>): Likewise.
14803 (neon_vaddw<mode>): Likewise.
14804 (neon_vhadd<mode>): Likewise.
14805 (neon_vqadd<mode>): Likewise.
14806 (neon_vaddhn<mode>): Likewise.
14807 (neon_vmul<mode>): Likewise.
14808 (neon_vmla<mode>): Likewise.
14809 (neon_vmlal<mode>): Likewise.
14810 (neon_vmls<mode>): Likewise.
14811 (neon_vmlsl<mode>): Likewise.
14812 (neon_vqdmulh<mode>): Likewise.
14813 (neon_vqdmlal<mode>): Likewise.
14814 (neon_vqdmlsl<mode>): Likewise.
14815 (neon_vmull<mode>): Likewise.
14816 (neon_vqdmull<mode>): Likewise.
14817 (neon_vsub<mode>_unspec): Likewise.
14818 (neon_vsubl<mode>): Likewise.
14819 (neon_vsubw<mode>): Likewise.
14820 (neon_vqsub<mode>): Likewise.
14821 (neon_vhsub<mode>): Likewise.
14822 (neon_vsubhn<mode>): Likewise.
14823 (neon_vceq<mode>): Likewise.
14824 (neon_vcge<mode>): Likewise.
14825 (neon_vcgeu<mode>): Likewise.
14826 (neon_vcgt<mode>): Likewise.
14827 (neon_vcgtu<mode>): Likewise.
14828 (neon_vcle<mode>): Likewise.
14829 (neon_vclt<mode>): Likewise.
14830 (neon_vcage<mode>): Likewise.
14831 (neon_vcagt<mode>): Likewise.
14832 (neon_vtst<mode>): Likewise.
14833 (neon_vabd<mode>): Likewise.
14834 (neon_vabdl<mode>): Likewise.
14835 (neon_vaba<mode>): Likewise.
14836 (neon_vabal<mode>): Likewise.
14837 (neon_vmax<mode>): Likewise.
14838 (neon_vmin<mode>): Likewise.
14839 (neon_vpaddl<mode>): Likewise.
14840 (neon_vpadal<mode>): Likewise.
14841 (neon_vpmax<mode>): Likewise.
14842 (neon_vpmin<mode>): Likewise.
14843 (neon_vrecps<mode>): Likewise.
14844 (neon_vrsqrts<mode>): Likewise.
14845 (neon_vqabs<mode>): Likewise.
14846 (neon_vqneg<mode>): Likewise.
14847 (neon_vcls<mode>): Likewise.
14848 (clz<mode>2): Likewise.
14849 (popcount<mode>2): Likewise.
14850 (neon_vrecpe): Likewise.
14851 (neon_vrsqrte): Likewise.
14852 (neon_vget_lane<mode>_sext_internal): Likewise.
14853 (neon_vget_lane<mode>_zext_internal): Likewise.
14854 (neon_vdup_n<mode>): Likewise.
14855 (neon_vdup_nv2di): Likewise.
14856 (neon_vdpu_lane<mode>_internal): Likewise.
14857 (neon_vswp<mode>): Likewise.
14858 (float<mode><V_cvtto>2): Likewise.
14859 (floatuns<mode><V_cvtto>2): Likewise.
14860 (fix_trunc<mode><V_cvtto>)2): Likewise
14861 (fixuns_trunc<mode><V_cvtto)2): Likewise.
14862 (neon_vcvt<mode>): Likewise.
14863 (neon_vcvtv4sfv4hf): Likewise.
14864 (neon_vcvtv4hfv4sf): Likewise.
14865 (neon_vcvt_n<mode>): Likewise.
14866 (neon_vmovn<mode>): Likewise.
14867 (neon_vqmovn<mode>): Likewise.
14868 (neon_vqmovun<mode>): Likewise.
14869 (neon_vmovl<mode>): Likewise.
14870 (neon_vmul_lane<mode>): Likewise.
14871 (neon_vmull_lane<mode>): Likewise.
14872 (neon_vqdmull_lane<mode>): Likewise.
14873 (neon_vqdmulh_lane<mode>): Likewise.
14874 (neon_vmla_lane<mode>): Likewise.
14875 (neon_vmlal_lane<mode>): Likewise.
14876 (neon_vqdmlal_lane<mode>): Likewise.
14877 (neon_vmls_lane<mode>): Likewise.
14878 (neon_vmlsl_lane<mode>): Likewise.
14879 (neon_vqdmlsl_lane<mode>): Likewise.
14880 (neon_vext<mode>): Likewise.
14881 (neon_vrev64<mode>): Likewise.
14882 (neon_vrev32<mode>): Likewise.
14883 (neon_vrev16<mode>): Likewise.
14884 (neon_vbsl<mode>_internal): Likewise.
14885 (neon_vshl<mode>): Likewise.
14886 (neon_vqshl<mode>): Likewise.
14887 (neon_vshr_n<mode>): Likewise.
14888 (neon_vshrn_n<mode>): Likewise.
14889 (neon_vqshrn_n<mode>): Likewise.
14890 (neon_vqshrun_n<mode>): Likewise.
14891 (neon_vshl_n<mode>): Likewise.
14892 (neon_vqshl_n<mode>): Likewise.
14893 (neon_vqshlu_n<mode>): Likewise.
14894 (neon_vshll_n<mode>): Likewise.
14895 (neon_vsra_n<mode>): Likewise.
14896 (neon_vsri_n<mode>): Likewise.
14897 (neon_vsli_n<mode>): Likewise.
14898 (neon_vtbl1v8qi): Likewise.
14899 (neon_vtbl2v8qi): Likewise.
14900 (neon_vtbl3v8qi): Likewise.
14901 (neon_vtbl4v8qi): Likewise.
14902 (neon_vtbx1v8qi): Likewise.
14903 (neon_vtbx2v8qi): Likewise.
14904 (neon_vtbx3v8qi): Likewise.
14905 (neon_vtbx4v8qi): Likewise.
14906 (neon_vtrn<mode>_internal): Likewise.
14907 (neon_vzip<mode>_internal): Likewise.
14908 (neon_vuzp<mode>_internal): Likewise.
14909 (neon_vld1<mode>): Likewise.
14910 (neon_vld1_lane<mode>): Likewise.
14911 (neon_vld1_dup<mode>): Likewise.
14912 (neon_vld1_dupv2di): Likewise.
14913 (neon_vst1<mode>): Likewise.
14914 (neon_vst1_lane<mode>): Likewise.
14915 (neon_vld2<mode>): Likewise.
14916 (neon_vld2_lane<mode>): Likewise.
14917 (neon_vld2_dup<mode>): Likewise.
14918 (neon_vst2<mode>): Likewise.
14919 (neon_vst2_lane<mode>): Likewise.
14920 (neon_vld3<mode>): Likewise.
14921 (neon_vld3qa<mode>): Likewise.
14922 (neon_vld3qb<mode>): Likewise.
14923 (neon_vld3_lane<mode>): Likewise.
14924 (neon_vld3_dup<mode>): Likewise.
14925 (neon_vst3<mode>): Likewise.
14926 (neon_vst3qa<mode>): Likewise.
14927 (neon_vst3qb<mode>): Likewise.
14928 (neon_vst3_lane<mode>): Likewise.
14929 (neon_vld4<mode>): Likewise.
14930 (neon_vld4qa<mode>): Likewise.
14931 (neon_vld4qb<mode>): Likewise.
14932 (neon_vld4_lane<mode>): Likewise.
14933 (neon_vld4_dup<mode>): Likewise.
14934 (neon_vst4<mode>): Likewise.
14935 (neon_vst4qa<mode>): Likewise.
14936 (neon_vst4qb<mode>): Likewise.
14937 (neon_vst4_lane<mode>): Likewise.
14938 (neon_vec_unpack<US>_lo_<mode>): Likewise.
14939 (neon_vec_unpack<US>_hi_<mode>): Likewise.
14940 (neon_vec_<US>mult_lo_<mode>): Likewise.
14941 (neon_vec_<US>mult_hi_<mode>): Likewise.
14942 (neon_vec_<US>shiftl_<mode>): Likewise.
14943 (neon_unpack<US>_<mode>): Likewise.
14944 (neon_vec_<US>mult_<mode>): Likewise.
14945 (vec_pack_trunc_<mode>): Likewise.
14946 (neon_vec_pack_trunk_<mode>): Likewise.
14947 (neon_vabd<mode>_2): Likewise.
14948 (neon_vabd<mode>_3): Likewise.
14949 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
14950 (thumb2_movsi_vfp): Likewise.
14951 (movdi_vfp): Likewise.
14952 (movdi_vfp_cortexa8): Likewise.
14953 (movhf_vfp_neon): Likewise.
14954 (movhf_vfp): Likewiwse.
14955 (movsf_vfp): Likewiwse.
14956 (thumb2_movsf_vfp): Likewiwse.
14957 (movdf_vfp): Likewise.
14958 (thumb2_movdf_vfp): Likewise.
14959 (movsfcc_vfp): Likewise.
14960 (thumb2_movsfcc_vfp): Likewise.
14961 (movdfcc_vfp): Likewise.
14962 (thumb2_movdfcc_vfp): Likewise.
14963 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
14964 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
14965 (v10_v2c): Likewise.
14966 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
14967 attribute change.
14968 (cortex_a15_neon_int_2): Likewise.
14969 (cortex_a15_neon_int_3): Likewise.
14970 (cortex_a15_neon_int_4): Likewise.
14971 (cortex_a15_neon_int_5): Likewise.
14972 (cortex_a15_neon_vqneg_vqabs): Likewise.
14973 (cortex_a15_neon_vmov): Likewise.
14974 (cortex_a15_neon_vaba): Likewise.
14975 (cortex_a15_neon_vaba_qqq): Likewise.
14976 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14977 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14978 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
14979 scalar_64_32_long_scalar): Likewise.
14980 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14981 (cortex_a15_neon_mla_qqq_8_16): Likewise.
14982 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14983 lotype_qdd_64_32_long): Likewise.
14984 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14985 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14986 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
14987 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14988 (cortex_a15_neon_shift_1): Likewise.
14989 (cortex_a15_neon_shift_2): Likewise.
14990 (cortex_a15_neon_shift_3): Likewise.
14991 (cortex_a15_neon_vshl_ddd): Likewise.
14992 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14993 (cortex_a15_neon_vsra_vrsra): Likewise.
14994 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
14995 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
14996 (cortex_a15_neon_fp_vmul_ddd): Likewise.
14997 (cortex_a15_neon_fp_vmul_qqd): Likewise.
14998 (cortex_a15_neon_fp_vmla_ddd): Likewise.
14999 (cortex_a15_neon_fp_vmla_qqq): Likewise.
15000 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
15001 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
15002 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
15003 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
15004 (cortex_a15_neon_bp_simple): Likewise.
15005 (cortex_a15_neon_bp_2cycle): Likewise.
15006 (cortex_a15_neon_bp_3cycle): Likewise.
15007 (cortex_a15_neon_vld1_1_2_regs): Likewise.
15008 (cortex_a15_neon_vld1_3_4_regs): Likewise.
15009 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
15010 (cortex_a15_neon_vld2_4_regs): Likewise.
15011 (cortex_a15_neon_vld3_vld4): Likewise.
15012 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
15013 (cortex_a15_neon_vst1_3_4_regs): Likewise.
15014 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
15015 (cortex_a15_neon_vst3_vst4): Likewise.
15016 (cortex_a15_neon_vld1_vld2_lane): Likewise.
15017 (cortex_a15_neon_vld3_vld4_lane" 10
15018 (cortex_a15_neon_vst1_vst2_lane): Likewise.
15019 (cortex_a15_neon_vst3_vst4_lane): Likewise.
15020 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
15021 (cortex_a15_neon_ldm_2): Likewise.0
15022 (cortex_a15_neon_stm_2): Likewise.
15023 (cortex_a15_neon_mcr): Likewise.
15024 (cortex_a15_neon_mcr_2_mcrr): Likewise.
15025 (cortex_a15_neon_mrc): Likewise.
15026 (cortex_a15_neon_mrrc): Likewise.
15027 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
15028 change.
15029 (cortex_a15_alu_shift): Likewise.
15030 (cortex_a15_alu_shift_reg): Likewise.
15031 (cortex_a15_mult32): Likewise.
15032 (cortex_a15_mult64): Likewise.
15033 (cortex_a15_block): Likewise.
15034 (cortex_a15_branch): Likewise.
15035 (cortex_a15_load1): Likewise.
15036 (cortex_a15_load3): Likewise.
15037 (cortex_a15_store1): Likewise.
15038 (cortex_a15_store3): Likewise.
15039 (cortex_a15_call): Likewise.
15040 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
15041 (cortex_a5_f2r): Likewise.
15042 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
15043 change.
15044 (cortex_a53_f2r): Likewise.
15045 * config/arm/cortex-a7.md
15046 (cortex_a7_branch): Update for attribute change.
15047 (cortex_a7_call): Likewise.
15048 (cortex_a7_alu_imm): Likewise.
15049 (cortex_a7_alu_reg): Likewise.
15050 (cortex_a7_alu_shift): Likewise.
15051 (cortex_a7_mul): Likewise.
15052 (cortex_a7_load1): Likewise.
15053 (cortex_a7_store1): Likewise.
15054 (cortex_a7_load2): Likewise.
15055 (cortex_a7_store2): Likewise.
15056 (cortex_a7_load3): Likewise.
15057 (cortex_a7_store3): Likewise.
15058 (cortex_a7_load4): Likewise.
15059 (cortex_a7_store4): Likewise.
15060 (cortex_a7_fpalu): Likewise.
15061 (cortex_a7_fconst): Likewise.
15062 (cortex_a7_fpmuls): Likewise.
15063 (cortex_a7_neon_mul): Likewise.
15064 (cortex_a7_fpmacs): Likewise.
15065 (cortex_a7_neon_mla: Likewise.
15066 (cortex_a7_fpmuld: Likewise.
15067 (cortex_a7_fpmacd: Likewise.
15068 (cortex_a7_fpfmad: Likewise.
15069 (cortex_a7_fdivs: Likewise.
15070 (cortex_a7_fdivd: Likewise.
15071 (cortex_a7_r2f: Likewise.
15072 (cortex_a7_f2r: Likewise.
15073 (cortex_a7_f_flags: Likewise.
15074 (cortex_a7_f_loads: Likewise.
15075 (cortex_a7_f_loadd: Likewise.
15076 (cortex_a7_f_stores: Likewise.
15077 (cortex_a7_f_stored: Likewise.
15078 (cortex_a7_neon): Likewise.
15079 * config/arm/cortex-a8-neon.md
15080 (cortex_a8_neon_mrc): Update for attribute change.
15081 (cortex_a8_neon_mrrc): Likewise.
15082 (cortex_a8_neon_int_1): Likewise.
15083 (cortex_a8_neon_int_2): Likewise.
15084 (cortex_a8_neon_int_3): Likewise.
15085 (cortex_a8_neon_int_4): Likewise.
15086 (cortex_a8_neon_int_5): Likewise.
15087 (cortex_a8_neon_vqneg_vqabs): Likewise.
15088 (cortex_a8_neon_vmov): Likewise.
15089 (cortex_a8_neon_vaba): Likewise.
15090 (cortex_a8_neon_vaba_qqq): Likewise.
15091 (cortex_a8_neon_vsma): Likewise.
15092 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15093 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
15094 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
15095 long_scalar): Likewise.
15096 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15097 (cortex_a8_neon_mla_qqq_8_16): Likewise.
15098 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
15099 long_scalar_qdd_64_32_long): Likewise.
15100 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
15101 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
15102 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
15103 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
15104 (cortex_a8_neon_shift_1): Likewise.
15105 (cortex_a8_neon_shift_2): Likewise.
15106 (cortex_a8_neon_shift_3): Likewise.
15107 (cortex_a8_neon_vshl_ddd): Likewise.
15108 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
15109 (cortex_a8_neon_vsra_vrsra): Likewise.
15110 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
15111 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
15112 (cortex_a8_neon_fp_vsum): Likewise.
15113 (cortex_a8_neon_fp_vmul_ddd): Likewise.
15114 (cortex_a8_neon_fp_vmul_qqd): Likewise.
15115 (cortex_a8_neon_fp_vmla_ddd): Likewise.
15116 (cortex_a8_neon_fp_vmla_qqq): Likewise.
15117 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
15118 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
15119 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
15120 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
15121 (cortex_a8_neon_bp_simple): Likewise.
15122 (cortex_a8_neon_bp_2cycle): Likewise.
15123 (cortex_a8_neon_bp_3cycle): Likewise.
15124 (cortex_a8_neon_ldr): Likewise.
15125 (cortex_a8_neon_str): Likewise.
15126 (cortex_a8_neon_vld1_1_2_regs): Likewise.
15127 (cortex_a8_neon_vld1_3_4_regs): Likewise.
15128 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
15129 (cortex_a8_neon_vld2_4_regs): Likewise.
15130 (cortex_a8_neon_vld3_vld4): Likewise.
15131 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
15132 (cortex_a8_neon_vst1_3_4_regs): Likewise.
15133 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
15134 (cortex_a8_neon_vst3_vst4): Likewise.
15135 (cortex_a8_neon_vld1_vld2_lane): Likewise.
15136 (cortex_a8_neon_vld3_vld4_lane): Likewise.
15137 (cortex_a8_neon_vst1_vst2_lane): Likewise.
15138 (cortex_a8_neon_vst3_vst4_lane): Likewise.
15139 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
15140 (cortex_a8_neon_mcr): Likewise.
15141 (cortex_a8_neon_mcr_2_mcrr): Likewise.
15142 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
15143 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
15144 change.
15145 (ca9_neon_mrrc): Likewise.
15146 (cortex_a9_neon_int_1): Likewise.
15147 (cortex_a9_neon_int_2): Likewise.
15148 (cortex_a9_neon_int_3): Likewise.
15149 (cortex_a9_neon_int_4): Likewise.
15150 (cortex_a9_neon_int_5): Likewise.
15151 (cortex_a9_neon_vqneg_vqabs): Likewise.
15152 (cortex_a9_neon_vmov): Likewise.
15153 (cortex_a9_neon_vaba): Likewise.
15154 (cortex_a9_neon_vaba_qqq): Likewise.
15155 (cortex_a9_neon_vsma): Likewise.
15156 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15157 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
15158 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
15159 long_scalar): Likewise.
15160 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15161 (cortex_a9_neon_mla_qqq_8_16): Likewise.
15162 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
15163 long_scalar_qdd_64_32_long): Likewise.
15164 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
15165 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
15166 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
15167 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
15168 (cortex_a9_neon_shift_1): Likewise.
15169 (cortex_a9_neon_shift_2): Likewise.
15170 (cortex_a9_neon_shift_3): Likewise.
15171 (cortex_a9_neon_vshl_ddd): Likewise.
15172 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
15173 (cortex_a9_neon_vsra_vrsra): Likewise.
15174 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
15175 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
15176 (cortex_a9_neon_fp_vsum): Likewise.
15177 (cortex_a9_neon_fp_vmul_ddd): Likewise.
15178 (cortex_a9_neon_fp_vmul_qqd): Likewise.
15179 (cortex_a9_neon_fp_vmla_ddd): Likewise.
15180 (cortex_a9_neon_fp_vmla_qqq): Likewise.
15181 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
15182 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
15183 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
15184 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
15185 (cortex_a9_neon_bp_simple): Likewise.
15186 (cortex_a9_neon_bp_2cycle): Likewise.
15187 (cortex_a9_neon_bp_3cycle): Likewise.
15188 (cortex_a9_neon_ldr): Likewise.
15189 (cortex_a9_neon_str): Likewise.
15190 (cortex_a9_neon_vld1_1_2_regs): Likewise.
15191 (cortex_a9_neon_vld1_3_4_regs): Likewise.
15192 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
15193 (cortex_a9_neon_vld2_4_regs): Likewise.
15194 (cortex_a9_neon_vld3_vld4): Likewise.
15195 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
15196 (cortex_a9_neon_vst1_3_4_regs): Likewise.
15197 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
15198 (cortex_a9_neon_vst3_vst4): Likewise.
15199 (cortex_a9_neon_vld1_vld2_lane): Likewise.
15200 (cortex_a9_neon_vld3_vld4_lane): Likewise.
15201 (cortex_a9_neon_vst1_vst2_lane): Likewise.
15202 (cortex_a9_neon_vst3_vst4_lane): Likewise.
15203 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
15204 (cortex_a9_neon_mcr): Likewise.
15205 (cortex_a9_neon_mcr_2_mcrr): Likewise.
15206 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
15207 (cortex_a9_fps): Likewise.
15208 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
15209 change.
15210 (cortex_m4_fmuls): Likewise.
15211 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
15212 change.
15213 (cortex_r4_mrc): Likewise.
15214 * config/arm/iterators.md: Update comment referring to neon_type.
15215 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
15216 (iwmmxt_movsi_insn): Likewise.
15217 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
15218 attribute change.
15219 (pj4_core_to_vfp): Likewise.
15220 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
15221 attribute change.
15222 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
15223 (vfp_fstore): Likewise.
15224 * doc/md.texi: Change references to neon_type to refer to type.
15225
15226 2013-09-04 Dodji Seketeli <dodji@redhat.com>
15227
15228 * tree.h (DECL_BUILT_IN): Fix typo in comment.
15229
15230 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
15231
15232 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
15233 lglobl if not weak.
15234
15235 2013-09-04 Easwaran Raman <eraman@google.com>
15236
15237 PR middle-end/57370
15238 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
15239 (build_and_add_sum): Use it.
15240 (appears_later_in_bb): Simplify code.
15241
15242 2013-09-04 Teresa Johnson <tejohnson@google.com>
15243
15244 * dumpfile.c (dump_finish): Don't close stderr/stdout.
15245
15246 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
15247
15248 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
15249
15250 2013-09-04 Jan Hubicka <jh@suse.cz>
15251
15252 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
15253 * ipa-devirt.c: Include diganostic.h
15254 (odr_type_d): Add types and types_set.
15255 (hash_type_name): Work for types with vtables during LTO.
15256 (odr_hasher::remove): Fix comment; destroy types_set.
15257 (add_type_duplicate): New function,
15258 (get_odr_type): Use it.
15259 (dump_type_inheritance_graph): Dump type duplicates.
15260 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
15261 graph.
15262 * tree.c (types_same_for_odr): Give exact answers on types with
15263 virtual tables.
15264
15265 2013-09-04 Dodji Seketeli <dodji@redhat.com>
15266
15267 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
15268 explaining their differences.
15269
15270 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
15271
15272 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
15273
15274 2013-09-03 Jeff Law <law@redhat.com>
15275
15276 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
15277 when not threading through a joiner block. Pass joiner/no joiner
15278 state to register_jump_thread.
15279 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
15280 state from argument rather than implying on path length.
15281 Dump the entire jump thread path into debugging dump.
15282 * tree-flow.h (register_jump_thread): Update prototype.
15283
15284 2013-08-29 Xinliang David Li <davidxl@google.com>
15285
15286 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15287 Remove a trivial gcc_assert.
15288
15289 2013-08-29 Xinliang David Li <davidxl@google.com>
15290
15291 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
15292 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
15293 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15294 Delay base decl alignment adjustment.
15295 * tree-vectorizer.c (vect_destroy_datarefs): New function.
15296 * tree-vectorizer.h: New data structure.
15297 (set_dr_misalignment): New function.
15298 (dr_misalignment): Ditto.
15299 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
15300 (vectorizable_load): Ditto.
15301 (ensure_base_align): New function.
15302 (vectorize_loops): Add dbg_cnt support.
15303 (execute_vect_slp): Ditto.
15304 * dbgcnt.def: New debug counter.
15305 * Makefile: New dependency.
15306
15307 2013-09-03 Meador Inge <meadori@codesourcery.com>
15308
15309 Revert:
15310
15311 2013-08-30 Meador Inge <meadori@codesourcery.com>
15312
15313 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
15314
15315 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
15316
15317 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
15318 function descriptor.
15319
15320 2013-09-03 Richard Biener <rguenther@suse.de>
15321
15322 * tree-affine.c (add_elt_to_tree): Fix association issue,
15323 avoid useless converts and make sure to always return a
15324 properly typed result.
15325
15326 2013-09-03 Richard Biener <rguenther@suse.de>
15327
15328 PR middle-end/57656
15329 * fold-const.c (negate_expr_p): Fix division case.
15330 (negate_expr): Likewise.
15331
15332 2013-09-03 Richard Biener <rguenther@suse.de>
15333
15334 PR lto/58285
15335 * tree-streamer-out.c: Include tm.h.
15336 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
15337
15338 2013-09-03 Jan Hubicka <jh@suse.cz>
15339
15340 * tree-profile.c (tree_profiling): Cleanup CFG when done.
15341
15342 2013-09-03 Alan Modra <amodra@gmail.com>
15343
15344 * config.gcc (powerpc*-*-linux*): Add support for little-endian
15345 multilibs to big-endian target and vice versa.
15346 * config/rs6000/t-linux64: Use := assignment on all vars.
15347 (MULTILIB_EXTRA_OPTS): Remove fPIC.
15348 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
15349 * config/rs6000/t-linux64le: New file.
15350 * config/rs6000/t-linux64bele: New file.
15351 * config/rs6000/t-linux64lebe: New file.
15352
15353 2013-09-02 Jan Hubicka <jh@suse.cz>
15354
15355 * ipa-inline-transform.c (inline_transform): Do not
15356 optimize_inline_calls when not optimizing.
15357
15358 2013-09-02 Jan Hubicka <jh@suse.cz>
15359
15360 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
15361 duplicated nodes for assembler names.
15362 * symtab.c (symtab_unregister_node): Do not attempt to unlink
15363 hard registers from assembler name hash.
15364
15365 2013-09-02 Jan Hubicka <jh@suse.cz>
15366
15367 * ipa-split.c (execute_split_functions): Split externally visible
15368 functions called once.
15369
15370 2013-09-02 Martin Jambor <mjambor@suse.cz>
15371
15372 PR ipa/58106
15373 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
15374 linked list. When finding the correct duplicate, also consider also
15375 the caller in additon to its inlined_to node.
15376
15377 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
15378
15379 * config/aarch64/aarch64-simd-builtins.def
15380 (dup_lane_scalar): Remove.
15381 * config/aarch64/aarch64-simd.md
15382 (aarch64_simd_dup): Add 'w->w' alternative.
15383 (aarch64_dup_lane<mode>): Allow for VALL.
15384 (aarch64_dup_lane_scalar<mode>): Remove.
15385 (aarch64_dup_lane_<vswap_width_name><mode>): New.
15386 (aarch64_get_lane_signed<mode>): Add w->w altenative.
15387 (aarch64_get_lane_unsigned<mode>): Likewise.
15388 (aarch64_get_lane<mode>): Likewise.
15389 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
15390 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
15391 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
15392 (VCON): Change container of V2SF.
15393 (vswap_width_name): Likewise.
15394 * config/aarch64/arm_neon.h
15395 (__aarch64_vdup_lane_any): New.
15396 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15397 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
15398 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15399
15400 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
15401
15402 PR middle-end/56382
15403 * expr.c (emit_move_complex): Do not move complex FP values as parts if
15404 the source or the destination is a single hard register.
15405
15406 2013-09-02 Richard Biener <rguenther@suse.de>
15407
15408 PR middle-end/57511
15409 * tree-scalar-evolution.c (instantiate_scev_name): Allow
15410 non-linear SCEVs.
15411
15412 2013-09-02 Richard Biener <rguenther@suse.de>
15413
15414 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
15415 arithmetic to sizetype.
15416
15417 2013-09-02 Bin Cheng <bin.cheng@arm.com>
15418
15419 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
15420 Find auto-increment use both before and after candidate.
15421
15422 2013-09-02 Marek Polacek <polacek@redhat.com>
15423
15424 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
15425
15426 2013-09-01 Jan Hubicka <jh@suse.cz>
15427
15428 * Makefile.in: Add ipa-profile.o
15429 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
15430 * cgraph.c (struct cgraph_propagate_frequency_data,
15431 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
15432 ipa-profile.c; replace cgraph_ by ipa_ prefix.
15433 * cgraph.h (cgraph_propagate_frequency): Remove.
15434 * ipa-inline-analysis.c: Include ipa-utils.h;
15435 drop duplicated cfgloop.h.
15436 (inline_update_callee_summaries): Update.
15437 * ipa-profile.c: New file.
15438 * ipa-utils.h (ipa_propagate_frequency): Declare.
15439 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
15440 data-streamer.h, value-prof.h.
15441 (symtab_remove_unreachable_nodes): Update profile.
15442 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
15443 account_time_size, cmp_counts, dump_histogram,
15444 ipa_profile_generate_summary, ipa_profile_write_summary,
15445 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
15446 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
15447 Move to ipa-profile.c.
15448
15449 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
15450
15451 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
15452
15453 2013-09-01 Jan Hubicka <jh@suse.cz>
15454
15455 * common.opt (fdevirtualize-speculatively): New function.
15456 * invoke.texi (fdevirtualize-speculatively): Document.
15457 * ipa-devirt.c: Include ipa-inline.h
15458 (likely_target_p): New function.
15459 (ipa_devirt): New function.
15460 (gate_ipa_devirt): New function.
15461 (pass_data_ipa_devirt): New static var.
15462 (pass_ipa_devirt): Likewise.
15463 (make_pass_ipa_devirt): New function.
15464 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
15465 (common_handle_option): Disable devirtualization when
15466 value range profiling is available.
15467 * passes.def (pass_ipa_devirt): Add.
15468 * timever.def (TV_IPA_DEVIRT): New timevar.
15469 * tree-pass.h (make_pass_ipa_devirt):
15470
15471 2013-09-01 Iain Sandoe <iain@codesourcery.com>
15472
15473 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
15474 include sanitize(undefined).
15475
15476 2013-08-31 Diego Novillo <dnovillo@google.com>
15477
15478 * Makefile.in (TREE_CORE_H): Define.
15479 (TREE_H): Use.
15480 (GTFILES): Add tree-core.h.
15481 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
15482 size the array.
15483 * tree-core.h: New file.
15484 Move all data structures, enum, typedefs, global
15485 declarations and constants from ...
15486 * tree.h: ... here.
15487
15488 2013-08-31 Jan Hubicka <jh@suse.cz>
15489
15490 * bulitins.c (expand_builtin): Do not early exit for gcov
15491 instrumented functions.
15492
15493 2013-08-31 Marek Polacek <polacek@redhat.com>
15494
15495 * ubsan.c: Include tm_p.h.
15496
15497 2013-08-31 Jan Hubicka <jh@suse.cz>
15498
15499 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
15500 warning.
15501
15502 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
15503 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
15504 * tree-cfg.c (verify_gimple_label): ... here.
15505 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
15506 (ipa_merge_profiles): New function.
15507 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
15508 (lto_input_function_body): Likewise.
15509 * ipa-utils.h (ipa_merge_profiles): Declare.
15510 * lto-streamer.h (lto_input_function_body): Update prototype.
15511 (emit_label_in_global_context_p): Remove.
15512 * lto-symtab.c: Include ipa-utils.h
15513 (lto_cgraph_replace_node): Use ipa_merge_profiles.
15514
15515 2013-08-31 Jan Hubicka <jh@suse.cz>
15516
15517 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
15518
15519 2013-08-31 Jan Hubicka <jh@suse.cz>
15520
15521 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
15522
15523 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
15524
15525 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
15526 "cmp" RTX before signed_comparison_operator check to account
15527 for "code" changes.
15528
15529 2013-08-30 Jan Hubicka <jh@suse.cz>
15530
15531 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
15532 (detect_type_change_1): Rename to ...
15533 (detect_type_change): ... this one; early return on non-polymorphic
15534 types.
15535 (detect_type_change_ssa): Add comp_type parameter; update
15536 use of detect_type_change.
15537 (compute_complex_assign_jump_func): Add param_type parameter;
15538 update use of detect_type_change_ssa.
15539 (compute_complex_ancestor_jump_func): Likewise.
15540 (ipa_get_callee_param_type): New function.
15541 (ipa_compute_jump_functions_for_edge): Compute parameter type;
15542 update calls to the jump function computation functions.
15543
15544 2013-08-30 Teresa Johnson <tejohnson@google.com>
15545 Steven Bosscher <steven@gcc.gnu.org>
15546
15547 * cfgrtl.c (fixup_new_cold_bb): New routine.
15548 (commit_edge_insertions): Invoke fixup_partitions.
15549 (find_partition_fixes): New routine.
15550 (fixup_partitions): Ditto.
15551 (verify_hot_cold_block_grouping): Update comments.
15552 (rtl_verify_edges): Invoke find_partition_fixes.
15553 (rtl_verify_bb_pointers): Update comments.
15554 (rtl_verify_bb_layout): Ditto.
15555 * basic-block.h (probably_never_executed_edge_p): Declare.
15556 (fixup_partitions): Ditto.
15557 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
15558 * bb-reorder.c (sanitize_hot_paths): New function.
15559 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
15560 sanitize_hot_paths.
15561 * predict.c (probably_never_executed_edge_p): New routine.
15562 * cfg.c (check_bb_profile): Add partition insanity warnings.
15563
15564 2013-08-30 Meador Inge <meadori@codesourcery.com>
15565
15566 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
15567
15568 2013-08-30 Marek Polacek <polacek@redhat.com>
15569
15570 * Makefile.in (ubsan.o): Add.
15571 (c-family/c-ubsan.o): Add.
15572 (builtins.o): Add ubsan.h dependency.
15573 * ubsan.h: New file.
15574 * ubsan.c: New file.
15575 * common.opt: Add -fsanitize=undefined option.
15576 (flag_sanitize): Add variable.
15577 (fsanitize=): Add option. Add Driver.
15578 (fsanitize=thread): Remove option.
15579 (fsanitize=address): Likewise.
15580 (static-libubsan): New option.
15581 * doc/invoke.texi: Document the new flag and -static-libubsan.
15582 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
15583 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
15584 * builtin-attrs.def (ATTR_COLD): Define.
15585 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15586 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
15587 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
15588 * flag-types.h (sanitize_code): New enum.
15589 * opts.c (common_handle_option): Parse command line arguments
15590 of -fsanitize=. Add -fsanitize=unreachable option.
15591 * varasm.c (get_variable_section): Adjust.
15592 (assemble_noswitch_variable): Likewise.
15593 (assemble_variable): Likewise.
15594 (output_constant_def_contents): Likewise.
15595 (categorize_decl_for_section): Likewise.
15596 (place_block_symbol): Likewise.
15597 (output_object_block): Likewise.
15598 * builtins.def: Likewise.
15599 * toplev.c (compile_file): Likewise.
15600 (process_options): Likewise.
15601 * cppbuiltin.c: Likewise.
15602 * tsan.c (tsan_pass): Likewise.
15603 (tsan_gate): Likewise.
15604 (tsan_gate_O0): Likewise.
15605 * cfgexpand.c (partition_stack_vars): Likewise.
15606 (expand_stack_vars): Likewise.
15607 (defer_stack_allocation): Likewise.
15608 (expand_used_vars): Likewise.
15609 * cfgcleanup.c (old_insns_match_p): Likewise.
15610 * asan.c (asan_finish_file): Likewise.
15611 (asan_instrument): Likewise.
15612 (gate_asan): Likewise.
15613 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
15614 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15615 (asan_global_struct): Use pointer_sized_int_node instead
15616 calling build_nonstandard_integer_type.
15617 (initialize_sanitizer_builtins): Likewise.
15618 (asan_finish_file): Likewise.
15619 * gcc.c: Document %{%:function(args):X}.
15620 (static_spec_functions): Add sanitize.
15621 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
15622 store funcval != NULL there.
15623 (do_spec_1): Adjust handle_spec_function caller.
15624 (handle_braces): Allow %:function(args) as condition.
15625 (sanitize_spec_function): New function.
15626 (ADD_STATIC_LIBUBSAN_LIBS): Define.
15627 (LIBUBSAN_SPEC): Likewise.
15628 (LIBUBSAN_EARLY_SPEC): Likewise.
15629 (SANITIZER_SPEC): Handle libubsan.
15630 (SANITIZER_EARLY_SPEC): Likewise.
15631 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
15632 instead of fsanitize=address.
15633 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
15634 instead of fsanitize=address*.
15635 * builtins.c: Include ubsan.h.
15636 (fold_builtin_0): Instrument __builtin_unreachable.
15637 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
15638 instead of flag_asan.
15639 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
15640 (pointer_sized_int_node): Define.
15641 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
15642
15643 2013-08-30 Mike Stump <mikestump@comcast.net>
15644
15645 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
15646 with RE patterns.
15647
15648 2013-08-29 Jan Hubicka <jh@suse.cz>
15649
15650 * cgraph.c (cgraph_function_body_availability): Handle weakref
15651 correctly.
15652 * passes.def: Remove pass_fixup_cfg.
15653 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
15654 track when we need to remove functions.
15655 (gate_ipa_inline): Execute inlining always; add comment why.
15656 (pass_data_ipa_inline): Remove TODO_remove_functions.
15657 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
15658 do not produce summaries.
15659 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
15660 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
15661 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
15662 constant pool and vtable.
15663
15664 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
15665
15666 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
15667 New arm_neon.h's internal macros to specify 64-bit constants.
15668 Avoid using stdint.h's macros.
15669
15670 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
15671
15672 * recog.c (verify_changes): Verify that changes[i].old is non-zero
15673 before applying REG_P.
15674
15675 2013-08-30 Jakub Jelinek <jakub@redhat.com>
15676
15677 PR tree-optimization/58277
15678 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
15679 after seeing too many stmts with vdef in between dombb and current
15680 bb, invalidate everything.
15681
15682 2013-08-30 Richard Biener <rguenther@suse.de>
15683
15684 * fold-const.c (fold_single_bit_test): Fix overflow test.
15685
15686 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
15687
15688 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
15689 and which can live in a register, always retrieve the value on entry.
15690 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
15691 passed by invisible reference specially.
15692 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
15693 (vt_add_function_parameter): Correctly deal with a parameter passed by
15694 invisible reference.
15695
15696 2013-08-30 Jan Hubicka <jh@suse.cz>
15697
15698 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
15699
15700 2013-08-30 Richard Biener <rguenther@suse.de>
15701
15702 PR tree-optimization/58228
15703 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
15704 allow invariant loads in nested loop vectorization.
15705
15706 2013-08-30 Richard Biener <rguenther@suse.de>
15707
15708 PR tree-optimization/58223
15709 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
15710 (has_anti_or_output_dependence): ... this and adjust to also
15711 look for output dependences.
15712 (mark_nodes_having_upstream_mem_writes): Adjust.
15713 (rdg_flag_uses): Likewise.
15714
15715 2013-08-30 Richard Biener <rguenther@suse.de>
15716
15717 PR tree-optimization/58010
15718 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15719 assert that we have a loop-closed PHI.
15720
15721 2013-08-29 Jan Hubicka <jh@suse.cz>
15722
15723 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
15724 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
15725 * lto-section-in.c (lto_free_function_in_decl_state): New function.
15726 (lto_free_function_in_decl_state_for_node): New function.
15727
15728 2013-08-29 Xinliang David Li <davidxl@google.com>
15729
15730 * loop-unroll.c (report_unroll_peel): Minor message change.
15731 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
15732 Emit alignment peeling message with default -fopt-info.
15733 (vect_loop_versioning): Emit loop version info message.
15734 * tree-vectorizer.c (vectorize_loops): Minor message change.
15735 (execute_vect_slp): Ditto.
15736
15737 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
15738
15739 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
15740 of the clone from the DECL_NAME of the original function.
15741
15742 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
15743
15744 * passes.c (register_pass): Add overload.
15745 * tree-pass.h (register_pass): Forward declare it. Add comment.
15746
15747 2013-08-29 Jan Hubicka <jh@suse.cz>
15748
15749 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
15750 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
15751 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
15752 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
15753 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
15754 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
15755 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
15756 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
15757
15758 2013-08-29 Teresa Johnson <tejohnson@google.com>
15759
15760 * dumpfile.c (dump_loc): Output column number.
15761 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
15762 * doc/invoke.texi: Document optall -fopt-info flag.
15763 * profile.c (read_profile_edge_counts): Use new dump framework.
15764 (compute_branch_probabilities): Ditto.
15765 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
15766 when pass not in any opt group.
15767 * pass_manager.h (pass_manager::get_pass_profile): New method.
15768 * value-prof.c (check_counter): Use new dump framework.
15769 (check_ic_target): Ditto.
15770 * coverage.c (get_coverage_counts): Ditto.
15771 (coverage_init): Setup new dump framework.
15772
15773 2013-08-29 Richard Biener <rguenther@suse.de>
15774
15775 PR tree-optimization/58246
15776 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
15777 handle the dominance check inside a basic-block.
15778
15779 2013-08-29 Richard Biener <rguenther@suse.de>
15780
15781 PR middle-end/57287
15782 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
15783 of default defs that appear in abnormal PHI nodes.
15784
15785 2013-08-29 Richard Biener <rguenther@suse.de>
15786
15787 PR tree-optimization/57685
15788 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
15789 single-use operands to avoid exponential complexity.
15790
15791 2013-08-28 Dehao Chen <dehao@google.com>
15792
15793 * ipa-inline.c (edge_badness): Fix integer underflow.
15794
15795 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
15796
15797 * gtm-builtins.def (_ITM_free): Declare leaf.
15798
15799 2013-08-28 Jakub Jelinek <jakub@redhat.com>
15800
15801 PR target/58067
15802 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
15803 (*tls_local_dynamic_base_64_largepic): Likewise.
15804 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
15805 Remove predicate from call operand.
15806 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
15807 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
15808
15809 2013-08-28 Jeff Law <law@redhat.com>
15810
15811 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
15812 checks for the number of predecessors and successors allowed.
15813 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
15814 which require copying a joiner block if there is a request which
15815 is a subpath that requires no joiner block copying.
15816
15817 2013-08-28 Jan Hubicka <jh@suse.cz>
15818
15819 * lto-streamer-out.c (DFS_write_tree_body): Drop
15820 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
15821 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
15822 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
15823 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
15824 Do not read DECL_ERROR_ISSUED.
15825 (unpack_ts_decl_with_vis_value_fields): Do not read
15826 DECL_DEFER_OUTPUT.
15827 (lto_input_ts_binfo_tree_pointers): Do not read
15828 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
15829 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
15830 write DECL_ERROR_ISSUED..
15831 (pack_ts_decl_with_vis_value_fields): Do not write
15832 DECL_DEFER_OUTPUT.
15833 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
15834 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
15835 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
15836 * tree.h (tree_decl_common): Update comment.
15837 (DECL_ERROR_ISSUED): Remove.
15838
15839 2013-08-28 Jakub Jelinek <jakub@redhat.com>
15840
15841 PR middle-end/58257
15842 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
15843
15844 2013-08-28 Jan Hubicka <jh@suse.cz>
15845
15846 * builtins.def (free): Declare leaf.
15847
15848 2013-08-27 David Malcolm <dmalcolm@redhat.com>
15849
15850 * gdbhooks.py: New.
15851 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
15852 * configure: Regenerate.
15853
15854 2013-08-27 Martin Jambor <mjambor@suse.cz>
15855
15856 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
15857 (ipa_ancestor_jf_data): Likewise.
15858 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
15859 (ipa_get_jf_pass_through_type_preserved): New function.
15860 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
15861 (ipa_get_jf_ancestor_type_preserved): New function.
15862 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
15863 (ipa_get_jf_ancestor_result): Likewise.
15864 (propagate_vals_accross_pass_through): Use
15865 ipa_get_jf_pass_through_result to do all the value mappings.
15866 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
15867 type_preserved flag.
15868 (ipa_set_jf_cst_copy): New function.
15869 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
15870 (ipa_set_jf_arith_pass_through): Likewise.
15871 (ipa_set_ancestor_jf): Likewise.
15872 (compute_complex_assign_jump_func): Set type_preserved instead of
15873 punting.
15874 (ipa_compute_jump_functions_for_edge): Likewise.
15875 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
15876 (update_jump_functions_after_inlining): Update type_preserved.
15877 Explicitely create jump functions when combining one with pass_through.
15878 (ipa_write_jump_function): Stream the type_preserved flags.
15879 (ipa_read_jump_function): Likewise.
15880
15881 2013-08-27 Jakub Jelinek <jakub@redhat.com>
15882 Aldy Hernandez <aldyh@redhat.com>
15883
15884 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
15885 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
15886 * function.h (struct function): Add has_force_vect_loops and
15887 has_simduid_loops.
15888 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
15889 * gimple.c (gimple_build_omp_critical): Add KIND argument and
15890 handle it.
15891 * gimple.def: Update CLAUSES comments.
15892 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
15893 (gimple_build_omp_for): Add argument to prototype.
15894 (gimple_omp_for_kind): New.
15895 (gimple_omp_for_set_kind): New.
15896 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
15897 GOVD_DATA_SHARE_CLASS.
15898 (enum omp_region_type): Add ORT_SIMD.
15899 (gimple_add_tmp_var): Handle ORT_SIMD.
15900 (gimplify_var_or_parm_decl): Same.
15901 (is_gimple_stmt): Same.
15902 (omp_firstprivatize_variable): Same.
15903 (omp_add_variable): Only use splay_tree_insert if lookup failed.
15904 (omp_notice_variable): Handle ORT_SIMD.
15905 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
15906 (omp_check_private): Handle ORT_SIMD.
15907 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
15908 OMP_CLAUSE_SAFELEN.
15909 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
15910 Handle OMP_CLAUSE_LASTPRIVATE.
15911 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
15912 OMP_CLAUSE_SAFELEN.
15913 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
15914 (gimplify_expr): Handle OMP_SIMD.
15915 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
15916 (expand_GOMP_SIMD_VF): New.
15917 (expand_GOMP_SIMD_LAST_LANE): New.
15918 * internal-fn.def (GOMP_SIMD_LANE): New.
15919 (GOMP_SIMD_VF): New.
15920 (GOMP_SIMD_LAST_LANE): New.
15921 * omp-low.c: Include target.h.
15922 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
15923 OMP_CLAUSE_SAFELEN.
15924 (check_omp_nesting_restrictions): Same.
15925 (omp_max_vf): New.
15926 (lower_rec_simd_input_clauses): New.
15927 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
15928 OMP_CLAUSE_LINEAR.
15929 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
15930 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
15931 (expand_omp_build_assign): New.
15932 (expand_omp_for_init_counts): New.
15933 (expand_omp_for_init_vars): New.
15934 (extract_omp_for_update_vars): New.
15935 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
15936 and rewrite accordingly.
15937 (expand_omp_simd): New.
15938 (expand_omp_for): Use expand_omp_simd.
15939 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
15940 (lower_omp_for): Do not lower the body.
15941 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
15942 in their own loops.
15943 * tree-flow.h (find_omp_clause): Remove prototype.
15944 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
15945 forcing vectorization of the loop, or if flag_tree_vectorize.
15946 (gate_tree_if_conversion): Similarly.
15947 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
15948 gimple_build_omp_for.
15949 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
15950 * tree-parloops (create_parallel_loop): Pass kind argument to
15951 gimple_build_omp_for.
15952 * tree-pretty-print.c (dump_omp_clause): Add cases for
15953 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
15954 OMP_CLAUSE__SIMDUID_.
15955 (dump_generic_node): Handle OMP_SIMD.
15956 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
15957 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
15958 unroll OMP_SIMD loops here.
15959 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
15960 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
15961 loop->safelen.
15962 (vect_analyze_data_refs): Handle simd loops.
15963 * tree-vect-loop.c (vectorizable_live_operation): Handle
15964 IFN_GOMP_SIMD*.
15965 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
15966 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
15967 (vectorizable_load): Same.
15968 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
15969 (struct simduid_to_vf): New.
15970 (simduid_to_vf::hash): New.
15971 (simduid_to-vf::equal): New.
15972 (struct simd_array_to_simduid): New.
15973 (simd_array_to_simduid::hash): New.
15974 (simd_array_to_simduid::equal): New.
15975 (adjust_simduid_builtins): New.
15976 (struct note_simd_array_uses_struct): New.
15977 (note_simd_array_uses_cb): New.
15978 (note_simd_array_uses): New.
15979 (vectorize_loops): Handle simd hints and adjust simd builtins
15980 accordingly.
15981 * tree-vectorizer.h (struct _stmt_vec_info): Add
15982 simd_lane_access_p field.
15983 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
15984 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
15985 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
15986 (omp_clause_code_name): Same.
15987 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
15988 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
15989 * tree.def (OMP_SIMD): New entry.
15990 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
15991 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
15992 (OMP_CLAUSE_DECL): Adjust range for new clauses.
15993 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
15994 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
15995 (OMP_CLAUSE_LINEAR_STEP): New.
15996 (OMP_CLAUSE_SAFELEN_EXPR): New.
15997 (OMP_CLAUSE__SIMDUID__DECL): New.
15998 (find_omp_clause): New prototype.
15999
16000 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
16001
16002 * config/i386/driver-i386.c (host_detect_local_cpu): Update
16003 Haswell processor detection.
16004
16005 2013-08-27 Christian Widmer <shadow@umbrox.de>
16006
16007 PR target/57927
16008 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
16009 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
16010 AVX2 capable processors.
16011
16012 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
16013
16014 * config/aarch64/arm_neon.h: Replace all inline asm implementations
16015 of vget_low_* with implementations in terms of other intrinsics.
16016
16017 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
16018
16019 PR middle-end/57219
16020 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
16021 values to -1, 0 and 1.
16022
16023 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
16024
16025 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
16026 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
16027 (<optab><mode>3_insn): Remove.
16028 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
16029 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
16030 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
16031 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
16032 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
16033 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
16034 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
16035 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
16036 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
16037 (ror<mode>3_insn): Likewise.
16038 * config/aarch64/predicates.md (aarch64_simd_register): New.
16039
16040 2013-08-27 Richard Biener <rguenther@suse.de>
16041
16042 PR tree-optimization/57521
16043 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
16044 one edge is non-critical.
16045 (find_phi_replacement_condition): Make sure to use a non-critical
16046 edge. Cleanup and remove old bug workarounds.
16047 (bb_postdominates_preds): Remove.
16048 (if_convertible_loop_p_1): Do not compute post-dominators.
16049 (combine_blocks): Do not free post-dominators.
16050 (main_tree_if_conversion): Likewise.
16051 (pass_data_if_conversion): Add TODO_verify_ssa.
16052
16053 2013-08-27 DJ Delorie <dj@redhat.com>
16054
16055 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
16056
16057 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
16058
16059 * function.c (assign_parm_find_data_types): Set passed_mode and
16060 nominal_mode to the TYPE_MODE of nominal_type for the built
16061 pointer type in case of the struct-pass-by-reference.
16062
16063 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
16064
16065 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
16066 (UINT16_TYPE): Change default to "unsigned int".
16067
16068 * config/avr/avr.opt (mfract-convert-truncate): New option.
16069 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
16070 is set, round negative fractional integers according to n1169
16071 when converting to integer types.
16072
16073 2013-08-26 Jan Hubicka <jh@suse.cz>
16074
16075 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
16076 methods can not be called indirectly when their address is not taken.
16077
16078 2013-08-26 Jan Hubicka <jh@suse.cz>
16079
16080 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
16081 ctor_for_folding.
16082
16083 2013-08-26 Jan Hubicka <jh@suse.cz>
16084
16085 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
16086 can be unshared.
16087
16088 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
16089
16090 * reload.c (find_valid_class): Allow classes that do not include
16091 FIRST_PSEUDO_REGISTER - 1.
16092
16093 2013-08-26 Jan Hubicka <jh@suse.cz>
16094
16095 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
16096 fix edge count/frequency when speculation failed; fix type check
16097 for the direct call.
16098
16099 2013-08-26 Jan Hubicka <jh@suse.cz>
16100
16101 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
16102
16103 2013-08-26 Jan Hubicka <jh@suse.cz>
16104
16105 * ipa-inline-transform.c (inline_transform): Be ready for basic block
16106 to be changed by edge redirection.
16107
16108 2013-08-26 Jan Hubicka <jh@suse.cz>
16109
16110 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
16111 formating; add sanity check.
16112 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
16113 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
16114 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
16115 (resolve_noninline_speculation): Update callee keys, too.
16116
16117 2013-08-26 Jan Hubicka <jh@suse.cz>
16118
16119 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
16120 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
16121
16122 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
16123
16124 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
16125 into proper place.
16126
16127 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
16128
16129 * config/i386/i386.c (ix86_debug_options): Remove prototype.
16130 (x86_64_elf_select_section): Ditto.
16131 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
16132 arguments.
16133 (ix86_pass_by_reference): Ditto.
16134 (output_set_got): Ditto.
16135 (ix86_unary_operator_ok): Ditto.
16136 (ix86_expand_builtin): Ditto.
16137
16138 2013-08-23 Jan Hubicka <jh@suse.cz>
16139
16140 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
16141
16142 2013-08-23 Jan Hubicka <jh@suse.cz>
16143
16144 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
16145 (tree_decl_with_vis): Add FINAL field.
16146
16147 2013-08-23 Jeff Law <law@redhat.com>
16148
16149 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
16150 the debugging dump when the expression is fully redundant.
16151
16152 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
16153
16154 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
16155 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
16156 * pretty-print.c (pp_formatted_text_data): Likewise.
16157 (pp_write_text_to_stream): Likewise.
16158 (pp_write_text_as_dot_label_to_stream): Likewise.
16159 (pp_append_r): Likewise.
16160 (pp_format): Likewise.
16161 (pp_flush): Likewise.
16162 (pp_clear_output_area): Likewise.
16163 (pp_append_text): Likewise.
16164 (pp_formatted_text): Likewise.
16165 (pp_remaining_character_count_for_line): Likewise.
16166 (pp_newline): Likewise.
16167 (pp_character): Likewise.
16168 (output_buffer::~output_buffer): Define.
16169 (pretty_printer::~pretty_printer): Destruct output buffer.
16170 * pretty-print.h (output_buffer::~output_buffer): Declare.
16171 (pretty_printer::~pretty_printer): Declare virtual.
16172
16173 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
16174
16175 PR other/57324
16176 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
16177 HOST_WIDE_INT_M1U): New macros.
16178 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
16179 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
16180 unsigned -1 for lshift.
16181 * cse.c (cse_insn): Likewise.
16182 * double-int.c (rshift_double, lshift_double): Likewise.
16183 * builtins.c (fold_builtin_bitop): Likewise.
16184 * combine.c (force_to_mode): Likewise.
16185 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
16186 * simplify-rtx.c (simplify_const_unary_operation,
16187 simplify_const_binary_operation): Likewise.
16188 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
16189 check_va_list_escapes): Likewise.
16190 * rtlanal.c (nonzero_bits1): Likewise.
16191 * expmed.c (expand_smod_pow2): Likewise.
16192 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
16193
16194 2013-08-23 Jan Hubicka <jh@suse.cz>
16195
16196 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
16197 as having address taken.
16198
16199 2013-08-23 Jan Hubicka <jh@suse.cz>
16200
16201 * ipa-utils.h (method_class_type): Declare.
16202 * ipa-devirt.c (method_class_type): Export.
16203
16204 * cgraphunit.c (analyze_functions): Do basic devirtualization;
16205 do not walk base classes of anonymous types.
16206
16207 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
16208
16209 PR rtl-optimization/58220
16210 PR regression/58221
16211 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
16212 handle SEQUENCE insns properly.
16213
16214 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
16215
16216 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
16217 definition.
16218 (pp_newline_and_indent): Likewise.
16219 (pp_separate_with): Likewise.
16220 * pretty-print.c (pp_newline_and_flush): Define.
16221 (pp_newline_and_indent): Likewise.
16222 (pp_separate_with): Likewise.
16223
16224 2013-08-23 Jakub Jelinek <jakub@redhat.com>
16225
16226 PR target/58218
16227 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
16228 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
16229
16230 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
16231
16232 * config/i386/predicates.md (ext_sse_reg_operand): New.
16233 * config/i386/i386.md (*movti_internal): Use
16234 predicate to determine if EVEX is needed.
16235 (*movsi_internal): Ditto.
16236 (*movdf_internal): Ditto.
16237 (*movsf_internal): Ditto.
16238 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
16239
16240 2013-08-23 Jakub Jelinek <jakub@redhat.com>
16241
16242 PR tree-optimization/58209
16243 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
16244 (find_tail_calls): Give up for pointer result types if m is non-NULL.
16245 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
16246 emit POINTER_PLUS_EXPR.
16247 (create_tailcall_accumulator): For pointer result type accumulate in
16248 sizetype type.
16249
16250 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
16251
16252 * configure.ac: Add backslashes missing from the last change.
16253 * configure: Regenerate.
16254
16255 2013-08-22 Jan Hubicka <jh@susue.cz>
16256
16257 * ipa.c (function_and_variable_visibility): First remember function
16258 was global and then make it local.
16259
16260 2013-08-22 Julian Brown <julian@codesourcery.com>
16261
16262 * configure.ac: Add aarch64 to list of arches which use "nop" in
16263 debug_line test.
16264 * configure: Regenerate.
16265
16266 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16267
16268 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
16269 gnu_libc_has_function.
16270 * config/s390/tpf.h: Likewise.
16271
16272 2013-08-22 Jan Hubicka <jh@susue.cz>
16273
16274 * timevar.c (validate_phases): Add cast.
16275
16276 2013-08-22 Jan Hubicka <jh@susue.cz>
16277
16278 * timevar.c (validate_phases): Use size_t for memory.
16279 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
16280
16281 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
16282
16283 * pretty-print.h (output_buffer::output_buffer): Declare.
16284 (pretty_printer::pretty_printer): Likewise.
16285 (pp_construct): Remove.
16286 * pretty-print.c (output_buffer::output_buffer): Define.
16287 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
16288 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
16289 (print_gimple_expr): Likewise.
16290 (print_gimple_seq): Likewise.
16291 (gimple_dump_bb): Likewise.
16292 * sched-vis.c (dump_value_slim): Likewise.
16293 (dump_insn_slim): Likewise.
16294 (dump_rtl_slim): Likewise.
16295 (str_pattern_slim): Likewise.
16296 * tree-mudflap.c (mf_varname_tree): Likewise.
16297 * graph.c (print_graph_cfg): Likewise.
16298 (start_graph_dump): Likewise.
16299 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
16300 placement-new.
16301 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
16302 pretty printer initialization.
16303 * coretypes.h (diagnostic_context): Remove superflous type alias
16304 declaration.
16305 (pretty_printer): Likewise. Declare directly as a class.
16306 (pretty_print_info): Remove declaration as class.
16307 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
16308 and pp_clear_output_area.
16309 (asan_add_global): Likewise.
16310
16311 2013-08-22 Jan Hubicka <jh@suse.cz>
16312
16313 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
16314 * ipa-utils.h (update_type_inheritance_graph): Declare.
16315 (possible_polymorphic_call_target_p): Declare.
16316 (possible_polymorphic_call_target_p): New.
16317 * ipa-devirt.c: Update toplevel comments.
16318 (cached_polymorphic_call_targets): Move up.
16319 (odr_type_d): Move ID down.
16320 (polymorphic_type_binfo_p): Update comment.
16321 (odr_hasher::remove): Likewise;
16322 (get_odr_type): Set anonymous_namespace.
16323 (dump_odr_type): Dump it.
16324 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
16325 (maybe_record_node): Record node in cached_polymorphic_call_targets.
16326 (record_binfo): Add comment.
16327 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
16328 built.
16329 (devirt_node_removal_hook): Do not iCE when cache is freed.
16330 (possible_polymorphic_call_target_p): New predicate.
16331 (update_type_inheritance_graph): New function.
16332
16333 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
16334 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16335 Sergey Lega <sergey.s.lega@intel.com>
16336 Anna Tikhonova <anna.tikhonova@intel.com>
16337 Ilya Tocar <ilya.tocar@intel.com>
16338 Andrey Turetskiy <andrey.turetskiy@intel.com>
16339 Ilya Verbin <ilya.verbin@intel.com>
16340 Kirill Yukhin <kirill.yukhin@intel.com>
16341 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16342
16343 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
16344 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
16345 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
16346 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
16347 (OPTION_MASK_ISA_AVX2_UNSET): Update.
16348 (OPTION_MASK_ISA_AVX512F_UNSET): New.
16349 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
16350 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
16351 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
16352 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
16353 OPT_mavx512pf, OPT_mavx512er cases.
16354 * config/i386/constraints.md (v): New constraint.
16355 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
16356 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
16357 (bit_AVX512CD): New.
16358 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16359 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
16360 * config/i386/i386-c.c (ix86_target_macros_internal):
16361 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
16362 __AVX512PF__.
16363 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
16364 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
16365 * config/i386/i386.c (regclass_map, dbx_register_map)
16366 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
16367 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
16368 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
16369 -mavx512pf options.
16370 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
16371 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
16372 -mavx512pf options. Fix formatting.
16373 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
16374 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
16375 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
16376 -mavx512cd, -mavx512pf options.
16377 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
16378 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
16379 (ix86_preferred_output_reload_class): Replace SSE_REGS with
16380 ALL_SSE_REGS.
16381 (ix86_hard_regno_mode_ok): Support 512-bit registers.
16382 (ix86_set_reg_reg_cost): Ditto.
16383 (x86_order_regs_for_local_alloc): Ditto.
16384 (MAX_VECT_LEN): Extend to 64-byte.
16385 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
16386 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
16387 (TARGET_AVX512ER, TARGET_AVX512CD): New.
16388 (BIGGEST_ALIGNMENT): Extend to 512-bits.
16389 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
16390 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
16391 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
16392 (SSE_REG_MODE_P): Support new modes.
16393 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
16394 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
16395 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
16396 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
16397 (REG_CLASS_CONTENTS): Add new registers.
16398 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
16399 (EXT_REX_SSE_REGNO_P): New.
16400 (HI_REGISTER_NAMES): Add new registers.
16401 * config/i386/i386.md: Define constants for new registers.
16402 (mode): Add new 512-bit modes.
16403 (prefix): Support evex prefix.
16404 (isa): Support avx512f, noavx512f, fma_avx512f.
16405 (ssemodesuffix): Add new 512-bit modes.
16406 (movxi): New.
16407 (*movxi_internal_avx512f): Ditto.
16408 (*movdi_internal): Replace constraint "x" with the new constraint "v".
16409 Support MODE_XI.
16410 (*movsi_internal): Likewise.
16411 (*movdf_internal): Likewise.
16412 (*movsf_internal): Likewise.
16413 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
16414 (<code><mode>3): Likewise.
16415 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
16416 New.
16417 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
16418 with the new constraint "v".
16419 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
16420 modes.
16421 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
16422 with the new constraint "v".
16423 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
16424 (<sse2>_storedqu<avxsizesuffix>): Likewise.
16425 (*<plusminus_insn><mode>3): Likewise.
16426 (<sse>_vm<plusminus_insn><mode>3): Likewise.
16427 (*mul<mode>3): Likewise.
16428 (<sse>_vmmul<mode>3): Likewise.
16429 (<sse>_div<mode>3): Likewise.
16430 (<sse>_vmdiv<mode>3): Likewise.
16431 (<sse>_sqrt<mode>2): Likewise.
16432 (<sse>_vmsqrt<mode>2): Likewise.
16433 (*<code><mode>3_finite): Likewise.
16434 (*<code><mode>3) <smaxmin>: Likewise.
16435 (<sse>_vm<code><mode>3): Likewise.
16436 (*<code><mode>3) <any_logic>: Likewise.
16437 (*fma_fmadd_<mode>): Likewise.
16438 (*fma_fmsub_<mode>): Likewise.
16439 (*fma_fnmadd_<mode>): Likewise.
16440 (*fma_fnmsub_<mode>): Likewise.
16441 (*fma_fmaddsub_<mode>): Likewise.
16442 (*fma_fmsubadd_<mode>): Likewise.
16443 (*fmai_fmadd_<mode>): Likewise.
16444 (*fmai_fmsub_<mode>): Likewise.
16445 (*fmai_fnmadd_<mode>): Likewise.
16446 (*fmai_fnmsub_<mode>): Likewise.
16447 (sse_cvtsi2ss): Likewise.
16448 (sse_cvtsi2ssq): Likewise.
16449 (sse_cvtss2si): Likewise.
16450 (sse_cvtss2si_2): Likewise.
16451 (sse_cvtss2siq): Likewise.
16452 (sse_cvtss2siq_2): Likewise.
16453 (sse_cvttss2si): Likewise.
16454 (sse_cvtss2siq_2): Likewise.
16455 (float<sseintvecmodelower><mode>2): Likewise.
16456 (sse2_cvtsd2si_2): Likewise.
16457 (sse2_cvtsd2siq_2): Likewise.
16458 (*<plusminus_insn><mode>3): Likewise.
16459 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
16460 (*<sse4_1_avx2>_mul<mode>3): Likewise.
16461 (ashr<mode>3): Likewise.
16462 (<shift_insn><mode>3): Likewise.
16463 (avx2_<code><mode>3): Likewise.
16464 (*avx2_<code><mode>3): Likewise.
16465 (*andnot<mode>3): Likewise.
16466 (*<code><mode>3) <any_logic>: Likewise.
16467 (abs<mode>2): Likewise.
16468 (avx2_permvar<mode>): Likewise.
16469 (avx2_perm<mode>_1): Likewise.
16470 (*avx_vpermilp<mode>): Likewise.
16471 (avx_vpermilvar<mode>3): Likewise.
16472 (avx2_ashrv<mode>): Likewise.
16473 (avx2_<shift_insn>v<mode>): Likewise.
16474 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
16475 -mavx512cd.
16476 * doc/rtl.texi: Document XImode.
16477
16478 2013-08-21 Jeff Law <law@redhat.com>
16479
16480 * tree-flow.h (register_jump_thread): Pass vector of edges
16481 instead of each important edge.
16482 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
16483 thread path into a vector and pass that to register_jump_thread.
16484 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
16485 passed in edge vector to the current 3-edge form.
16486
16487 Revert:
16488 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
16489
16490 * dce.c (fini_dce): Call df_analyze again just in case
16491 delete_unmarked_insns removed anything.
16492
16493 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
16494
16495 * reload.h (struct reg_equivs): Rename to ..
16496 (struct reg_equivs_s): .. this.
16497
16498 2013-08-20 Martin Liska <marxin.liska@gmail.com>
16499
16500 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
16501
16502 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16503
16504 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
16505
16506 2013-08-21 Jeff Law <law@redhat.com>
16507
16508 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
16509 simplify assignments too. If the RHS collapses to a singleton
16510 range, then return the value for the range.
16511
16512 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
16513
16514 * config/i386/sse.md (V16): Rename to...
16515 (VMOVE): this.
16516 (mov<mode>): Update iterator name.
16517 (*mov<mode>_internal): Ditto.
16518 (push<mode>1): Ditto.
16519 (movmisalign<mode>): Ditto.
16520
16521 2013-08-20 Jan Hubicka <jh@suse.cz>
16522
16523 PR bootstrap/58186
16524 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
16525 entry for direct edges.
16526 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
16527
16528 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16529
16530 Revert my last two changes, r201865 and r201864:
16531
16532 Revert r201865:
16533 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16534
16535 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16536 instances can own GC refs.
16537
16538 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16539 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16540 (gcc::context::gt_pch_nx): Likewise.
16541 (gcc::context::gt_pch_nx): Likewise.
16542 * ggc.h (gt_ggc_mx <T>): New.
16543 (gt_pch_nx_with_op <T>): New.
16544 (gt_pch_nx <T>): New.
16545 * passes.c (opt_pass::gt_ggc_mx): New.
16546 (opt_pass::gt_pch_nx): New.
16547 (opt_pass::gt_pch_nx_with_op): New.
16548 (pass_manager::gt_ggc_mx): New.
16549 (pass_manager::gt_pch_nx): New.
16550 (pass_manager::gt_pch_nx_with_op): New.
16551 (pass_manager::operator new): Use
16552 ggc_internal_cleared_alloc_stat rather than xcalloc.
16553 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16554 (pass_manager::gt_ggc_mx): New.
16555 (pass_manager::gt_pch_nx): New.
16556 (pass_manager::gt_pch_nx_with_op): New.
16557 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16558 (opt_pass::operator new): New.
16559 (opt_pass::gt_ggc_mx): New.
16560 (opt_pass::gt_pch_nx): New.
16561 (opt_pass::gt_pch_nx_with_op): New.
16562
16563 Revert r201864:
16564 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16565
16566 * Makefile.in (GTFILES): Add context.h.
16567 * context.c (gcc::context::operator new): New.
16568 (gcc::context::gt_ggc_mx): New.
16569 (gcc::context::gt_pch_nx): New.
16570 (gcc::context::gt_pch_nx): New.
16571 * context.h (gcc::context): Add GTY((user)) marking.
16572 (gcc::context::operator new): New.
16573 (gcc::context::gt_ggc_mx): New.
16574 (gcc::context::gt_pch_nx): New.
16575 (gcc::context::gt_pch_nx): New.
16576 (g): Add GTY marking.
16577 (gt_ggc_mx (gcc::context *)): New.
16578 (gt_pch_nx (gcc::context *)): New.
16579 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16580 void *cookie)): New.
16581 * gengtype.c (open_base_files) <ifiles>: Add context.h.
16582
16583 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
16584
16585 * dce.c (fini_dce): Call df_analyze again just in case
16586 delete_unmarked_insns removed anything.
16587
16588 2013-08-20 Teresa Johnson <tejohnson@google.com>
16589
16590 PR rtl-optimizations/57451
16591 * final.c (reemit_insn_block_notes): Prevent lexical blocks
16592 from crossing split section boundaries.
16593
16594 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
16595
16596 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
16597 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
16598 with MULTLIB_DEFAULTS.
16599
16600 2013-08-20 Nick Clifton <nickc@redhat.com>
16601
16602 * target.def (narrow_volatile_bitfield): Note that the default
16603 value is false, not !TARGET_STRICT_ALIGN.
16604 * doc/tm.texi: Regenerate.
16605
16606 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
16607
16608 Fix LIB_SPEC for systems without libpthread.
16609
16610 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
16611 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
16612 for Android.
16613 * config/i386/linux-common.h: Likewise.
16614 * config/mips/linux-common.h: Likewise.
16615
16616 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16617
16618 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
16619 checks.
16620
16621 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16622
16623 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16624 instances can own GC refs.
16625
16626 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16627 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16628 (gcc::context::gt_pch_nx): Likewise.
16629 (gcc::context::gt_pch_nx): Likewise.
16630 * ggc.h (gt_ggc_mx <T>): New.
16631 (gt_pch_nx_with_op <T>): New.
16632 (gt_pch_nx <T>): New.
16633 * passes.c (opt_pass::gt_ggc_mx): New.
16634 (opt_pass::gt_pch_nx): New.
16635 (opt_pass::gt_pch_nx_with_op): New.
16636 (pass_manager::gt_ggc_mx): New.
16637 (pass_manager::gt_pch_nx): New.
16638 (pass_manager::gt_pch_nx_with_op): New.
16639 (pass_manager::operator new): Use
16640 ggc_internal_cleared_alloc_stat rather than xcalloc.
16641 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16642 (pass_manager::gt_ggc_mx): New.
16643 (pass_manager::gt_pch_nx): New.
16644 (pass_manager::gt_pch_nx_with_op): New.
16645 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16646 (opt_pass::operator new): New.
16647 (opt_pass::gt_ggc_mx): New.
16648 (opt_pass::gt_pch_nx): New.
16649 (opt_pass::gt_pch_nx_with_op): New.
16650
16651 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16652
16653 * Makefile.in (GTFILES): Add context.h.
16654 * context.c (gcc::context::operator new): New.
16655 (gcc::context::gt_ggc_mx): New.
16656 (gcc::context::gt_pch_nx): New.
16657 (gcc::context::gt_pch_nx): New.
16658 * context.h (gcc::context): Add GTY((user)) marking.
16659 (gcc::context::operator new): New.
16660 (gcc::context::gt_ggc_mx): New.
16661 (gcc::context::gt_pch_nx): New.
16662 (gcc::context::gt_pch_nx): New.
16663 (g): Add GTY marking.
16664 (gt_ggc_mx (gcc::context *)): New.
16665 (gt_pch_nx (gcc::context *)): New.
16666 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16667 void *cookie)): New.
16668 * gengtype.c (open_base_files) <ifiles>: Add context.h.
16669
16670 2013-08-20 Alan Modra <amodra@gmail.com>
16671
16672 PR target/57865
16673 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
16674 (rs6000_emit_epilogue): Likewise.
16675
16676 2013-08-19 Dehao Chen <dehao@google.com>
16677
16678 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
16679
16680 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
16681 Jakub Jelinek <jakub@redhat.com>
16682
16683 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
16684 (BUILT_IN_FABSD64): Likewise.
16685 (BUILT_IN_FABSD128): Likewise.
16686 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
16687 (fold_builtin_1): Likewise.
16688 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
16689 destination and source operands.
16690 (*abstd2_fpr): Likewise.
16691 (*nabstd2_fpr): Likewise.
16692
16693 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
16694
16695 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
16696 JUMP_P and INSN_P.
16697
16698 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
16699
16700 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
16701 incomplete.
16702
16703 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
16704
16705 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
16706 * builtins.c (default_libc_has_function): New.
16707 (gnu_libc_has_function): Ditto.
16708 (no_c99_libc_has_function): Ditto.
16709 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
16710 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
16711 (fold_builtin_sincos): Likewise.
16712 (fold_builtin_cexp): Likewise.
16713 * builtins.def (DEF_C94_BUILTIN): Likewise.
16714 (DEF_C99_BUILTIN): Likewise.
16715 (DEF_C99_C90RES_BUILTIN): Likewise.
16716 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
16717 definitions to using this define.
16718 * config/darwin-protos.h (darwin_libc_has_function): New.
16719 * config/darwin.c (darwin_libc_has_function): Ditto.
16720 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
16721 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
16722 * config/darwin.h: Ditto.
16723 * config/elfos.h: Ditto.
16724 * config/freebsd.h: Ditto.
16725 * config/i386/cygming.h: Ditto.
16726 * config/i386/djgpp.h: Ditto.
16727 * config/i386/i386-interix.h: Ditto.
16728 * config/microblaze/microblaze.h: Ditto.
16729 * config/mmix/mmix.h: Ditto.
16730 * config/gnu-user.h: Ditto.
16731 * config/ia64/hpux.h: Ditto.
16732 * config/pa/pa-hpux.h: Ditto.
16733 * config/pdp11/pdp11.h: Ditto.
16734 * config/picochip/picochip.h: Ditto.
16735 * config/linux.h: Ditto.
16736 * config/netbsd.h: Ditto.
16737 * config/openbsd.h: Ditto.
16738 * config/rs6000/aix43.h: Ditto.
16739 * config/rs6000/aix51.h: Ditto.
16740 * config/rs6000/aix52.h: Ditto.
16741 * config/rs6000/aix53.h: Ditto.
16742 * config/rs6000/aix61.h: Ditto.
16743 * config/rs6000/darwin.h: Ditto.
16744 * config/rs6000/linux.h: Ditto.
16745 * config/rs6000/linux64.h: Ditto.
16746 * config/s390/tpf.h: Ditto.
16747 * config/sol2-10.h: Ditto.
16748 * config/sol2.h: Ditto.
16749 * config/vms/vms.h: Ditto.
16750 * config/vxworks.h: Ditto.
16751 * config/linux-android.c (linux_android_libc_has_function):
16752 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
16753 * config/linux-protos.h (linux_android_libc_has_function):
16754 New declaration.
16755 * config/i386/i386.c (ix86_libc_has_function): New.
16756 * config/i386/i386-protos.h
16757 (ix86_libc_has_function): New declaration.
16758 * config/i386/i386.md
16759 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
16760 ("isinf<mode>2): Likewise.
16761 * convert.c (convert_to_integer): Using new target hook
16762 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
16763 TARGET_C99_FUNCTIONS.
16764 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
16765 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
16766 * coretypes.h (function_class): New enum for different
16767 classes of functions.
16768 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
16769 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
16770 (TARGET_HAS_SINCOS): Likewise.
16771 (TARGET_LIBC_HAS_FUNCTION): New.
16772 * doc/tm.texi: Regenerated.
16773 * targhooks.h (default_libc_has_function): New declaration.
16774 (no_c99_libc_has_function): Ditto.
16775 (gnu_libc_has_function): Ditto.
16776 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
16777 and TARGET_HAS_SINCOS.
16778
16779 2013-08-18 Jan Hubicka <jh@suse.cz>
16780
16781 * Makeifle-in (ipa-devirt.o): New.
16782 (GTFILES): Add ipa-utils.h and ipa-devirt.c
16783 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
16784 (analyze_functions): Look into possible targets of polymorphic call.
16785 * dumpfile.c (dump_files): Add type-inheritance dump.
16786 * dumpfile.h (TDI_inheritance): New.
16787 * ipa-devirt.c: New file.
16788 * ipa-utils.h (odr_type_d): Forward declare.
16789 (odr_type): New type.
16790 (build_type_inheritance_graph): Declare.
16791 (possible_polymorphic_call_targets): Declare and introduce inline
16792 variant when only edge is pased.
16793 (dump_possible_polymorphic_call_targets): Likewise.
16794 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
16795 * tree.c (type_in_anonymous_namespace_p): Break out from ...
16796 (types_same_for_odr): ... here.
16797 * tree.h (type_in_anonymous_namespace_p): Declare.
16798
16799 2013-08-18 Jakub Jelinek <jakub@redhat.com>
16800
16801 PR tree-optimization/58006
16802 * tree-parloops.c (take_address_of): Don't ICE if get_name
16803 returns NULL.
16804 (eliminate_local_variables_stmt): Remove clobber stmts.
16805
16806 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
16807
16808 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
16809 error message is issued for an alias to undefined symbol.
16810
16811 2013-08-18 Jan Hubicka <jh@suse.cz>
16812
16813 * cgraph.c (cgraph_create_indirect_edge): Discover
16814 polymorphic calls and record basic info into indirect_info.
16815 * gimple-fold.c (gimple_fold_call): When doing BINFO based
16816 devirtualization, ignore objc function calls.
16817 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
16818 call with no parm index info.
16819 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
16820 * tree.c (virtual_method_call_p): New function.
16821 * tree.h (virtual_method_call_p): Declare.
16822
16823 2013-08-16 Jan Hubicka <jh@suse.cz>
16824
16825 PR middle-end/58179
16826 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
16827
16828 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
16829
16830 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
16831 attribute.
16832
16833 2013-08-16 David Malcolm <dmalcolm@redhat.com>
16834
16835 * gengtype.c (type_for_name): Add special-case support for
16836 locating types within the "gcc::" namespace.
16837 (open_base_files): Emit a "using namespace gcc" directive.
16838
16839 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
16840
16841 PR target/58160
16842 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
16843 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
16844
16845 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
16846 array instead of each individual operand as a separate argument.
16847 (emit_fusion_gpr_load): Likewise.
16848 (expand_fusion_gpr_load): Add new function declaration.
16849
16850 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
16851 signature to have the operands passed as an array, instead of as
16852 separate arguments. Allow ZERO_EXTEND to be in the memory
16853 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
16854 depend on the register live/dead flags when peepholes are run.
16855 (expand_fusion_gpr_load): New function to be called from the
16856 peephole2 pass, to change the register that addis sets to be the
16857 target register.
16858 (emit_fusion_gpr_load): Change the calling signature to have the
16859 operands passed as an array, instead of as separate arguments.
16860 Allow ZERO_EXTEND to be in the memory address, and also
16861 SIGN_EXTEND if -mpower8-fusion-sign.
16862
16863 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
16864 unspec enumeration.
16865 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
16866 adjust the register addis loads up in the peephole2 pass. Do not
16867 depend on the register live/dead state when the peephole pass is done.
16868
16869 2013-08-16 David Malcolm <dmalcolm@redhat.com>
16870
16871 * gengtype.c (create_user_defined_type): Ensure that the kind
16872 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
16873 declaration is seen before the GTY((user)) marking.
16874
16875 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16876
16877 PR target/58105
16878 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
16879
16880 2013-08-16 Jan Hubicka <jh@suse.cz>
16881
16882 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
16883 arugment expected_type.
16884 (gimple_fold_call): Use it.
16885 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
16886 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
16887 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
16888 (try_make_edge_direct_virtual_call): Likewise.
16889 * tree.c (obj_type_ref_class): New.
16890 * tree.h (obj_type_ref_class): Use it.
16891
16892 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
16893
16894 * sched-vis.c (rtl_slim_pp_initialized): Remove.
16895 (rtl_slim_pp): Likewise.
16896 (init_rtl_slim_pretty_print): Likewise.
16897 (dump_value_slim): Don't call it. Use local pretty printer.
16898 (dump_insn_slim): Likewise.
16899 (dump_rtl_slim): Likewise.
16900 (str_pattern_slim): Likewise.
16901 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
16902 Simplify.
16903
16904 2013-08-16 Jakub Jelinek <jakub@redhat.com>
16905
16906 PR tree-optimization/58164
16907 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
16908 walk gimple_goto_dest of GIMPLE_GOTO.
16909
16910 PR tree-optimization/58165
16911 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
16912 bi_call must be the last stmt in a bb, don't split_block, instead
16913 use fallthru edge from it and give up if there is none.
16914 Release conds vector when returning early.
16915
16916 2013-08-14 Xinliang David Li <davidxl@google.com>
16917
16918 * config/i386/i386.c (ix86_option_override_internal):
16919 Remove unused variable and field.
16920
16921 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16922
16923 PR target/57949
16924 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
16925 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
16926 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
16927 and Linux, correct BLKmode alignment when 128-bit alignment is
16928 required and compatibility flag is not set.
16929 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
16930 for zero-size arguments when compatibility flag is not set.
16931
16932 2013-08-14 Jakub Jelinek <jakub@redhat.com>
16933
16934 PR tree-optimization/58145
16935 * tree-sra.c (build_ref_for_offset): If prev_base has
16936 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
16937
16938 2013-08-14 Xinliang David Li <davidxl@google.com>
16939
16940 * config/i386/i386.c (ix86_option_override_internal):
16941 Fix uninitialized variable error.
16942
16943 2013-08-14 Xinliang David Li <davidxl@google.com>
16944
16945 * config/i386/i386.opt: Define two new options.
16946 * config/i386/x86-tune.def: Add arch selector field in macros.
16947 * config/i386/i386.h: Adjust macro definition.
16948 * config/i386/i386.c (ix86_option_override_internal):
16949 Refactor the code.
16950 (parse_mtune_ctrl_str): New function.
16951 (set_ix86_tune_features): New function.
16952 (ix86_function_specific_restore): Call the new helper function.
16953
16954 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
16955
16956 PR rtl-optimization/57662
16957 * sel-sched.c (code_motion_process_successors): When the current insn
16958 is removed after the recursive traversal, break from the loop.
16959 Add comments and debug printouts.
16960
16961 2013-08-14 Jakub Jelinek <jakub@redhat.com>
16962 Alexandre Oliva <aoliva@redhat.com>
16963
16964 PR target/58067
16965 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
16966 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
16967 there also UNSPEC_PLTOFF.
16968
16969 2013-08-14 Marek Polacek <polacek@redhat.com>
16970
16971 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
16972 NUM_CONDITIONS bit positions.
16973
16974 2013-08-13 Cary Coutant <ccoutant@google.com>
16975
16976 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
16977 (attr_checksum): Hash vector contents instead of pointer.
16978 (attr_checksum_ordered): Likewise.
16979
16980 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
16981
16982 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
16983 when Pmode != word_mode. Add length_address attribute.
16984 (sse3_monitor_<mode>): Merge from sse3_monitor and
16985 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
16986 Pmode != word_mode. Update insn length attribute.
16987 * config/i386/i386.c (ix86_option_override_internal): Update
16988 ix86_gen_monitor selection for merged sse3_monitor insn.
16989
16990 2013-08-13 Julian Brown <julian@codesourcery.com>
16991
16992 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
16993 perform invalid legitimization on greater-than-word-size modes for
16994 TARGET_E500_DOUBLE.
16995
16996 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
16997
16998 * ira.c (setup_class_translate_array): Use aclass instead of cl
16999 for classes not fully covered by allocno classes.
17000
17001 2013-08-13 Jakub Jelinek <jakub@redhat.com>
17002
17003 PR tree-optimization/57661
17004 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
17005 * tree-inline.c (tree_function_versioning): Initialize it.
17006 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
17007 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
17008 that is not being copied.
17009
17010 PR sanitizer/56417
17011 * asan.c (instrument_strlen_call): Fix typo in comment.
17012 Use char * type even for the lhs of POINTER_PLUS_EXPR.
17013
17014 2013-08-13 Steve Ellcey <sellcey@mips.com>
17015
17016 * config/mips/mips.md (prefetch): Use lw instead of ld on
17017 loongson in 32bit mode.
17018
17019 2013-08-13 Nick Clifton <nickc@redhat.com>
17020
17021 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
17022
17023 2013-08-13 Jan Hubicka <jh@suse.cz>
17024
17025 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
17026 introduced edge; fix typo in sanity check.
17027 (cgraph_resolve_speculation): Export; improve diagnostic.
17028 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
17029 speculation at type mismatch.
17030 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
17031 (cgraph_resolve_speculation): Declare.
17032 (symtab_can_be_discarded): New function.
17033 * value-prof.c (gimple_ic_transform): Remove actual transform code.
17034 * ipa-inline-transform.c (speculation_removed): New global var.
17035 (clone_inlined_nodes): See if speculation can be removed.
17036 (inline_call): If speculations was removed, we growths may not match.
17037 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
17038 (speculation_useful_p): New function.
17039 (resolve_noninline_speculation): New function.
17040 (inline_small_functions): Resolve useless speculations.
17041 * ipa-inline.h (speculation_useful_p): Declare
17042 * ipa.c (can_replace_by_local_alias): Simplify.
17043 (ipa_profile): Produce speculative calls in non-lto, too;
17044 add simple cost model; produce local aliases.
17045
17046 2013-08-13 David Malcolm <dmalcolm@redhat.com>
17047
17048 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
17049 PASS_MANAGER_H.
17050
17051 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
17052
17053 * config/i386/i386.c (ix86_function_versions): Use error + inform.
17054
17055 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
17056
17057 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
17058 iterator instead of X87MODEF.
17059
17060 2013-08-12 Perez Read <netfirewall@gmail.com>
17061
17062 PR target/58132
17063 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
17064 operand 0 for intel asm alternative.
17065 (*movabs<mode>_2): Ditto for operand 1.
17066
17067 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
17068
17069 * config/aarch64/arm_none.h
17070 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
17071
17072 2013-08-12 Nick Clifton <nickc@redhat.com>
17073
17074 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
17075
17076 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
17077
17078 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
17079 expand for QI/HImode operand to produce more effictive code for
17080 unsigned char(short) --> float(double) conversion.
17081
17082 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
17083
17084 * doc/invoke.texi: Mention that -ftls-model does not force the final
17085 model.
17086
17087 2013-08-12 Marek Polacek <polacek@redhat.com>
17088 Marc Glisse <marc.glisse@inria.fr>
17089
17090 PR tree-optimization/57980
17091 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
17092 when creating -1 constant.
17093
17094 2013-08-10 Jan Hubicka <jh@suse.cz>
17095
17096 Workaround binutils PR14342.
17097 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
17098 (gimple_init_edge_profiler): Likewise.
17099 (gimple_gen_ic_func_profiler): Likewise.
17100
17101 2013-08-09 Jan Hubicka <jh@suse.cz>
17102
17103 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
17104
17105 2013-08-09 Xinliang David Li <davidxl@google.com>
17106
17107 * config/i386/stringop.def: New file.
17108 * config/i386/stringop.opt: New file.
17109 * config/i386/i386-opts.h: Include stringopt.def.
17110 * config/i386/i386.opt: Include stringopt.opt.
17111 * config/i386/i386.c (ix86_option_override_internal):
17112 Override default size based stringop inline strategies with options.
17113 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
17114 New function.
17115
17116 2013-08-09 Jan Hubicka <jh@suse.cz>
17117
17118 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
17119
17120 2013-08-09 Jan Hubicka <jh@suse.cz>
17121
17122 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
17123 CGRAPH_FREQ_MAX.
17124 (dump_cgraph_node): Dump profile-id.
17125 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
17126 and common_target_probability.
17127 * lto-cgraph.c (lto_output_edge): Stream common targets.
17128 (lto_output_node): Stream profile ids.
17129 (input_node): Stream profile ids.
17130 (input_edge): Stream common targets.
17131 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
17132 * ipa.c: Include value-prof.h
17133 (ipa_profile_generate_summary): Turn indirect call statement histograms
17134 into common targets.
17135 (ipa_profile): Turn common targets into speculative edges.
17136
17137 2013-08-09 Jan Hubicka <jh@suse.cz>
17138
17139 * cgraph.h (cgraph_node): Add profile_id.
17140 * value-prof.c (cgraph_node_map): Turn into pointer_map.
17141 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
17142 (del_node_map): Update.
17143 (find_func_by_funcdef_no): Replace by ...
17144 (find_func_by_profile_id): ... this one.
17145 (gimple_ic_transform): Do not remove useful histograms when
17146 speculation is not done; dump info when indirect call removal
17147 can happen at LTO.
17148 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
17149 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
17150 (__gcov_indirect_call_profiler_v2): .. this one.
17151 * profile.h (init_node_map): Update.
17152 * coverage.c (coverage_compute_profile_id): New function.
17153 * coverage.h (coverage_compute_profile_id): Declare.
17154 * tree-profile.c (init_ic_make_global_vars): Make
17155 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
17156 (gimple_init_edge_profiler): Update prototype of
17157 __gcov_indirect_call_profiler.
17158 (gimple_gen_ic_func_profiler): Simplify.
17159 (tree_profiling): Use init_node_map
17160
17161 2013-08-09 Jan Hubicka <jh@suse.cz>
17162
17163 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
17164 non-speculative refs.
17165 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
17166 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
17167 (cgraph_set_call_stmt): Likewise.
17168 (cgraph_create_edge_1): Fix release checking compilatoin;
17169 clear lto_stmt_uid.
17170 (cgraph_free_edge): Free indirect info.
17171 (cgraph_turn_edge_to_speculative): New function.
17172 (cgraph_speculative_call_info): New function.
17173 (cgraph_make_edge_direct): Return direct edge; handle speculation.
17174 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
17175 (dump_cgraph_node): Dump speculation.
17176 (verify_edge_count_and_frequency): Accept speculative edges.
17177 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
17178 (verify_cgraph_node): Handle speculation.
17179 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
17180 (cgraph_set_call_stmt): Update prototype.
17181 (cgraph_make_edge_direct): Update prototype.
17182 (cgraph_speculative_call_info): Declare.
17183 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
17184 to change; update call of ipa_find_references.
17185 * ipa-ref.c (ipa_record_reference): Fix return value; clear
17186 lto_stmt_uid and speculative flags.
17187 (ipa_dump_references): Dump speculation.
17188 (ipa_clone_references): Clone speculative flag.
17189 (ipa_clone_referring): Likewise.
17190 (ipa_clone_ref): New function.
17191 (ipa_find_reference): Look into lto_stmt_uids
17192 (ipa_clear_stmts_in_references): Do not clear speculative calls.
17193 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
17194 (ipa_find_reference): Update declaration.
17195 (ipa_clone_ref): Declare.
17196 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
17197 stream speculative flag.
17198 (lto_output_ref): Stream statements uids and speculation.
17199 (input_ref): Likewise.
17200 (input_edge): Stream speuclation.
17201 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
17202 (cgraph_set_call_stmt_including_clones): Handle speculation.
17203 * ipa-inline.c (heap_edge_removal_hook): New function.
17204 (inline_small_functions): Register it.
17205 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
17206 also initialize refs.
17207 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
17208 edge to change.
17209 (try_make_edge_direct_simple_call): Likewise.
17210 (try_make_edge_direct_simple_call): Likewise.
17211 (update_indirect_edges_after_inlining): Likewise.
17212 (remove_described_reference): Look proper lto_stmt_uid.
17213 (propagate_controlled_uses): Likewise.
17214 (propagate_controlled_uses): Liekwise.
17215 * tree-inline.c (copy_bb): Copy speculative edges.
17216 (redirect_all_calls): New function.
17217 (copy_cfg_body): Do redirection after loop info is updated.
17218 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
17219
17220 2013-08-09 Jan Hubicka <jh@suse.cz>
17221
17222 * lto-streamer-out.c (output_function): Renumber PHIs.
17223 * lto-streamer-in.c (input_function): Likewise.
17224
17225 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
17226
17227 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
17228 (get_lane_unsigned): Likewise.
17229 (dup_lane_scalar): Likewise.
17230 (get_lane): enable for VALL.
17231 * config/aarch64/aarch64-simd.md
17232 (aarch64_dup_lane_scalar<mode>): Remove.
17233 (aarch64_get_lane_signed<mode>): Likewise.
17234 (aarch64_get_lane_unsigned<mode>): Likewise.
17235 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
17236 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
17237 (aarch64_get_lane<mode>): Enable for all vector modes.
17238 (aarch64_get_lanedi): Remove misleading constraints.
17239 * config/aarch64/arm_neon.h
17240 (__aarch64_vget_lane_any): Define.
17241 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
17242 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
17243 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
17244 * config/aarch64/iterators.md (VDQQH): New.
17245 (VDQQHS): Likewise.
17246 (vwcore): Likewise.
17247
17248 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
17249
17250 * configure.ac: Add GAS check for LEON instructions on SPARC.
17251 * configure: Regenerate.
17252 * config.in: Likewise.
17253 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
17254 sparc*-*-* block.
17255 * config/sparc/sparc.opt (LEON, LEON3): New masks.
17256 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
17257 for LEON or LEON3.
17258 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
17259 (AS_LEON_FLAG): New macro.
17260 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
17261 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
17262 Deal with LEON and LEON3 for the memory model.
17263 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
17264 (atomic_compare_and_swap<mode>_1): Likewise.
17265 (*atomic_compare_and_swap<mode>_1): Likewise.
17266
17267 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17268
17269 * config/arm/neon.md (vcond): Fix floating-point vector
17270 comparisons against 0.
17271
17272 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
17273
17274 * lra-constraints.c (emit_spill_move): Remove assert.
17275 (process_alt_operands): Add more debugging
17276 output. Increase reject for spilling into memory. Decrease
17277 reject for reloading scratch.
17278 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
17279
17280 2013-08-08 Steve Ellcey <sellcey@mips.com>
17281
17282 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
17283 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
17284 micromips incompatible. Add nan2008.
17285 (MULTILIB_DIRNAMES): Add nan2008.
17286 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
17287 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
17288 and micromips incompatible. Add nan2008.
17289 (MULTILIB_DIRNAMES): Add nan2008.
17290 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
17291
17292 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
17293
17294 PR rtl-optimization/58079
17295 * combine.c (combine_simplify_rtx): Avoid using SUBST if
17296 simplify_comparison has widened a comparison with an integer.
17297
17298 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17299
17300 * config/arm/neon.md (movmisalign<mode>): Disable when we
17301 don't allow unaligned accesses.
17302 (*movmisalign<mode>_neon_store): Likewise.
17303 (*movmisalign<mode>_neon_load): Likewise.
17304 (*movmisalign<mode>_neon_store): Likewise.
17305 (*movmisalign<mode>_neon_load): Likewise.
17306
17307 2013-08-08 Jan Hubicka <jh@suse.cz>
17308
17309 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
17310 (make_pass_rebuild_cgraph_edges): Also clear references.
17311 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
17312 * ipa-inline-transform.c (inline_transform): Remove all references
17313 after inlining.
17314 * cgraphunit.c (expand_function): Remove all references after
17315 expansion.
17316 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
17317 (ipa_find_reference): Rewrite to iterator.
17318 (remove_stmt_references): Likewise.
17319 (ipa_clear_stmts_in_references): New function.
17320 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
17321 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
17322 clear references.
17323 * ipa-split.c (split_function): Remove references in split function.
17324
17325 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
17326
17327 PR target/57431
17328 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
17329 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
17330
17331 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
17332
17333 PR target/56979
17334 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
17335 suggested mode for the assignment isn't compatible with the
17336 registers required.
17337
17338 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
17339
17340 PR target/58065
17341 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
17342
17343 2013-08-07 Xinliang David Li <davidxl@google.com>
17344
17345 * config/i386/i386.opt: New option -mtune-ctrl=.
17346 * config/i386/x86-tune.def: New file.
17347 * config/i386/i386.h: include x86-tune.def.
17348 * config/i386/i386.c (ix86_option_override_internal):
17349 Parsing -mtune-ctrl= option and set tune features.
17350
17351 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
17352
17353 PR other/12081
17354 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
17355 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
17356 to gen_2arg_fn_t.
17357
17358 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
17359
17360 * rtl.h (update_alignments): Declare.
17361 * final.c (grow_label_align): New function extracted from...
17362 (shorten_branches): ...here. Call it.
17363 (update_alignments): New function.
17364 * reorg.c (sibling_labels): New variable.
17365 (get_label_before): Add SIBLING parameter. If it is non-zero, push
17366 the new label along with it onto the sibling_labels vector.
17367 (fill_simple_delay_slots): Adjust call to get_label_before.
17368 (fill_slots_from_thread): Likewise.
17369 (relax_delay_slots): Likewise.
17370 (make_return_insns): Likewise.
17371 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
17372
17373 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
17374
17375 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
17376 document its semantics.
17377 (diagnostic_report_diagnostic): Adjust accordingly.
17378
17379 2013-08-07 David Malcolm <dmalcolm@redhat.com>
17380
17381 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
17382 (sparc_option_override): ...and port to new C++ pass API.
17383 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
17384
17385 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
17386
17387 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
17388
17389 2013-08-06 Caroline Tice <cmtice@google.com>
17390
17391 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
17392 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
17393 * tree-pass.h: Add pass_vtable_verify.
17394 * varasm.c (assemble_variable): Add code to properly set the comdat
17395 section and name for the .vtable_map_vars section.
17396 (assemble_vtyv_preinit_initializer): New function.
17397 (default_sectin_type_flags): Make sure .vtable_map_vars section has
17398 LINK_ONCE flag.
17399 * output.h: Add function decl for assemble_vtv_preinit_initializer.
17400 * vtable-verify.c: New file.
17401 * vtable-verify.h: New file.
17402 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
17403 initialiation levels.
17404 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
17405 * passes.def: Insert pass_vtable_verify.
17406 * aclocal.m4: Reorder includes.
17407 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
17408 -fvtv-counts options.
17409 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
17410 as appropriate, if -fvtable-verify=... is used.
17411 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
17412 -fvtable-verify=... is used.
17413 * Makefile.in (OBJS): Add vtable-verify.o to list.
17414 (vtable-verify.o): Add new build rule.
17415 (GTFILES): Add vtable-verify.c to list.
17416 * common.opt (fvtable-verify=): New flag.
17417 (vtv_priority): Values for fvtable-verify= flag.
17418 (fvtv-counts): New flag.
17419 (fvtv-debug): New flag.
17420 * tree.h (save_vtable_map_decl): New extern function decl.
17421
17422 2013-08-07 David Malcolm <dmalcolm@redhat.com>
17423
17424 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
17425 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
17426 (pass_data_rl78_devirt): ...new pass_data instance and...
17427 (make_pass_rl78_devirt): ...new function.
17428 (rl78_asm_file_start): Port pass registration to new C++ API.
17429
17430 2013-08-07 David Malcolm <dmalcolm@redhat.com>
17431
17432 * coretypes.h (rtl_opt_pass): Add.
17433 (gcc::context): Add.
17434 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
17435 (epiphany_init): Port to new C++ pass API.
17436 (epiphany_optimize_mode_switching): Likewise.
17437 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
17438 (pass_manager::get_pass_mode_switching): New.
17439 (pass_manager::get_pass_peephole2): New.
17440 * mode-switching.c (pass_mode_switching): Add clone method.
17441 * recog.c (pass_peephole2): Add clone method.
17442 (pass_split_all_insns): Add clone method.
17443
17444 2013-08-06 David Malcolm <dmalcolm@redhat.com>
17445
17446 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
17447 (mips_option_override): ...here, porting to new C++ API for passes.
17448
17449 2013-08-06 Jan Hubicka <jh@suse.cz>
17450
17451 * cgraph.c (cgraph_get_body): New function based on lto.c
17452 implementation.
17453 * cgraph.h (cgraph_get_body): Declare.
17454 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
17455 LTO paths.
17456 * cgraphunit.c (expand_function): Get body prior expanding.
17457 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
17458 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
17459 really need.
17460 * passes.c (do_per_function_toporder): Get body.
17461 * tree-inline.c (expand_call_inline): Get body prior inlining it.
17462 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
17463
17464 2013-08-06 Martin Jambor <mjambor@suse.cz>
17465
17466 PR fortran/57987
17467 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
17468 is not re-finalized. Rename second parameter to no_collect.
17469
17470 2013-08-06 Martin Jambor <mjambor@suse.cz>
17471
17472 PR middle-end/58041
17473 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
17474 MEM_REF has proper alignment information.
17475
17476 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
17477
17478 PR other/12081
17479 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
17480 class insn_gen_fn.
17481 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
17482 rtx (*) (rtx, ...) with insn_gen_fn.
17483 * genoutput.c (output_insn_data): Cast gen_? function pointers to
17484 insn_gen_fn::stored_funcptr. Add initializer braces.
17485
17486 2013-08-05 David Malcolm <dmalcolm@redhat.com>
17487
17488 Rewrite how instances of passes are cloned to remove assumptions
17489 about their sizes (thus allowing pass subclasses to have
17490 additional data fields, albeit non-GC-managed ones at this point).
17491
17492 * passes.c (make_pass_instance): Now that passes have clone
17493 methods, rewrite this function to eliminate XNEW and memcpy
17494 calls that used hardcoded sizes. Since this function no longer
17495 creates pass instances, rename it to...
17496 (add_pass_instance): ...this. Document the old way that passes were
17497 numbered and flagged, and rework this function to continue using it.
17498 (next_pass_1): Add an initial_pass argument for use by
17499 add_pass_instance.
17500 (position_pass): When adding multiple instances of a pass, use
17501 the pass's clone method, rather than relying on the XNEW/memcpy
17502 within the former make_pass_instance (now add_pass_instance).
17503 (pass_manager::pass_manager): When invoking next_pass_1, also supply
17504 the initial instance of the current pass within the pass manager.
17505
17506 2013-08-05 David Malcolm <dmalcolm@redhat.com>
17507
17508 This is the automated part of the conversion of passes from C
17509 structs to C++ classes.
17510
17511 Patch autogenerated by refactor_passes.py from
17512 https://github.com/davidmalcolm/gcc-refactoring-scripts
17513 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
17514
17515 * asan.c (pass_asan): Convert from a global struct to a subclass of
17516 gimple_opt_pass along with...
17517 (pass_data_asan): ...new pass_data instance and...
17518 (make_pass_asan): ...new function.
17519 (pass_asan_O0): Convert from a global struct to a subclass of
17520 gimple_opt_pass along with...
17521 (pass_data_asan_O0): ...new pass_data instance and...
17522 (make_pass_asan_O0): ...new function.
17523 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
17524 subclass of rtl_opt_pass along with...
17525 (pass_data_inc_dec): ...new pass_data instance and...
17526 (make_pass_inc_dec): ...new function.
17527 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
17528 a subclass of rtl_opt_pass along with...
17529 (pass_data_reorder_blocks): ...new pass_data instance and...
17530 (make_pass_reorder_blocks): ...new function.
17531 (pass_duplicate_computed_gotos): Convert from a global struct to a
17532 subclass of rtl_opt_pass along with...
17533 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
17534 (make_pass_duplicate_computed_gotos): ...new function.
17535 (pass_partition_blocks): Convert from a global struct to a subclass of
17536 rtl_opt_pass along with...
17537 (pass_data_partition_blocks): ...new pass_data instance and...
17538 (make_pass_partition_blocks): ...new function.
17539 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
17540 struct to a subclass of rtl_opt_pass along with...
17541 (pass_data_branch_target_load_optimize1): ...new pass_data instance
17542 and...
17543 (make_pass_branch_target_load_optimize1): ...new function.
17544 (pass_branch_target_load_optimize2): Convert from a global struct to a
17545 subclass of rtl_opt_pass along with...
17546 (pass_data_branch_target_load_optimize2): ...new pass_data instance
17547 and...
17548 (make_pass_branch_target_load_optimize2): ...new function.
17549 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
17550 of rtl_opt_pass along with...
17551 (pass_data_jump): ...new pass_data instance and...
17552 (make_pass_jump): ...new function.
17553 (pass_jump2): Convert from a global struct to a subclass of
17554 rtl_opt_pass along with...
17555 (pass_data_jump2): ...new pass_data instance and...
17556 (make_pass_jump2): ...new function.
17557 * cfgexpand.c (pass_expand): Convert from a global struct to a
17558 subclass of rtl_opt_pass along with...
17559 (pass_data_expand): ...new pass_data instance and...
17560 (make_pass_expand): ...new function.
17561 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
17562 of rtl_opt_pass along with...
17563 (pass_data_free_cfg): ...new pass_data instance and...
17564 (make_pass_free_cfg): ...new function.
17565 (pass_into_cfg_layout_mode): Convert from a global struct to a
17566 subclass of rtl_opt_pass along with...
17567 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
17568 (make_pass_into_cfg_layout_mode): ...new function.
17569 (pass_outof_cfg_layout_mode): Convert from a global struct to a
17570 subclass of rtl_opt_pass along with...
17571 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
17572 (make_pass_outof_cfg_layout_mode): ...new function.
17573 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
17574 struct to a subclass of gimple_opt_pass along with...
17575 (pass_data_build_cgraph_edges): ...new pass_data instance and...
17576 (make_pass_build_cgraph_edges): ...new function.
17577 (pass_rebuild_cgraph_edges): Convert from a global struct to a
17578 subclass of gimple_opt_pass along with...
17579 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
17580 (make_pass_rebuild_cgraph_edges): ...new function.
17581 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
17582 subclass of gimple_opt_pass along with...
17583 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
17584 and...
17585 (make_pass_remove_cgraph_callee_edges): ...new function.
17586 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
17587 struct to a subclass of rtl_opt_pass along with...
17588 (pass_data_stack_adjustments): ...new pass_data instance and...
17589 (make_pass_stack_adjustments): ...new function.
17590 * combine.c (pass_combine): Convert from a global struct to a subclass
17591 of rtl_opt_pass along with...
17592 (pass_data_combine): ...new pass_data instance and...
17593 (make_pass_combine): ...new function.
17594 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
17595 global struct to a subclass of rtl_opt_pass along with...
17596 (pass_data_compare_elim_after_reload): ...new pass_data instance
17597 and...
17598 (make_pass_compare_elim_after_reload): ...new function.
17599 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
17600 of rtl_opt_pass along with...
17601 (pass_data_rtl_cprop): ...new pass_data instance and...
17602 (make_pass_rtl_cprop): ...new function.
17603 * cse.c (pass_cse): Convert from a global struct to a subclass of
17604 rtl_opt_pass along with...
17605 (pass_data_cse): ...new pass_data instance and...
17606 (make_pass_cse): ...new function.
17607 (pass_cse2): Convert from a global struct to a subclass of
17608 rtl_opt_pass along with...
17609 (pass_data_cse2): ...new pass_data instance and...
17610 (make_pass_cse2): ...new function.
17611 (pass_cse_after_global_opts): Convert from a global struct to a
17612 subclass of rtl_opt_pass along with...
17613 (pass_data_cse_after_global_opts): ...new pass_data instance and...
17614 (make_pass_cse_after_global_opts): ...new function.
17615 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
17616 of rtl_opt_pass along with...
17617 (pass_data_ud_rtl_dce): ...new pass_data instance and...
17618 (make_pass_ud_rtl_dce): ...new function.
17619 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
17620 rtl_opt_pass along with...
17621 (pass_data_fast_rtl_dce): ...new pass_data instance and...
17622 (make_pass_fast_rtl_dce): ...new function.
17623 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
17624 a subclass of rtl_opt_pass along with...
17625 (pass_data_df_initialize_opt): ...new pass_data instance and...
17626 (make_pass_df_initialize_opt): ...new function.
17627 (pass_df_initialize_no_opt): Convert from a global struct to a
17628 subclass of rtl_opt_pass along with...
17629 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
17630 (make_pass_df_initialize_no_opt): ...new function.
17631 (pass_df_finish): Convert from a global struct to a subclass of
17632 rtl_opt_pass along with...
17633 (pass_data_df_finish): ...new pass_data instance and...
17634 (make_pass_df_finish): ...new function.
17635 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
17636 rtl_opt_pass along with...
17637 (pass_data_rtl_dse1): ...new pass_data instance and...
17638 (make_pass_rtl_dse1): ...new function.
17639 (pass_rtl_dse2): Convert from a global struct to a subclass of
17640 rtl_opt_pass along with...
17641 (pass_data_rtl_dse2): ...new pass_data instance and...
17642 (make_pass_rtl_dse2): ...new function.
17643 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
17644 subclass of rtl_opt_pass along with...
17645 (pass_data_dwarf2_frame): ...new pass_data instance and...
17646 (make_pass_dwarf2_frame): ...new function.
17647 * except.c (pass_set_nothrow_function_flags): Convert from a global
17648 struct to a subclass of rtl_opt_pass along with...
17649 (pass_data_set_nothrow_function_flags): ...new pass_data instance
17650 and...
17651 (make_pass_set_nothrow_function_flags): ...new function.
17652 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
17653 subclass of rtl_opt_pass along with...
17654 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
17655 and...
17656 (make_pass_convert_to_eh_region_ranges): ...new function.
17657 * final.c (pass_compute_alignments): Convert from a global struct to a
17658 subclass of rtl_opt_pass along with...
17659 (pass_data_compute_alignments): ...new pass_data instance and...
17660 (make_pass_compute_alignments): ...new function.
17661 (pass_final): Convert from a global struct to a subclass of
17662 rtl_opt_pass along with...
17663 (pass_data_final): ...new pass_data instance and...
17664 (make_pass_final): ...new function.
17665 (pass_shorten_branches): Convert from a global struct to a subclass of
17666 rtl_opt_pass along with...
17667 (pass_data_shorten_branches): ...new pass_data instance and...
17668 (make_pass_shorten_branches): ...new function.
17669 (pass_clean_state): Convert from a global struct to a subclass of
17670 rtl_opt_pass along with...
17671 (pass_data_clean_state): ...new pass_data instance and...
17672 (make_pass_clean_state): ...new function.
17673 * function.c (pass_instantiate_virtual_regs): Convert from a global
17674 struct to a subclass of rtl_opt_pass along with...
17675 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
17676 (make_pass_instantiate_virtual_regs): ...new function.
17677 (pass_leaf_regs): Convert from a global struct to a subclass of
17678 rtl_opt_pass along with...
17679 (pass_data_leaf_regs): ...new pass_data instance and...
17680 (make_pass_leaf_regs): ...new function.
17681 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
17682 subclass of rtl_opt_pass along with...
17683 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
17684 and...
17685 (make_pass_thread_prologue_and_epilogue): ...new function.
17686 (pass_match_asm_constraints): Convert from a global struct to a
17687 subclass of rtl_opt_pass along with...
17688 (pass_data_match_asm_constraints): ...new pass_data instance and...
17689 (make_pass_match_asm_constraints): ...new function.
17690 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
17691 subclass of rtl_opt_pass along with...
17692 (pass_data_rtl_fwprop): ...new pass_data instance and...
17693 (make_pass_rtl_fwprop): ...new function.
17694 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
17695 rtl_opt_pass along with...
17696 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
17697 (make_pass_rtl_fwprop_addr): ...new function.
17698 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
17699 rtl_opt_pass along with...
17700 (pass_data_rtl_pre): ...new pass_data instance and...
17701 (make_pass_rtl_pre): ...new function.
17702 (pass_rtl_hoist): Convert from a global struct to a subclass of
17703 rtl_opt_pass along with...
17704 (pass_data_rtl_hoist): ...new pass_data instance and...
17705 (make_pass_rtl_hoist): ...new function.
17706 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
17707 subclass of gimple_opt_pass along with...
17708 (pass_data_lower_cf): ...new pass_data instance and...
17709 (make_pass_lower_cf): ...new function.
17710 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
17711 from a global struct to a subclass of gimple_opt_pass along with...
17712 (pass_data_strength_reduction): ...new pass_data instance and...
17713 (make_pass_strength_reduction): ...new function.
17714 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
17715 of rtl_opt_pass along with...
17716 (pass_data_rtl_ifcvt): ...new pass_data instance and...
17717 (make_pass_rtl_ifcvt): ...new function.
17718 (pass_if_after_combine): Convert from a global struct to a subclass of
17719 rtl_opt_pass along with...
17720 (pass_data_if_after_combine): ...new pass_data instance and...
17721 (make_pass_if_after_combine): ...new function.
17722 (pass_if_after_reload): Convert from a global struct to a subclass of
17723 rtl_opt_pass along with...
17724 (pass_data_if_after_reload): ...new pass_data instance and...
17725 (make_pass_if_after_reload): ...new function.
17726 * init-regs.c (pass_initialize_regs): Convert from a global struct to
17727 a subclass of rtl_opt_pass along with...
17728 (pass_data_initialize_regs): ...new pass_data instance and...
17729 (make_pass_initialize_regs): ...new function.
17730 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
17731 of ipa_opt_pass_d along with...
17732 (pass_data_ipa_cp): ...new pass_data instance and...
17733 (make_pass_ipa_cp): ...new function.
17734 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
17735 global struct to a subclass of gimple_opt_pass along with...
17736 (pass_data_inline_parameters): ...new pass_data instance and...
17737 (make_pass_inline_parameters): ...new function.
17738 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
17739 subclass of gimple_opt_pass along with...
17740 (pass_data_early_inline): ...new pass_data instance and...
17741 (make_pass_early_inline): ...new function.
17742 (pass_ipa_inline): Convert from a global struct to a subclass of
17743 ipa_opt_pass_d along with...
17744 (pass_data_ipa_inline): ...new pass_data instance and...
17745 (make_pass_ipa_inline): ...new function.
17746 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
17747 struct to a subclass of gimple_opt_pass along with...
17748 (pass_data_local_pure_const): ...new pass_data instance and...
17749 (make_pass_local_pure_const): ...new function.
17750 (pass_ipa_pure_const): Convert from a global struct to a subclass of
17751 ipa_opt_pass_d along with...
17752 (pass_data_ipa_pure_const): ...new pass_data instance and...
17753 (make_pass_ipa_pure_const): ...new function.
17754 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
17755 to a subclass of ipa_opt_pass_d along with...
17756 (pass_data_ipa_reference): ...new pass_data instance and...
17757 (make_pass_ipa_reference): ...new function.
17758 * ipa-split.c (pass_split_functions): Convert from a global struct to
17759 a subclass of gimple_opt_pass along with...
17760 (pass_data_split_functions): ...new pass_data instance and...
17761 (make_pass_split_functions): ...new function.
17762 (pass_feedback_split_functions): Convert from a global struct to a
17763 subclass of gimple_opt_pass along with...
17764 (pass_data_feedback_split_functions): ...new pass_data instance and...
17765 (make_pass_feedback_split_functions): ...new function.
17766 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
17767 global struct to a subclass of simple_ipa_opt_pass along with...
17768 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
17769 instance and...
17770 (make_pass_ipa_function_and_variable_visibility): ...new function.
17771 (pass_ipa_free_inline_summary): Convert from a global struct to a
17772 subclass of simple_ipa_opt_pass along with...
17773 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
17774 (make_pass_ipa_free_inline_summary): ...new function.
17775 (pass_ipa_whole_program_visibility): Convert from a global struct to a
17776 subclass of ipa_opt_pass_d along with...
17777 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
17778 and...
17779 (make_pass_ipa_whole_program_visibility): ...new function.
17780 (pass_ipa_profile): Convert from a global struct to a subclass of
17781 ipa_opt_pass_d along with...
17782 (pass_data_ipa_profile): ...new pass_data instance and...
17783 (make_pass_ipa_profile): ...new function.
17784 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
17785 ipa_opt_pass_d along with...
17786 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
17787 (make_pass_ipa_cdtor_merge): ...new function.
17788 * ira.c (pass_ira): Convert from a global struct to a subclass of
17789 rtl_opt_pass along with...
17790 (pass_data_ira): ...new pass_data instance and...
17791 (make_pass_ira): ...new function.
17792 (pass_reload): Convert from a global struct to a subclass of
17793 rtl_opt_pass along with...
17794 (pass_data_reload): ...new pass_data instance and...
17795 (make_pass_reload): ...new function.
17796 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
17797 subclass of rtl_opt_pass along with...
17798 (pass_data_cleanup_barriers): ...new pass_data instance and...
17799 (make_pass_cleanup_barriers): ...new function.
17800 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
17801 of rtl_opt_pass along with...
17802 (pass_data_loop2): ...new pass_data instance and...
17803 (make_pass_loop2): ...new function.
17804 (pass_rtl_loop_init): Convert from a global struct to a subclass of
17805 rtl_opt_pass along with...
17806 (pass_data_rtl_loop_init): ...new pass_data instance and...
17807 (make_pass_rtl_loop_init): ...new function.
17808 (pass_rtl_loop_done): Convert from a global struct to a subclass of
17809 rtl_opt_pass along with...
17810 (pass_data_rtl_loop_done): ...new pass_data instance and...
17811 (make_pass_rtl_loop_done): ...new function.
17812 (pass_rtl_move_loop_invariants): Convert from a global struct to a
17813 subclass of rtl_opt_pass along with...
17814 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
17815 (make_pass_rtl_move_loop_invariants): ...new function.
17816 (pass_rtl_unswitch): Convert from a global struct to a subclass of
17817 rtl_opt_pass along with...
17818 (pass_data_rtl_unswitch): ...new pass_data instance and...
17819 (make_pass_rtl_unswitch): ...new function.
17820 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
17821 subclass of rtl_opt_pass along with...
17822 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
17823 and...
17824 (make_pass_rtl_unroll_and_peel_loops): ...new function.
17825 (pass_rtl_doloop): Convert from a global struct to a subclass of
17826 rtl_opt_pass along with...
17827 (pass_data_rtl_doloop): ...new pass_data instance and...
17828 (make_pass_rtl_doloop): ...new function.
17829 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
17830 a subclass of rtl_opt_pass along with...
17831 (pass_data_lower_subreg): ...new pass_data instance and...
17832 (make_pass_lower_subreg): ...new function.
17833 (pass_lower_subreg2): Convert from a global struct to a subclass of
17834 rtl_opt_pass along with...
17835 (pass_data_lower_subreg2): ...new pass_data instance and...
17836 (make_pass_lower_subreg2): ...new function.
17837 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
17838 struct to a subclass of ipa_opt_pass_d along with...
17839 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
17840 (make_pass_ipa_lto_gimple_out): ...new function.
17841 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
17842 of ipa_opt_pass_d along with...
17843 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
17844 (make_pass_ipa_lto_finish_out): ...new function.
17845 * mode-switching.c (pass_mode_switching): Convert from a global struct
17846 to a subclass of rtl_opt_pass along with...
17847 (pass_data_mode_switching): ...new pass_data instance and...
17848 (make_pass_mode_switching): ...new function.
17849 * modulo-sched.c (pass_sms): Convert from a global struct to a
17850 subclass of rtl_opt_pass along with...
17851 (pass_data_sms): ...new pass_data instance and...
17852 (make_pass_sms): ...new function.
17853 * omp-low.c (pass_expand_omp): Convert from a global struct to a
17854 subclass of gimple_opt_pass along with...
17855 (pass_data_expand_omp): ...new pass_data instance and...
17856 (make_pass_expand_omp): ...new function.
17857 (pass_lower_omp): Convert from a global struct to a subclass of
17858 gimple_opt_pass along with...
17859 (pass_data_lower_omp): ...new pass_data instance and...
17860 (make_pass_lower_omp): ...new function.
17861 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
17862 of gimple_opt_pass along with...
17863 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
17864 (make_pass_diagnose_omp_blocks): ...new function.
17865 * passes.c (pass_early_local_passes): Convert from a global struct to
17866 a subclass of simple_ipa_opt_pass along with...
17867 (pass_data_early_local_passes): ...new pass_data instance and...
17868 (make_pass_early_local_passes): ...new function.
17869 (pass_all_early_optimizations): Convert from a global struct to a
17870 subclass of gimple_opt_pass along with...
17871 (pass_data_all_early_optimizations): ...new pass_data instance and...
17872 (make_pass_all_early_optimizations): ...new function.
17873 (pass_all_optimizations): Convert from a global struct to a subclass
17874 of gimple_opt_pass along with...
17875 (pass_data_all_optimizations): ...new pass_data instance and...
17876 (make_pass_all_optimizations): ...new function.
17877 (pass_all_optimizations_g): Convert from a global struct to a subclass
17878 of gimple_opt_pass along with...
17879 (pass_data_all_optimizations_g): ...new pass_data instance and...
17880 (make_pass_all_optimizations_g): ...new function.
17881 (pass_rest_of_compilation): Convert from a global struct to a subclass
17882 of rtl_opt_pass along with...
17883 (pass_data_rest_of_compilation): ...new pass_data instance and...
17884 (make_pass_rest_of_compilation): ...new function.
17885 (pass_postreload): Convert from a global struct to a subclass of
17886 rtl_opt_pass along with...
17887 (pass_data_postreload): ...new pass_data instance and...
17888 (make_pass_postreload): ...new function.
17889 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
17890 subclass of rtl_opt_pass along with...
17891 (pass_data_gcse2): ...new pass_data instance and...
17892 (make_pass_gcse2): ...new function.
17893 * postreload.c (pass_postreload_cse): Convert from a global struct to
17894 a subclass of rtl_opt_pass along with...
17895 (pass_data_postreload_cse): ...new pass_data instance and...
17896 (make_pass_postreload_cse): ...new function.
17897 * predict.c (pass_profile): Convert from a global struct to a subclass
17898 of gimple_opt_pass along with...
17899 (pass_data_profile): ...new pass_data instance and...
17900 (make_pass_profile): ...new function.
17901 (pass_strip_predict_hints): Convert from a global struct to a subclass
17902 of gimple_opt_pass along with...
17903 (pass_data_strip_predict_hints): ...new pass_data instance and...
17904 (make_pass_strip_predict_hints): ...new function.
17905 * recog.c (pass_peephole2): Convert from a global struct to a subclass
17906 of rtl_opt_pass along with...
17907 (pass_data_peephole2): ...new pass_data instance and...
17908 (make_pass_peephole2): ...new function.
17909 (pass_split_all_insns): Convert from a global struct to a subclass of
17910 rtl_opt_pass along with...
17911 (pass_data_split_all_insns): ...new pass_data instance and...
17912 (make_pass_split_all_insns): ...new function.
17913 (pass_split_after_reload): Convert from a global struct to a subclass
17914 of rtl_opt_pass along with...
17915 (pass_data_split_after_reload): ...new pass_data instance and...
17916 (make_pass_split_after_reload): ...new function.
17917 (pass_split_before_regstack): Convert from a global struct to a
17918 subclass of rtl_opt_pass along with...
17919 (pass_data_split_before_regstack): ...new pass_data instance and...
17920 (make_pass_split_before_regstack): ...new function.
17921 (pass_split_before_sched2): Convert from a global struct to a subclass
17922 of rtl_opt_pass along with...
17923 (pass_data_split_before_sched2): ...new pass_data instance and...
17924 (make_pass_split_before_sched2): ...new function.
17925 (pass_split_for_shorten_branches): Convert from a global struct to a
17926 subclass of rtl_opt_pass along with...
17927 (pass_data_split_for_shorten_branches): ...new pass_data instance
17928 and...
17929 (make_pass_split_for_shorten_branches): ...new function.
17930 * ree.c (pass_ree): Convert from a global struct to a subclass of
17931 rtl_opt_pass along with...
17932 (pass_data_ree): ...new pass_data instance and...
17933 (make_pass_ree): ...new function.
17934 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
17935 subclass of rtl_opt_pass along with...
17936 (pass_data_stack_regs): ...new pass_data instance and...
17937 (make_pass_stack_regs): ...new function.
17938 (pass_stack_regs_run): Convert from a global struct to a subclass of
17939 rtl_opt_pass along with...
17940 (pass_data_stack_regs_run): ...new pass_data instance and...
17941 (make_pass_stack_regs_run): ...new function.
17942 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
17943 subclass of rtl_opt_pass along with...
17944 (pass_data_cprop_hardreg): ...new pass_data instance and...
17945 (make_pass_cprop_hardreg): ...new function.
17946 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
17947 subclass of rtl_opt_pass along with...
17948 (pass_data_reginfo_init): ...new pass_data instance and...
17949 (make_pass_reginfo_init): ...new function.
17950 * regmove.c (pass_regmove): Convert from a global struct to a subclass
17951 of rtl_opt_pass along with...
17952 (pass_data_regmove): ...new pass_data instance and...
17953 (make_pass_regmove): ...new function.
17954 * regrename.c (pass_regrename): Convert from a global struct to a
17955 subclass of rtl_opt_pass along with...
17956 (pass_data_regrename): ...new pass_data instance and...
17957 (make_pass_regrename): ...new function.
17958 * reorg.c (pass_delay_slots): Convert from a global struct to a
17959 subclass of rtl_opt_pass along with...
17960 (pass_data_delay_slots): ...new pass_data instance and...
17961 (make_pass_delay_slots): ...new function.
17962 (pass_machine_reorg): Convert from a global struct to a subclass of
17963 rtl_opt_pass along with...
17964 (pass_data_machine_reorg): ...new pass_data instance and...
17965 (make_pass_machine_reorg): ...new function.
17966 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
17967 of rtl_opt_pass along with...
17968 (pass_data_sched): ...new pass_data instance and...
17969 (make_pass_sched): ...new function.
17970 (pass_sched2): Convert from a global struct to a subclass of
17971 rtl_opt_pass along with...
17972 (pass_data_sched2): ...new pass_data instance and...
17973 (make_pass_sched2): ...new function.
17974 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
17975 to a subclass of rtl_opt_pass along with...
17976 (pass_data_stack_ptr_mod): ...new pass_data instance and...
17977 (make_pass_stack_ptr_mod): ...new function.
17978 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
17979 to a subclass of rtl_opt_pass along with...
17980 (pass_data_rtl_store_motion): ...new pass_data instance and...
17981 (make_pass_rtl_store_motion): ...new function.
17982 * tracer.c (pass_tracer): Convert from a global struct to a subclass
17983 of gimple_opt_pass along with...
17984 (pass_data_tracer): ...new pass_data instance and...
17985 (make_pass_tracer): ...new function.
17986 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
17987 to a subclass of gimple_opt_pass along with...
17988 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
17989 (make_pass_diagnose_tm_blocks): ...new function.
17990 (pass_lower_tm): Convert from a global struct to a subclass of
17991 gimple_opt_pass along with...
17992 (pass_data_lower_tm): ...new pass_data instance and...
17993 (make_pass_lower_tm): ...new function.
17994 (pass_tm_init): Convert from a global struct to a subclass of
17995 gimple_opt_pass along with...
17996 (pass_data_tm_init): ...new pass_data instance and...
17997 (make_pass_tm_init): ...new function.
17998 (pass_tm_mark): Convert from a global struct to a subclass of
17999 gimple_opt_pass along with...
18000 (pass_data_tm_mark): ...new pass_data instance and...
18001 (make_pass_tm_mark): ...new function.
18002 (pass_tm_edges): Convert from a global struct to a subclass of
18003 gimple_opt_pass along with...
18004 (pass_data_tm_edges): ...new pass_data instance and...
18005 (make_pass_tm_edges): ...new function.
18006 (pass_tm_memopt): Convert from a global struct to a subclass of
18007 gimple_opt_pass along with...
18008 (pass_data_tm_memopt): ...new pass_data instance and...
18009 (make_pass_tm_memopt): ...new function.
18010 (pass_ipa_tm): Convert from a global struct to a subclass of
18011 simple_ipa_opt_pass along with...
18012 (pass_data_ipa_tm): ...new pass_data instance and...
18013 (make_pass_ipa_tm): ...new function.
18014 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
18015 subclass of gimple_opt_pass along with...
18016 (pass_data_call_cdce): ...new pass_data instance and...
18017 (make_pass_call_cdce): ...new function.
18018 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
18019 subclass of gimple_opt_pass along with...
18020 (pass_data_build_cfg): ...new pass_data instance and...
18021 (make_pass_build_cfg): ...new function.
18022 (pass_split_crit_edges): Convert from a global struct to a subclass of
18023 gimple_opt_pass along with...
18024 (pass_data_split_crit_edges): ...new pass_data instance and...
18025 (make_pass_split_crit_edges): ...new function.
18026 (pass_warn_function_return): Convert from a global struct to a
18027 subclass of gimple_opt_pass along with...
18028 (pass_data_warn_function_return): ...new pass_data instance and...
18029 (make_pass_warn_function_return): ...new function.
18030 (pass_warn_function_noreturn): Convert from a global struct to a
18031 subclass of gimple_opt_pass along with...
18032 (pass_data_warn_function_noreturn): ...new pass_data instance and...
18033 (make_pass_warn_function_noreturn): ...new function.
18034 (pass_warn_unused_result): Convert from a global struct to a subclass
18035 of gimple_opt_pass along with...
18036 (pass_data_warn_unused_result): ...new pass_data instance and...
18037 (make_pass_warn_unused_result): ...new function.
18038 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
18039 a subclass of gimple_opt_pass along with...
18040 (pass_data_merge_phi): ...new pass_data instance and...
18041 (make_pass_merge_phi): ...new function.
18042 * tree-complex.c (pass_lower_complex): Convert from a global struct to
18043 a subclass of gimple_opt_pass along with...
18044 (pass_data_lower_complex): ...new pass_data instance and...
18045 (make_pass_lower_complex): ...new function.
18046 (pass_lower_complex_O0): Convert from a global struct to a subclass of
18047 gimple_opt_pass along with...
18048 (pass_data_lower_complex_O0): ...new pass_data instance and...
18049 (make_pass_lower_complex_O0): ...new function.
18050 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
18051 subclass of gimple_opt_pass along with...
18052 (pass_data_lower_eh): ...new pass_data instance and...
18053 (make_pass_lower_eh): ...new function.
18054 (pass_refactor_eh): Convert from a global struct to a subclass of
18055 gimple_opt_pass along with...
18056 (pass_data_refactor_eh): ...new pass_data instance and...
18057 (make_pass_refactor_eh): ...new function.
18058 (pass_lower_resx): Convert from a global struct to a subclass of
18059 gimple_opt_pass along with...
18060 (pass_data_lower_resx): ...new pass_data instance and...
18061 (make_pass_lower_resx): ...new function.
18062 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
18063 of gimple_opt_pass along with...
18064 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
18065 (make_pass_lower_eh_dispatch): ...new function.
18066 (pass_cleanup_eh): Convert from a global struct to a subclass of
18067 gimple_opt_pass along with...
18068 (pass_data_cleanup_eh): ...new pass_data instance and...
18069 (make_pass_cleanup_eh): ...new function.
18070 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
18071 to a subclass of simple_ipa_opt_pass along with...
18072 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
18073 (make_pass_ipa_lower_emutls): ...new function.
18074 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
18075 a subclass of gimple_opt_pass along with...
18076 (pass_data_if_conversion): ...new pass_data instance and...
18077 (make_pass_if_conversion): ...new function.
18078 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
18079 subclass of gimple_opt_pass along with...
18080 (pass_data_build_ssa): ...new pass_data instance and...
18081 (make_pass_build_ssa): ...new function.
18082 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
18083 global struct to a subclass of gimple_opt_pass along with...
18084 (pass_data_loop_distribution): ...new pass_data instance and...
18085 (make_pass_loop_distribution): ...new function.
18086 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
18087 subclass of gimple_opt_pass along with...
18088 (pass_data_mudflap_1): ...new pass_data instance and...
18089 (make_pass_mudflap_1): ...new function.
18090 (pass_mudflap_2): Convert from a global struct to a subclass of
18091 gimple_opt_pass along with...
18092 (pass_data_mudflap_2): ...new pass_data instance and...
18093 (make_pass_mudflap_2): ...new function.
18094 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
18095 subclass of gimple_opt_pass along with...
18096 (pass_data_mudflap_1): ...new pass_data instance and...
18097 (make_pass_mudflap_1): ...new function.
18098 (pass_mudflap_2): Convert from a global struct to a subclass of
18099 gimple_opt_pass along with...
18100 (pass_data_mudflap_2): ...new pass_data instance and...
18101 (make_pass_mudflap_2): ...new function.
18102 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
18103 gimple_opt_pass along with...
18104 (pass_data_nrv): ...new pass_data instance and...
18105 (make_pass_nrv): ...new function.
18106 (pass_return_slot): Convert from a global struct to a subclass of
18107 gimple_opt_pass along with...
18108 (pass_data_return_slot): ...new pass_data instance and...
18109 (make_pass_return_slot): ...new function.
18110 * tree-object-size.c (pass_object_sizes): Convert from a global struct
18111 to a subclass of gimple_opt_pass along with...
18112 (pass_data_object_sizes): ...new pass_data instance and...
18113 (make_pass_object_sizes): ...new function.
18114 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
18115 global struct to a subclass of gimple_opt_pass along with...
18116 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
18117 and...
18118 (make_pass_cleanup_cfg_post_optimizing): ...new function.
18119 (pass_fixup_cfg): Convert from a global struct to a subclass of
18120 gimple_opt_pass along with...
18121 (pass_data_fixup_cfg): ...new pass_data instance and...
18122 (make_pass_fixup_cfg): ...new function.
18123 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
18124 (make_pass_mudflap_1): ...new function.
18125 (pass_mudflap_2): Replace declaration with that of...
18126 (make_pass_mudflap_2): ...new function.
18127 (pass_asan): Replace declaration with that of...
18128 (make_pass_asan): ...new function.
18129 (pass_asan_O0): Replace declaration with that of...
18130 (make_pass_asan_O0): ...new function.
18131 (pass_tsan): Replace declaration with that of...
18132 (make_pass_tsan): ...new function.
18133 (pass_tsan_O0): Replace declaration with that of...
18134 (make_pass_tsan_O0): ...new function.
18135 (pass_lower_cf): Replace declaration with that of...
18136 (make_pass_lower_cf): ...new function.
18137 (pass_refactor_eh): Replace declaration with that of...
18138 (make_pass_refactor_eh): ...new function.
18139 (pass_lower_eh): Replace declaration with that of...
18140 (make_pass_lower_eh): ...new function.
18141 (pass_lower_eh_dispatch): Replace declaration with that of...
18142 (make_pass_lower_eh_dispatch): ...new function.
18143 (pass_lower_resx): Replace declaration with that of...
18144 (make_pass_lower_resx): ...new function.
18145 (pass_build_cfg): Replace declaration with that of...
18146 (make_pass_build_cfg): ...new function.
18147 (pass_early_tree_profile): Replace declaration with that of...
18148 (make_pass_early_tree_profile): ...new function.
18149 (pass_cleanup_eh): Replace declaration with that of...
18150 (make_pass_cleanup_eh): ...new function.
18151 (pass_sra): Replace declaration with that of...
18152 (make_pass_sra): ...new function.
18153 (pass_sra_early): Replace declaration with that of...
18154 (make_pass_sra_early): ...new function.
18155 (pass_early_ipa_sra): Replace declaration with that of...
18156 (make_pass_early_ipa_sra): ...new function.
18157 (pass_tail_recursion): Replace declaration with that of...
18158 (make_pass_tail_recursion): ...new function.
18159 (pass_tail_calls): Replace declaration with that of...
18160 (make_pass_tail_calls): ...new function.
18161 (pass_tree_loop): Replace declaration with that of...
18162 (make_pass_tree_loop): ...new function.
18163 (pass_tree_loop_init): Replace declaration with that of...
18164 (make_pass_tree_loop_init): ...new function.
18165 (pass_lim): Replace declaration with that of...
18166 (make_pass_lim): ...new function.
18167 (pass_tree_unswitch): Replace declaration with that of...
18168 (make_pass_tree_unswitch): ...new function.
18169 (pass_predcom): Replace declaration with that of...
18170 (make_pass_predcom): ...new function.
18171 (pass_iv_canon): Replace declaration with that of...
18172 (make_pass_iv_canon): ...new function.
18173 (pass_scev_cprop): Replace declaration with that of...
18174 (make_pass_scev_cprop): ...new function.
18175 (pass_empty_loop): Replace declaration with that of...
18176 (make_pass_empty_loop): ...new function.
18177 (pass_record_bounds): Replace declaration with that of...
18178 (make_pass_record_bounds): ...new function.
18179 (pass_graphite): Replace declaration with that of...
18180 (make_pass_graphite): ...new function.
18181 (pass_graphite_transforms): Replace declaration with that of...
18182 (make_pass_graphite_transforms): ...new function.
18183 (pass_if_conversion): Replace declaration with that of...
18184 (make_pass_if_conversion): ...new function.
18185 (pass_loop_distribution): Replace declaration with that of...
18186 (make_pass_loop_distribution): ...new function.
18187 (pass_vectorize): Replace declaration with that of...
18188 (make_pass_vectorize): ...new function.
18189 (pass_slp_vectorize): Replace declaration with that of...
18190 (make_pass_slp_vectorize): ...new function.
18191 (pass_complete_unroll): Replace declaration with that of...
18192 (make_pass_complete_unroll): ...new function.
18193 (pass_complete_unrolli): Replace declaration with that of...
18194 (make_pass_complete_unrolli): ...new function.
18195 (pass_parallelize_loops): Replace declaration with that of...
18196 (make_pass_parallelize_loops): ...new function.
18197 (pass_loop_prefetch): Replace declaration with that of...
18198 (make_pass_loop_prefetch): ...new function.
18199 (pass_iv_optimize): Replace declaration with that of...
18200 (make_pass_iv_optimize): ...new function.
18201 (pass_tree_loop_done): Replace declaration with that of...
18202 (make_pass_tree_loop_done): ...new function.
18203 (pass_ch): Replace declaration with that of...
18204 (make_pass_ch): ...new function.
18205 (pass_ccp): Replace declaration with that of...
18206 (make_pass_ccp): ...new function.
18207 (pass_phi_only_cprop): Replace declaration with that of...
18208 (make_pass_phi_only_cprop): ...new function.
18209 (pass_build_ssa): Replace declaration with that of...
18210 (make_pass_build_ssa): ...new function.
18211 (pass_build_alias): Replace declaration with that of...
18212 (make_pass_build_alias): ...new function.
18213 (pass_build_ealias): Replace declaration with that of...
18214 (make_pass_build_ealias): ...new function.
18215 (pass_dominator): Replace declaration with that of...
18216 (make_pass_dominator): ...new function.
18217 (pass_dce): Replace declaration with that of...
18218 (make_pass_dce): ...new function.
18219 (pass_dce_loop): Replace declaration with that of...
18220 (make_pass_dce_loop): ...new function.
18221 (pass_cd_dce): Replace declaration with that of...
18222 (make_pass_cd_dce): ...new function.
18223 (pass_call_cdce): Replace declaration with that of...
18224 (make_pass_call_cdce): ...new function.
18225 (pass_merge_phi): Replace declaration with that of...
18226 (make_pass_merge_phi): ...new function.
18227 (pass_split_crit_edges): Replace declaration with that of...
18228 (make_pass_split_crit_edges): ...new function.
18229 (pass_pre): Replace declaration with that of...
18230 (make_pass_pre): ...new function.
18231 (pass_profile): Replace declaration with that of...
18232 (make_pass_profile): ...new function.
18233 (pass_strip_predict_hints): Replace declaration with that of...
18234 (make_pass_strip_predict_hints): ...new function.
18235 (pass_lower_complex_O0): Replace declaration with that of...
18236 (make_pass_lower_complex_O0): ...new function.
18237 (pass_lower_complex): Replace declaration with that of...
18238 (make_pass_lower_complex): ...new function.
18239 (pass_lower_vector): Replace declaration with that of...
18240 (make_pass_lower_vector): ...new function.
18241 (pass_lower_vector_ssa): Replace declaration with that of...
18242 (make_pass_lower_vector_ssa): ...new function.
18243 (pass_lower_omp): Replace declaration with that of...
18244 (make_pass_lower_omp): ...new function.
18245 (pass_diagnose_omp_blocks): Replace declaration with that of...
18246 (make_pass_diagnose_omp_blocks): ...new function.
18247 (pass_expand_omp): Replace declaration with that of...
18248 (make_pass_expand_omp): ...new function.
18249 (pass_expand_omp_ssa): Replace declaration with that of...
18250 (make_pass_expand_omp_ssa): ...new function.
18251 (pass_object_sizes): Replace declaration with that of...
18252 (make_pass_object_sizes): ...new function.
18253 (pass_strlen): Replace declaration with that of...
18254 (make_pass_strlen): ...new function.
18255 (pass_fold_builtins): Replace declaration with that of...
18256 (make_pass_fold_builtins): ...new function.
18257 (pass_stdarg): Replace declaration with that of...
18258 (make_pass_stdarg): ...new function.
18259 (pass_early_warn_uninitialized): Replace declaration with that of...
18260 (make_pass_early_warn_uninitialized): ...new function.
18261 (pass_late_warn_uninitialized): Replace declaration with that of...
18262 (make_pass_late_warn_uninitialized): ...new function.
18263 (pass_cse_reciprocals): Replace declaration with that of...
18264 (make_pass_cse_reciprocals): ...new function.
18265 (pass_cse_sincos): Replace declaration with that of...
18266 (make_pass_cse_sincos): ...new function.
18267 (pass_optimize_bswap): Replace declaration with that of...
18268 (make_pass_optimize_bswap): ...new function.
18269 (pass_optimize_widening_mul): Replace declaration with that of...
18270 (make_pass_optimize_widening_mul): ...new function.
18271 (pass_warn_function_return): Replace declaration with that of...
18272 (make_pass_warn_function_return): ...new function.
18273 (pass_warn_function_noreturn): Replace declaration with that of...
18274 (make_pass_warn_function_noreturn): ...new function.
18275 (pass_cselim): Replace declaration with that of...
18276 (make_pass_cselim): ...new function.
18277 (pass_phiopt): Replace declaration with that of...
18278 (make_pass_phiopt): ...new function.
18279 (pass_forwprop): Replace declaration with that of...
18280 (make_pass_forwprop): ...new function.
18281 (pass_phiprop): Replace declaration with that of...
18282 (make_pass_phiprop): ...new function.
18283 (pass_tree_ifcombine): Replace declaration with that of...
18284 (make_pass_tree_ifcombine): ...new function.
18285 (pass_dse): Replace declaration with that of...
18286 (make_pass_dse): ...new function.
18287 (pass_nrv): Replace declaration with that of...
18288 (make_pass_nrv): ...new function.
18289 (pass_rename_ssa_copies): Replace declaration with that of...
18290 (make_pass_rename_ssa_copies): ...new function.
18291 (pass_sink_code): Replace declaration with that of...
18292 (make_pass_sink_code): ...new function.
18293 (pass_fre): Replace declaration with that of...
18294 (make_pass_fre): ...new function.
18295 (pass_check_data_deps): Replace declaration with that of...
18296 (make_pass_check_data_deps): ...new function.
18297 (pass_copy_prop): Replace declaration with that of...
18298 (make_pass_copy_prop): ...new function.
18299 (pass_vrp): Replace declaration with that of...
18300 (make_pass_vrp): ...new function.
18301 (pass_uncprop): Replace declaration with that of...
18302 (make_pass_uncprop): ...new function.
18303 (pass_return_slot): Replace declaration with that of...
18304 (make_pass_return_slot): ...new function.
18305 (pass_reassoc): Replace declaration with that of...
18306 (make_pass_reassoc): ...new function.
18307 (pass_rebuild_cgraph_edges): Replace declaration with that of...
18308 (make_pass_rebuild_cgraph_edges): ...new function.
18309 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
18310 (make_pass_remove_cgraph_callee_edges): ...new function.
18311 (pass_build_cgraph_edges): Replace declaration with that of...
18312 (make_pass_build_cgraph_edges): ...new function.
18313 (pass_local_pure_const): Replace declaration with that of...
18314 (make_pass_local_pure_const): ...new function.
18315 (pass_tracer): Replace declaration with that of...
18316 (make_pass_tracer): ...new function.
18317 (pass_warn_unused_result): Replace declaration with that of...
18318 (make_pass_warn_unused_result): ...new function.
18319 (pass_diagnose_tm_blocks): Replace declaration with that of...
18320 (make_pass_diagnose_tm_blocks): ...new function.
18321 (pass_lower_tm): Replace declaration with that of...
18322 (make_pass_lower_tm): ...new function.
18323 (pass_tm_init): Replace declaration with that of...
18324 (make_pass_tm_init): ...new function.
18325 (pass_tm_mark): Replace declaration with that of...
18326 (make_pass_tm_mark): ...new function.
18327 (pass_tm_memopt): Replace declaration with that of...
18328 (make_pass_tm_memopt): ...new function.
18329 (pass_tm_edges): Replace declaration with that of...
18330 (make_pass_tm_edges): ...new function.
18331 (pass_split_functions): Replace declaration with that of...
18332 (make_pass_split_functions): ...new function.
18333 (pass_feedback_split_functions): Replace declaration with that of...
18334 (make_pass_feedback_split_functions): ...new function.
18335 (pass_strength_reduction): Replace declaration with that of...
18336 (make_pass_strength_reduction): ...new function.
18337 (pass_ipa_lower_emutls): Replace declaration with that of...
18338 (make_pass_ipa_lower_emutls): ...new function.
18339 (pass_ipa_function_and_variable_visibility): Replace declaration with
18340 that of...
18341 (make_pass_ipa_function_and_variable_visibility): ...new function.
18342 (pass_ipa_tree_profile): Replace declaration with that of...
18343 (make_pass_ipa_tree_profile): ...new function.
18344 (pass_early_local_passes): Replace declaration with that of...
18345 (make_pass_early_local_passes): ...new function.
18346 (pass_ipa_whole_program_visibility): Replace declaration with that
18347 of...
18348 (make_pass_ipa_whole_program_visibility): ...new function.
18349 (pass_ipa_lto_gimple_out): Replace declaration with that of...
18350 (make_pass_ipa_lto_gimple_out): ...new function.
18351 (pass_ipa_increase_alignment): Replace declaration with that of...
18352 (make_pass_ipa_increase_alignment): ...new function.
18353 (pass_ipa_inline): Replace declaration with that of...
18354 (make_pass_ipa_inline): ...new function.
18355 (pass_ipa_free_lang_data): Replace declaration with that of...
18356 (make_pass_ipa_free_lang_data): ...new function.
18357 (pass_ipa_free_inline_summary): Replace declaration with that of...
18358 (make_pass_ipa_free_inline_summary): ...new function.
18359 (pass_ipa_cp): Replace declaration with that of...
18360 (make_pass_ipa_cp): ...new function.
18361 (pass_ipa_reference): Replace declaration with that of...
18362 (make_pass_ipa_reference): ...new function.
18363 (pass_ipa_pure_const): Replace declaration with that of...
18364 (make_pass_ipa_pure_const): ...new function.
18365 (pass_ipa_pta): Replace declaration with that of...
18366 (make_pass_ipa_pta): ...new function.
18367 (pass_ipa_lto_finish_out): Replace declaration with that of...
18368 (make_pass_ipa_lto_finish_out): ...new function.
18369 (pass_ipa_tm): Replace declaration with that of...
18370 (make_pass_ipa_tm): ...new function.
18371 (pass_ipa_profile): Replace declaration with that of...
18372 (make_pass_ipa_profile): ...new function.
18373 (pass_ipa_cdtor_merge): Replace declaration with that of...
18374 (make_pass_ipa_cdtor_merge): ...new function.
18375 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
18376 of...
18377 (make_pass_cleanup_cfg_post_optimizing): ...new function.
18378 (pass_init_datastructures): Replace declaration with that of...
18379 (make_pass_init_datastructures): ...new function.
18380 (pass_fixup_cfg): Replace declaration with that of...
18381 (make_pass_fixup_cfg): ...new function.
18382 (pass_expand): Replace declaration with that of...
18383 (make_pass_expand): ...new function.
18384 (pass_instantiate_virtual_regs): Replace declaration with that of...
18385 (make_pass_instantiate_virtual_regs): ...new function.
18386 (pass_rtl_fwprop): Replace declaration with that of...
18387 (make_pass_rtl_fwprop): ...new function.
18388 (pass_rtl_fwprop_addr): Replace declaration with that of...
18389 (make_pass_rtl_fwprop_addr): ...new function.
18390 (pass_jump): Replace declaration with that of...
18391 (make_pass_jump): ...new function.
18392 (pass_jump2): Replace declaration with that of...
18393 (make_pass_jump2): ...new function.
18394 (pass_lower_subreg): Replace declaration with that of...
18395 (make_pass_lower_subreg): ...new function.
18396 (pass_cse): Replace declaration with that of...
18397 (make_pass_cse): ...new function.
18398 (pass_fast_rtl_dce): Replace declaration with that of...
18399 (make_pass_fast_rtl_dce): ...new function.
18400 (pass_ud_rtl_dce): Replace declaration with that of...
18401 (make_pass_ud_rtl_dce): ...new function.
18402 (pass_rtl_dce): Replace declaration with that of...
18403 (make_pass_rtl_dce): ...new function.
18404 (pass_rtl_dse1): Replace declaration with that of...
18405 (make_pass_rtl_dse1): ...new function.
18406 (pass_rtl_dse2): Replace declaration with that of...
18407 (make_pass_rtl_dse2): ...new function.
18408 (pass_rtl_dse3): Replace declaration with that of...
18409 (make_pass_rtl_dse3): ...new function.
18410 (pass_rtl_cprop): Replace declaration with that of...
18411 (make_pass_rtl_cprop): ...new function.
18412 (pass_rtl_pre): Replace declaration with that of...
18413 (make_pass_rtl_pre): ...new function.
18414 (pass_rtl_hoist): Replace declaration with that of...
18415 (make_pass_rtl_hoist): ...new function.
18416 (pass_rtl_store_motion): Replace declaration with that of...
18417 (make_pass_rtl_store_motion): ...new function.
18418 (pass_cse_after_global_opts): Replace declaration with that of...
18419 (make_pass_cse_after_global_opts): ...new function.
18420 (pass_rtl_ifcvt): Replace declaration with that of...
18421 (make_pass_rtl_ifcvt): ...new function.
18422 (pass_into_cfg_layout_mode): Replace declaration with that of...
18423 (make_pass_into_cfg_layout_mode): ...new function.
18424 (pass_outof_cfg_layout_mode): Replace declaration with that of...
18425 (make_pass_outof_cfg_layout_mode): ...new function.
18426 (pass_loop2): Replace declaration with that of...
18427 (make_pass_loop2): ...new function.
18428 (pass_rtl_loop_init): Replace declaration with that of...
18429 (make_pass_rtl_loop_init): ...new function.
18430 (pass_rtl_move_loop_invariants): Replace declaration with that of...
18431 (make_pass_rtl_move_loop_invariants): ...new function.
18432 (pass_rtl_unswitch): Replace declaration with that of...
18433 (make_pass_rtl_unswitch): ...new function.
18434 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
18435 (make_pass_rtl_unroll_and_peel_loops): ...new function.
18436 (pass_rtl_doloop): Replace declaration with that of...
18437 (make_pass_rtl_doloop): ...new function.
18438 (pass_rtl_loop_done): Replace declaration with that of...
18439 (make_pass_rtl_loop_done): ...new function.
18440 (pass_web): Replace declaration with that of...
18441 (make_pass_web): ...new function.
18442 (pass_cse2): Replace declaration with that of...
18443 (make_pass_cse2): ...new function.
18444 (pass_df_initialize_opt): Replace declaration with that of...
18445 (make_pass_df_initialize_opt): ...new function.
18446 (pass_df_initialize_no_opt): Replace declaration with that of...
18447 (make_pass_df_initialize_no_opt): ...new function.
18448 (pass_reginfo_init): Replace declaration with that of...
18449 (make_pass_reginfo_init): ...new function.
18450 (pass_inc_dec): Replace declaration with that of...
18451 (make_pass_inc_dec): ...new function.
18452 (pass_stack_ptr_mod): Replace declaration with that of...
18453 (make_pass_stack_ptr_mod): ...new function.
18454 (pass_initialize_regs): Replace declaration with that of...
18455 (make_pass_initialize_regs): ...new function.
18456 (pass_combine): Replace declaration with that of...
18457 (make_pass_combine): ...new function.
18458 (pass_if_after_combine): Replace declaration with that of...
18459 (make_pass_if_after_combine): ...new function.
18460 (pass_ree): Replace declaration with that of...
18461 (make_pass_ree): ...new function.
18462 (pass_partition_blocks): Replace declaration with that of...
18463 (make_pass_partition_blocks): ...new function.
18464 (pass_match_asm_constraints): Replace declaration with that of...
18465 (make_pass_match_asm_constraints): ...new function.
18466 (pass_regmove): Replace declaration with that of...
18467 (make_pass_regmove): ...new function.
18468 (pass_split_all_insns): Replace declaration with that of...
18469 (make_pass_split_all_insns): ...new function.
18470 (pass_fast_rtl_byte_dce): Replace declaration with that of...
18471 (make_pass_fast_rtl_byte_dce): ...new function.
18472 (pass_lower_subreg2): Replace declaration with that of...
18473 (make_pass_lower_subreg2): ...new function.
18474 (pass_mode_switching): Replace declaration with that of...
18475 (make_pass_mode_switching): ...new function.
18476 (pass_sms): Replace declaration with that of...
18477 (make_pass_sms): ...new function.
18478 (pass_sched): Replace declaration with that of...
18479 (make_pass_sched): ...new function.
18480 (pass_ira): Replace declaration with that of...
18481 (make_pass_ira): ...new function.
18482 (pass_reload): Replace declaration with that of...
18483 (make_pass_reload): ...new function.
18484 (pass_clean_state): Replace declaration with that of...
18485 (make_pass_clean_state): ...new function.
18486 (pass_branch_prob): Replace declaration with that of...
18487 (make_pass_branch_prob): ...new function.
18488 (pass_value_profile_transformations): Replace declaration with that
18489 of...
18490 (make_pass_value_profile_transformations): ...new function.
18491 (pass_postreload_cse): Replace declaration with that of...
18492 (make_pass_postreload_cse): ...new function.
18493 (pass_gcse2): Replace declaration with that of...
18494 (make_pass_gcse2): ...new function.
18495 (pass_split_after_reload): Replace declaration with that of...
18496 (make_pass_split_after_reload): ...new function.
18497 (pass_branch_target_load_optimize1): Replace declaration with that
18498 of...
18499 (make_pass_branch_target_load_optimize1): ...new function.
18500 (pass_thread_prologue_and_epilogue): Replace declaration with that
18501 of...
18502 (make_pass_thread_prologue_and_epilogue): ...new function.
18503 (pass_stack_adjustments): Replace declaration with that of...
18504 (make_pass_stack_adjustments): ...new function.
18505 (pass_peephole2): Replace declaration with that of...
18506 (make_pass_peephole2): ...new function.
18507 (pass_if_after_reload): Replace declaration with that of...
18508 (make_pass_if_after_reload): ...new function.
18509 (pass_regrename): Replace declaration with that of...
18510 (make_pass_regrename): ...new function.
18511 (pass_cprop_hardreg): Replace declaration with that of...
18512 (make_pass_cprop_hardreg): ...new function.
18513 (pass_reorder_blocks): Replace declaration with that of...
18514 (make_pass_reorder_blocks): ...new function.
18515 (pass_branch_target_load_optimize2): Replace declaration with that
18516 of...
18517 (make_pass_branch_target_load_optimize2): ...new function.
18518 (pass_leaf_regs): Replace declaration with that of...
18519 (make_pass_leaf_regs): ...new function.
18520 (pass_split_before_sched2): Replace declaration with that of...
18521 (make_pass_split_before_sched2): ...new function.
18522 (pass_compare_elim_after_reload): Replace declaration with that of...
18523 (make_pass_compare_elim_after_reload): ...new function.
18524 (pass_sched2): Replace declaration with that of...
18525 (make_pass_sched2): ...new function.
18526 (pass_stack_regs): Replace declaration with that of...
18527 (make_pass_stack_regs): ...new function.
18528 (pass_stack_regs_run): Replace declaration with that of...
18529 (make_pass_stack_regs_run): ...new function.
18530 (pass_df_finish): Replace declaration with that of...
18531 (make_pass_df_finish): ...new function.
18532 (pass_compute_alignments): Replace declaration with that of...
18533 (make_pass_compute_alignments): ...new function.
18534 (pass_duplicate_computed_gotos): Replace declaration with that of...
18535 (make_pass_duplicate_computed_gotos): ...new function.
18536 (pass_variable_tracking): Replace declaration with that of...
18537 (make_pass_variable_tracking): ...new function.
18538 (pass_free_cfg): Replace declaration with that of...
18539 (make_pass_free_cfg): ...new function.
18540 (pass_machine_reorg): Replace declaration with that of...
18541 (make_pass_machine_reorg): ...new function.
18542 (pass_cleanup_barriers): Replace declaration with that of...
18543 (make_pass_cleanup_barriers): ...new function.
18544 (pass_delay_slots): Replace declaration with that of...
18545 (make_pass_delay_slots): ...new function.
18546 (pass_split_for_shorten_branches): Replace declaration with that of...
18547 (make_pass_split_for_shorten_branches): ...new function.
18548 (pass_split_before_regstack): Replace declaration with that of...
18549 (make_pass_split_before_regstack): ...new function.
18550 (pass_convert_to_eh_region_ranges): Replace declaration with that
18551 of...
18552 (make_pass_convert_to_eh_region_ranges): ...new function.
18553 (pass_shorten_branches): Replace declaration with that of...
18554 (make_pass_shorten_branches): ...new function.
18555 (pass_set_nothrow_function_flags): Replace declaration with that of...
18556 (make_pass_set_nothrow_function_flags): ...new function.
18557 (pass_dwarf2_frame): Replace declaration with that of...
18558 (make_pass_dwarf2_frame): ...new function.
18559 (pass_final): Replace declaration with that of...
18560 (make_pass_final): ...new function.
18561 (pass_rtl_seqabstr): Replace declaration with that of...
18562 (make_pass_rtl_seqabstr): ...new function.
18563 (pass_release_ssa_names): Replace declaration with that of...
18564 (make_pass_release_ssa_names): ...new function.
18565 (pass_early_inline): Replace declaration with that of...
18566 (make_pass_early_inline): ...new function.
18567 (pass_inline_parameters): Replace declaration with that of...
18568 (make_pass_inline_parameters): ...new function.
18569 (pass_update_address_taken): Replace declaration with that of...
18570 (make_pass_update_address_taken): ...new function.
18571 (pass_convert_switch): Replace declaration with that of...
18572 (make_pass_convert_switch): ...new function.
18573 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
18574 to a subclass of simple_ipa_opt_pass along with...
18575 (pass_data_ipa_tree_profile): ...new pass_data instance and...
18576 (make_pass_ipa_tree_profile): ...new function.
18577 * tree-sra.c (pass_sra_early): Convert from a global struct to a
18578 subclass of gimple_opt_pass along with...
18579 (pass_data_sra_early): ...new pass_data instance and...
18580 (make_pass_sra_early): ...new function.
18581 (pass_sra): Convert from a global struct to a subclass of
18582 gimple_opt_pass along with...
18583 (pass_data_sra): ...new pass_data instance and...
18584 (make_pass_sra): ...new function.
18585 (pass_early_ipa_sra): Convert from a global struct to a subclass of
18586 gimple_opt_pass along with...
18587 (pass_data_early_ipa_sra): ...new pass_data instance and...
18588 (make_pass_early_ipa_sra): ...new function.
18589 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
18590 subclass of gimple_opt_pass along with...
18591 (pass_data_ccp): ...new pass_data instance and...
18592 (make_pass_ccp): ...new function.
18593 (pass_fold_builtins): Convert from a global struct to a subclass of
18594 gimple_opt_pass along with...
18595 (pass_data_fold_builtins): ...new pass_data instance and...
18596 (make_pass_fold_builtins): ...new function.
18597 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
18598 subclass of gimple_opt_pass along with...
18599 (pass_data_copy_prop): ...new pass_data instance and...
18600 (make_pass_copy_prop): ...new function.
18601 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
18602 global struct to a subclass of gimple_opt_pass along with...
18603 (pass_data_rename_ssa_copies): ...new pass_data instance and...
18604 (make_pass_rename_ssa_copies): ...new function.
18605 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
18606 subclass of gimple_opt_pass along with...
18607 (pass_data_dce): ...new pass_data instance and...
18608 (make_pass_dce): ...new function.
18609 (pass_dce_loop): Convert from a global struct to a subclass of
18610 gimple_opt_pass along with...
18611 (pass_data_dce_loop): ...new pass_data instance and...
18612 (make_pass_dce_loop): ...new function.
18613 (pass_cd_dce): Convert from a global struct to a subclass of
18614 gimple_opt_pass along with...
18615 (pass_data_cd_dce): ...new pass_data instance and...
18616 (make_pass_cd_dce): ...new function.
18617 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
18618 subclass of gimple_opt_pass along with...
18619 (pass_data_dominator): ...new pass_data instance and...
18620 (make_pass_dominator): ...new function.
18621 (pass_phi_only_cprop): Convert from a global struct to a subclass of
18622 gimple_opt_pass along with...
18623 (pass_data_phi_only_cprop): ...new pass_data instance and...
18624 (make_pass_phi_only_cprop): ...new function.
18625 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
18626 subclass of gimple_opt_pass along with...
18627 (pass_data_dse): ...new pass_data instance and...
18628 (make_pass_dse): ...new function.
18629 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
18630 a subclass of gimple_opt_pass along with...
18631 (pass_data_forwprop): ...new pass_data instance and...
18632 (make_pass_forwprop): ...new function.
18633 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
18634 struct to a subclass of gimple_opt_pass along with...
18635 (pass_data_tree_ifcombine): ...new pass_data instance and...
18636 (make_pass_tree_ifcombine): ...new function.
18637 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
18638 subclass of gimple_opt_pass along with...
18639 (pass_data_ch): ...new pass_data instance and...
18640 (make_pass_ch): ...new function.
18641 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
18642 subclass of gimple_opt_pass along with...
18643 (pass_data_tree_loop): ...new pass_data instance and...
18644 (make_pass_tree_loop): ...new function.
18645 (pass_tree_loop_init): Convert from a global struct to a subclass of
18646 gimple_opt_pass along with...
18647 (pass_data_tree_loop_init): ...new pass_data instance and...
18648 (make_pass_tree_loop_init): ...new function.
18649 (pass_lim): Convert from a global struct to a subclass of
18650 gimple_opt_pass along with...
18651 (pass_data_lim): ...new pass_data instance and...
18652 (make_pass_lim): ...new function.
18653 (pass_tree_unswitch): Convert from a global struct to a subclass of
18654 gimple_opt_pass along with...
18655 (pass_data_tree_unswitch): ...new pass_data instance and...
18656 (make_pass_tree_unswitch): ...new function.
18657 (pass_predcom): Convert from a global struct to a subclass of
18658 gimple_opt_pass along with...
18659 (pass_data_predcom): ...new pass_data instance and...
18660 (make_pass_predcom): ...new function.
18661 (pass_vectorize): Convert from a global struct to a subclass of
18662 gimple_opt_pass along with...
18663 (pass_data_vectorize): ...new pass_data instance and...
18664 (make_pass_vectorize): ...new function.
18665 (pass_graphite): Convert from a global struct to a subclass of
18666 gimple_opt_pass along with...
18667 (pass_data_graphite): ...new pass_data instance and...
18668 (make_pass_graphite): ...new function.
18669 (pass_graphite_transforms): Convert from a global struct to a subclass
18670 of gimple_opt_pass along with...
18671 (pass_data_graphite_transforms): ...new pass_data instance and...
18672 (make_pass_graphite_transforms): ...new function.
18673 (pass_check_data_deps): Convert from a global struct to a subclass of
18674 gimple_opt_pass along with...
18675 (pass_data_check_data_deps): ...new pass_data instance and...
18676 (make_pass_check_data_deps): ...new function.
18677 (pass_iv_canon): Convert from a global struct to a subclass of
18678 gimple_opt_pass along with...
18679 (pass_data_iv_canon): ...new pass_data instance and...
18680 (make_pass_iv_canon): ...new function.
18681 (pass_scev_cprop): Convert from a global struct to a subclass of
18682 gimple_opt_pass along with...
18683 (pass_data_scev_cprop): ...new pass_data instance and...
18684 (make_pass_scev_cprop): ...new function.
18685 (pass_record_bounds): Convert from a global struct to a subclass of
18686 gimple_opt_pass along with...
18687 (pass_data_record_bounds): ...new pass_data instance and...
18688 (make_pass_record_bounds): ...new function.
18689 (pass_complete_unroll): Convert from a global struct to a subclass of
18690 gimple_opt_pass along with...
18691 (pass_data_complete_unroll): ...new pass_data instance and...
18692 (make_pass_complete_unroll): ...new function.
18693 (pass_complete_unrolli): Convert from a global struct to a subclass of
18694 gimple_opt_pass along with...
18695 (pass_data_complete_unrolli): ...new pass_data instance and...
18696 (make_pass_complete_unrolli): ...new function.
18697 (pass_parallelize_loops): Convert from a global struct to a subclass
18698 of gimple_opt_pass along with...
18699 (pass_data_parallelize_loops): ...new pass_data instance and...
18700 (make_pass_parallelize_loops): ...new function.
18701 (pass_loop_prefetch): Convert from a global struct to a subclass of
18702 gimple_opt_pass along with...
18703 (pass_data_loop_prefetch): ...new pass_data instance and...
18704 (make_pass_loop_prefetch): ...new function.
18705 (pass_iv_optimize): Convert from a global struct to a subclass of
18706 gimple_opt_pass along with...
18707 (pass_data_iv_optimize): ...new pass_data instance and...
18708 (make_pass_iv_optimize): ...new function.
18709 (pass_tree_loop_done): Convert from a global struct to a subclass of
18710 gimple_opt_pass along with...
18711 (pass_data_tree_loop_done): ...new pass_data instance and...
18712 (make_pass_tree_loop_done): ...new function.
18713 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
18714 struct to a subclass of gimple_opt_pass along with...
18715 (pass_data_cse_reciprocals): ...new pass_data instance and...
18716 (make_pass_cse_reciprocals): ...new function.
18717 (pass_cse_sincos): Convert from a global struct to a subclass of
18718 gimple_opt_pass along with...
18719 (pass_data_cse_sincos): ...new pass_data instance and...
18720 (make_pass_cse_sincos): ...new function.
18721 (pass_optimize_bswap): Convert from a global struct to a subclass of
18722 gimple_opt_pass along with...
18723 (pass_data_optimize_bswap): ...new pass_data instance and...
18724 (make_pass_optimize_bswap): ...new function.
18725 (pass_optimize_widening_mul): Convert from a global struct to a
18726 subclass of gimple_opt_pass along with...
18727 (pass_data_optimize_widening_mul): ...new pass_data instance and...
18728 (make_pass_optimize_widening_mul): ...new function.
18729 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
18730 subclass of gimple_opt_pass along with...
18731 (pass_data_phiopt): ...new pass_data instance and...
18732 (make_pass_phiopt): ...new function.
18733 (pass_cselim): Convert from a global struct to a subclass of
18734 gimple_opt_pass along with...
18735 (pass_data_cselim): ...new pass_data instance and...
18736 (make_pass_cselim): ...new function.
18737 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
18738 subclass of gimple_opt_pass along with...
18739 (pass_data_phiprop): ...new pass_data instance and...
18740 (make_pass_phiprop): ...new function.
18741 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
18742 subclass of gimple_opt_pass along with...
18743 (pass_data_pre): ...new pass_data instance and...
18744 (make_pass_pre): ...new function.
18745 (pass_fre): Convert from a global struct to a subclass of
18746 gimple_opt_pass along with...
18747 (pass_data_fre): ...new pass_data instance and...
18748 (make_pass_fre): ...new function.
18749 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
18750 subclass of gimple_opt_pass along with...
18751 (pass_data_reassoc): ...new pass_data instance and...
18752 (make_pass_reassoc): ...new function.
18753 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
18754 subclass of gimple_opt_pass along with...
18755 (pass_data_sink_code): ...new pass_data instance and...
18756 (make_pass_sink_code): ...new function.
18757 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
18758 subclass of gimple_opt_pass along with...
18759 (pass_data_strlen): ...new pass_data instance and...
18760 (make_pass_strlen): ...new function.
18761 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
18762 struct to a subclass of gimple_opt_pass along with...
18763 (pass_data_build_alias): ...new pass_data instance and...
18764 (make_pass_build_alias): ...new function.
18765 (pass_build_ealias): Convert from a global struct to a subclass of
18766 gimple_opt_pass along with...
18767 (pass_data_build_ealias): ...new pass_data instance and...
18768 (make_pass_build_ealias): ...new function.
18769 (pass_ipa_pta): Convert from a global struct to a subclass of
18770 simple_ipa_opt_pass along with...
18771 (pass_data_ipa_pta): ...new pass_data instance and...
18772 (make_pass_ipa_pta): ...new function.
18773 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
18774 subclass of gimple_opt_pass along with...
18775 (pass_data_uncprop): ...new pass_data instance and...
18776 (make_pass_uncprop): ...new function.
18777 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
18778 global struct to a subclass of gimple_opt_pass along with...
18779 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
18780 (make_pass_late_warn_uninitialized): ...new function.
18781 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
18782 to a subclass of gimple_opt_pass along with...
18783 (pass_data_init_datastructures): ...new pass_data instance and...
18784 (make_pass_init_datastructures): ...new function.
18785 (pass_early_warn_uninitialized): Convert from a global struct to a
18786 subclass of gimple_opt_pass along with...
18787 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
18788 (make_pass_early_warn_uninitialized): ...new function.
18789 (pass_update_address_taken): Convert from a global struct to a
18790 subclass of gimple_opt_pass along with...
18791 (pass_data_update_address_taken): ...new pass_data instance and...
18792 (make_pass_update_address_taken): ...new function.
18793 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
18794 struct to a subclass of gimple_opt_pass along with...
18795 (pass_data_release_ssa_names): ...new pass_data instance and...
18796 (make_pass_release_ssa_names): ...new function.
18797 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
18798 subclass of gimple_opt_pass along with...
18799 (pass_data_stdarg): ...new pass_data instance and...
18800 (make_pass_stdarg): ...new function.
18801 * tree-switch-conversion.c (pass_convert_switch): Convert from a
18802 global struct to a subclass of gimple_opt_pass along with...
18803 (pass_data_convert_switch): ...new pass_data instance and...
18804 (make_pass_convert_switch): ...new function.
18805 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
18806 to a subclass of gimple_opt_pass along with...
18807 (pass_data_tail_recursion): ...new pass_data instance and...
18808 (make_pass_tail_recursion): ...new function.
18809 (pass_tail_calls): Convert from a global struct to a subclass of
18810 gimple_opt_pass along with...
18811 (pass_data_tail_calls): ...new pass_data instance and...
18812 (make_pass_tail_calls): ...new function.
18813 * tree-vect-generic.c (pass_lower_vector): Convert from a global
18814 struct to a subclass of gimple_opt_pass along with...
18815 (pass_data_lower_vector): ...new pass_data instance and...
18816 (make_pass_lower_vector): ...new function.
18817 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
18818 gimple_opt_pass along with...
18819 (pass_data_lower_vector_ssa): ...new pass_data instance and...
18820 (make_pass_lower_vector_ssa): ...new function.
18821 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
18822 to a subclass of gimple_opt_pass along with...
18823 (pass_data_slp_vectorize): ...new pass_data instance and...
18824 (make_pass_slp_vectorize): ...new function.
18825 (pass_ipa_increase_alignment): Convert from a global struct to a
18826 subclass of simple_ipa_opt_pass along with...
18827 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
18828 (make_pass_ipa_increase_alignment): ...new function.
18829 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
18830 gimple_opt_pass along with...
18831 (pass_data_vrp): ...new pass_data instance and...
18832 (make_pass_vrp): ...new function.
18833 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
18834 subclass of simple_ipa_opt_pass along with...
18835 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
18836 (make_pass_ipa_free_lang_data): ...new function.
18837 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
18838 gimple_opt_pass along with...
18839 (pass_data_tsan): ...new pass_data instance and...
18840 (make_pass_tsan): ...new function.
18841 (pass_tsan_O0): Convert from a global struct to a subclass of
18842 gimple_opt_pass along with...
18843 (pass_data_tsan_O0): ...new pass_data instance and...
18844 (make_pass_tsan_O0): ...new function.
18845 * var-tracking.c (pass_variable_tracking): Convert from a global
18846 struct to a subclass of rtl_opt_pass along with...
18847 (pass_data_variable_tracking): ...new pass_data instance and...
18848 (make_pass_variable_tracking): ...new function.
18849 * web.c (pass_web): Convert from a global struct to a subclass of
18850 rtl_opt_pass along with...
18851 (pass_data_web): ...new pass_data instance and...
18852 (make_pass_web): ...new function.
18853 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
18854 declaration with that of...
18855 (make_pass_mode_switch_use): ...new function.
18856 (pass_resolve_sw_modes): Replace declaration with that of...
18857 (make_pass_resolve_sw_modes): ...new function.
18858 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
18859 from a global struct to a subclass of rtl_opt_pass along with...
18860 (pass_data_mode_switch_use): ...new pass_data instance and...
18861 (make_pass_mode_switch_use): ...new function.
18862 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
18863 from a global struct to a subclass of rtl_opt_pass along with...
18864 (pass_data_resolve_sw_modes): ...new pass_data instance and...
18865 (make_pass_resolve_sw_modes): ...new function.
18866 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
18867 struct to a subclass of rtl_opt_pass along with...
18868 (pass_data_insert_vzeroupper): ...new pass_data instance and...
18869 (make_pass_insert_vzeroupper): ...new function.
18870 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
18871 global struct to a subclass of rtl_opt_pass along with...
18872 (pass_data_work_around_errata): ...new pass_data instance and...
18873 (make_pass_work_around_errata): ...new function.
18874 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
18875 struct to a subclass of rtl_opt_pass along with...
18876 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
18877 (make_pass_mips_machine_reorg2): ...new function.
18878
18879 2013-08-05 David Malcolm <dmalcolm@redhat.com>
18880
18881 * passes.c (pass_manager::operator new): New.
18882
18883 2013-08-05 David Malcolm <dmalcolm@redhat.com>
18884
18885 Handwritten part of conversion of passes to C++ classes.
18886
18887 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
18888 (toplev.o): Add dep on PASS_MANAGER_H.
18889 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
18890 of early local pases to reflect this moving from a global to a
18891 member of gcc::pass_manager.
18892 (cgraph_add_new_function): Likewise.
18893 * lto-cgraph.c (lto_output_node): Update for conversion of
18894 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
18895 * passes.c (opt_pass::clone): New.
18896 (opt_pass::gate): New.
18897 (opt_pass::execute): New.
18898 (opt_pass::opt_pass): New.
18899 (pass_manager::execute_early_local_passes): New.
18900 (pass_manager::execute_pass_mode_switching): new.
18901 (finish_optimization_passes): Convert to...
18902 (pass_manager::finish_optimization_passes): ...this.
18903 (finish_optimization_passes): Update for conversion of passes to
18904 C++ classes.
18905 (register_dump_files_1): Use has_gate since we cannot portably
18906 check a vtable entry against NULL.
18907 (dump_one_pass): Likewise.
18908 (ipa_write_summaries_2): Likewise.
18909 (ipa_write_optimization_summaries_1): Likewise.
18910 (ipa_read_summaries_1): Likewise.
18911 (ipa_read_optimization_summaries_1): Likewise.
18912 (execute_ipa_stmt_fixups): Likewise.
18913 (pass_manager::pass_manager): Rewrite pass-creation, invoking
18914 pass-creation functions rather than wiring up globals, and
18915 storing the results in fields of pass_manager generated using
18916 pass-instances.def.
18917 (pass_manager::dump_profile_report): Update for conversion of
18918 passes to C++ classes.
18919 (pass_manager::execute_ipa_summary_passes): Likewise.
18920 (execute_one_ipa_transform_pass): Likewise.
18921 (execute_one_pass): Use has_gate and has_execute since we cannot
18922 portably check a vtable entry against NULL.
18923 * pass_manager.h (pass_manager::finish_optimization_passes): New.
18924 (pass_manager): Use pass-instances.def to add fields for the
18925 various pass instances.
18926 * toplev.c (finalize): Update for move of
18927 finish_optimization_passes to a method of gcc::pass_manager.
18928 * toplev.h (finish_optimization_passes): Move to method of class
18929 pass_manager.
18930 * tree-pass.h (struct pass_data): New.
18931 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
18932 (opt_pass::gate): Convert to virtual function.
18933 (opt_pass::~opt_pass): New.
18934 (opt_pass::clone): New.
18935 (opt_pass::execute): Convert to virtual function.
18936 (opt_pass::opt_pass): New.
18937 (opt_pass::ctxt_): new.
18938 (gimple_opt_pass): Convert to subclass of opt_pass.
18939 (gimple_opt_pass::gimple_opt_pass): New.
18940 (rtl_opt_pass): Convert to subclass of opt_pass.
18941 (rtl_opt_pass::rtl_opt_pass): New.
18942 (ipa_opt_pass_d): Convert to subclass of opt_pass.
18943 (ipa_opt_pass_d::ipa_opt_pass_d): New.
18944 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
18945 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
18946 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
18947 invocation of pass_mode_switching to reflect this moving from a
18948 global to a member of gcc::pass_manager.
18949 (ix86_option_override): Rework how pass_insert_vzeroupper is
18950 added to the pass_manager to reflect autogenerated changes.
18951 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
18952
18953 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
18954
18955 PR rtl-optimization/57708
18956 * recog.c (peep2_find_free_register): Validate all regs in a
18957 multi-reg mode.
18958
18959 2013-08-05 Jan Hubicka <jh@suse.cz>
18960
18961 PR lto/57602
18962 * cgraph.c (verify_cgraph_node): Accept local flags from other
18963 partitions.
18964 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
18965 (function_and_variable_visibility): Likewise.
18966 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
18967
18968 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
18969
18970 * graph.c (init_graph_slim_pretty_print): Remove.
18971 (print_graph_cfg): Do not call it. Use local pretty printer.
18972 (start_graph_dump): Likewise.
18973
18974 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
18975
18976 * gimple-pretty-print.c (buffer): Remove.
18977 (initialized): Likewise.
18978 (maybe_init_pretty_print): Likewise.
18979 (print_gimple_stmt): Do not call it. Use non-static local
18980 pretty_printer variable.
18981 (print_gimple_expr): Likewise.
18982 (print_gimple_seq): Likewise.
18983 (gimple_dump_bb): Likewise.
18984
18985 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
18986
18987 * asan.c (asan_pp): Remove.
18988 (asan_pp_initialized): Likewise.
18989 (asan_pp_initialize): Likewise.
18990 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
18991 (asan_emit_stack_protection): Tidy. Use local pretty printer.
18992 (asan_add_global): Likewise.
18993
18994 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
18995
18996 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
18997 * diagnostic.h (diagnostic_flush_buffer): Adjust.
18998 * pretty-print.c (pp_formatted_text_data): Likewise.
18999 (pp_indent): Rename from pp_base_indent.
19000 (pp_format): Rename from pp_base_format.
19001 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
19002 (pp_format_verbatim): Rename from pp_base_format_verbatim.
19003 (pp_flush): Rename from pp_base_flush.
19004 (pp_set_line_maximum_length): Rename from
19005 pp_base_set_line_maximum_length.
19006 (pp_clear_output_area): Rename from pp_base_clear_output_area.
19007 (pp_set_prefix): Rename from pp_base_set_prefix.
19008 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
19009 (pp_emit_prefix): Rename from pp_base_emit_prefix.
19010 (pp_append_text): Rename from pp_base_append_text.
19011 (pp_formatted_text): Rename from pp_base_formatted_text.
19012 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
19013 (pp_remaining_character_count_for_line): Rename from
19014 pp_base_remaining_character_count_for_line.
19015 (pp_newline): Rename from pp_base_newline.
19016 (pp_character): Rename from pp_base_character.
19017 (pp_string): Rename from pp_base_string.
19018 (pp_maybe_space): Rename from pp_base_maybe_space.
19019 * asan.c (asan_pp_string): Adjust.
19020 (asan_emit_stack_protection): Likewise.
19021 (asan_add_global): Likewise.
19022 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
19023 * tree-mudflap.c (mf_varname_tree): Likewise.
19024 * tree-pretty-print.c (pp_tree_identifier): Rename from
19025 pp_base_tree_identifier.
19026 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
19027 Declare as function.
19028
19029 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
19030
19031 * pretty-print.h (pp_bar_bar): New.
19032 (pp_ampersand_ampersand): Likewise.
19033 (pp_less_equal): Likewise.
19034 (pp_greater_equal): Likewise.
19035 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
19036 printer functions instead of pp_string or operators and punctuators.
19037 (dump_gimple_call): Likewise.
19038 (dump_gimple_omp_for): Likewise.
19039 (dump_gimple_transaction): Likewise.
19040 (dump_gimple_phi): Likewise.
19041 (pp_gimple_stmt_1): Likewise.
19042 * sched-vis.c (print_insn): Likewise.
19043 * tree-mudflap.c (mf_varname_tree): Likewise.
19044 * tree-pretty-print.c (dump_block_node): Likewise.
19045 (dump_generic_node): Likewise.
19046
19047 2013-08-02 Jan Hubicka <jh@suse.cz>
19048
19049 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
19050 boundaries.
19051 * lto-streamer-out.c (tree_is_indexable): Results decls and
19052 parm decls are not indexable.
19053 (DFS_write_tree_body): Do not follow args and results.
19054 (hash_tree): Likewise.
19055 (output_functions): Rearrange so struct function is needed
19056 only when real body is output; be able to also ouptut abstract
19057 functions; output DECL_ARGUMENTS and DECL_RESULT.
19058 (lto_output): When not in WPA, ale store abstract functions.
19059 (write_symbol): Do not care about RESULT_DECL.
19060 (output_symbol_p): Handle correctly sbtract decls.
19061 * lto-streamer-in.c (input_function): Rearrange so struct
19062 function can be NULL at entry; allow streaming of
19063 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
19064 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
19065 sanity check during LTO.
19066 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
19067 RESULT_DECl and DECL_ARGUMENTS.
19068 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19069 Likewise.
19070
19071 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
19072
19073 * pretty-print.h (pp_underscore): New.
19074 (pp_comma): Tidy.
19075 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
19076 printer functions instead of pp_character.
19077 (dump_binary_rhs): Likewise.
19078 (dump_ternary_rhs): Likewise.
19079 (dump_gimple_call_args): Likewise.
19080 (pp_points_to_solution): Likewise.
19081 (dump_gimple_call): Likewise.
19082 (dump_gimple_switch): Likewise.
19083 (dump_gimple_cond): Likewise.
19084 (dump_gimple_bind): Likewise.
19085 (dump_gimple_try): Likewise.
19086 (dump_gimple_omp_for): Likewise.
19087 (dump_gimple_omp_continue): Likewise.
19088 (dump_gimple_omp_single): Likewise.
19089 (dump_gimple_omp_sections): Likewise.
19090 (dump_gimple_omp_block): Likewise.
19091 (dump_gimple_omp_critical): Likewise.
19092 (dump_gimple_transaction): Likewise.
19093 (dump_gimple_asm): Likewise.
19094 (dump_gimple_phi): Likewise.
19095 (dump_gimple_omp_parallel): Likewise.
19096 (dump_gimple_omp_task): Likewise.
19097 (dump_gimple_omp_atomic_load): Likewise.
19098 (dump_gimple_omp_atomic_store): Likewise.
19099 (dump_gimple_mem_ops): Likewise.
19100 (pp_gimple_stmt_1): Likewise.
19101 (pp_cfg_jump): Likewise.
19102 (dump_implicit_edges): Likewise.
19103 (gimple_dump_bb_for_graph): Likewise.
19104 * graph.c (draw_cfg_node): Likewise.
19105 * langhooks.c (lhd_print_error_function): Likewise.
19106 * sched-vis.c (print_exp): Likewise.
19107 (print_value): Likewise.
19108 (print_pattern): Likewise.
19109 (print_insn): Likewise.
19110 (rtl_dump_bb_for_graph): Likewise.
19111 * tree-pretty-print.c (dump_function_declaration): Likewise.
19112 (dump_array_domain): Likewise.
19113 (dump_omp_clause): Likewise.
19114 (dump_location): Likewise.
19115 (dump_generic_node): Likewise.
19116 (print_struct_decl): Likewise.
19117 * diagnostic.c (diagnostic_show_locus): Use pp_space.
19118
19119 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19120
19121 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
19122 candidate table when replacing a candidate statement.
19123 (replace_rhs_if_not_dup): Likewise.
19124 (replace_one_candidate): Likewise.
19125
19126 2013-08-02 Jan Hubicka <jh@suse.cz>
19127 Martin Liska <marxin.liska@gmail.com>
19128
19129 * cgraphunit.c (add_new_function): Fix logic when adding from
19130 late IPA pass.
19131 (assemble_thunk): Rename to ...
19132 (expand_thunk); .. this one; export; get it working with
19133 general functions; make produced gimple valid.
19134 * cgraph.h (expand_thunk): Declare.
19135
19136 2013-08-02 Jan Hubicka <jh@suse.cz>
19137
19138 * ipa-cp.c (gather_context_independent_values): Use
19139 ipa_get_param_move_cost.
19140 (get_replacement_map): Remove PARAM; move parameter folding
19141 into tree-inline.c
19142 (create_specialized_node): Update.
19143 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
19144 assert that we have gimple body; update move_cost.
19145 (count_formal_params): Assert that we have gimple body.
19146 (ipa_dump_param): New function.
19147 (ipa_alloc_node_params): Break out from ...
19148 (ipa_initialize_node_params): ... here.
19149 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
19150 (ipa_write_node_info): Stream move costs.
19151 (ipa_read_node_info): Read move costs.
19152 (ipa_update_after_lto_read): Do not recompute node params.
19153 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
19154 (ipa_get_param): Check we are not in WPA.
19155 (ipa_get_param_move_cost): New.
19156 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
19157 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
19158 parm numbers to be present.
19159
19160 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
19161
19162 PR rtl-optimization/58048
19163 * lra-constraints.c (process_alt_operands): Don't check asm
19164 operand on register.
19165
19166 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
19167
19168 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
19169 the implied StoreLoad barrier for atomic operations if before.
19170
19171 2013-08-02 Jan Hubicka <jh@suse.cz>
19172 Martin Liska <marxin.liska@gmail.com>
19173
19174 * cgraph.c (cgraph_function_body_availability): Do not check
19175 cgraph flags.
19176 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
19177 symtab_node_availability): Declare.
19178 * ipa.c (can_replace_by_local_alias): New.
19179 (function_and_variable_visibility): Use it.
19180 * symtab.c (symtab_for_node_and_aliases,
19181 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
19182
19183 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
19184
19185 PR rtl-optimization/57963
19186 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
19187 (lra_constraints): Use them.
19188
19189 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
19190
19191 * config/arm/types.md (define_attr "type"): Add "load_acq"
19192 and "store_rel".
19193 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
19194 changes.
19195 (cortex_a53_store1): Likewise.
19196
19197 2013-08-01 Jan Hubicka <jh@suse.cz>
19198
19199 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
19200 partitions are not needed.
19201
19202 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
19203
19204 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
19205 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
19206 MAYBE_NON_Q_CLASS_P where appropriate.
19207
19208 2013-08-01 Jan Hubicka <jh@suse.cz>
19209
19210 * cgraph.h (release_function_body): Declare.
19211 * tree.c (free_lang_data_in_decl): Free, parameters and return values
19212 of unused delcarations.
19213
19214 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19215
19216 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
19217 RTL form when subtracting a constant.
19218
19219 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19220
19221 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
19222 Generate canonical plus rtx with negated immediate instead of minus
19223 where appropriate.
19224 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
19225
19226 2013-08-01 Jan Hubicka <jh@suse.cz>
19227
19228 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
19229 (cgraph_release_function_body): Likewise.
19230 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
19231 * cgraph.h (cgrpah_node): Rename abstract_and_needed
19232 to used_as_abstract_origin.
19233 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
19234 symbols used as abstract origins.
19235 * cgraphunit.c (analyze_functions): Update.
19236 * ipa.c (symtab_remove_unreachable_nodes): Recompute
19237 used_as_abstract_origin.
19238 * tree-inline.c (tree_function_versioning): Update
19239 used_as_abstract_origin; be ready for DECL_RESULT and
19240 DECL_ARGUMENTS to be NULL.
19241
19242 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
19243 for abstract functions.
19244 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
19245 real symbols.
19246
19247 2013-08-01 Jan Hubicka <jh@suse.cz>
19248
19249 * profile.c (compute_value_histograms): Fix thinko.
19250
19251 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
19252
19253 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
19254 aarch-common-protos.h to extra_headers.
19255 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
19256 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
19257 * config/aarch64/t-aarch64 (aarch-common.o): Define.
19258
19259 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
19260
19261 * config/aarch64/aarch64.md (define_attr "type"): Delete.
19262 Include "../arm/types.md". Define "type" attribute for all patterns.
19263 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
19264 attribute changes.
19265
19266 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
19267
19268 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
19269 to support power8 load fusion.
19270 (fusion_gpr_mem_load): Likewise.
19271
19272 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
19273
19274 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
19275 declarations for power8 load fusion.
19276 (emit_fusion_gpr_load): Likewise.
19277
19278 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
19279 tuning for power8, turn on fusion mode by default. Turn on sign
19280 extending fusion mode if normal fusion mode is on, and we are at
19281 -O2 or -O3.
19282 (fusion_gpr_load_p): New function, return true if we can fuse an
19283 addis instruction with a dependent load to a GPR.
19284 (emit_fusion_gpr_load): Emit the instructions for power8 load
19285 fusion to GPRs.
19286
19287 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
19288 (VSX load fusion peepholes): New peepholes to fuse together an
19289 addi instruction with a VSX load instruction.
19290
19291 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
19292 peepholes to fuse an addis instruction with a load to a GPR base
19293 register. If we are supporting sign extending fusions, convert
19294 sign extending loads to zero extending loads and add an explicit
19295 sign extension.
19296
19297 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
19298
19299 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
19300 aarch-common-protos.h to extra_headers.
19301 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
19302 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
19303 (arm_early_store_addr_dep): Likewise.
19304 (arm_no_early_alu_shift_dep): Likewise.
19305 (arm_no_early_alu_shift_value_dep): Likewise.
19306 (arm_no_early_mul_dep): Likewise.
19307 (arm_no_early_store_addr_dep): Likewise.
19308 (arm_mac_accumulator_is_mul_result): Likewise.
19309 (arm_mac_accumulator_is_result): Likewise.
19310 * config/arm/aarch-common.c: ... here. New file.
19311 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
19312 here to ...
19313 (arm_early_store_addr_dep): Likewise.
19314 (arm_no_early_alu_shift_dep): Likewise.
19315 (arm_no_early_alu_shift_value_dep): Likewise.
19316 (arm_no_early_mul_dep): Likewise.
19317 (arm_no_early_store_addr_dep): Likewise.
19318 (arm_mac_accumulator_is_mul_result): Likewise.
19319 (arm_mac_accumulator_is_result): Likewise.
19320 * config/arm/aarch-common-protos.h: ... here. New file.
19321 * config/arm/t-arm (aarch-common.o): Define.
19322
19323 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
19324
19325 * config/arm/arm.md: Include new file "types.md".
19326 (define_attr "type"): Move from here to ...
19327 (define_attr "mul32"): Likewise.
19328 (define_attr "mul64"): Likewise.
19329 * config/arm/types.md: ... here. New file.
19330
19331 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
19332
19333 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
19334 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
19335
19336 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19337
19338 * gen-pass-instances.awk: Fix offset of substr().
19339
19340 2013-07-31 David Malcolm <dmalcolm@redhat.com>
19341
19342 * Makefile.in (pass-instances.def): New.
19343 (passes.o): Replace dependency on passes.def with one on
19344 pass-instances.def
19345
19346 * gen-pass-instances.awk: New.
19347
19348 * passes.c (pass_manager::pass_manager): Use pass-instances.def
19349 rather than passes.def, updating local definition of NEXT_PASS
19350 macro to add an extra NUM parameter (currently unused).
19351
19352 2013-07-30 David Malcolm <dmalcolm@redhat.com>
19353
19354 * Makefile.in (PASS_MANAGER_H): New.
19355 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
19356 (passes.o): Likewise.
19357 (statistics.o): Likewise.
19358 (cgraphunit.o): Likewise.
19359 (context.o): Depend on PASS_MANAGER_H.
19360
19361 * pass_manager.h: New.
19362
19363 * cgraphunit.c (cgraph_add_new_function): Update for moves
19364 of globals to fields of pass_manager.
19365 (analyze_function): Likewise.
19366 (expand_function): Likewise.
19367 (ipa_passes): Likewise.
19368 (compile): Likewise.
19369
19370 * context.c (context::context): New.
19371 * context.h (context::context): New.
19372 (context::get_passes): New.
19373 (context::passes_): New.
19374
19375 * lto-cgraph.c (input_node): Update for moves of globals to
19376 fields of pass_manager.
19377
19378 * passes.c (all_passes): Remove, in favor of a field of the
19379 same name within the new class pass_manager.
19380 (all_small_ipa_passes): Likewise.
19381 (all_lowering_passes): Likewise.
19382 (all_regular_ipa_passes): Likewise.
19383 (all_late_ipa_passes): Likewise.
19384 (all_lto_gen_passes): Likewise.
19385 (passes_by_id): Likewise.
19386 (passes_by_id_size): Likewise.
19387 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19388 the new class pass_manager.
19389 (set_pass_for_id): Convert to...
19390 (pass_manager::set_pass_for_id): ...method.
19391 (get_pass_for_id): Convert to...
19392 (pass_manager::get_pass_for_id): ...method.
19393 (register_one_dump_file): Move body of implementation into...
19394 (pass_manager::register_one_dump_file): ...here.
19395 (register_dump_files_1): Convert to...
19396 (pass_manager::register_dump_files_1): ...method.
19397 (register_dump_files): Convert to...
19398 (pass_manager::register_dump_files): ...method.
19399 (create_pass_tab): Update for moves of globals to fields of
19400 pass_manager.
19401 (dump_passes): Move body of implementation into...
19402 (pass_manager::dump_passes): ...here.
19403 (register_pass): Move body of implementation into...
19404 (pass_manager::register_pass): ...here.
19405 (init_optimization_passes): Convert into...
19406 (pass_manager::pass_manager): ...constructor for new
19407 pass_manager class, and initialize the pass_lists array.
19408 (check_profile_consistency): Update for moves of globals to
19409 fields of pass_manager.
19410 (dump_profile_report): Move body of implementation into...
19411 (pass_manager::dump_profile_report): ...here.
19412 (ipa_write_summaries_1): Update for moves of pass lists from
19413 being globals to fields of pass_manager.
19414 (ipa_write_optimization_summaries): Likewise.
19415 (ipa_read_summaries): Likewise.
19416 (ipa_read_optimization_summaries): Likewise.
19417 (execute_all_ipa_stmt_fixups): Likewise.
19418
19419 * statistics.c (statistics_fini): Update for moves of globals to
19420 fields of pass_manager.
19421
19422 * toplev.c (general_init): Replace call to
19423 init_optimization_passes with construction of the pass_manager
19424 instance.
19425
19426 * tree-pass.h (all_passes): Remove, in favor of a field of the
19427 same name within the new class pass_manager.
19428 (all_small_ipa_passes): Likewise.
19429 (all_lowering_passes): Likewise.
19430 (all_regular_ipa_passes): Likewise.
19431 (all_lto_gen_passes): Likewise.
19432 (all_late_ipa_passes): Likewise.
19433 (passes_by_id): Likewise.
19434 (passes_by_id_size): Likewise.
19435 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19436 the new class pass_manager.
19437 (get_pass_for_id): Remove.
19438
19439 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
19440
19441 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
19442 configs.
19443
19444 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
19445
19446 * arm.md (mulhi3): New expand pattern.
19447
19448 2013-07-30 Jan Hubicka <jh@suse.cz>
19449 Martin Liska <marxin.liska@gmail.com>
19450
19451 * profile.c (compute_value_histograms): Do not ICE when
19452 there is mismatch only on some counters.
19453
19454 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19455
19456 PR rtl-optimization/57637
19457 * function.c (move_insn_for_shrink_wrap): Also check the
19458 GEN set of the LIVE problem for the liveness analysis
19459 if it exists, otherwise give up.
19460
19461 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19462
19463 PR tree-optimization/57993
19464 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
19465 replaced statement in the candidate table.
19466 (phi_add_costs): Return infinite cost when the hidden basis does
19467 not dominate all phis on which the candidate is dependent.
19468 (replace_one_candidate): Record replaced statement in the
19469 candidate table.
19470
19471 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
19472
19473 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
19474 (ashlv2si3): New expander.
19475 (*ashlv2si3_i): New define_insn_and_split.
19476 * predicates.md (float_operation): Allow patterns with three
19477 basic sub-patterns.
19478
19479 PR rtl-optimization/58021
19480 * mode-switching.c (create_pre_exit): Always split off preceding
19481 insns if we are not at the basic block head.
19482
19483 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
19484
19485 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
19486 (UCLIBC_DYNAMIC_LINKER): New macro.
19487 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
19488 `-mnan=2008'.
19489 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
19490 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
19491 `-mnan=2008'.
19492 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
19493 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
19494 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
19495 for SF and DF modes. Use ieee_quad_format for TF mode.
19496 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
19497 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
19498 (mips_option_override): Handle `-mnan=legacy'.
19499 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
19500 `-mabs=2008' and `-mnan=2008'.
19501 (OPTION_DEFAULT_SPECS): Add "nan" default.
19502 (ASM_SPEC): Handle `-mnan='.
19503 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
19504 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
19505 comment accordingly.
19506 (neg<mode>2): Likewise.
19507 * config/mips/mips.opt (mabs, mnan): New options.
19508 * doc/install.texi (Configuration): Document `--with-nan=' option.
19509 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
19510 `-mnan=' options.
19511 (MIPS Options): Document them.
19512 * config.gcc <mips*-*-*>: Handle `--with-nan='.
19513 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
19514 * configure: Regenerate.
19515 * config.in: Regenerate.
19516
19517 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
19518
19519 * config/i386/i386.md (float post-reload splitters): Do not check
19520 for subregs of SSE registers.
19521
19522 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
19523 H.J. Lu <hongjiu.lu@intel.com>
19524
19525 PR target/57954
19526 PR target/57988
19527 * config/i386/i386.md (post-reload splitter
19528 to avoid partial SSE reg dependency stalls): New pattern.
19529
19530 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
19531
19532 * config/s390/s390.md ("movcc"): Swap load and store instructions.
19533
19534 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
19535
19536 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
19537 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
19538
19539 2013-07-26 Cary Coutant <ccoutant@google.com>
19540
19541 * dwarf2out.c (die_checksum_ordered): Don't include template
19542 instantiations in signature.
19543 (is_template_parameter): New function.
19544 (is_template_instantiation): New function.
19545 (generate_skeleton_bottom_up): Don't include template instantiations
19546 in type unit DIE.
19547 (generate_skeleton): Likewise.
19548 (break_out_comdat_types): Move recursive call to break out nested
19549 types earlier.
19550 (prune_unused_types_mark_generic_parms_dies): Call
19551 is_template_parameter.
19552
19553 2013-07-26 Ian Bolton <ian.bolton@arm.com>
19554
19555 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
19556 uses vector registers.
19557 * config/aarch64/iterators.md: Add attributes rtn and vas.
19558
19559 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19560 Richard Earnshaw <richard.earnshaw@arm.com>
19561
19562 * combine.c (simplify_comparison): Re-canonicalize operands
19563 where appropriate.
19564 * config/arm/arm.md (movcond_addsi): New splitter.
19565
19566 2013-07-25 Sterling Augustine <saugustine@google.com>
19567
19568 * dwarf2out.c (size_of_pubnames): Move code to...
19569 (include_pubname_in_output): ...here. New.
19570 (want_pubnames): Rearrange.
19571 (output_pubnames): Call include_pubname_in_output. Move assertion.
19572
19573 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
19574
19575 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
19576
19577 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
19578
19579 PR target/38836
19580 * doc/extend.texi: Remove obsolete builtins. Fix
19581 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
19582
19583 2013-07-25 Jan Hubicka <jh@suse.cz>
19584
19585 * cgraph.c (release_function_body): Break out from ...
19586 (cgraph_release_function_body): ... this one; also release DECL_RESULT
19587 and DECL_ARGUMENTS.
19588 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
19589 old_tree in the map.
19590 (create_specialized_node): Update.
19591 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
19592 into index.
19593 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
19594 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
19595 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
19596 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
19597 DECL_RESULT.
19598
19599 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19600
19601 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
19602 addsi3_carryin_alt2_<optab>): Correct output template.
19603
19604 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19605
19606 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
19607 Adjust for arm_restrict_it.
19608 Remove trailing whitespace.
19609
19610 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
19611
19612 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
19613 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
19614
19615 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
19616
19617 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
19618
19619 PR rtl-optimization/57960
19620 * lra-constraints.c (process_alt_operands): Use the right mode
19621 when checking strict_low.
19622
19623 2013-07-25 Jan Hubicka <jh@suse.cz>
19624
19625 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
19626 * cgraph.c (cgraph_remove_node): Do not release function body
19627 when in cgraph streaming.
19628 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
19629 in other partitions are not considered reachable; fix handling of
19630 clones.
19631
19632 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19633
19634 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
19635
19636 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19637
19638 PR target/19599
19639 PR target/57731
19640 PR target/57837
19641 * config/arm/arm.md ("*sibcall_insn): Replace use of
19642 Ss with US. Adjust output for v5 and v4t.
19643 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
19644
19645 * config/arm/constraints.md ("Ss"): Rename to US.
19646
19647 2013-07-25 Terry Guo <terry.guo@arm.com>
19648
19649 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
19650 shift_add/shift_sub0/shift_sub1 RTXs.
19651
19652 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
19653 Anton Blanchard <anton@au1.ibm.com>
19654
19655 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
19656 (altivec_vpks<VI_char>ss): Likewise.
19657 (altivec_vpks<VI_char>us): Likewise.
19658 (altivec_vpku<VI_char>us): Likewise.
19659 (altivec_vpku<VI_char>um): Likewise.
19660
19661 2013-07-24 David Malcolm <dmalcolm@redhat.com>
19662
19663 Introduce context class.
19664
19665 * Makefile.in (CONTEXT_H): New.
19666 (OBJS): Add context.o.
19667 (toplev.o): Add CONTEXT_H to dependencies.
19668 (context.o): New.
19669
19670 * toplev.c (general_init): Create the singleton gcc::context instance.
19671
19672 * context.c: New.
19673
19674 * context.h: New.
19675
19676 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
19677
19678 PR rtl-optimization/57968
19679 * mode-switching.c (create_pre_exit): Allow instructions that
19680 don't set a return register to need a non-exit mode.
19681
19682 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19683 Anton Blanchard <anton@au1.ibm.com>
19684
19685 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
19686 operands to vperm for little endian.
19687 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
19688 of lvsl to create the control mask for a vperm for little endian.
19689
19690 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19691 Anton Blanchard <anton@au1.ibm.com>
19692
19693 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
19694 two operands for little-endian.
19695
19696 2013-07-23 Steve Ellcey <sellcey@mips.com>
19697
19698 * config/mips/mips.c (mips_case_values_threshold): New.
19699 (TARGET_CASE_VALUES_THRESHOLD): Define.
19700
19701 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19702 Anton Blanchard <anton@au1.ibm.com>
19703
19704 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
19705 selection of field for vector splat in little endian mode.
19706
19707 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19708
19709 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
19710 expanders to rs6000.md.
19711 (ior<mode>3): Likewise.
19712 (and<mode>3): Likewise.
19713 (one_cmpl<mode>2): Likewise.
19714 (nor<mode>3): Likewise.
19715 (andc<mode>3): Likewise.
19716 (eqv<mode>3): Likewise.
19717 (nand<mode>3): Likewise.
19718 (orc<mode>3): Likewise.
19719
19720 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
19721 declaration.
19722
19723 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
19724 to split multi-word logical operations.
19725 (rs6000_split_logical_di): Likewise.
19726 (rs6000_split_logical): Likewise.
19727
19728 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
19729 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
19730 and allow TImode operations in 32-bit.
19731 (vsx_and<mode>3_64bit): Likewise.
19732 (vsx_ior<mode>3_32bit): Likewise.
19733 (vsx_ior<mode>3_64bit): Likewise.
19734 (vsx_xor<mode>3_32bit): Likewise.
19735 (vsx_xor<mode>3_64bit): Likewise.
19736 (vsx_one_cmpl<mode>2_32bit): Likewise.
19737 (vsx_one_cmpl<mode>2_64bit): Likewise.
19738 (vsx_nor<mode>3_32bit): Likewise.
19739 (vsx_nor<mode>3_64bit): Likewise.
19740 (vsx_andc<mode>3_32bit): Likewise.
19741 (vsx_andc<mode>3_64bit): Likewise.
19742 (vsx_eqv<mode>3_32bit): Likewise.
19743 (vsx_eqv<mode>3_64bit): Likewise.
19744 (vsx_nand<mode>3_32bit): Likewise.
19745 (vsx_nand<mode>3_64bit): Likewise.
19746 (vsx_orc<mode>3_32bit): Likewise.
19747 (vsx_orc<mode>3_64bit): Likewise.
19748
19749 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
19750 logical types in GPRs.
19751
19752 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
19753 logical insns to rs6000.md, and allow TImode operations in
19754 32-bit.
19755 (altivec_ior<mode>3): Likewise.
19756 (altivec_xor<mode>3): Likewise.
19757 (altivec_one_cmpl<mode>2): Likewise.
19758 (altivec_nor<mode>3): Likewise.
19759 (altivec_andc<mode>3): Likewise.
19760
19761 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
19762 attributes for moving the 128-bit logical operations into
19763 rs6000.md.
19764 (BOOL_REGS_OUTPUT): Likewise.
19765 (BOOL_REGS_OP1): Likewise.
19766 (BOOL_REGS_OP2): Likewise.
19767 (BOOL_REGS_UNARY): Likewise.
19768 (BOOL_REGS_AND_CR0): Likewise.
19769 (one_cmpl<mode>2): Add support for DI logical operations on
19770 32-bit, splitting the operations to 32-bit.
19771 (anddi3): Likewise.
19772 (iordi3): Likewise.
19773 (xordi3): Likewise.
19774 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
19775 changes to combine the 32/64-bit code, allow logical operations on
19776 TI mode in 32-bit, and to use similar match_operator patterns like
19777 scalar mode uses. Combine the Altivec and VSX code for logical
19778 operations, and move it here.
19779 (ior<mode>3, 128-bit types): Likewise.
19780 (xor<mode>3, 128-bit types): Likewise.
19781 (one_cmpl<mode>3, 128-bit types): Likewise.
19782 (nor<mode>3, 128-bit types): Likewise.
19783 (andc<mode>3, 128-bit types): Likewise.
19784 (eqv<mode>3, 128-bit types): Likewise.
19785 (nand<mode>3, 128-bit types): Likewise.
19786 (orc<mode>3, 128-bit types): Likewise.
19787 (and<mode>3_internal): Likewise.
19788 (bool<mode>3_internal): Likewise.
19789 (boolc<mode>3_internal1): Likewise.
19790 (boolc<mode>3_internal2): Likewise.
19791 (boolcc<mode>3_internal1): Likewise.
19792 (boolcc<mode>3_internal2): Likewise.
19793 (eqv<mode>3_internal1): Likewise.
19794 (eqv<mode>3_internal2): Likewise.
19795 (one_cmpl1<mode>3_internal): Likewise.
19796
19797 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
19798
19799 * config/microblaze/microblaze.c (microblaze_expand_prologue):
19800 Rename flag_stack_usage to flag_stack_usage_info.
19801
19802 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
19803
19804 * config/microblaze/sync.md: New file.
19805 * config/microblaze/microblaze.md: Include sync.md
19806 * config/microblaze/microblaze.c: Add print_operand 'y'.
19807 * config/microblaze/constraints.md: Add memory_contraint
19808 'Q' which is a single register.
19809
19810 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
19811
19812 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
19813
19814 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
19815
19816 * reload.c (find_reloads): Exit loop once we find this operand
19817 cannot be reloaded somehow for this alternative.
19818
19819 * reload.c (find_reloads): Exit loop once we find a hard register.
19820
19821 * rtlanal.c (computed_jump_p): Exit loop once we find label
19822 reference is used.
19823
19824 * i386.c (ix86_pad_returns): Exit loop after setting replace.
19825
19826 * cfgloopmanip.c (remove_path): Exit loop after setting
19827 irred_invalidated.
19828
19829 * gensupport.c (subst_dup): Avoid loop if code is not
19830 MATCH_DUP nor MATCH_OP_DUP.
19831
19832 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
19833
19834 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
19835
19836 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19837
19838 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
19839 true for SP_REGNUM if mode == ptr_mode.
19840 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
19841 with value R0_REGNUM + 31.
19842
19843 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19844
19845 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
19846 pad pointer-typed argument downward.
19847
19848 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19849
19850 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
19851 and __ILP32__ when the ILP32 model is in use.
19852
19853 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19854
19855 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
19856 (aarch64_load_symref_appropriately): In the case of
19857 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
19858 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
19859 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
19860 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
19861 if 'mode' doesn't equal to 'ptr_mode'.
19862 (aarch64_output_mi_thunk): Add an assertion on the alignment of
19863 'vcall_offset'; change to call aarch64_emit_move differently depending
19864 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
19865 to calculate the upper bound of 'vcall_offset'.
19866 (aarch64_cannot_force_const_mem): Change to also return true if
19867 mode != ptr_mode.
19868 (aarch64_legitimize_reload_address): In the case of large
19869 displacements, add new local variable 'xmode' and an assertion
19870 based on it; change to use 'xmode' to generate the new rtx and
19871 reload.
19872 (aarch64_asm_trampoline_template): Change to generate the template
19873 differently depending on TARGET_ILP32 or not; change to use
19874 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
19875 (aarch64_trampoline_size): Removed.
19876 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
19877 and replace immediate literals with it. Change to use 'ptr_mode'
19878 instead of 'DImode' and call convert_memory_address if the mode
19879 of 'fnaddr' doesn't equal to 'ptr_mode'.
19880 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
19881 to output symbol.
19882 (aarch64_elf_asm_destructor): Likewise.
19883 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
19884 on TARGET_ILP32 instead of aarch64_trampoline_size.
19885 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
19886 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
19887 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
19888 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
19889 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
19890 (storewb_pair<GPI:mode>_<P:mode>): ... this.
19891 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
19892 depending on the value of 'mode'.
19893 (add_losym_<mode>): New.
19894 (ldr_got_small_<mode>): New, based on ldr_got_small.
19895 (ldr_got_small): Remove.
19896 (ldr_got_small_sidi): New.
19897 * config/aarch64/iterators.md (P): New.
19898 (PTR): Change to 'ptr_mode' in the condition.
19899
19900 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19901
19902 * config.gcc (aarch64*-*-*): Support --with-abi.
19903 (aarch64*-*-elf): Support --with-multilib-list.
19904 (aarch64*-*-linux*): Likewise.
19905 (supported_defaults): Add abi to aarch64*-*-*.
19906 * configure.ac: Mention AArch64 for --with-multilib-list.
19907 * configure: Re-generated.
19908 * config/aarch64/biarchilp32.h: New file.
19909 * config/aarch64/biarchlp64.h: New file.
19910 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
19911 (ABI_SPEC): Ditto.
19912 (MULTILIB_DEFAULTS): Ditto.
19913 (DRIVER_SELF_SPECS): Ditto.
19914 (ASM_SPEC): Update to also substitute -mabi.
19915 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
19916 file whose name depends on -mabi= and -mbig-endian.
19917 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
19918 TARGET_ILP32.
19919 (POINTER_SIZE): New define.
19920 (POINTERS_EXTEND_UNSIGNED): Ditto.
19921 (enum aarch64_abi_type): New enumeration tag.
19922 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
19923 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
19924 (TARGET_ILP32): New define.
19925 * config/aarch64/aarch64.opt (mabi): New.
19926 (aarch64_abi): New.
19927 (ilp32, lp64): New values for -mabi.
19928 * config/aarch64/t-aarch64 (comma): New define.
19929 (MULTILIB_OPTIONS): Ditto.
19930 (MULTILIB_DIRNAMES): Ditto.
19931 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
19932 * doc/invoke.texi: Document -mabi for AArch64.
19933
19934 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
19935
19936 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
19937
19938 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19939 Anton Blanchard <anton@au1.ibm.com>
19940
19941 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
19942 endianness when selecting field to splat.
19943
19944 2013-07-22 Eric Christopher <echristo@gmail.com>
19945
19946 * dwarf2out.c (die_odr_checksum): New function to use
19947 CHECKSUM_ macros and ULEB128 for DIE tag.
19948 (generate_type_signature): Use.
19949
19950 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
19951
19952 * config.gcc (sparc*-*-*): Accept leon3 processor.
19953 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
19954 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
19955 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
19956 * config/sparc/sparc.opt (enum processor_type): Add leon3.
19957 (mfix-ut699): Adjust comment.
19958 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
19959 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
19960 (CPP_CPU_SPEC): Likewise.
19961 (ASM_CPU_SPEC): Likewise.
19962 * config/sparc/sparc.c (leon3_cost): New constant.
19963 (sparc_option_override): Add leon3 support.
19964 (mem_ref): New function.
19965 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
19966 (sparc_do_work_around_errata): Look into the instruction in the delay
19967 slot and adjust accordingly. Add fix for the data cache nullify issues
19968 of the UT699. Change insertion position for the NOP.
19969 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
19970 (leon3_load): New reservation.
19971 (leon_store): Bump latency to 2.
19972 (grfpu): New automaton.
19973 (grfpu_alu): New unit.
19974 (grfpu_ds): Likewise.
19975 (leon_fp_alu): Adjust.
19976 (leon_fp_mult): Delete.
19977 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
19978 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
19979 * config/sparc/sparc.md (cpu): Add leon3.
19980 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
19981 (swapsi): Likewise.
19982 (atomic_test_and_set): Likewise.
19983 (ldstub): Likewise.
19984
19985 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
19986
19987 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
19988 default for R5900 targets.
19989 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
19990 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
19991 * config/mips/mips.c (mips_option_override): Report an error for
19992 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
19993 for -march=r5900 -mhard-float.
19994
19995 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
19996
19997 * df-problems.c (can_move_insns_across): Exit loop once we
19998 find a non-fixed, non-global register.
19999
20000 * ipa-pure-const.c (propagate_nothrow): Exit loop after
20001 setting can_throw.
20002
20003 * omega.c (omega_eliminate_red): Break after setting red_found.
20004 (omega_problem_has_red_equations): Similarly after setting found.
20005 (omega_query_variable): Similarly after setting coupled.
20006
20007 2013-07-22 Marek Polacek <polacek@redhat.com>
20008
20009 * gimplify.c: Don't include gimple.h twice.
20010
20011 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20012
20013 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
20014 instead of TARGET_THUMB1.
20015 (Pz): New constraint.
20016 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
20017 encodings.
20018 (compare_negsi_si): Likewise.
20019 (compare_addsi2_op0): Likewise.
20020 (compare_addsi2_op1): Likewise.
20021 (addsi3_carryin_<optab>): Likewise.
20022 (addsi3_carryin_alt2_<optab>): Likewise.
20023 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
20024 for arm_restrict_it.
20025 (subsi3_carryin): Likewise.
20026 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
20027 (minmax_arithsi): Disable for arm_restrict_it.
20028 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
20029 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
20030 (satsi_<SAT:code>_shift): Likewise.
20031 (arm_shiftsi3): Add alternative for 16-bit encoding.
20032 (arm32_movhf): Disable for arm_restrict_it.
20033 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
20034 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
20035
20036 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
20037
20038 * config/arm/arm.md (attribute "insn"): Delete.
20039 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
20040 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
20041 (not_shiftsi): Update for attribute change.
20042 (not_shiftsi_compare0): Likewise.
20043 (not_shiftsi_compare0_scratch): Likewise.
20044 (arm_one_cmplsi2): Likewise.
20045 (thumb1_one_cmplsi2): Likewise.
20046 (notsi_compare0): Likewise.
20047 (notsi_compare0_scratch): Likewise.
20048 (thumb1_movdi_insn): Likewise.
20049 (arm_movsi_insn): Likewise.
20050 (movhi_insn_arch4): Likewise.
20051 (movhi_bytes): Likewise.
20052 (arm_movqi_insn): Likewise.
20053 (thumb1_movqi_insn): Likewise.
20054 (arm32_movhf): Likewise.
20055 (thumb1_movhf): Likewise.
20056 (arm_movsf_soft_insn): Likewise.
20057 (thumb1_movsf_insn): Likewise.
20058 (thumb_movdf_insn): Likewise.
20059 (movsicc_insn): Likewise.
20060 (movsfcc_soft_insn): Likewise.
20061 (and_scc): Likewise.
20062 (cond_move): Likewise.
20063 (if_move_not): Likewise.
20064 (if_not_move): Likewise.
20065 (if_shift_move): Likewise.
20066 (if_move_shift): Likewise.
20067 (if_shift_shift): Likewise.
20068 (if_not_arith): Likewise.
20069 (if_arith_not): Likewise.
20070 (cond_move_not): Likewise.
20071 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
20072 (neon_mov<mode>): Likewise.
20073 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
20074 (thumb2_movsi_vfp): Likewise.
20075 (movsf_vfp): Likewise.
20076 (thumb2_movsf_vfp): Likewise.
20077 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
20078 change.
20079 (cortexa7_older_only): Likewise.
20080 (cortexa7_younger): Likewise.
20081 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
20082 (1020alu_shift_op): Likewise.
20083 (1020alu_shift_reg_op): Likewise.
20084 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
20085 (alu_shift_op): Likewise.
20086 (alu_shift_reg_op): Likewise.
20087 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
20088 (11_alu_shift_op): Likewise.
20089 (11_alu_shift_reg_op): Likewise.
20090 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
20091 (9_alu_shift_reg_op): Likewise.
20092 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
20093 change.
20094 (cortex_a15_alu_shift): Likewise.
20095 (cortex_a15_alu_shift_reg): Likewise.
20096 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
20097 (cortex_a5_alu_shift): Likewise.
20098 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
20099 change.
20100 (cortex_a53_alu_shift): Likewise.
20101 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
20102 change.
20103 (cortex_a7_alu_reg): Likewise.
20104 (cortex_a7_alu_shift): Likewise.
20105 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
20106 (cortex_a8_alu_shift): Likewise.
20107 (cortex_a8_alu_shift_reg): Likewise.
20108 (cortex_a8_mov): Likewise.
20109 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
20110 (cortex_a9_dp_shift): Likewise.
20111 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
20112 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
20113 (cortex_r4_mov): Likewise.
20114 (cortex_r4_alu_shift): Likewise.
20115 (cortex_r4_alu_shift_reg): Likewise.
20116 * config/arm/fa526.md (526_alu_op): Update for attribute change.
20117 (526_alu_shift_op): Likewise.
20118 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
20119 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
20120 (626te_alu_shift_op): Likewise.
20121 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
20122 (726te_alu_op): Likewise.
20123 (726te_alu_shift_op): Likewise.
20124 (726te_alu_shift_reg_op): Likewise.
20125 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
20126 (mp626_alu_shift_op): Likewise.
20127 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
20128 (pj4_alu_e1_conds): Likewise.
20129 (pj4_alu): Likewise.
20130 (pj4_alu_conds): Likewise.
20131 (pj4_shift): Likewise.
20132 (pj4_shift_conds): Likewise.
20133 (pj4_alu_shift): Likewise.
20134 (pj4_alu_shift_conds): Likewise.
20135
20136 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20137
20138 * config/arm/predicates.md (shiftable_operator_strict_it):
20139 New predicate.
20140 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
20141 Disable cond_exec version for arm_restrict_it.
20142 (thumb2_smaxsi3): Convert to generate cond_exec.
20143 (thumb2_sminsi3): Likewise.
20144 (thumb32_umaxsi3): Likewise.
20145 (thumb2_uminsi3): Likewise.
20146 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
20147 (thumb2_neg_abssi2): Likewise.
20148 (thumb2_mov_scc): Add alternative for 16-bit encoding.
20149 (thumb2_movsicc_insn): Adjust alternatives.
20150 (thumb2_mov_negscc): Disable for arm_restrict_it.
20151 (thumb2_mov_negscc_strict_it): New pattern.
20152 (thumb2_mov_notscc_strict_it): New pattern.
20153 (thumb2_mov_notscc): Disable for arm_restrict_it.
20154 (thumb2_ior_scc): Likewise.
20155 (thumb2_ior_scc_strict_it): New pattern.
20156 (thumb2_cond_move): Adjust for arm_restrict_it.
20157 (thumb2_cond_arith): Disable for arm_restrict_it.
20158 (thumb2_cond_arith_strict_it): New pattern.
20159 (thumb2_cond_sub): Adjust for arm_restrict_it.
20160 (thumb2_movcond): Likewise.
20161 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
20162 (thumb2_zero_extendhisi2_v6): Likewise.
20163 (thumb2_zero_extendqisi2_v6): Likewise.
20164 (orsi_notsi_si): Likewise.
20165 (orsi_not_shiftsi_si): Likewise.
20166
20167 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
20168
20169 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
20170 instruction sequence is 1 byte shorter.
20171
20172 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
20173
20174 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
20175 it is not needed after split.
20176
20177 2013-07-20 Iain Sandoe <iain@codesourcery.com>
20178
20179 PR target/51784
20180 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
20181 second label for nonlocal goto receivers. Don't output pic base labels
20182 unless we're producing PIC; mark that action unreachable().
20183 (ix86_save_reg): If the function contains a nonlocal label, save the
20184 PIC base reg.
20185 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
20186 * config/darwin.c (emitted_pic_label_num): New GTY.
20187 (update_pic_label_number_if_needed): New.
20188 (machopic_output_function_base_name): Adjust for nonlocal receiver
20189 case.
20190 (machopic_should_output_picbase_label): New.
20191 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
20192 (nonlocal_goto_receiver): New insn and split.
20193
20194 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
20195
20196 * config/aarch64/aarch64-builtins.c
20197 (aarch64_fold_builtin): Fold abs in all modes.
20198 * config/aarch64/aarch64-simd-builtins.def
20199 (abs): Enable for all modes.
20200 * config/aarch64/arm_neon.h
20201 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
20202 (vabs_f64): Add missing intrinsic.
20203
20204 2013-07-19 Ian Bolton <ian.bolton@arm.com>
20205
20206 * config/aarch64/arm_neon.h (vabs_s64): New function
20207
20208 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
20209
20210 PR target/57516
20211 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
20212 * config/avr/avr.md (adjust_len): Add `round'.
20213 * config/avr/avr-protos.h (avr_out_round): New prototype.
20214 (avr_out_plus): Add `out_label' argument.
20215 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
20216 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
20217 Handle the case where `insn' is just a pattern.
20218 (avr_out_bitop): Handle the case where `insn' is just a pattern.
20219 (avr_out_round): New function.
20220 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
20221
20222 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
20223
20224 * config/microblaze/microblaze.c (microblaze_expand_prologue):
20225 Add check for flag_stack_usage to handle -fstack-usage support
20226
20227 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
20228
20229 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
20230 interaction for new Power8 flags and VSX.
20231
20232 2013-07-18 Sriraman Tallam <tmsriram@google.com>
20233
20234 PR middle-end/57698
20235 * tree-inline.c (expand_call_inline): Emit errors during
20236 early_inlining only if optimization is not turned on.
20237
20238 2013-07-18 David Malcolm <dmalcolm@redhat.com>
20239
20240 * passes.def: New.
20241
20242 * passes.c (init_optimization_passes): Move the construction of
20243 the pass hierarchy into a new passes.def file.
20244
20245 * Makefile.in (passes.o): Add dependency on passes.def.
20246
20247 2013-07-18 David Malcolm <dmalcolm@redhat.com>
20248
20249 * passes.c (init_optimization_passes): Introduce macros for
20250 constructing the tree of passes (INSERT_PASSES_AFTER,
20251 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
20252 TERMINATE_PASS_LIST).
20253
20254 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
20255 Wei Mi <wmi@google.com>
20256
20257 PR rtl-optimization/57878
20258 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
20259 top.
20260 (reload_pseudo_compare_func): Check nregs first for reload
20261 pseudos.
20262
20263 2013-07-18 David Malcolm <dmalcolm@redhat.com>
20264
20265 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
20266
20267 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
20268
20269 * read-rtl.c (validate_const_int): Once an invalid character is
20270 seen, quit the loop.
20271
20272 * gengtype.c (write_roots): Similarly once we find the "deletable"
20273 or "if_marked" option.
20274
20275 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
20276
20277 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
20278 "xtab" and "sat". Move value "clz" from here to ...
20279 (attriubte "type"): ... here.
20280 (satsi_<SAT:code>): Delete "insn" attribute.
20281 (satsi_<SAT:code>_shift): Likewise.
20282 (arm_zero_extendqisi2addsi): Likewise.
20283 (arm_extendqisi2addsi): Likewise.
20284 (clzsi2): Update for attribute changes.
20285 (rbitsi2): Likewise.
20286 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
20287 attribute.
20288 (arm_usatsihi): Likewise.
20289 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
20290
20291 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
20292
20293 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
20294 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
20295 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
20296 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
20297 in alphabetical order.
20298 (attribute "core_cycles"): Update for attribute changes.
20299 (arm_addsi3): Likewise.
20300 (addsi3_compare0): Likewise.
20301 (addsi3_compare0_scratch): Likewise.
20302 (addsi3_compare_op1): Likewise.
20303 (addsi3_compare_op2): Likewise.
20304 (compare_addsi2_op0): Likewise.
20305 (compare_addsi2_op1): Likewise.
20306 (addsi3_carryin_shift_<optab>): Likewise.
20307 (subsi3_carryin_shift): Likewise.
20308 (rsbsi3_carryin_shift): Likewise.
20309 (arm_subsi3_insn): Likewise.
20310 (subsi3_compare0): Likewise.
20311 (subsi3_compare): Likewise.
20312 (arm_andsi3_insn): Likewise.
20313 (thumb1_andsi3_insn): Likewise.
20314 (andsi3_compare0): Likewise.
20315 (andsi3_compare0_scratch): Likewise.
20316 (zeroextractsi_compare0_scratch
20317 (andsi_not_shiftsi_si): Likewise.
20318 (iorsi3_insn): Likewise.
20319 (iorsi3_compare0): Likewise.
20320 (iorsi3_compare0_scratch): Likewise.
20321 (arm_xorsi3): Likewise.
20322 (thumb1_xorsi3_insn): Likewise.
20323 (xorsi3_compare0): Likewise.
20324 (xorsi3_compare0_scratch): Likewise.
20325 (satsi_<SAT:code>_shift): Likewise.
20326 (rrx): Likewise.
20327 (arm_shiftsi3): Likewise.
20328 (shiftsi3_compare0): Likewise.
20329 (not_shiftsi): Likewise.
20330 (not_shiftsi_compare0): Likewise.
20331 (not_shiftsi_compare0_scratch): Likewise.
20332 (arm_one_cmplsi2): Likewise.
20333 (thumb_one_complsi2): Likewise.
20334 (notsi_compare0): Likewise.
20335 (notsi_compare0_scratch): Likewise.
20336 (thumb1_zero_extendhisi2): Likewise.
20337 (arm_zero_extendhisi2): Likewise.
20338 (arm_zero_extendhisi2_v6): Likewise.
20339 (arm_zero_extendhisi2addsi): Likewise.
20340 (thumb1_zero_extendqisi2): Likewise.
20341 (thumb1_zero_extendqisi2_v6): Likewise.
20342 (arm_zero_extendqisi2): Likewise.
20343 (arm_zero_extendqisi2_v6): Likewise.
20344 (arm_zero_extendqisi2addsi): Likewise.
20345 (thumb1_extendhisi2): Likewise.
20346 (arm_extendhisi2): Likewise.
20347 (arm_extendhisi2_v6): Likewise.
20348 (arm_extendqisi): Likewise.
20349 (arm_extendqisi_v6): Likewise.
20350 (arm_extendqisi2addsi): Likewise.
20351 (thumb1_extendqisi2): Likewise.
20352 (thumb1_movdi_insn): Likewise.
20353 (arm_movsi_insn): Likewise.
20354 (movsi_compare0): Likewise.
20355 (movhi_insn_arch4): Likewise.
20356 (movhi_bytes): Likewise.
20357 (arm_movqi_insn): Likewise.
20358 (thumb1_movqi_insn): Likewise.
20359 (arm32_movhf): Likewise.
20360 (thumb1_movhf): Likewise.
20361 (arm_movsf_soft_insn): Likewise.
20362 (thumb1_movsf_insn): Likewise.
20363 (movdf_soft_insn): Likewise.
20364 (thumb_movdf_insn): Likewise.
20365 (arm_cmpsi_insn): Likewise.
20366 (cmpsi_shiftsi): Likewise.
20367 (cmpsi_shiftsi_swp): Likewise.
20368 (arm_cmpsi_negshiftsi_si): Likewise.
20369 (movsicc_insn): Likewise.
20370 (movsfcc_soft_insn): Likewise.
20371 (arith_shiftsi): Likewise.
20372 (arith_shiftsi_compare0
20373 (arith_shiftsi_compare0_scratch
20374 (sub_shiftsi): Likewise.
20375 (sub_shiftsi_compare0
20376 (sub_shiftsi_compare0_scratch
20377 (and_scc): Likewise.
20378 (cond_move): Likewise.
20379 (if_plus_move): Likewise.
20380 (if_move_plus): Likewise.
20381 (if_move_not): Likewise.
20382 (if_not_move): Likewise.
20383 (if_shift_move): Likewise.
20384 (if_move_shift): Likewise.
20385 (if_shift_shift): Likewise.
20386 (if_not_arith): Likewise.
20387 (if_arith_not): Likewise.
20388 (cond_move_not): Likewise.
20389 (thumb1_ashlsi3): Set type attribute.
20390 (thumb1_ashrsi3): Likewise.
20391 (thumb1_lshrsi3): Likewise.
20392 (thumb1_rotrsi3): Likewise.
20393 (shiftsi3_compare0_scratch): Likewise.
20394 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
20395 (neon_mov<mode>): Likewise.
20396 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
20397 attribute changes.
20398 (thumb2_movsi_insn): Likewise.
20399 (thumb2_cmpsi_neg_shiftsi): Likewise.
20400 (thumb2_extendqisi_v6): Likewise.
20401 (thumb2_zero_extendhisi2_v6): Likewise.
20402 (thumb2_zero_extendqisi2_v6): Likewise.
20403 (thumb2_shiftsi3_short): Likewise.
20404 (thumb2_addsi3_compare0_scratch): Likewise.
20405 (orsi_not_shiftsi_si): Likewise.
20406 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
20407 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
20408 changes.
20409 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
20410 (1020alu_shift_op): Likewise.
20411 (1020alu_shift_reg_op): Likewise.
20412 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
20413 (alu_shift_op): Likewise.
20414 (alu_shift_reg_op): Likewise.
20415 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
20416 (11_alu_shift_op): Likewise.
20417 (11_alu_shift_reg_op): Likewise.
20418 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
20419 (9_alu_shift_reg_op): Likewise.
20420 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
20421 changes.
20422 (cortex_a15_alu_shift): Likewise.
20423 (cortex_a15_alu_shift_reg): Likewise.
20424 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
20425 changes.
20426 (cortex_a5_alu_shift): Likewise.
20427 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
20428 changes.
20429 (cortex_a53_alu_shift): Likewise.
20430 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
20431 changes.
20432 (cortex_a7_alu_reg): Likewise.
20433 (cortex_a7_alu_shift): Likewise.
20434 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
20435 changes.
20436 (cortex_a8_alu_shift): Likewise.
20437 (cortex_a8_alu_shift_reg): Likewise.
20438 (cortex_a8_mov): Likewise.
20439 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
20440 (cortex_a9_dp_shift): Likewise.
20441 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
20442 changes.
20443 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
20444 changes.
20445 (cortex_r4_mov): Likewise.
20446 (cortex_r4_alu_shift): Likewise.
20447 (cortex_r4_alu_shift_reg): Likewise.
20448 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
20449 (526_alu_shift_op): Likewise.
20450 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
20451 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
20452 (626te_alu_shift_op): Likewise.
20453 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
20454 (726te_alu_op): Likewise.
20455 (726te_alu_shift_op): Likewise.
20456 (726te_alu_shift_reg_op): Likewise.
20457 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
20458 (mp626_alu_shift_op): Likewise.
20459 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
20460 (pj4_alu_e1_conds): Likewise.
20461 (pj4_alu): Likewise.
20462 (pj4_alu_conds): Likewise.
20463 (pj4_shift): Likewise.
20464 (pj4_shift_conds): Likewise.
20465 (pj4_alu_shift): Likewise.
20466 (pj4_alu_shift_conds): Likewise.
20467 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
20468 changes.
20469 (cortexa7_older_only): Likewise.
20470 (cortexa7_younger): Likewise.
20471
20472 2013-07-18 David Malcolm <dmalcolm@redhat.com>
20473
20474 * ipa-pure-const.c (generate_summary): Rename to...
20475 (pure_const_generate_summary): ... this.
20476
20477 2013-07-17 Iain Sandoe <iain@codesourcery.com>
20478
20479 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
20480
20481 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
20482
20483 PR target/57909
20484 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
20485 usage in HI mode.
20486
20487 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20488
20489 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
20490 enabled without -march=zEC12.
20491 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
20492 flags to be set.
20493
20494 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
20495
20496 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
20497 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
20498 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
20499 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
20500 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
20501 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
20502 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
20503 ISA_HAS_FP4.
20504 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
20505 and ISA_HAS_NMADD3_NMSUB3.
20506 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
20507 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
20508 (nmsub4<mode>, nmsub3<mode>): Likewise.
20509 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
20510
20511 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
20512
20513 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
20514 TARGET_MIPS5400 checking.
20515
20516 2013-07-16 Jakub Jelinek <jakub@redhat.com>
20517 Peter Bergner <bergner@vnet.ibm.com>
20518
20519 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
20520 registers in the comment.
20521 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
20522 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
20523 rather than FIRST_PSEUDO_REGISTERS.
20524
20525 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
20526
20527 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
20528 enable extra ISA flags with TARGET_HTM.
20529
20530 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
20531
20532 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
20533 Fix comment typos.
20534
20535 2013-07-15 Cong Hou <congh@google.com>
20536
20537 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
20538 in compare function for sorting.
20539
20540 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
20541
20542 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
20543 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
20544 * config/rs6000/rs6000.opt: Add -mhtm option.
20545 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
20546 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
20547 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
20548 __HTM__ if the HTM instructions are available.
20549 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
20550 htm_spr_reg_operand): New define_predicates.
20551 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
20552 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
20553 Include htm.md.
20554 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
20555 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
20556 HTM builtin functions.
20557 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
20558 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
20559 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
20560 (rs6000_builtin_mask_calculate): Likewise.
20561 (rs6000_option_override_internal): Likewise.
20562 (bdesc_htm): Add new HTM builtin support.
20563 (htm_spr_num): New function.
20564 (htm_spr_regno): Likewise.
20565 (rs6000_htm_spr_icode): Likewise.
20566 (htm_expand_builtin): Likewise.
20567 (htm_init_builtins): Likewise.
20568 (rs6000_expand_builtin): Add support for HTM builtin functions.
20569 (rs6000_init_builtins): Likewise.
20570 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
20571 option.
20572 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
20573 (TARGET_HTM, MASK_HTM): Define macros.
20574 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
20575 (FIXED_REGISTERS): Likewise.
20576 (CALL_USED_REGISTERS): Likewise.
20577 (CALL_REALLY_USED_REGISTERS): Likewise.
20578 (REG_ALLOC_ORDER): Likewise.
20579 (enum reg_class): Likewise.
20580 (REG_CLASS_NAMES): Likewise.
20581 (REG_CLASS_CONTENTS): Likewise.
20582 (REGISTER_NAMES): Likewise.
20583 (ADDITIONAL_REGISTER_NAMES): Likewise.
20584 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
20585 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
20586 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
20587 * config/rs6000/htm.md: New file.
20588 * config/rs6000/htmintrin.h: New file.
20589 * config/rs6000/htmxlintrin.h: New file.
20590
20591 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
20592
20593 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
20594 Define SYMBOL_TINY_GOT, update comment.
20595 * config/aarch64/aarch64.c
20596 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
20597 (aarch64_expand_mov_immediate): Likewise.
20598 (aarch64_print_operand): Likewise.
20599 (aarch64_classify_symbol): Likewise.
20600 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
20601 (ldr_got_tiny): Define.
20602
20603 2013-07-13 Tobias Grosser <tobias@grosser.es>
20604
20605 PR tree-optimization/54094
20606 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
20607 scheduling dimension for the parallelism check from the polyhedral
20608 information in the AST.
20609 * graphite-dependences.c (carries_deps): Do not assume the schedule is
20610 in 2D + 1 form.
20611
20612 2013-07-13 Jason Merrill <jason@redhat.com>
20613
20614 * print-tree.c (debug_vec_tree): Use debug_raw.
20615 (debug_raw (vec<tree, va_gc> &)): New.
20616 (debug_raw (vec<tree, va_gc> *)): New.
20617 * tree.h: Declare them.
20618
20619 2013-07-13 Bin Cheng <bin.cheng@arm.com>
20620
20621 * ifcvt.c (ifcvt_after_combine): New static variable.
20622 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
20623 for size.
20624 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
20625 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
20626 rest_of_handle_if_after_reload): Pass new argument for if_convert.
20627
20628 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
20629
20630 * config/mips/mips.c (mips_expand_call): Remove empty statement.
20631
20632 2013-07-12 Michael Matz <matz@suse.de>
20633
20634 PR middle-end/55771
20635 * convert.c (convert_to_real): Reject non-float inner types.
20636
20637 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
20638
20639 * config/aarch64/aarch64-protos.h
20640 (aarch64_simd_immediate_valid_for_move): Remove.
20641 * config/aarch64/aarch64.c (simd_immediate_info): New member.
20642 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
20643 cases.
20644 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
20645
20646 2013-07-11 Steve Ellcey <sellcey@mips.com>
20647
20648 * config/mips/mips.c (mips_conditional_register_usage): Do not
20649 use t[0-7] registers in MIPS16 mode when optimizing for size.
20650
20651 2013-07-11 Sriraman Tallam <tmsriram@google.com>
20652
20653 * config/i386/i386.c (dispatch_function_versions): Fix array
20654 indexing of function_version_info to match actual_versions.
20655
20656 2013-07-11 Teresa Johnson <tejohnson@google.com>
20657
20658 * vec.h (struct va_gc): Move release out-of-line.
20659 (va_gc::release): Call ggc_free on released vec.
20660
20661 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20662
20663 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
20664 Require GOT register as additional operand in UNSPEC.
20665 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
20666 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20667 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20668 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
20669 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
20670 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
20671 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
20672
20673 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
20674
20675 PR target/57631
20676 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
20677 name seen by assembler/linker rather if available.
20678
20679 2013-07-11 Andreas Schwab <schwab@suse.de>
20680
20681 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
20682
20683 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
20684
20685 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
20686
20687 2013-07-10 Joseph Myers <joseph@codesourcery.com>
20688
20689 * doc/tm.texi.in: Move hook documentation to ....
20690 * target.def: ... here.
20691
20692 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
20693 text on @hook line.
20694 * doc/tm.texi: Regenerate.
20695
20696 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
20697
20698 PR c++/57869
20699 * doc/invoke.texi: Document -Wconditionally-supported.
20700
20701 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
20702
20703 PR target/57844
20704 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
20705 of my_fp.
20706
20707 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
20708
20709 PR target/57506
20710 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
20711 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
20712 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
20713 Remove duplicate devices.
20714 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
20715 * config/avr/t-multilib: Regenerate.
20716 * config/avr/avr-tables.opt: Regenerate.
20717 * doc/avr-mmcu.texi: Regenerate.
20718
20719 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
20720
20721 PR target/56987
20722 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
20723
20724 2013-07-10 Graham Stott <graham.stott@btinternet.com>
20725
20726 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
20727 the cost of MULT when optimizing for size.
20728
20729 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20730
20731 * config/cr16/cr16-protos.h: Don't include target.h.
20732
20733 2013-07-09 Joseph Myers <joseph@codesourcery.com>
20734
20735 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
20736 adjust register size for TDmode and TFmode for VSX registers.
20737
20738 2013-07-08 Kai Tietz <ktietz@redhat.com>
20739
20740 PR target/56892
20741 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
20742 hook_bool_const_tree_true.
20743
20744 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20745
20746 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
20747 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
20748 * config/s390/s390.md: Define FPR*_REGNUM constants.
20749 Fix FPR2_REGNUM constant (18 -> 17).
20750 ("*trunc<BFP:mode><DFP_ALL:mode>2")
20751 ("*trunc<DFP_ALL:mode><BFP:mode>2")
20752 ("trunc<BFP:mode><DFP_ALL:mode>2")
20753 ("trunc<DFP_ALL:mode><BFP:mode>2")
20754 ("*extend<BFP:mode><DFP_ALL:mode>2")
20755 ("*extend<DFP_ALL:mode><BFP:mode>2")
20756 ("extend<BFP:mode><DFP_ALL:mode>2")
20757 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
20758 FPR4_REGNUM.
20759
20760 2013-07-08 Graham Stott <graham.stott@btinternet.com>
20761
20762 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
20763
20764 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20765
20766 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
20767 and cfun_fpr_bit_p to cfun_fpr_save_p.
20768 (s390_frame_area, s390_register_info, s390_frame_info)
20769 (s390_emit_prologue, s390_emit_epilogue)
20770 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
20771 register numbers.
20772 * config/s390/s390.h: Define *_REGNUM macros for floating point
20773 register numbers.
20774
20775 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
20776
20777 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
20778
20779 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
20780
20781 PR rtl-optimization/57786
20782 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
20783 and break out of the loop when it is set to false.
20784
20785 2013-07-08 Jakub Jelinek <jakub@redhat.com>
20786
20787 PR target/57819
20788 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
20789 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
20790 (const_int 63)) 0)).
20791 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
20792 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
20793 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
20794
20795 PR rtl-optimization/57829
20796 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
20797 mask bits outside of mode are just sign-extension from mode to HWI.
20798
20799 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
20800
20801 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
20802 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
20803 adjust_address instead of change_address to keep info about alignment.
20804 (emit_strmov): Remove.
20805 (emit_memmov): New function.
20806 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
20807 (expand_movmem_epilogue): Likewise and return updated rtx for
20808 destination.
20809 (expand_constant_movmem_prologue): Likewise and return updated rtx for
20810 destination and source.
20811 (decide_alignment): Refactor, handle vector_loop.
20812 (ix86_expand_movmem): Likewise.
20813 (ix86_expand_setmem): Likewise.
20814 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
20815
20816 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
20817
20818 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
20819 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
20820
20821 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
20822
20823 * config/i386/sse.md (sse_movlhps): Change alternative 3
20824 of operand 2 to "m".
20825
20826 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
20827
20828 PR target/57807
20829 * config/i386/sse.md (iptr): New mode attribute.
20830 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
20831 (<sse>_vm<plusminus_insn><mode>3): Ditto.
20832 (<sse>_vmmul<mode>3): Ditto.
20833 (<sse>_vmdiv<mode>3): Ditto.
20834 (sse_vmrcpv4sf2): Ditto.
20835 (<sse>_vmsqrt<mode>2): Ditto.
20836 (sse_vmrsqrtv4sf2): Ditto.
20837 (<sse>_vm<code><mode>3): Ditto.
20838 (avx_vmcmp<mode>3): Ditto.
20839 (<sse>_vmmaskcmp<mode>3): Ditto.
20840 (<sse>_comi): Ditto.
20841 (<sse>_ucomi): Ditto.
20842 (*xop_vmfrcz_<mode>): Ditto.
20843 (*fmai_fmadd_<mode>): Ditto.
20844 (*fmai_fmsub_<mode>): Ditto.
20845 (*fmai_fnmadd_<mode>): Ditto.
20846 (*fmai_fnmsub_<mode>): Ditto.
20847 (*fma4i_vmfmadd_<mode>): Ditto.
20848 (*fma4i_vmfmsub_<mode>): Ditto.
20849 (*fma4i_vmfnmadd_<mode>): Ditto.
20850 (*fma4i_vmfnmsub_<mode>): Ditto.
20851 (*xop_vmfrcz_<mode>): Ditto.
20852 (sse_cvtps2pi): Ditto.
20853 (sse_cvttps2pi): Ditto.
20854 (sse_cvtss2si): Ditto.
20855 (sse_cvtss2si_2): Ditto.
20856 (sse_cvtss2siq_2): Ditto.
20857 (sse_cvttss2si): Ditto.
20858 (sse_cvttss2siq): Ditto.
20859 (sse_cvtsd2si): Ditto.
20860 (sse_cvtsd2si_2): Ditto.
20861 (sse_cvtsd2siq_2): Ditto.
20862 (sse_cvttsd2si): Ditto.
20863 (sse_cvttsd2siq): Ditto.
20864 (sse_cvtsd2ss): Ditto.
20865 (sse_cvtss2sd): Ditto.
20866 (avx2_pbroadcast<mode>): Ditto.
20867 (avx2_pbroadcast<mode>_1): Ditto.
20868 (*avx_vperm_broadcast_v4sf): Ditto.
20869
20870 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
20871 (sse_movlhps): Ditto.
20872 (sse_storehps): Ditto.
20873 (sse_loadhps): Ditto.
20874 (sse_storelps): Ditto.
20875 (sse_loadlps): Ditto.
20876 (*vec_concatv4sf): Ditto.
20877 (*vec_interleave_highv2df): Ditto.
20878 (*vec_interleave_lowv2df): Ditto.
20879 (*vec_extractv2df_1_sse): Ditto.
20880 (*vec_extractv2df_0_sse): Ditto.
20881 (sse2_storelpd): Ditto.
20882 (sse2_loadlpd): Ditto.
20883 (sse2_movsd): Ditto.
20884 (*vec_concatv4si): Ditto.
20885 (vec_concatv2di): Ditto.
20886
20887 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
20888 for Intel asm dialect.
20889 (mmx_punpcklwd): Ditto.
20890 (mmx_punpckldq): Ditto.
20891
20892 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
20893 for intel assembler dialect.
20894
20895 2013-07-06 Jakub Jelinek <jakub@redhat.com>
20896
20897 PR target/29776
20898 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
20899 for BUILT_IN_C{LZ,LRSB}*.
20900 * tree.h (CASE_INT_FN): Add FN##IMAX case.
20901 * tree-vrp.c (extract_range_basic): Handle
20902 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
20903 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
20904 fall thru to code calling set_value*.
20905 * builtins.c (expand_builtin): Remove *IMAX cases.
20906 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
20907 if width is bigger than 2*HWI.
20908
20909 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
20910
20911 PR rtl-optimization/55342
20912 * lra-int.h (lra_subreg_reload_pseudos): New.
20913 * lra.c: Add undoing optional reloads to the block diagram.
20914 (lra_subreg_reload_pseudos): New.
20915 (lra_optional_reload_pseudos): Change comments.
20916 (lra): Init and clear lra_subreg_reload_pseudos. Clear
20917 lra_optional_reload_pseudos after undo transformations.
20918 * lra-assigns.c (pseudo_prefix_title): New.
20919 (lra_setup_reg_renumber): Use it.
20920 (spill_for): Ditto. Check subreg reload pseudos too.
20921 (assign_by_spills): Consider subreg reload pseudos too.
20922 * lra-constraints.c (simplify_operand_subreg): Use
20923 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
20924 (curr_insn_transform): Recognize and do optional reloads.
20925 (undo_optional_reloads): New.
20926 (lra_undo_inheritance): Call undo_optional_reloads.
20927
20928 2013-07-05 Thomas Quinot <quinot@adacore.com>
20929
20930 * tree-complex.c (expand_complex_operations_1): Fix typo.
20931
20932 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
20933
20934 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
20935 (tune_params): New member 'const vec_costs'.
20936 * config/aarch64/aarch64.c (generic_vector_cost): New.
20937 (generic_tunings): New member 'generic_vector_cost'.
20938 (aarch64_builtin_vectorization_cost): New.
20939 (aarch64_add_stmt_cost): New.
20940 (TARGET_VECTORIZE_ADD_STMT_COST): New.
20941 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
20942
20943 2013-07-03 Jakub Jelinek <jakub@redhat.com>
20944
20945 PR target/57777
20946 * config/i386/predicates.md (vsib_address_operand): Disallow
20947 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
20948
20949 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
20950
20951 PR middle-end/55030
20952 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
20953 expand_builtin_setjmp_receiver.
20954 (expand_label): Adjust, call expand_builtin_setjmp_receiver
20955 with NULL for the label parameter.
20956 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
20957 the frame-pointer. Adjust comments.
20958 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
20959 only if LABEL is non-NULL.
20960
20961 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
20962
20963 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
20964 (ARM_ABI_AAPCS64): Ditto.
20965 (arm_abi): Ditto.
20966 (ARM_DEFAULT_ABI): Ditto.
20967
20968 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
20969
20970 * config/aarch64/aarch64-builtins.c
20971 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
20972 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
20973 (st1): Likewise.
20974 * config/aarch64/aarch64-simd.md
20975 (aarch64_ld1<VALL:mode>): New.
20976 (aarch64_st1<VALL:mode>): Likewise.
20977 * config/aarch64/arm_neon.h
20978 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
20979
20980 2013-07-02 Sriraman Tallam <tmsriram@google.com>
20981
20982 * config/i386/i386.c (gate_insert_vzeroupper): Check if
20983 target ISA is AVX.
20984 (ix86_option_override_internal):Turn on all -mavx target flags by
20985 default as they are dependent on AVX anyway.
20986
20987 2013-07-02 Cary Coutant <ccoutant@google.com>
20988
20989 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
20990 deterministic hash.
20991 (loc_checksum_ordered): Likewise.
20992 (hash_loc_operands): Remove inline keyword.
20993
20994 2013-07-02 Jakub Jelinek <jakub@redhat.com>
20995
20996 PR tree-optimization/57741
20997 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
20998 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
20999 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
21000 Allow REAL_CST step_exprs if flag_associative_math.
21001 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
21002
21003 2013-07-02 Ian Bolton <ian.bolton@arm.com>
21004
21005 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
21006
21007 2013-07-02 Ian Bolton <ian.bolton@arm.com>
21008
21009 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
21010
21011 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21012
21013 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
21014 encoding.
21015 (iorsi3_insn): Likewise.
21016 (arm_xorsi3): Likewise.
21017
21018 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
21019
21020 * arm.md (attribute "wtype"): Delete. Move attribute values from here
21021 to ...
21022 (attribute "type"): ... here, and prefix with "wmmx_".
21023 (attribute "core_cycles"): Update for attribute changes.
21024 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
21025 (tbcstv4hi): Likewise.
21026 (tbcstv2si): Likewise.
21027 (iwmmxt_iordi3): Likewise.
21028 (iwmmxt_xordi3): Likewise.
21029 (iwmmxt_anddi3): Likewise.
21030 (iwmmxt_nanddi3): Likewise.
21031 (iwmmxt_arm_movdi): Likewise.
21032 (iwmmxt_movsi_insn): Likewise.
21033 (mov<mode>_internal): Likewise.
21034 (and<mode>3_iwmmxt): Likewise.
21035 (ior<mode>3_iwmmxt): Likewise.
21036 (xor<mode>3_iwmmxt): Likewise.
21037 (add<mode>3_iwmmxt): Likewise.
21038 (ssaddv8qi3): Likewise.
21039 (ssaddv4hi3): Likewise.
21040 (ssaddv2si3): Likewise.
21041 (usaddv8qi3): Likewise.
21042 (usaddv4hi3): Likewise.
21043 (usaddv2si3): Likewise.
21044 (sub<mode>3_iwmmxt): Likewise.
21045 (sssubv8qi3): Likewise.
21046 (sssubv4hi3): Likewise.
21047 (sssubv2si3): Likewise.
21048 (ussubv8qi3): Likewise.
21049 (ussubv4hi3): Likewise.
21050 (ussubv2si3): Likewise.
21051 (mulv4hi3_iwmmxt): Likewise.
21052 (smulv4hi3_highpart): Likewise.
21053 (umulv4hi3_highpart): Likewise.
21054 (iwmmxt_wmacs): Likewise.
21055 (iwmmxt_wmacsz): Likewise.
21056 (iwmmxt_wmacu): Likewise.
21057 (iwmmxt_wmacuz): Likewise.
21058 (iwmmxt_clrdi): Likewise.
21059 (iwmmxt_clrv8qi): Likewise.
21060 (iwmmxt_clr4hi): Likewise.
21061 (iwmmxt_clr2si): Likewise.
21062 (iwmmxt_uavgrndv8qi3): Likewise.
21063 (iwmmxt_uavgrndv4hi3): Likewise.
21064 (iwmmxt_uavgv8qi3): Likewise.
21065 (iwmmxt_uavgv4hi3): Likewise.
21066 (iwmmxt_tinsrb): Likewise.
21067 (iwmmxt_tinsrh): Likewise.
21068 (iwmmxt_tinsrw): Likewise.
21069 (iwmmxt_textrmub): Likewise.
21070 (iwmmxt_textrmsb): Likewise.
21071 (iwmmxt_textrmuh): Likewise.
21072 (iwmmxt_textrmsh): Likewise.
21073 (iwmmxt_textrmw): Likewise.
21074 (iwmxxt_wshufh): Likewise.
21075 (eqv8qi3): Likewise.
21076 (eqv4hi3): Likewise.
21077 (eqv2si3): Likewise.
21078 (gtuv8qi3): Likewise.
21079 (gtuv4hi3): Likewise.
21080 (gtuv2si3): Likewise.
21081 (gtv8qi3): Likewise.
21082 (gtv4hi3): Likewise.
21083 (gtv2si3): Likewise.
21084 (smax<mode>3_iwmmxt): Likewise.
21085 (umax<mode>3_iwmmxt): Likewise.
21086 (smin<mode>3_iwmmxt): Likewise.
21087 (umin<mode>3_iwmmxt): Likewise.
21088 (iwmmxt_wpackhss): Likewise.
21089 (iwmmxt_wpackwss): Likewise.
21090 (iwmmxt_wpackdss): Likewise.
21091 (iwmmxt_wpackhus): Likewise.
21092 (iwmmxt_wpackwus): Likewise.
21093 (iwmmxt_wpackdus): Likewise.
21094 (iwmmxt_wunpckihb): Likewise.
21095 (iwmmxt_wunpckihh): Likewise.
21096 (iwmmxt_wunpckihw): Likewise.
21097 (iwmmxt_wunpckilb): Likewise.
21098 (iwmmxt_wunpckilh): Likewise.
21099 (iwmmxt_wunpckilw): Likewise.
21100 (iwmmxt_wunpckehub): Likewise.
21101 (iwmmxt_wunpckehuh): Likewise.
21102 (iwmmxt_wunpckehuw): Likewise.
21103 (iwmmxt_wunpckehsb): Likewise.
21104 (iwmmxt_wunpckehsh): Likewise.
21105 (iwmmxt_wunpckehsw): Likewise.
21106 (iwmmxt_wunpckelub): Likewise.
21107 (iwmmxt_wunpckeluh): Likewise.
21108 (iwmmxt_wunpckeluw): Likewise.
21109 (iwmmxt_wunpckelsb): Likewise.
21110 (iwmmxt_wunpckelsh): Likewise.
21111 (iwmmxt_wunpckelsw): Likewise.
21112 (ror<mode>3): Likewise.
21113 (ashr<mode>3_iwmmxt): Likewise.
21114 (lshr<mode>3_iwmmxt): Likewise.
21115 (ashl<mode>3_iwmmxt): Likewise.
21116 (ror<mode>3_di): Likewise.
21117 (ashr<mode>3_di): Likewise.
21118 (lshr<mode>3_di): Likewise.
21119 (ashl<mode>3_di): Likewise.
21120 (iwmmxt_wmadds): Likewise.
21121 (iwmmxt_wmaddu): Likewise.
21122 (iwmmxt_tmia): Likewise.
21123 (iwmmxt_tmiaph): Likewise.
21124 (iwmmxt_tmiabb): Likewise.
21125 (iwmmxt_tmiatb): Likewise.
21126 (iwmmxt_tmiabt): Likewise.
21127 (iwmmxt_tmiatt): Likewise.
21128 (iwmmxt_tmovmskb): Likewise.
21129 (iwmmxt_tmovmskh): Likewise.
21130 (iwmmxt_tmovmskw): Likewise.
21131 (iwmmxt_waccb): Likewise.
21132 (iwmmxt_wacch): Likewise.
21133 (iwmmxt_waccw): Likewise.
21134 (iwmmxt_waligni): Likewise.
21135 (iwmmxt_walignr): Likewise.
21136 (iwmmxt_walignr0): Likewise.
21137 (iwmmxt_walignr1): Likewise.
21138 (iwmmxt_walignr2): Likewise.
21139 (iwmmxt_walignr3): Likewise.
21140 (iwmmxt_wsadb): Likewise.
21141 (iwmmxt_wsadh): Likewise.
21142 (iwmmxt_wsadbz): Likewise.
21143 (iwmmxt_wsadhz): Likewise.
21144 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
21145 (iwmmxt_wabsdiffb): Likewise.
21146 (iwmmxt_wabsdiffh): Likewise.
21147 (iwmmxt_wabsdiffw): Likewise.
21148 (iwmmxt_waddsubhx): Likewise
21149 (iwmmxt_wsubaddhx): Likewise.
21150 (addc<mode>3): Likewise.
21151 (iwmmxt_avg4): Likewise.
21152 (iwmmxt_avg4r): Likewise.
21153 (iwmmxt_wmaddsx): Likewise.
21154 (iwmmxt_wmaddux): Likewise.
21155 (iwmmxt_wmaddsn): Likewise.
21156 (iwmmxt_wmaddun): Likewise.
21157 (iwmmxt_wmulwsm): Likewise.
21158 (iwmmxt_wmulwum): Likewise.
21159 (iwmmxt_wmulsmr): Likewise.
21160 (iwmmxt_wmulumr): Likewise.
21161 (iwmmxt_wmulwsmr): Likewise.
21162 (iwmmxt_wmulwumr): Likewise.
21163 (iwmmxt_wmulwl): Likewise.
21164 (iwmmxt_wqmulm): Likewise.
21165 (iwmmxt_wqmulwm): Likewise.
21166 (iwmmxt_wqmulmr): Likewise.
21167 (iwmmxt_wqmulwmr): Likewise.
21168 (iwmmxt_waddbhusm): Likewise.
21169 (iwmmxt_waddbhusl): Likewise.
21170 (iwmmxt_wqmiabb): Likewise.
21171 (iwmmxt_wqmiabt): Likewise.
21172 (iwmmxt_wqmiatb): Likewise.
21173 (iwmmxt_wqmiatt): Likewise.
21174 (iwmmxt_wqmiabbn): Likewise.
21175 (iwmmxt_wqmiabtn): Likewise.
21176 (iwmmxt_wqmiatbn): Likewise.
21177 (iwmmxt_wqmiattn): Likewise.
21178 (iwmmxt_wmiabb): Likewise.
21179 (iwmmxt_wmiabt): Likewise.
21180 (iwmmxt_wmiatb): Likewise.
21181 (iwmmxt_wmiatt): Likewise.
21182 (iwmmxt_wmiabbn): Likewise.
21183 (iwmmxt_wmiabtn): Likewise.
21184 (iwmmxt_wmiatbn): Likewise.
21185 (iwmmxt_wmiattn): Likewise.
21186 (iwmmxt_wmiawbb): Likewise.
21187 (iwmmxt_wmiawbt): Likewise.
21188 (iwmmxt_wmiawtb): Likewise.
21189 (iwmmxt_wmiawtt): Likewise.
21190 (iwmmxt_wmiawbbn): Likewise.
21191 (iwmmxt_wmiawbtn): Likewise.
21192 (iwmmxt_wmiawtbn): Likewise.
21193 (iwmmxt_wmiawttn): Likewise.
21194 (iwmmxt_wmerge): Likewise.
21195 (iwmmxt_tandc<mode>3): Likewise.
21196 (iwmmxt_torc<mode>3): Likewise.
21197 (iwmmxt_torvsc<mode>3): Likewise.
21198 (iwmmxt_textrc<mode>3): Likewise.
21199 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
21200 (wmmxt_pack): Likewise.
21201 (wmmxt_mult_c1): Likewise.
21202 (wmmxt_mult_c2): Likewise.
21203 (wmmxt_alu_c1): Likewise.
21204 (wmmxt_alu_c2): Likewise.
21205 (wmmxt_alu_c3): Likewise.
21206 (wmmxt_transfer_c1): Likewise.
21207 (wmmxt_transfer_c2): Likewise.
21208 (wmmxt_transfer_c3): Likewise.
21209 (marvell_f_iwmmxt_wstr): Likewise.
21210 (marvell_f_iwmmxt_wldr): Likewise.
21211
21212 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
21213
21214 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
21215
21216 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
21217
21218 Revert:
21219 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
21220 * lra-constraints.c (need_for_split_p): Check call used hard regs
21221 living through calls.
21222
21223 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
21224 call used regs for call insn.
21225
21226 2013-06-28 Jakub Jelinek <jakub@redhat.com>
21227
21228 PR target/57736
21229 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
21230 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
21231
21232 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
21233
21234 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
21235
21236 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
21237
21238 * lra-constraints.c (need_for_split_p): Check call used hard regs
21239 living through calls.
21240
21241 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
21242
21243 PR target/57744
21244 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
21245 to tie with any other modes. Eliminate Altivec vector mode tests,
21246 since these are a subset of ALTIVEC or VSX vector modes. Simplify
21247 code, to return 0 if testing MODE2 for a condition, if we've
21248 already tested MODE1 for the same condition.
21249
21250 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
21251
21252 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
21253 layout.
21254
21255 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
21256
21257 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
21258 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
21259
21260 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
21261
21262 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
21263 Define.
21264 (aarch64_symbolic_constant_p): Remove.
21265 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
21266 static. Fix line length and white space.
21267 (aarch64_symbolic_constant_p): Remove.
21268 * config/aarch64/predicates.md (aarch64_valid_symref):
21269 Use aarch64_classify_symbol_expression.
21270
21271 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21272
21273 * config/arm/constraints.md (Ts): New constraint.
21274 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
21275 16-bit encodings.
21276 (compare_scc): Use "Ts" constraint for operand 0.
21277 (ior_scc_scc): Likewise.
21278 (and_scc_scc): Likewise.
21279 (and_scc_scc_nodom): Likewise.
21280 (ior_scc_scc_cmp): Likewise for operand 7.
21281 (and_scc_scc_cmp): Likewise.
21282 * config/arm/thumb2.md (thumb2_movsi_insn):
21283 Add alternatives for 16-bit encodings.
21284 (thumb2_movhi_insn): Likewise.
21285 (thumb2_movsicc_insn): Likewise.
21286 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
21287 (thumb2_negscc): Use "Ts" constraint.
21288 Move mvn instruction outside cond_exec block.
21289 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
21290 for 16-bit encodings.
21291
21292 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21293
21294 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
21295 encoding.
21296 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
21297 (mulsi3subsi): Likewise.
21298 (mulsidi3adddi): Likewise.
21299 (mulsidi3_v6): Likewise.
21300 (umulsidi3_v6): Likewise.
21301 (umulsidi3adddi_v6): Likewise.
21302 (smulsi3_highpart_v6): Likewise.
21303 (umulsi3_highpart_v6): Likewise.
21304 (mulhisi3tb): Likewise.
21305 (mulhisi3bt): Likewise.
21306 (mulhisi3tt): Likewise.
21307 (maddhisi4): Likewise.
21308 (maddhisi4tb): Likewise.
21309 (maddhisi4tt): Likewise.
21310 (maddhidi4): Likewise.
21311 (maddhidi4tb): Likewise.
21312 (maddhidi4tt): Likewise.
21313 (zeroextractsi_compare0_scratch): Likewise.
21314 (insv_zero): Likewise.
21315 (insv_t2): Likewise.
21316 (anddi_notzesidi_di): Likewise.
21317 (anddi_notsesidi_di): Likewise.
21318 (andsi_notsi_si): Likewise.
21319 (iordi_zesidi_di): Likewise.
21320 (xordi_zesidi_di): Likewise.
21321 (andsi_iorsi3_notsi): Likewise.
21322 (smax_0): Likewise.
21323 (smax_m1): Likewise.
21324 (smin_0): Likewise.
21325 (not_shiftsi): Likewise.
21326 (unaligned_loadsi): Likewise.
21327 (unaligned_loadhis): Likewise.
21328 (unaligned_loadhiu): Likewise.
21329 (unaligned_storesi): Likewise.
21330 (unaligned_storehi): Likewise.
21331 (extv_reg): Likewise.
21332 (extzv_t2): Likewise.
21333 (divsi3): Likewise.
21334 (udivsi3): Likewise.
21335 (arm_zero_extendhisi2addsi): Likewise.
21336 (arm_zero_extendqisi2addsi): Likewise.
21337 (compareqi_eq0): Likewise.
21338 (arm_extendhisi2_v6): Likewise.
21339 (arm_extendqisi2addsi): Likewise.
21340 (arm_movt): Likewise.
21341 (thumb2_ldrd): Likewise.
21342 (thumb2_ldrd_base): Likewise.
21343 (thumb2_ldrd_base_neg): Likewise.
21344 (thumb2_strd): Likewise.
21345 (thumb2_strd_base): Likewise.
21346 (thumb2_strd_base_neg): Likewise.
21347 (arm_negsi2): Add alternative for 16-bit encoding.
21348 (arm_one_cmplsi2): Likewise.
21349
21350 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21351
21352 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
21353 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
21354 (movdfcc): Likewise.
21355 * config/arm/vfp.md (*thumb2_movsf_vfp):
21356 Disable predication for arm_restrict_it.
21357 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
21358 (*thumb2_movdfcc_vfp): Likewise.
21359 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
21360 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
21361 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
21362 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
21363 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
21364 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
21365 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
21366 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
21367 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
21368 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
21369 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
21370 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
21371 Disable predication for arm_restrict_it.
21372
21373 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
21374
21375 * config/i386/bmiintrin.h (_bextr_u32): New.
21376 (_bextr_u64): Ditto.
21377
21378 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
21379
21380 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
21381 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
21382 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
21383 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
21384 * config/mips/n32-elf.h: ...this new file.
21385
21386 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
21387
21388 PR target/57224
21389 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
21390 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
21391
21392 2013-06-27 Catherine Moore <clm@codesourcery.com>
21393
21394 * config/mips/mips-tables.opt: Regenerate.
21395 * config/mips/mips-cpus.def: Add m14ke and m14kec.
21396 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
21397 * doc/invoke.texi: Add -m14kc.
21398
21399 2013-06-27 Jakub Jelinek <jakub@redhat.com>
21400
21401 PR target/57623
21402 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
21403 constraints of operand 1 and 2.
21404
21405 PR target/57623
21406 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
21407 to match RTL canonicalization. Swap predicates and
21408 constraints of operand 1 and 2.
21409
21410 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
21411
21412 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
21413 Process OP_INOUT regs for splitting too.
21414
21415 2013-06-27 Jakub Jelinek <jakub@redhat.com>
21416
21417 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
21418 decl before the loop, initialize to NULL.
21419 (vectorizable_load): Initialize ptr_incr to NULL.
21420
21421 2013-06-27 Martin Jambor <mjambor@suse.cz>
21422
21423 PR lto/57208
21424 * ipa-ref.h (ipa_maybe_record_reference): Declare.
21425 * ipa-ref.c (ipa_maybe_record_reference): New function.
21426 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
21427 * ipa-cp.c (create_specialized_node): Record potential references from
21428 aggvals.
21429 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
21430
21431 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
21432
21433 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
21434 parameter 'mode' of type 'enum machine_mode mode'; change to pass
21435 'mode' to force_reg.
21436 (aarch64_add_offset): Update calls to aarch64_force_temporary.
21437 (aarch64_expand_mov_immediate): Likewise.
21438
21439 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
21440
21441 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
21442 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
21443
21444 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21445
21446 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
21447 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
21448 (struct machine_function): Add tbegin_p.
21449 (s390_canonicalize_comparison): Fold CC mode compares to
21450 conditional jump if possible.
21451 (s390_emit_jump): Return the emitted jump.
21452 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
21453 Handle CCRAWmode compares.
21454 (s390_option_override): Default to -mhtm if available.
21455 (s390_reg_clobbered_rtx): Handle floating point regs as well.
21456 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
21457 FPRs instead of df_regs_ever_live_p.
21458 (s390_optimize_nonescaping_tx): New function.
21459 (s390_init_frame_layout): Extend clobbered_regs array to cover
21460 FPRs as well.
21461 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
21462 (s390_expand_tbegin): New function.
21463 (enum s390_builtin): New enum definition.
21464 (code_for_builtin): New array definition.
21465 (s390_init_builtins): New function.
21466 (s390_expand_builtin): New function.
21467 (TARGET_INIT_BUILTINS): Define.
21468 (TARGET_EXPAND_BUILTIN): Define.
21469 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
21470 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
21471 (s390_alc_comparison): Likewise.
21472 * config/s390/s390-modes.def: Add CCRAWmode.
21473 * config/s390/s390.h (processor_flags): Add PF_TX.
21474 (TARGET_CPU_HTM): Define macro.
21475 (TARGET_HTM): Define macro.
21476 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
21477 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
21478 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
21479 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
21480 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
21481 (TBEGIN_MASK, TBEGINC_MASK): New constants.
21482 ("*cc_to_int"): Move up.
21483 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
21484 constants other than 0.
21485 ("*ccraw_to_int"): New insn and splitter definition.
21486 ("tbegin", "tbegin_nofloat", "tbegin_retry")
21487 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
21488 ("tx_assist"): New expander.
21489 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
21490 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
21491 * config/s390/s390.opt: Add -mhtm option.
21492 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
21493 * config/s390/htmxlintrin.h: New file.
21494 * config/s390/htmintrin.h: New file.
21495 * config/s390/s390intrin.h: New file.
21496 * doc/extend.texi: Document htm builtins.
21497 * config.gcc: Add the new header files to extra_headers.
21498
21499 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
21500
21501 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
21502 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
21503
21504 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21505 Pat Haugen <pthaugen@us.ibm.com>
21506 Peter Bergner <bergner@vnet.ibm.com>
21507
21508 * config/rs6000/power8.md: New.
21509 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
21510 setting for power8 entry.
21511 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
21512 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
21513 test for Power4/Power5 only.
21514 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
21515 support.
21516 (force_new_group): Adjust comment.
21517 * config/rs6000/rs6000.md: Include power8.md.
21518
21519 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
21520
21521 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
21522 * config/arm/arm-protos.h (arm_max_conditional_execute): New
21523 declaration.
21524 (tune_params): Update comment.
21525 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
21526 (arm_max_conditional_execute): New function.
21527 (thumb2_final_prescan_insn): Use max_insn_skipped and
21528 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
21529
21530 2013-06-25 Jakub Jelinek <jakub@redhat.com>
21531
21532 PR tree-optimization/57705
21533 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
21534 SSA_NAME step, provided that it is not defined inside the loop.
21535 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
21536 (get_initial_def_for_induction): Handle SSA_NAME IV step.
21537
21538 2013-06-25 Martin Jambor <mjambor@suse.cz>
21539
21540 PR middle-end/57670
21541 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
21542 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
21543 calls in the dump.
21544 (ipa_note_param_call): Initialize member_ptr flag.
21545 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
21546 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
21547 (ipa_write_indirect_edge_info): Stream member_ptr flag.
21548 (ipa_read_indirect_edge_info): Likewise.
21549
21550 2013-06-25 Richard Biener <rguenther@suse.de>
21551
21552 PR middle-end/56977
21553 * passes.c (init_optimization_passes): Move pass_fold_builtins
21554 and pass_dce earlier with -Og.
21555
21556 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
21557
21558 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
21559 <BIT_FIELD_REF>: Remove trailing TAB.
21560 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
21561 remove blank line.
21562
21563 2013-06-24 Martin Jambor <mjambor@suse.cz>
21564
21565 PR tree-optimization/57358
21566 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
21567 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
21568 (ipa_analyze_params_uses): Generate pessimistic info when true.
21569
21570 2013-06-24 Martin Jambor <mjambor@suse.cz>
21571
21572 PR tree-optimization/57539
21573 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
21574 global.inlined_to of the new node to it. All callers changed.
21575 * ipa-inline-transform.c (clone_inlined_nodes): New variable
21576 inlining_into, pass it to cgraph_clone_node.
21577 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
21578 ipa_free_edge_args_substructures.
21579 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
21580 rdesc linked list. Do not assert rdesc edges have inlined caller.
21581 Assert we have found an rdesc in the rdesc list.
21582
21583 2013-06-24 Richard Biener <rguenther@suse.de>
21584
21585 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
21586 (pointer_set_lookup): Declare.
21587 (class pointer_map): New template class implementing a
21588 generic pointer to T map.
21589 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
21590 pointer_map<T>::contains, pointer_map<T>::insert,
21591 pointer_map<T>::traverse): New functions.
21592 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
21593 (pointer_set_lookup): New function.
21594 (pointer_set_contains): Use pointer_set_lookup.
21595 (pointer_set_insert): Likewise.
21596 (insert_aux): Remove.
21597 (struct pointer_map_t): Embed a pointer_set_t.
21598 (pointer_map_create): Adjust.
21599 (pointer_map_destroy): Likewise.
21600 (pointer_map_contains): Likewise.
21601 (pointer_map_insert): Likewise.
21602 (pointer_map_traverse): Likewise.
21603 * tree-streamer.h (struct streamer_tree_cache_d): Use a
21604 pointer_map<unsigned> instead of a pointer_map_t.
21605 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
21606 (streamer_tree_cache_lookup): Likewise.
21607 (streamer_tree_cache_create): Likewise.
21608 (streamer_tree_cache_delete): Likewise.
21609 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
21610 pointer_map<unsigned> instead of a pointer_map_t.
21611 (lto_init_tree_ref_encoder): Adjust.
21612 (lto_destroy_tree_ref_encoder): Likewise.
21613 * lto-section-out.c (lto_output_decl_index): Likewise.
21614 (lto_record_function_out_decl_state): Likewise.
21615 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
21616
21617 2013-06-24 Richard Biener <rguenther@suse.de>
21618
21619 PR tree-optimization/57488
21620 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
21621
21622 2013-06-24 Alan Modra <amodra@gmail.com>
21623
21624 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
21625 (gen_easy_altivec_constant): Likewise.
21626 * config/rs6000/predicates.md (easy_vector_constant_add_self,
21627 easy_vector_constant_msb): Likewise.
21628
21629 2013-06-23 Jakub Jelinek <jakub@redhat.com>
21630
21631 PR target/57688
21632 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
21633 add missing return true.
21634
21635 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
21636
21637 PR target/52483
21638 * config/sh/predicates.md (general_extend_operand): Invoke
21639 general_movsrc_operand for memory operands.
21640 (general_movsrc_operand): Allow reg+reg addressing, do not use
21641 general_operand for memory operands.
21642
21643 2013-06-23 Sriraman Tallam <tmsriram@google.com>
21644
21645 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
21646 when current target options does not apply.
21647 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
21648 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
21649 * config/i386/bmiintrin.h: Pass appropriate target
21650 attributes to header.
21651 * config/i386/mmintrin.h: Ditto.
21652 * config/i386/nmmintrin.h: Ditto.
21653 * config/i386/avx2intrin.h: Ditto.
21654 * config/i386/fxsrintrin.h: Ditto.
21655 * config/i386/tbmintrin.h: Ditto.
21656 * config/i386/xsaveintrin.h: Ditto.
21657 * config/i386/f16cintrin.h: Ditto.
21658 * config/i386/xtestintrin.h: Ditto.
21659 * config/i386/xsaveoptintrin.h: Ditto.
21660 * config/i386/bmi2intrin.h: Ditto.
21661 * config/i386/lzcntintrin.h: Ditto.
21662 * config/i386/smmintrin.h: Ditto.
21663 * config/i386/wmmintrin.h: Ditto.
21664 * config/i386/x86intrin.h: Remove all header include guards.
21665 * config/i386/prfchwintrin.h: Ditto.
21666 * config/i386/pmmintrin.h: Ditto.
21667 * config/i386/tmmintrin.h: Ditto.
21668 * config/i386/xmmintrin.h: Ditto.
21669 * config/i386/popcntintrin.h: Ditto.
21670 * config/i386/rdseedintrin.h: Ditto.
21671 * config/i386/ammintrin.h: Ditto.
21672 * config/i386/emmintrin.h: Ditto.
21673 * config/i386/immintrin.h: Remove all header include guards.
21674 * config/i386/fma4intrin.h: Ditto.
21675 * config/i386/lwpintrin.h: Ditto.
21676 * config/i386/xopintrin.h: Ditto.
21677 * config/i386/ia32intrin.h: Ditto.
21678 * config/i386/avxintrin.h: Ditto.
21679 * config/i386/rtmintrin.h: Ditto.
21680 * config/i386/fmaintrin.h: Ditto.
21681 * config/i386/mm3dnow.h: Ditto.
21682
21683 2013-06-22 Sriraman Tallam <tmsriram@google.com>
21684
21685 * common/config/i386/i386-common.c: Handle LZCNT.
21686
21687 2013-06-22 Andi Kleen <ak@linux.intel.com>
21688
21689 * doc/extend.texi: Use __atomic_store_n instead of
21690 __atomic_store in HLE example.
21691
21692 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
21693
21694 * config/sh/sh.c: Remove <cstdlib> workaround.
21695
21696 2013-06-21 Andi Kleen <ak@linux.intel.com>
21697
21698 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
21699
21700 2013-06-21 Andi Kleen <ak@linux.intel.com>
21701
21702 * doc/extend.texi: Document that __atomic_clear and
21703 __atomic_test_and_set should only be used with bool.
21704
21705 2013-06-20 Jan Hubicka <jh@suse.cz>
21706
21707 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
21708 types_same_for_odr.
21709 * tree.c (decls_same_for_odr): New function.
21710 (same_for_edr): New function.
21711 (types_same_for_odr): New function.
21712 (get_binfo_at_offset): Use it.
21713 * tree.h (types_same_for_odr): Declare.
21714
21715 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
21716 Jason Merrill <jason@redhat.com>
21717
21718 * system.h: Include <cstdlib> as well as <stdlib.h>.
21719
21720 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
21721
21722 PR target/57655
21723 * config/i386/i386.c (construct_container): Report error if
21724 long double is used with disabled x87 float returns.
21725
21726 2013-06-20 Jan Hubicka <jh@suse.cz>
21727
21728 * lto-cgraph.c (input_symtab): Do not set cgraph state.
21729
21730 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
21731
21732 PR rtl-optimization/57425
21733 PR rtl-optimization/57569
21734 * alias.c (write_dependence_p): Remove parameters mem_mode and
21735 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
21736 Changed all callers.
21737 (canon_anti_dependence): Get comments and semantics in sync.
21738 Add parameter mem_canonicalized. Changed all callers.
21739 * rtl.h (canon_anti_dependence): Update prototype.
21740
21741 2013-06-20 Richard Biener <rguenther@suse.de>
21742
21743 * data-streamer-in.c (streamer_read_uhwi): Optimize single
21744 byte case, inline streamer_read_uchar and defer section
21745 overrun check.
21746
21747 2013-06-20 Richard Biener <rguenther@suse.de>
21748
21749 PR tree-optimization/57584
21750 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
21751 SSA names into the expanded expression that take part in
21752 abnormal coalescing.
21753
21754 2013-06-19 Sharad Singhai <singhai@google.com>
21755
21756 * gcov.c (print_usage): Handle new option.
21757 (process_args): Ditto.
21758 (get_gcov_intermediate_filename): New function.
21759 (output_intermediate_file): New function.
21760 (output_gcov_file): New function
21761 (generate_results): Handle new option.
21762 (release_function): Relase demangled name.
21763 (read_graph_file): Handle demangled name.
21764 (output_lines): Ditto.
21765 * doc/gcov.texi: Document gcov intermediate format.
21766
21767 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
21768
21769 PR bootstrap/57604
21770 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
21771 (lra_emit_add): Use the functions. Add comment about Y as an
21772 address segment.
21773
21774 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
21775
21776 PR driver/57652
21777 * collect2.c (collect_atexit): New.
21778 (collect_exit): Delete.
21779 (main): Register collect_atexit with atexit.
21780 (collect_wait): Change collect_exit to exit.
21781 (do_wait): Same.
21782 * collect2.h (collect_exit): Delete.
21783 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
21784
21785 2013-06-19 Wei Mi <wmi@google.com>
21786
21787 PR rtl-optimization/57518
21788 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
21789 if regno is used in paradoxical subreg.
21790 (update_equiv_regs): Check pdx_subregs[regno] before
21791 set a reg to be equivalent with a mem.
21792
21793 2013-06-19 Matthias Klose <doko@ubuntu.com>
21794
21795 PR driver/57651
21796 * file-find.h (find_a_file): Add a mode parameter.
21797 * file-find.c (find_a_file): Likewise.
21798 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
21799 with X_OK for the executables.
21800 * collect2.c (main): Call find_a_file with X_OK.
21801
21802 2013-06-19 Steve Ellcey <sellcey@mips.com>
21803
21804 PR target/56942
21805 * config/mips/mips.md (casesi_internal_mips16_<mode>):
21806 Use NEXT_INSN instead of next_real_insn.
21807
21808 2013-06-19 Jan Hubicka <jh@suse.cz>
21809
21810 * cgraph.h (const_value_known_p): Replace by ...
21811 (ctor_for_folding): .. this one.
21812 * cgraphunit.c (process_function_and_variable_attributes): Use it.
21813 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
21814 * expr.c (expand_expr_real_1): Likewise.
21815 (string_constant): Likewise.
21816 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
21817 * ipa.c (process_references): Likewise.
21818 (symtab_remove_unreachable_nodes): Likewise.
21819 * ipa-inline-analysis.c (param_change_prob): Likewise.
21820 * gimple-fold.c (canonicalize_constructor_val): Likewise.
21821 (get_base_constructor): Likwise.
21822 * varpool.c (varpool_remove_node): Likewise.
21823 (varpool_remove_initializer): LIkewise.
21824 (dump_varpool_node): LIkwise.
21825 (const_value_known_p): Rewrite to ...
21826 (ctor_for_folding): ... this one.
21827
21828 2013-06-19 Jakub Jelinek <jakub@redhat.com>
21829
21830 PR driver/57651
21831 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
21832 PERSONALITY in $PATH derived prefixes.
21833
21834 2013-06-19 Jeff Law <law@redhat.com>
21835
21836 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
21837 in comment.
21838
21839 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
21840 (simplify_bitwise_binary): Use it to simpify certain binary ops on
21841 booleans.
21842
21843 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
21844
21845 * config/arm/vfp.md: Move VFP instruction classification documentation
21846 to ...
21847 * config/arm/arm.md: ... here. Update instruction classification
21848 documentation.
21849
21850 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
21851
21852 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
21853 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
21854 pattern. Use more efficient sequences on ARMv5 and Thumb2.
21855
21856 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
21857
21858 PR target/57609
21859 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21860 with NEXT_INSN. Use tablejump_p to check for jump table data
21861 insns.
21862
21863 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
21864
21865 PR c++/56544
21866 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
21867 that now in C++ the value is correct per the C++ standards.
21868
21869 2013-06-19 Richard Biener <rguenther@suse.de>
21870
21871 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
21872 for global context.
21873
21874 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21875
21876 Revert:
21877 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21878
21879 PR target/57609
21880 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21881 with next_active_insn.
21882
21883 2013-06-18 Sriraman Tallam <tmsriram@google.com>
21884
21885 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
21886 functions are inlined during failures to flag an error.
21887 * tree-inline.c (expand_call_inline): Allow the error to be flagged
21888 in early inline pass.
21889
21890 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
21891
21892 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
21893 in comments.
21894
21895 2013-06-18 Julian Brown <julian@codesourcery.com>
21896
21897 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
21898 Permit virtual register pre-reload if !strict.
21899 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
21900 change.
21901 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
21902 prototype.
21903 * config/arm/neon.md (movmisalign<mode>): Use
21904 neon_perm_struct_or_reg_operand instead of
21905 neon_struct_or_register_operand.
21906 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
21907 neon_permissive_struct_operand instead of neon_struct_operand.
21908 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
21909 neon_vector_mem_operand.
21910 * config/arm/predicates.md (neon_struct_operand): Adjust call to
21911 neon_vector_mem_operand.
21912 (neon_permissive_struct_operand): New.
21913 (neon_struct_or_register_operand): Rename to...
21914 (neon_perm_struct_or_reg_operand): This. Adjust call to
21915 neon_vector_mem_operand.
21916
21917 2013-06-18 Richard Biener <rguenther@suse.de>
21918
21919 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
21920 * lto-streamer.h: Include pointer-set.h.
21921 (struct lto_decl_slot): Remove.
21922 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
21923 Remove next_index entry.
21924 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
21925 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
21926 (lto_init_tree_ref_encoder): Adjust.
21927 (lto_destroy_tree_ref_encoder): Likewise.
21928 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
21929 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
21930 (lto_output_decl_index): Adjust.
21931 (lto_new_out_decl_state): Likewise.
21932 (lto_record_function_out_decl_state): Likewise.
21933 * lto-streamer-out.c (copy_function): Likewise.
21934
21935 2013-06-18 Richard Biener <rguenther@suse.de>
21936
21937 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
21938 * cgraphunit.c: Include cfgloop.h.
21939 (init_lowered_empty_function): Initialize the loop tree.
21940 (assemble_thunk): Insert new BBs into loops.
21941
21942 2013-06-18 Richard Biener <rguenther@suse.de>
21943
21944 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
21945 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
21946 the map from cache entry to cache index optional.
21947 (streamer_tree_cache_replace_tree): Adjust accordingly.
21948 (streamer_tree_cache_append): Likewise.
21949 (streamer_tree_cache_delete): Likewise.
21950 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
21951 streamer cache map from cache entry to cache index.
21952 * lto-streamer-out.c (create_output_block): Adjust.
21953
21954 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
21955
21956 * config/arm/arm.md (attribute "insn"): Move multiplication and
21957 division attributes to...
21958 (attribute "type"): ... here. Remove mult.
21959 (attribute "mul32"): New attribute.
21960 (attribute "mul64"): Add umaal.
21961 (*arm_mulsi3): Update attributes.
21962 (*arm_mulsi3_v6): Likewise.
21963 (*thumb_mulsi3): Likewise.
21964 (*thumb_mulsi3_v6): Likewise.
21965 (*mulsi3_compare0): Likewise.
21966 (*mulsi3_compare0_v6): Likewise.
21967 (*mulsi_compare0_scratch): Likewise.
21968 (*mulsi_compare0_scratch_v6): Likewise.
21969 (*mulsi3addsi): Likewise.
21970 (*mulsi3addsi_v6): Likewise.
21971 (*mulsi3addsi_compare0): Likewise.
21972 (*mulsi3addsi_compare0_v6): Likewise.
21973 (*mulsi3addsi_compare0_scratch): Likewise.
21974 (*mulsi3addsi_compare0_scratch_v6): Likewise.
21975 (*mulsi3subsi): Likewise.
21976 (*mulsidi3adddi): Likewise.
21977 (*mulsi3addsi_v6): Likewise.
21978 (*mulsidi3adddi_v6): Likewise.
21979 (*mulsidi3_nov6): Likewise.
21980 (*mulsidi3_v6): Likewise.
21981 (*umulsidi3_nov6): Likewise.
21982 (*umulsidi3_v6): Likewise.
21983 (*umulsidi3adddi): Likewise.
21984 (*umulsidi3adddi_v6): Likewise.
21985 (*smulsi3_highpart_nov6): Likewise.
21986 (*smulsi3_highpart_v6): Likewise.
21987 (*umulsi3_highpart_nov6): Likewise.
21988 (*umulsi3_highpart_v6): Likewise.
21989 (mulhisi3): Likewise.
21990 (*mulhisi3tb): Likewise.
21991 (*mulhisi3bt): Likewise.
21992 (*mulhisi3tt): Likewise.
21993 (maddhisi4): Likewise.
21994 (*maddhisi4tb): Likewise.
21995 (*maddhisi4tt): Likewise.
21996 (maddhidi4): Likewise.
21997 (*maddhidi4tb): Likewise.
21998 (*maddhidi4tt): Likewise.
21999 (divsi3): Likewise.
22000 (udivsi3): Likewise.
22001 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
22002 (thumb2_mulsi_short_compare0): Likewise.
22003 (thumb2_mulsi_short_compare0_scratch): Likewise.
22004 * config/arm/arm1020e.md (1020mult1): Update attribute change.
22005 (1020mult2): Likewise.
22006 (1020mult3): Likewise.
22007 (1020mult4): Likewise.
22008 (1020mult5): Likewise.
22009 (1020mult6): Likewise.
22010 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
22011 change.
22012 (cortex_a15_mult64): Likewise.
22013 (cortex_a15_sdiv): Likewise.
22014 (cortex_a15_udiv): Likewise.
22015 * config/arm/arm1026ejs.md (mult1): Update attribute change.
22016 (mult2): Likewise.
22017 (mult3): Likewise.
22018 (mult4): Likewise.
22019 (mult5): Likewise.
22020 (mult6): Likewise.
22021 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
22022 (pj4_ir_div): Likewise.
22023 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
22024 (11_mult2): Likewise.
22025 (11_mult3): Likewise.
22026 (11_mult4): Likewise.
22027 (11_mult5): Likewise.
22028 (11_mult6): Likewise.
22029 (11_mult7): Likewise.
22030 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
22031 (cortex_a8_mla): Likewise.
22032 (cortex_a8_mull): Likewise.
22033 (cortex_a8_smulwy): Likewise.
22034 (cortex_a8_smlald): Likewise.
22035 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
22036 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
22037 (cortex_r4_mul_3): Likewise.
22038 (cortex_r4_mla_4): Likewise.
22039 (cortex_r4_mla_3): Likewise.
22040 (cortex_r4_smlald): Likewise.
22041 (cortex_r4_mull): Likewise.
22042 (cortex_r4_sdiv): Likewise.
22043 (cortex_r4_udiv): Likewise.
22044 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
22045 (cortex_a7_idiv): Likewise.
22046 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
22047 (9_mult2): Likewise.
22048 (9_mult3): Likewise.
22049 (9_mult4): Likewise.
22050 (9_mult5): Likewise.
22051 (9_mult6): Likewise.
22052 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
22053 (cortex_a53_sdiv): Likewise.
22054 (cortex_a53_udiv): Likewise.
22055 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
22056 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
22057 (mp626_mult2): Likewise.
22058 (mp626_mult3): Likewise.
22059 (mp626_mult4): Likewise.
22060 * config/arm/fa526.md (526_mult1): Update attribute change.
22061 (526_mult2): Likewise.
22062 * config/arm/arm-generic.md (mult): Update attribute change.
22063 (mult_ldsched_strongarm): Likewise.
22064 (mult_ldsched): Likewise.
22065 (multi_cycle): Likewise.
22066 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
22067 * config/arm/fa606te.md (606te_mult1): Update attribute change.
22068 (606te_mult2): Likewise.
22069 (606te_mult3): Likewise.
22070 (606te_mult4): Likewise.
22071 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
22072 (cortex_a9_mac16): Likewise.
22073 (cortex_a9_multiply): Likewise.
22074 (cortex_a9_mac): Likewise.
22075 (cortex_a9_multiply_long): Likewise.
22076 * config/arm/fa626te.md (626te_mult1): Update attribute change.
22077 (626te_mult2): Likewise.
22078 (626te_mult3): Likewise.
22079 (626te_mult4): Likewise.
22080
22081 2013-06-18 Richard Biener <rguenther@suse.de>
22082
22083 PR lto/57334
22084 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
22085
22086 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22087
22088 PR target/57609
22089 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22090 with next_active_insn.
22091
22092 2013-06-18 Alan Modra <amodra@gmail.com>
22093
22094 * config/rs6000/rs6000.h (enum data_align): New.
22095 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
22096 (DATA_ABI_ALIGNMENT): Define.
22097 (CONSTANT_ALIGNMENT): Correct comment.
22098 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
22099 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
22100
22101 2013-06-17 David Malcolm <dmalcolm@redhat.com>
22102
22103 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
22104 ATTRIBUTE_UNUSED marking.
22105
22106 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
22107
22108 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
22109 alternative and update.
22110 (aarch64_dup_lanedi): Delete.
22111 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
22112 * config/aarch64/aarch64-simd-builtins.def: Update.
22113
22114 2013-06-17 Richard Biener <rguenther@suse.de>
22115
22116 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
22117 (lto_input_scc): Declare.
22118 (lto_input_tree_1): Likewise.
22119 (struct lto_stats_d): Add num_tree_bodies_output and
22120 num_pickle_refs_output.
22121 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
22122 (lto_read_tree_1): Split out from ...
22123 (lto_read_tree): ... this.
22124 (lto_input_scc): New function.
22125 (lto_input_tree_1): Split out from ...
22126 (lto_input_tree): ... this. Handle LTO_tree_scc.
22127 (lto_data_in_create): Create the streamer cache without hashes.
22128 * lto-streamer-out.c (create_output_block): Create the streamer
22129 cache with hashes when not doing WPA.
22130 (lto_write_tree_1): Split out from ...
22131 (lto_write_tree): ... this.
22132 (get_symbol_initial_value): New function.
22133 (lto_output_tree_1): Split out from ...
22134 (lto_output_tree): ... this. Write trees as series of SCCs
22135 using a DFS walk via DFS_write_tree.
22136 (struct sccs, struct scc_entry): New types.
22137 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
22138 (DFS_write_tree_body): New function.
22139 (DFS_write_tree): Likewise.
22140 (hash_tree): Likewise.
22141 (scc_entry_compare): Likewise.
22142 (hash_scc): Likewise.
22143 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
22144 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
22145 TREE_CHAIN as regular reference.
22146 (streamer_read_integer_cst): Remove.
22147 (streamer_get_pickled_tree): Adjust.
22148 * tree-streamer-out.c (streamer_write_chain): Disable streaming
22149 of DECL_EXTERNALs in BLOCK_VARS for now.
22150 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
22151 reference.
22152 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
22153 Add hash value argument and record that if hashes are recorded
22154 in the cache.
22155 (streamer_tree_cache_insert_1): Adjust.
22156 (streamer_tree_cache_insert): Likewise.
22157 (streamer_tree_cache_insert_at): Rename to ...
22158 (streamer_tree_cache_replace_tree): ... this and adjust.
22159 (streamer_tree_cache_append): Adjust.
22160 (record_common_node): Likewise.
22161 (streamer_tree_cache_create): Add argument whether to
22162 record hash values together with trees.
22163 (streamer_tree_cache_delete): Adjust.
22164 * tree-streamer.h (struct streamer_tree_cache_d): Add
22165 vector of hashes.
22166 (streamer_read_integer_cst): Remove.
22167 (streamer_tree_cache_insert): Adjust.
22168 (streamer_tree_cache_append): Likewise.
22169 (streamer_tree_cache_insert_at): Rename to ...
22170 (streamer_tree_cache_replace_tree): ... this and adjust.
22171 (streamer_tree_cache_create): Add argument whether to record hashes.
22172 (streamer_tree_cache_get): Rename to ...
22173 (streamer_tree_cache_get_tree): ... this.
22174 (streamer_tree_cache_get_hash): New function.
22175 * tree.c (cache_integer_cst): New function.
22176 * tree.h (cache_integer_cst): Declare.
22177 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
22178 * lto-symtab.c (lto_varpool_replace_node): Only release
22179 DECL_INITIAL of non-prevailing decls.
22180 * varpool.c (varpool_remove_initializer): Do not release
22181 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
22182
22183 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
22184
22185 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
22186 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
22187 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
22188 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
22189 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
22190 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
22191 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
22192 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
22193 instead of TARGET_64BIT.
22194 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
22195 Require ISA_HAS_<D>DIV.
22196
22197 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
22198
22199 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
22200 (mips*-*-linux*): Move default with_llsc setting to where other
22201 defaults are set.
22202 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
22203 with_arch block.
22204 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
22205 Likewise. Remove default with_tune setting. Move default float
22206 setting to its own block. Handle with_llsc in the same block as above.
22207
22208 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
22209
22210 PR rtl-optimization/57425
22211 PR rtl-optimization/57569
22212 * alias.c (write_dependence_p): Add new parameters mem_mode,
22213 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
22214 Changed all callers.
22215 (canon_anti_dependence): New function.
22216 * cse.c (check_dependence): Use canon_anti_dependence.
22217 * cselib.c (cselib_invalidate_mem): Likewise.
22218 * rtl.h (canon_anti_dependence): Declare.
22219
22220 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
22221
22222 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
22223 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
22224 ".set mips3" for 64-bit targets.
22225
22226 2013-06-15 Dehao Chen <dehao@google.com>
22227
22228 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
22229 * gimple-low.c (gimple_check_call_matching_types): Likewise.
22230 (gimple_check_call_args): Likewise.
22231 * value-prof.c (check_ic_target): Likewise.
22232 * ipa-inline.c (early_inliner): Likewise.
22233 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
22234 * cgraph.c (cgraph_create_edge_1): Likewise.
22235 (cgraph_make_edge_direct): Likewise.
22236
22237 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
22238
22239 PR target/57615
22240 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
22241 rs6000_output_move_128bit to handle emitting quad memory
22242 operations. Set attribute length to 8 bytes.
22243
22244 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
22245
22246 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
22247 New pattern.
22248 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
22249 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
22250 (aarch64_<su>mlsl<mode>): Likewise.
22251
22252 2013-06-14 Mike Stump <mikestump@comcast.net>
22253
22254 * Makefile.in (TARGET_H): Add insn-codes.h.
22255
22256 2013-06-14 Alan Modra <amodra@gmail.com>
22257
22258 PR middle-end/57134
22259 PR middle-end/57586
22260 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
22261 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
22262 bitfield expansion when EXPAND_MEMORY.
22263 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
22264
22265 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
22266
22267 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
22268 test for clearing quad memory on 32-bit later.
22269
22270 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
22271
22272 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
22273 (fold_negate_expr): Likewise.
22274 (fold_real_zero_addition_p): Handle vectors.
22275 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
22276
22277 2013-06-14 Alan Modra <amodra@gmail.com>
22278
22279 * varasm.c (force_const_mem): Revert 2013-06-07 change.
22280
22281 2013-06-13 Jan Hubicka <jh@suse.cz>
22282
22283 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
22284 Local comdats are not externally visible.
22285 * symtab.c (dump_symtab_base): Dump externally visible.
22286 (verify_symtab_base): Verify back links in the symtab hash.
22287
22288 2013-06-13 Bin Cheng <bin.cheng@arm.com>
22289
22290 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
22291 CONVERT_EXPR as equal nodes.
22292
22293 2013-06-13 Bin Cheng <bin.cheng@arm.com>
22294
22295 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
22296
22297 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
22298
22299 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
22300 Generalize to complex and vector.
22301 * tree.c (build_all_ones_cst): New function.
22302 * tree.h (build_all_ones_cst): Declare it.
22303
22304 2013-06-13 Alan Modra <amodra@gmail.com>
22305
22306 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
22307 * config/rs6000/rs6000.md (signbittf2): New insn.
22308 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
22309 (abstf2_internal, cmptf_internal2): Likewise.
22310 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
22311
22312 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22313 Pat Haugen <pthaugen@us.ibm.com>
22314 Peter Bergner <bergner@vnet.ibm.com>
22315
22316 * config/rs6000/rs6000.c (emit_load_locked): Add support for
22317 power8 byte, half-word, and quad-word atomic instructions.
22318 (emit_store_conditional): Likewise.
22319 (rs6000_expand_atomic_compare_and_swap): Likewise.
22320 (rs6000_expand_atomic_op): Likewise.
22321
22322 * config/rs6000/sync.md (larx): Add new modes for power8.
22323 (stcx): Likewise.
22324 (AINT): New mode iterator to include TImode as well as normal
22325 integer modes on power8.
22326 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
22327 that VSX registers are not considered. Use AINT mode iterator
22328 instead of INT1 to allow inclusion of quad word atomic operations
22329 on power8.
22330 (load_locked<mode>): Likewise.
22331 (store_conditional<mode>): Likewise.
22332 (atomic_compare_and_swap<mode>): Likewise.
22333 (atomic_exchange<mode>): Likewise.
22334 (atomic_nand<mode>): Likewise.
22335 (atomic_fetch_<fetchop_name><mode>): Likewise.
22336 (atomic_nand_fetch<mode>): Likewise.
22337 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
22338 each type.
22339 (ATOMIC): On power8, add QImode, HImode modes.
22340 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
22341 modes that promote to SImode.
22342 (load_lockedti): Convert TImode arguments to PTImode, so that we
22343 get a guaranteed even/odd register pair.
22344 (load_lockedpti): Likewise.
22345 (store_conditionalti): Likewise.
22346 (store_conditionalpti): Likewise.
22347
22348 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
22349 atomic load/store instructions.
22350 (HSI): Likewise.
22351
22352 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
22353
22354 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
22355 loads.
22356 (insn_count): New attribute, with most cases extracted from...
22357 (length): ...here. Redefine most cases in terms of insn_count.
22358 (single_insn): Delete.
22359 (can_delay): Use insn_count to check for single instructions.
22360 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
22361 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
22362 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
22363 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
22364 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
22365 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
22366 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
22367 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
22368 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
22369 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
22370 rather than "length".
22371 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
22372 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
22373 Use "insn_count" rather than "length".
22374 * config/mips/mips-dsp.md
22375 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
22376 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
22377 length attributes.
22378
22379 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
22380
22381 PR tree-optimization/57361
22382 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
22383
22384 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
22385
22386 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
22387 to split.
22388 (aarch64_simd_combine<mode>): New instruction expansion.
22389 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
22390 function prototype.
22391 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
22392 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
22393
22394 2013-06-12 Jan Hubicka <jh@suse.cz>
22395
22396 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
22397 decl has when in streaming stage.
22398 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
22399 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
22400
22401 2013-06-12 Roland Stigge <stigge@antcom.de>
22402
22403 PR target/57578
22404 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
22405
22406 2013-06-12 Jakub Jelinek <jakub@redhat.com>
22407
22408 PR tree-optimization/57537
22409 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
22410 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
22411
22412 2013-06-12 Richard Biener <rguenther@suse.de>
22413
22414 * data-streamer.h (streamer_write_char_stream): CSE
22415 obs->current_pointer.
22416 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
22417 streamer_write_char_stream manually and optimize the resulting loop.
22418 (streamer_write_hwi_stream): Likewise.
22419
22420 2013-06-12 Jan Hubicka <jh@suse.cz>
22421
22422 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
22423 * cgraph.h (varpool_create_empty_node): Declare.
22424 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
22425 duplicated nodes.
22426 * symtab.c (symtab_unregister_node): Be lax about missin entries
22427 in node hash.
22428 (symtab_get_node): Update comment.
22429 * varpool.c (varpool_create_empty_node): Break out from ...
22430 (varpool_node_for_decl): ... here.
22431 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
22432
22433 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
22434
22435 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
22436 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
22437 part. Use straight-line flow at the end.
22438 <COMPONENT_REF>: Remove superfluous else.
22439 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
22440
22441 2013-06-12 Jakub Jelinek <jakub@redhat.com>
22442
22443 PR target/56564
22444 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
22445 target hook even for !TREE_PUBLIC decls. If no resolution info
22446 is available, return false for common and external decls.
22447
22448 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22449
22450 * config/rl78/constraints.md (U): New constraint.
22451 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
22452 valloc attribute.
22453
22454 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22455
22456 PR target/57589
22457 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
22458 to allow returning address to AT_PLATFORM name.
22459
22460 2013-06-11 Jan Hubicka <jh@suse.cz>
22461
22462 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
22463 * cgraph.h (symtab_node_base): Add weakref flag.
22464 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
22465 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
22466 (output_weakrefs): Use weakref flag.
22467 * fold-const.c (simple_operand_p): Handle WEAK.
22468 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
22469 * ipa.c (varpool_externally_visible_p): Drop weakref.
22470 (function_and_variable_visibility): Update comment; fix weakref
22471 sanity checks; do not clear DECL_WEAK on them.
22472 * lto-cgraph.c (lto_output_node): update.
22473 (lto_output_varpool_node): Update.
22474 (input_overwrite_node): Update.
22475 (input_node): Update.
22476 (input_varpool_node): Update.
22477 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
22478 (lto_symtab_merge_symbols): Add sanity check.
22479 (lto_symtab_prevailing_decl): Do not special case weakrefs.
22480 * passes.c (rest_of_decl_compilation): Set static flag, too.
22481 * symtab.c (dump_symtab_base): Dump weakref.
22482 (verify_symtab_base): Sanity check weakrefs.
22483 (symtab_make_decl_local): Remove duplicated code.
22484 (symtab_alias_ultimate_target): Simplify.
22485 * varpool.c (varpool_create_variable_alias): Set weakref flag.
22486
22487 2013-06-11 Tom de Vries <tom@codesourcery.com>
22488
22489 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
22490 sequence_vect == NULL.
22491
22492 2013-06-11 DJ Delorie <dj@redhat.com>
22493
22494 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
22495 (rl78_unwind_word_mode): New.
22496
22497 2013-06-11 David Malcolm <dmalcolm@redhat.com>
22498
22499 * final.c (debug_prefix_maps): Make static.
22500
22501 2013-06-11 David Malcolm <dmalcolm@redhat.com>
22502
22503 * function.c (initial_trampoline): Remove stray copy.
22504
22505 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
22506
22507 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
22508
22509 2013-06-11 Martin Jambor <mjambor@suse.cz>
22510
22511 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
22512 within bounds at the beginning of the function.
22513
22514 2013-06-11 Alan Modra <amodra@gmail.com>
22515
22516 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
22517 reporting.
22518 (get_named_section): Don't NULL !DECL_P decl.
22519
22520 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
22521
22522 * doc/invoke.texi (core-avx2): Document.
22523 (slm): Likewise.
22524 (atom): Updated with MOVBE.
22525
22526 2013-06-11 Richard Biener <rguenther@suse.de>
22527
22528 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
22529
22530 2013-06-11 Anton Blanchard <anton@samba.org>
22531
22532 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
22533 correct shift value in little-endian mode.
22534
22535 2013-06-11 Jakub Jelinek <jakub@redhat.com>
22536
22537 PR target/56564
22538 * varasm.c (get_variable_align): Move #endif to the right place.
22539
22540 2013-06-10 Cary Coutant <ccoutant@google.com>
22541
22542 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
22543 for hash so that hash table traversal order is deterministic.
22544
22545 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
22546 Pat Haugen <pthaugen@us.ibm.com>
22547 Peter Bergner <bergner@vnet.ibm.com>
22548
22549 * config/rs6000/vector.md (GPR move splitter): Do not split moves
22550 of vectors in GPRS if they are direct moves or quad word load or
22551 store moves.
22552
22553 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
22554 declaration.
22555 (direct_move_p): Likewise.
22556 (quad_load_store_p): Likewise.
22557
22558 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
22559 classes into bins based on the physical register type.
22560 (reg_class_to_reg_type): Likewise.
22561 (IS_STD_REG_TYPE): Likewise.
22562 (IS_FP_VECT_REG_TYPE): Likewise.
22563 (reload_fpr_gpr): Arrays to determine what insn to use if we can
22564 use direct move instructions.
22565 (reload_gpr_vsx): Likewise.
22566 (reload_vsx_gpr): Likewise.
22567 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
22568 information that is a simplification of register classes. Also
22569 precalculate direct move reload helpers.
22570 (direct_move_p): New function to return true if the operation can
22571 be done as a direct move instruciton.
22572 (quad_load_store_p): New function to return true if the operation
22573 is a quad memory operation.
22574 (rs6000_legitimize_address): If quad memory, only allow register
22575 indirect for TImode addresses.
22576 (rs6000_legitimate_address_p): Likewise.
22577 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
22578 (rs6000_reload_register_type): Likewise.
22579 (register_to_reg_type): Return register type.
22580 (rs6000_secondary_reload_simple_move): New helper function for
22581 secondary reload and secondary memory needed to identify anything
22582 that is a simple move, and does not need reloading.
22583 (rs6000_secondary_reload_direct_move): New helper function for
22584 secondary reload to identify cases that can be done with several
22585 instructions via the direct move instructions.
22586 (rs6000_secondary_reload_move): New helper function for secondary
22587 reload to identify moves between register types that can be done.
22588 (rs6000_secondary_reload): Add support for quad memory operations
22589 and for direct move.
22590 (rs6000_secondary_memory_needed): Likewise.
22591 (rs6000_debug_secondary_memory_needed): Change argument names.
22592 (rs6000_output_move_128bit): New function to return the move to
22593 use for 128-bit moves, including knowing about the various
22594 limitations of quad memory operations.
22595
22596 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
22597 memory operations. call rs6000_output_move_128bit for the actual
22598 instruciton(s) to generate.
22599 (vsx_movti_64bit): Likewise.
22600
22601 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
22602 (UNSPEC_P8V_MTVSRWZ): Likewise.
22603 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
22604 (UNSPEC_P8V_MTVSRD): Likewise.
22605 (UNSPEC_P8V_XXPERMDI): Likewise.
22606 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
22607 (UNSPEC_FUSION_GPR): Likewise.
22608 (FMOVE128_GPR): New iterator for direct move.
22609 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
22610 (f32_sv): Likewise.
22611 (f32_dm): Likewise.
22612 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
22613 loads and direct move instructions.
22614 (zero_extendsidi2_lfiwzx): Likewise.
22615 (extendsidi2_lfiwax): Likewise.
22616 (extendsidi2_nocell): Likewise.
22617 (floatsi<mode>2_lfiwax): Likewise.
22618 (lfiwax): Likewise.
22619 (floatunssi<mode>2_lfiwzx): Likewise.
22620 (lfiwzx): Likewise.
22621 (fix_trunc<mode>_stfiwx): Likewise.
22622 (fixuns_trunc<mode>_stfiwx): Likewise.
22623 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
22624 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
22625 (parity<mode>2_cmpb): Set length/type attr.
22626 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
22627 for 'mr.' to fast_compare.
22628 (bpermd_<mode>): Change type attr to popcnt.
22629 (p8_fmrgow_<mode>): New insns for power8 direct move support.
22630 (p8_mtvsrwz_1): Likewise.
22631 (p8_mtvsrwz_2): Likewise.
22632 (reload_fpr_from_gpr<mode>): Likewise.
22633 (p8_mtvsrd_1): Likewise.
22634 (p8_mtvsrd_2): Likewise.
22635 (p8_xxpermdi_<mode>): Likewise.
22636 (reload_vsx_from_gpr<mode>): Likewise.
22637 (reload_vsx_from_gprsf): Likewise.
22638 (p8_mfvsrd_3_<mode>): LIkewise.
22639 (reload_gpr_from_vsx<mode>): Likewise.
22640 (reload_gpr_from_vsxsf): Likewise.
22641 (p8_mfvsrd_4_disf): Likewise.
22642 (multi-word GPR splits): Do not split direct moves or quad memory
22643 operations.
22644
22645 2013-06-10 David Malcolm <dmalcolm@redhat.com>
22646
22647 * tree-into-ssa.c (interesting_blocks): Make static.
22648
22649 2013-06-10 Jakub Jelinek <jakub@redhat.com>
22650
22651 PR target/56564
22652 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
22653 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
22654 Use DATA_ABI_ALIGNMENT for that case instead if defined.
22655 (get_variable_align): New function.
22656 (get_variable_section, emit_bss, emit_common,
22657 assemble_variable_contents, place_block_symbol): Use
22658 get_variable_align instead of DECL_ALIGN.
22659 (assemble_noswitch_variable): Add align argument, use it
22660 instead of DECL_ALIGN.
22661 (assemble_variable): Adjust caller. Use get_variable_align
22662 instead of DECL_ALIGN.
22663 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
22664 caller.
22665 (DATA_ABI_ALIGNMENT): Define.
22666 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
22667 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
22668 opt is false, only return the psABI mandated alignment increase.
22669 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
22670 (DATA_ABI_ALIGNMENT): ... this.
22671 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
22672 (DATA_ABI_ALIGNMENT): ... this.
22673 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
22674 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
22675 (DATA_ABI_ALIGNMENT): ... this.
22676 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
22677 * doc/tm.texi: Regenerated.
22678
22679 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
22680
22681 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
22682 cmp_code to construct REG_EQUAL note.
22683
22684 2013-06-09 Jakub Jelinek <jakub@redhat.com>
22685
22686 PR target/57568
22687 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
22688 that operands[2] doesn't overlap with operands[0].
22689
22690 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
22691 Jan Hubicka <jh@suse.cz>
22692
22693 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
22694 hack to mark symbols as used.
22695
22696 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
22697
22698 PR rtl-optimization/57559
22699 * lra-constraints.c (process_alt_operands): Don't discourage
22700 memory with known offset for offsetable memory constraint.
22701 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
22702
22703 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
22704
22705 * varasm.c (struct oc_local_state): Reorder fields.
22706 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
22707 and adjust accordingly.
22708 (output_constructor): Reorder initialization code and adjust call to
22709 output_constructor_bitfield.
22710
22711 2013-06-07 Jan Hubicka <jh@suse.cz>
22712
22713 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
22714
22715 2013-06-07 David Malcolm <dmalcolm@redhat.com>
22716
22717 * tree-object-size.c (unknown): Make const.
22718
22719 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22720
22721 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
22722 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
22723 for last alternative in the cpu_facility attribute.
22724
22725 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22726
22727 PR target/56315
22728 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
22729 (xordi3): Change operand 2 constraint to arm_xordi_operand.
22730 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
22731 * config/arm/constraints.md (Dg): New constraint.
22732 * config/arm/neon.md (xordi3_neon): Remove.
22733 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
22734 * config/arm/predicates.md (arm_xordi_operand): New predicate.
22735
22736 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22737
22738 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
22739 Clean up alternatives.
22740
22741 2013-06-07 Alan Modra <amodra@gmail.com>
22742
22743 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
22744 va_list_gpr_size.
22745
22746 2013-06-07 Alan Modra <amodra@gmail.com>
22747
22748 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
22749
22750 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22751
22752 * config/arm/constraints.md (Df): New constraint.
22753 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
22754 Correct length attribute for last two alternatives.
22755
22756 2013-06-07 Alan Modra <amodra@gmail.com>
22757
22758 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22759 override user -mfp-in-toc.
22760 (offsettable_ok_by_alignment): Consider just the current access
22761 rather than the whole object, unless BLKmode. Handle
22762 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
22763 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
22764 for -mcmodel=medium.
22765 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
22766 override user -mfp-in-toc or -msum-in-toc. Default to
22767 -mno-fp-in-toc for -mcmodel=medium.
22768
22769 2013-06-06 DJ Delorie <dj@redhat.com>
22770
22771 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
22772 TARGET_VALID_POINTER_MODE.
22773
22774 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22775 Pat Haugen <pthaugen@us.ibm.com>
22776 Peter Bergner <bergner@vnet.ibm.com>
22777
22778 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22779 Document new power8 builtins.
22780
22781 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
22782 condition code register, to allow 128-bit logical operations to be
22783 done in the VSX or GPR registers.
22784 (nor<mode>3): Use the canonical form for nor.
22785 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
22786 vclz*, and vpopcnt* vector instructions.
22787 (nand<mode>3): Likewise.
22788 (orc<mode>3): Likewise.
22789 (clz<mode>2): LIkewise.
22790 (popcount<mode>2): Likewise.
22791
22792 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
22793 that only the GPRs are recognized.
22794
22795 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22796 support for new power8 builtins.
22797
22798 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
22799 builtin functions.
22800 (xscvdpspn): Likewise.
22801 (vclz): Likewise.
22802 (vclzb): Likewise.
22803 (vclzh): Likewise.
22804 (vclzw): Likewise.
22805 (vclzd): Likewise.
22806 (vpopcnt): Likewise.
22807 (vpopcntb): Likewise.
22808 (vpopcnth): Likewise.
22809 (vpopcntw): Likewise.
22810 (vpopcntd): Likewise.
22811 (vgbbd): Likewise.
22812 (vmrgew): Likewise.
22813 (vmrgow): Likewise.
22814 (eqv): Likewise.
22815 (eqv_v16qi3): Likewise.
22816 (eqv_v8hi3): Likewise.
22817 (eqv_v4si3): Likewise.
22818 (eqv_v2di3): Likewise.
22819 (eqv_v4sf3): Likewise.
22820 (eqv_v2df3): Likewise.
22821 (nand): Likewise.
22822 (nand_v16qi3): Likewise.
22823 (nand_v8hi3): Likewise.
22824 (nand_v4si3): Likewise.
22825 (nand_v2di3): Likewise.
22826 (nand_v4sf3): Likewise.
22827 (nand_v2df3): Likewise.
22828 (orc): Likewise.
22829 (orc_v16qi3): Likewise.
22830 (orc_v8hi3): Likewise.
22831 (orc_v4si3): Likewise.
22832 (orc_v2di3): Likewise.
22833 (orc_v4sf3): Likewise.
22834 (orc_v2df3): Likewise.
22835
22836 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
22837 allow power8 quad mode in 64-bit.
22838 (rs6000_builtin_vectorized_function): Add support to vectorize
22839 ISA 2.07 count leading zeros, population count builtins.
22840 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
22841 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
22842 (builtin_function_type): Add vgbbd builtin function which takes an
22843 unsigned argument.
22844 (altivec_expand_vec_perm_const): Add support for new power8 merge
22845 instructions.
22846
22847 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
22848 that does not include TImdoe for use with 32-bit.
22849 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
22850 instructions.
22851 (UNSPEC_VSX_CVDPSPN): Likewise.
22852 (vsx_xscvdpspn): Likewise.
22853 (vsx_xscvspdpn): Likewise.
22854 (vsx_xscvdpspn_scalar): Likewise.
22855 (vsx_xscvspdpn_directmove): Likewise.
22856 (vsx_and<mode>3): Split logical operations into 32-bit and
22857 64-bit. Add support to do logical operations on TImode as well as
22858 VSX vector types. Allow logical operations to be done in either
22859 VSX registers or in general purpose registers in 64-bit mode. Add
22860 splitters if GPRs were used. For AND, add clobber of CCmode to
22861 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
22862 encoding.
22863 (vsx_and<mode>3_32bit): Likewise.
22864 (vsx_and<mode>3_64bit): Likewise.
22865 (vsx_ior<mode>3): Likewise.
22866 (vsx_ior<mode>3_32bit): Likewise.
22867 (vsx_ior<mode>3_64bit): Likewise.
22868 (vsx_xor<mode>3): Likewise.
22869 (vsx_xor<mode>3_32bit): Likewise.
22870 (vsx_xor<mode>3_64bit): Likewise.
22871 (vsx_one_cmpl<mode>2): Likewise.
22872 (vsx_one_cmpl<mode>2_32bit): Likewise.
22873 (vsx_one_cmpl<mode>2_64bit): Likewise.
22874 (vsx_nor<mode>3): Likewise.
22875 (vsx_nor<mode>3_32bit): Likewise.
22876 (vsx_nor<mode>3_64bit): Likewise.
22877 (vsx_andc<mode>3): Likewise.
22878 (vsx_andc<mode>3_32bit): Likewise.
22879 (vsx_andc<mode>3_64bit): Likewise.
22880 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
22881 and xxlorc instructions.
22882 (vsx_eqv<mode>3_64bit): Likewise.
22883 (vsx_nand<mode>3_32bit): Likewise.
22884 (vsx_nand<mode>3_64bit): Likewise.
22885 (vsx_orc<mode>3_32bit): Likewise.
22886 (vsx_orc<mode>3_64bit): Likewise.
22887
22888 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
22889
22890 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
22891 instruction.
22892 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
22893 (p8_vmrgow): Likewise.
22894 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
22895 GPRs to be split under VSX.
22896 (p8v_clz<mode>2): Add power8 count leading zero support.
22897 (p8v_popcount<mode>2): Add power8 population count support.
22898 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
22899 support.
22900
22901 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
22902 instruction.
22903
22904 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
22905 builtin functions.
22906 (vec_nand): Likewise.
22907 (vec_vclz): Likewise.
22908 (vec_vclzb): Likewise.
22909 (vec_vclzd): Likewise.
22910 (vec_vclzh): Likewise.
22911 (vec_vclzw): Likewise.
22912 (vec_vgbbd): Likewise.
22913 (vec_vmrgew): Likewise.
22914 (vec_vmrgow): Likewise.
22915 (vec_vpopcnt): Likewise.
22916 (vec_vpopcntb): Likewise.
22917 (vec_vpopcntd): Likewise.
22918 (vec_vpopcnth): Likewise.
22919 (vec_vpopcntw): Likewise.
22920
22921 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
22922
22923 PR rtl-optimization/57468
22924 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
22925 spilled pseudos.
22926
22927 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
22928
22929 PR rtl-optimization/57459
22930 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
22931 type when setting live regs.
22932
22933 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
22934
22935 * config/s390/s390.opt (mlra): New option.
22936 * config/s390/s390.c (s390_decompose_address): Check displacement
22937 for all registers for LRA.
22938 (s390_secondary_reload): Don't used secondary reloads for LRA.
22939 (s390_lra_p): New function.
22940 (TARGET_LRA_P): Define.
22941 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
22942 of attribute cpu_facility to zarch for the last alternative.
22943 (*cmpmem_short): Ditto.
22944
22945 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
22946
22947 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
22948 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
22949 (arm_expand_prologue): Likewise.
22950
22951 2013-06-06 Teresa Johnson <tejohnson@google.com>
22952
22953 PR c++/53743
22954 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
22955 as this is now done by redirect_edge_and_branch_force.
22956 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
22957 barriers, and fix interaction with splitting.
22958 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
22959 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
22960 reflect changes made in the routine.
22961 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
22962 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
22963 since this is called in cfglayout mode, and replace partition fixup
22964 with assert as that is now done by force_nonfallthru_and_redirect.
22965 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
22966 already be marked with region crossing note.
22967 (insert_section_boundary_note): Make non-static, gate on flag
22968 has_bb_partition, rewrite to also check for multiple partitions.
22969 (rest_of_handle_reorder_blocks): Remove call to
22970 insert_section_boundary_note, now done later during free_cfg.
22971 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
22972 * bb-reorder.h (insert_section_boundary_note): Declare.
22973 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
22974 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
22975 invoke insert_section_boundary_note.
22976 (try_redirect_by_replacing_jump): Remove unnecessary
22977 check for region crossing note.
22978 (fixup_partition_crossing): New function.
22979 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
22980 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
22981 in non-cfglayout mode.
22982 (force_nonfallthru_and_redirect): Fixup partition boundaries,
22983 remove old code that tried to do this. Emit barrier correctly
22984 when we are in cfglayout mode.
22985 (last_bb_in_partition): New function.
22986 (rtl_split_edge): Correctly fixup partition boundaries.
22987 (commit_one_edge_insertion): Remove old code that tried to
22988 fixup region crossing edge since this is now handled in
22989 split_block, and set up insertion point correctly since
22990 block may now end in a jump.
22991 (verify_hot_cold_block_grouping): Guard against checking when not in
22992 linearized RTL mode.
22993 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
22994 notes.
22995 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
22996 rtl_verify_flow_info, so not called in cfglayout mode.
22997 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
22998 (fixup_reorder_chain): Remove old code that attempted to fixup region
22999 crossing note as this is now handled in force_nonfallthru_and_redirect.
23000 (duplicate_insn_chain): Don't duplicate switch section notes.
23001 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
23002 note.
23003 * basic-block.h (emit_barrier_after_bb): Declare.
23004
23005 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23006
23007 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
23008 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
23009 arm_usatsihi): Adjust alternatives for arm_restrict_it.
23010
23011 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23012
23013 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
23014 where appropriate.
23015 * config/arm/ldmstm.md: Regenerate.
23016
23017 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23018
23019 * config/arm/sync.md (atomic_loaddi_1):
23020 Disable predication for arm_restrict_it.
23021 (arm_load_exclusive<mode>): Likewise.
23022 (arm_load_exclusivesi): Likewise.
23023 (arm_load_exclusivedi): Likewise.
23024 (arm_load_acquire_exclusive<mode>): Likewise.
23025 (arm_load_acquire_exclusivesi): Likewise.
23026 (arm_load_acquire_exclusivedi): Likewise.
23027 (arm_store_exclusive<mode>): Likewise.
23028 (arm_store_exclusive<mode>): Likewise.
23029 (arm_store_release_exclusivedi): Likewise.
23030 (arm_store_release_exclusive<mode>): Likewise.
23031
23032 2013-06-06 Richard Biener <rguenther@suse.de>
23033
23034 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
23035 after LTO_null.
23036 (lto_tag_is_tree_code_p): Adjust.
23037 (lto_tag_is_gimple_code_p): Likewise.
23038 (lto_gimple_code_to_tag): Likewise.
23039 (lto_tag_to_gimple_code): Likewise.
23040 (lto_tree_code_to_tag): Likewise.
23041 (lto_tag_to_tree_code): Likewise.
23042 * data-streamer.h (streamer_write_hwi_in_range): Use
23043 uhwi streaming to stream the normalized range.
23044 (streamer_read_hwi_in_range): Likewise.
23045
23046 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23047
23048 * config/arm/arm.md (enabled_for_depr_it): New attribute.
23049 (predicable_short_it): Likewise.
23050 (predicated): Likewise.
23051 (enabled): Handle above.
23052 (define_cond_exec): Set predicated attribute to yes.
23053
23054 2013-06-05 Mike Stump <mikestump@comcast.net>
23055
23056 * gdbinit.in (__FUNCTION__): Add.
23057
23058 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
23059
23060 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
23061 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
23062
23063 2013-06-05 Jan Hubicka <jh@suse.cz>
23064
23065 * varasm.c (mark_decl_referenced): Revert the removal until targets
23066 are fixed.
23067
23068 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
23069
23070 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
23071 instead of mark_decl_referenced.
23072
23073 2013-06-05 Jan Hubicka <jh@suse.cz>
23074
23075 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
23076 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
23077 and symtab_used_from_object_file_p.
23078 (cgraph_make_node_local_1): Clear forced_by_abi.
23079 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
23080 * cgraph.h (symtab_node_base): Add forced_by_abi.
23081 (decide_is_variable_needed): Remove.
23082 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
23083 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
23084 (decide_is_symbol_needed): ... this one; handle symbols in general;
23085 always analyze virtuals; honnor forced_by_abi.
23086 (cgraph_finalize_function): Update.
23087 (varpool_finalize_decl): Update.
23088 (symbol_defined_and_needed): Remove.
23089 (analyze_functions): Update.
23090 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
23091 output_refs, input_overwrite_node): Handle forced_by_abi.
23092 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
23093 (address_taken_from_non_vtable_p): ... this one.
23094 (comdat_can_be_unshared_p_1): New function.
23095 (cgraph_comdat_can_be_unshared_p): Rename to ...
23096 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
23097 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
23098 (function_and_variable_visibility): Clear forced_by_abi as needed.
23099 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
23100 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
23101 * symtab.c (dump_symtab_base): Dump forced_by_abi.
23102 * varpool.c (decide_is_variable_needed): Remove.
23103
23104 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23105
23106 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
23107 (arm_option_override): Override arm_restrict_it where appropriate.
23108 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
23109 * config/arm/arm.opt (mrestrict-it): New command-line option.
23110 * doc/invoke.texi: Document -mrestrict-it.
23111
23112 2013-06-05 David Malcolm <dmalcolm@redhat.com>
23113
23114 * tsan.c (tsan_atomic_table): Make const.
23115
23116 2013-06-05 Richard Biener <rguenther@suse.de>
23117
23118 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
23119 index associated with the tree we are supposed to replace.
23120 * tree-streamer-out.c (pack_ts_base_value_fields): Output
23121 TREE_ASM_WRITTEN as zero for everything but SSA names.
23122
23123 2013-06-05 David Malcolm <dmalcolm@redhat.com>
23124
23125 * tree-ssa-structalias.c (call_stmt_vars): Make static.
23126
23127 2013-06-04 Jan Hubicka <jh@suse.cz>
23128
23129 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
23130 (input_node, input_varpool_node): Handle correctly external same
23131 body aliases.
23132 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
23133 nodes at ltrans stage.
23134
23135 2013-06-04 Jan Hubicka <jh@suse.cz>
23136
23137 * ipa-inline.c (update_caller_keys): Fix availability test.
23138 (update_callee_keys): Likewise.
23139 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
23140 to follow ELF standard.
23141
23142 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
23143
23144 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
23145 (mips64r5900el-*-elf*): New configurations.
23146 * config/mips/mips-cpus.def (r5900): New processor.
23147 * config/mips/mips-tables.opt: Regenerate.
23148 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
23149 (mips_issue_rate): Handle PROCESSOR_R5900.
23150 (mips_reorg_process_insns): Force reorder mode for the R5900.
23151 * config/mips/mips.h (TARGET_MIPS5900): Define.
23152 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
23153 TARGET_MIPS5900.
23154 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
23155 TARGET_MIPS5900.
23156 * config/mips/mips.md (processor): Add r5900.
23157 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
23158
23159 2013-06-04 Ian Bolton <ian.bolton@arm.com>
23160
23161 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
23162 into function to generate MOVI instruction.
23163 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
23164 (aarch64_preferred_simd_mode): Turn into wrapper.
23165 (aarch64_output_scalar_simd_mov_immediate): New function.
23166 * config/aarch64/aarch64-protos.h: Add prototype for above.
23167
23168 2013-06-04 Ian Bolton <ian.bolton@arm.com>
23169
23170 * config/aarch64/aarch64.c (simd_immediate_info): Remove
23171 element_char member.
23172 (sizetochar): Return signed char.
23173 (aarch64_simd_valid_immediate): Remove elchar and other
23174 unnecessary variables.
23175 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
23176 Calculate element_char as required.
23177 * config/aarch64/aarch64-protos.h: Update and move prototype
23178 for aarch64_output_simd_mov_immediate.
23179 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
23180 Update arguments.
23181
23182 2013-06-04 Ian Bolton <ian.bolton@arm.com>
23183
23184 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
23185 information completed by aarch64_simd_valid_immediate.
23186 (aarch64_legitimate_constant_p): Update arguments.
23187 (aarch64_simd_valid_immediate): Work with struct rather than many
23188 pointers.
23189 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
23190 (aarch64_simd_make_constant): Update arguments.
23191 (aarch64_output_simd_mov_immediate): Work with struct rather than
23192 many pointers. Output immediate directly rather than as operand.
23193 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
23194 Update prototype.
23195 * config/aarch64/constraints.md (Dn): Update arguments.
23196
23197 2013-06-04 Ian Bolton <ian.bolton@arm.com>
23198
23199 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
23200 longer static.
23201 (aarch64_simd_immediate_valid_for_move): Remove.
23202 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
23203 (aarch64_simd_make_constant): Update call.
23204 (aarch64_output_simd_mov_immediate): Update call.
23205 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
23206 Add prototype.
23207 * config/aarch64/constraints.md (Dn): Update call.
23208
23209 2013-06-04 Ian Bolton <ian.bolton@arm.com>
23210
23211 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
23212 return type to bool for prototype.
23213 (aarch64_legitimate_constant_p): Check for true instead of not -1.
23214 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
23215 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
23216
23217 2013-06-04 Catherine Moore <clm@codesourcery.com>
23218
23219 * config/mips/mips.opt (meva): New.
23220 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
23221 (ASM_SPEC): Handle -meva.
23222 * doc/invoke.texi (meva): Document.
23223
23224 2013-06-04 Alan Modra <amodra@gmail.com>
23225
23226 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
23227 constant output.
23228
23229 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23230
23231 * rtl.def: Add extra fourth optional field to define_cond_exec.
23232 * gensupport.c (process_one_cond_exec): Process attributes from
23233 define_cond_exec.
23234 * doc/md.texi: Document fourth field in define_cond_exec.
23235
23236 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
23237
23238 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
23239 out the processing order as in store_bit_field_1.
23240
23241 2013-06-04 Jan Hubicka <jh@suse.cz>
23242
23243 PR middle-end/57500
23244 * cgraphunit.c (cgraph_process_same_body_aliases): Create
23245 non-VAR_DECL node if it does not exist yet.
23246
23247 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
23248
23249 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
23250 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
23251 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
23252 target_cpu_default setting.
23253
23254 2013-06-03 Teresa Johnson <tejohnson@google.com>
23255
23256 * dumpfile.c (opt_info_switch_p): Change -fopt-info
23257 default to -fopt-info=optimized instead of all.
23258 * doc/invoke.texi: Ditto.
23259 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
23260 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
23261 (execute_vect_slp): Emit BB vectorization success under
23262 MSG_OPTIMIZED_LOCATIONS.
23263 * tree-vect-slp.c (vect_slp_transform_bb): Change
23264 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
23265 * tree-vect-loop.c (vect_transform_loop): Ditto.
23266
23267 2013-06-03 Jason Merrill <jason@redhat.com>
23268
23269 PR c++/57415
23270 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23271 Use TARGET_EXPR for C++.
23272
23273 2013-06-03 Jakub Jelinek <jakub@redhat.com>
23274
23275 PR rtl-optimization/57268
23276 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
23277 if DEBUG_INSN_P (insn).
23278
23279 Reapply
23280 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
23281
23282 PR rtl-optimization/57268
23283 * sched-deps.c (sched_analyze_2): Flush dependence lists if
23284 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23285
23286 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
23287
23288 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
23289 (ix86_avoid_lea_for_addr): Likewise.
23290 (exact_dependency_1): Likewise.
23291 (ix86_adjust_cost): Likewise.
23292 (swap_top_of_ready_list): Fix formatting and !reload_completed check
23293 removed.
23294 (do_reorder_for_imul): Fix typo, formatting and
23295 !reload_completed check removed.
23296 (ix86_sched_reorder): Fix typo and formatting.
23297 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
23298 list.
23299
23300 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
23301
23302 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
23303
23304 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
23305
23306 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
23307 <STRING_CST>: Likewise.
23308 <VECTOR_CST>: Likewise.
23309
23310 2013-06-01 Janus Weil <janus@gcc.gnu.org>
23311 Mikael Morin <mikael@gcc.gnu.org>
23312
23313 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
23314 * config.in: Regenerated.
23315 * configure: Regenerated.
23316
23317 2013-06-01 Jan Hubicka <jh@suse.cz>
23318
23319 PR middle-end/57366
23320 * cgraphunit.c (compile): When weakref is not supported,
23321 set up transparent aliases before final output pass.
23322 * varasm.c (assemble_alias): Do not try to do it here.
23323
23324 2013-06-01 Jan Hubicka <jh@suse.cz>
23325
23326 PR middle-end/57467
23327 * passes.c (for_per_function): Skip unanalyzed functions.
23328
23329 2013-06-01 Jan Hubicka <jh@suse.cz>
23330
23331 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
23332 (lto_symtab_merge_symbols_1): ... this one.
23333 (lto_symtab_merge_cgraph_nodes): Rename to ...
23334 (lto_symtab_merge_symbols): ... this one; simplify.
23335 * cgraph.c (same_body_aliases_done): Rename to ...
23336 (cpp_implicit_aliases_done): ... this one.
23337 (cgraph_create_function_alias): Update.
23338 (cgraph_same_body_alias): Update.
23339 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
23340 (verify_edge_corresponds_to_fndecl): Simplify.
23341 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
23342 (cgraph_node): Remove same_body_alias.
23343 (varpool_node): Remove alias_of and extra_name_alias.
23344 (same_body_aliases_done): Rename to ..
23345 (cpp_implicit_aliases_done): ... this one.
23346 (symtab_alias_ultimate_target): Add default parameter.
23347 (symtab_resolve_alias): New function.
23348 (fixup_same_cpp_alias_visibility): Declare.
23349 (cgraph_function_node): Add default parameter.
23350 (cgraph_node_asm_name): Likewise.
23351 (cgraph_function_or_thunk_node): Add default parameter; do
23352 not ICE when it is NULL.
23353 (varpool_variable_node): Likewise.
23354 * tree-emutls.c (create_emultls_var): Update.
23355 (ipa_lower_emutls): Update.
23356 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
23357 (cgraph_reset_node): Reset alias info.
23358 (cgraph_finalize_function): Update.
23359 (fixup_same_cpp_alias_visibility): Move to symtab.c.
23360 (analyze_function): Simplify.
23361 (cgraph_process_same_body_aliases): Simplify.
23362 (analyze_functions): Fixup same body aliases.
23363 (handle_alias_pairs): Simplify.
23364 (assemble_thunk): Update.
23365 (assemble_thunks_and_aliases): Update.
23366 (output_weakrefs): Rewrite.
23367 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
23368 (lto_output_varpool_node): Likewise.
23369 (compute_ltrans_boundary): Remve assert.
23370 (get_alias_symbol): New functoin.
23371 (input_node): Rewrite alias handling.
23372 (input_varpool_node): Likewise.
23373 * ipa-pure-const.c (propagate_pure_const): Fix formating.
23374 * ipa.c (process_references): Handle weakrefs correctly.
23375 (symtab_remove_unreachable_nodes): Likewise.
23376 * trans-mem.c (get_cg_data): Update.
23377 (ipa_tm_create_version_alias): Update.
23378 (ipa_tm_execute): Update.
23379 * symtab.c (dump_symtab_base): Dump aliases.
23380 (verify_symtab_base): Verify aliases.
23381 (symtab_node_availability): New function.
23382 (symtab_alias_ultimate_target): Simplify.
23383 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
23384 handle all the fixup cases.
23385 (symtab_resolve_alias): New function.
23386 * passes.c (ipa_write_summaries): Handle weakrefs.
23387 * varpool.c (varpool_analyze_node): Simplify.
23388 (assemble_aliases): Update.
23389 (varpool_create_variable_alias): Simplify.
23390 (varpool_extra_name_alias): Simplify.
23391 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
23392 (lto_symtab_merge_symbols): ... this one.
23393
23394 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
23395
23396 Revert
23397 PR rtl-optimization/57268
23398 * sched-deps.c (sched_analyze_2): Flush dependence lists if
23399 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23400
23401 2013-06-01 Tobias Burnus <burnus@net-b.de>
23402
23403 Partially reverted:
23404 2013-05-31 Tobias Burnus <burnus@net-b.de>
23405
23406 PR middle-end/57073
23407 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
23408 further up.
23409
23410 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
23411
23412 PR rtl-optimization/57268
23413 * sched-deps.c (sched_analyze_2): Flush dependence lists if
23414 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23415
23416 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
23417
23418 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
23419 unordered comparison operators when -fno-trapping-math is in effect
23420 on the e500.
23421 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
23422 and implement unordered comparison operators properly on the e500.
23423
23424 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
23425
23426 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
23427 for constant scalar integers.
23428 (simplify_relational_operation_1): Likewise.
23429
23430 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
23431
23432 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
23433 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
23434 Fix comment.
23435
23436 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
23437 Igor Zamyatin <igor.zamyatin@intel.com>
23438
23439 Silvermont (SLM) architecture performance tuning.
23440 * config/i386/i386.h (enum ix86_tune_indices): Add
23441 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
23442 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
23443
23444 * config/i386/i386.c (initial_ix86_tune_features)
23445 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
23446 (ix86_lea_outperforms): Handle Silvermont tuning.
23447 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
23448 call.
23449 (ix86_use_lea_for_mov): Likewise.
23450 (ix86_avoid_lea_for_addr): Likewise.
23451 (ix86_lea_for_add_ok): Likewise.
23452 (exact_dependency_1): New function.
23453 (exact_store_load_dependency): Likewise.
23454 (ix86_adjust_cost): Handle Silvermont tuning.
23455 (do_reoder_for_imul): Likewise.
23456 (swap_top_of_ready_list): New function.
23457 (ix86_sched_reorder): Changed to handle Silvermont tuning.
23458
23459 * config/i386/i386.md (peepholes that split memory operand in fp
23460 converts): New.
23461
23462 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
23463
23464 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23465 Remove un-necessary braces.
23466
23467 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
23468
23469 * config/aarch64/aarch64.c (aarch64_classify_symbol):
23470 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
23471
23472 2013-05-31 Tobias Burnus <burnus@net-b.de>
23473
23474 PR middle-end/57073
23475 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
23476
23477 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23478
23479 PR target/56315
23480 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
23481 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
23482 * config/arm/neon.md (iordi3_neon): Remove.
23483 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
23484 * config/arm/predicates.md (imm_for_neon_logic_operand):
23485 Move to earlier in the file.
23486 (neon_logic_op2): Likewise.
23487 (arm_iordi_operand_neon): New predicate.
23488
23489 2013-05-31 Richard Biener <rguenther@suse.de>
23490
23491 PR tree-optimization/57478
23492 PR tree-optimization/57453
23493 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
23494 are life as well.
23495
23496 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23497
23498 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
23499 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
23500
23501 2013-05-30 Tobias Burnus <burnus@net-b.de>
23502 Thomas Koenig <tkoenig@gcc.gnu.org>
23503
23504 PR middle-end/57073
23505 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
23506 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
23507
23508 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
23509
23510 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
23511
23512 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
23513
23514 * target.def (register_usage_leveling_p): New hook.
23515 * targhooks.c (default_register_usage_leveling_p): New.
23516 * targhooks.h (default_register_usage_leveling_p): New prototype.
23517 * lra-assigns.c (register_usage_leveling_p): Use the hook.
23518 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
23519 * doc/tm.texi: Update.
23520 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
23521
23522 2013-05-30 Ian Bolton <ian.bolton@arm.com>
23523
23524 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
23525 (*insv_reg<mode>): New define_insn.
23526
23527 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
23528
23529 PR rtl-optimization/57439
23530 * postreload.c (move2add_valid_value_p): Check that we have
23531 a zero subreg_regno_offset when accessing the register in
23532 the requested mode.
23533
23534 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
23535 Igor Zamyatin <igor.zamyatin@intel.com>
23536
23537 Silvermont (SLM) architecture pipeline model, tuning and
23538 insn selection.
23539 * config.gcc: Add slm config options and target.
23540
23541 * config/i386/slm.md: New.
23542
23543 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
23544
23545 * config/i386/i386-c.c (ix86_target_macros_internal): New case
23546 PROCESSOR_SLM.
23547 (ix86_target_macros_internal): Likewise.
23548
23549 * config/i386/i386.c (slm_cost): New cost.
23550 (m_SLM): New macro flag.
23551 (initial_ix86_tune_features): Set m_SLM.
23552 (x86_accumulate_outgoing_args): Likewise.
23553 (x86_arch_always_fancy_math_387): Likewise.
23554 (processor_target_table): Add slm cost.
23555 (cpu_names): Add slm cpu name.
23556 (x86_option_override_internal): Set SLM ISA.
23557 (ix86_issue_rate): New case PROCESSOR_SLM.
23558 (ia32_multipass_dfa_lookahead): Likewise.
23559 (fold_builtin_cpu): Add slm.
23560
23561 * config/i386/i386.h (TARGET_SLM): New target macro.
23562 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
23563 (processor_type): Add PROCESSOR_SLM.
23564
23565 * config/i386/i386.md (cpu): Add new value "slm".
23566 (slm.md): Include slm.md.
23567
23568 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
23569 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23570
23571 * config/arm/arm-protos.h: Add and update function protos.
23572 * config/arm/arm.c (use_simple_return_p): New added.
23573 (thumb2_expand_return): Check simple_return flag.
23574 * config/arm/arm.md: Add simple_return and conditional simple_return.
23575 * config/arm/iterators.md: Add iterator for return and simple_return.
23576
23577 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23578
23579 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
23580 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
23581 (arm_emit_vfp_multi_reg_pop): Likewise.
23582 (thumb2_emit_ldrd_pop): Likewise.
23583 (arm_expand_epilogue): Add misc REG_CFA notes.
23584 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
23585
23586 2013-05-29 Lawrence Crowl <crowl@google.com>
23587
23588 * config/arm/t-arm: Update for below.
23589
23590 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
23591 Change type to hash_table. Update dependent calls and types.
23592
23593 * config/i386/t-cygming: Update for below.
23594
23595 * config/i386/t-interix: Update for below.
23596
23597 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
23598 Change type to hash_table. Update dependent calls and types.
23599 (i386_find_on_wrapper_list::wrappers): Likewise.
23600
23601 * config/ia64/t-ia64: Update for below.
23602
23603 * config/ia64/ia64.c (bundle_state_table):
23604 Change type to hash_table. Update dependent calls and types.
23605
23606 * config/mips/mips.c (mips_reorg_process_insns::htab):
23607 Change type to hash_table. Update dependent calls and types.
23608
23609 * config/sol2.c (solaris_comdat_htab):
23610 Change type to hash_table. Update dependent calls and types.
23611
23612 * config/t-sol2: Update for above.
23613
23614 2013-05-29 Teresa Johnson <tejohnson@google.com>
23615
23616 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
23617 functions are not yet marked as defined.
23618
23619 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
23620 Pat Haugen <pthaugen@us.ibm.com>
23621 Peter Bergner <bergner@vnet.ibm.com>
23622
23623 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
23624 instructions.
23625 (VEC_A): Likewise.
23626 (VEC_C): Likewise.
23627 (vrotl<mode>3): Likewise.
23628 (vashl<mode>3): Likewise.
23629 (vlshr<mode>3): Likewise.
23630 (vashr<mode>3): Likewise.
23631
23632 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23633 support for power8 V2DI builtins.
23634
23635 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
23636 power8 V2DI builtins.
23637 (vupkhsw): Likewise.
23638 (vupklsw): Likewise.
23639 (vaddudm): Likewise.
23640 (vminsd): Likewise.
23641 (vmaxsd): Likewise.
23642 (vminud): Likewise.
23643 (vmaxud): Likewise.
23644 (vpkudum): Likewise.
23645 (vpksdss): Likewise.
23646 (vpkudus): Likewise.
23647 (vpksdus): Likewise.
23648 (vrld): Likewise.
23649 (vsld): Likewise.
23650 (vsrd): Likewise.
23651 (vsrad): Likewise.
23652 (vsubudm): Likewise.
23653 (vcmpequd): Likewise.
23654 (vcmpgtsd): Likewise.
23655 (vcmpgtud): Likewise.
23656 (vcmpequd_p): Likewise.
23657 (vcmpgtsd_p): Likewise.
23658 (vcmpgtud_p): Likewise.
23659 (vupkhsw): Likewise.
23660 (vupklsw): Likewise.
23661 (vaddudm): Likewise.
23662 (vmaxsd): Likewise.
23663 (vmaxud): Likewise.
23664 (vminsd): Likewise.
23665 (vminud): Likewise.
23666 (vpksdss): Likewise.
23667 (vpksdus): Likewise.
23668 (vpkudum): Likewise.
23669 (vpkudus): Likewise.
23670 (vrld): Likewise.
23671 (vsld): Likewise.
23672 (vsrad): Likewise.
23673 (vsrd): Likewise.
23674 (vsubudm): Likewise.
23675
23676 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
23677 support for power8 V2DI instructions.
23678
23679 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
23680 power8 V2DI instructions. Combine pack and unpack insns to use an
23681 iterator for each mode. Check whether a particular mode supports
23682 Altivec instructions instead of just checking TARGET_ALTIVEC.
23683 (UNSPEC_VPKUWUM): Likewise.
23684 (UNSPEC_VPKSHSS): Likewise.
23685 (UNSPEC_VPKSWSS): Likewise.
23686 (UNSPEC_VPKUHUS): Likewise.
23687 (UNSPEC_VPKSHUS): Likewise.
23688 (UNSPEC_VPKUWUS): Likewise.
23689 (UNSPEC_VPKSWUS): Likewise.
23690 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
23691 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
23692 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
23693 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
23694 (UNSPEC_VUPKHSB): Likewise.
23695 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
23696 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
23697 (UNSPEC_VUPKHSH): Likewise.
23698 (UNSPEC_VUPKLSB): Likewise.
23699 (UNSPEC_VUPKLSH): Likewise.
23700 (VI2): Likewise.
23701 (VI_char): Likewise.
23702 (VI_scalar): Likewise.
23703 (VI_unit): Likewise.
23704 (VP): Likewise.
23705 (VP_small): Likewise.
23706 (VP_small_lc): Likewise.
23707 (VU_char): Likewise.
23708 (add<mode>3): Likewise.
23709 (altivec_vaddcuw): Likewise.
23710 (altivec_vaddu<VI_char>s): Likewise.
23711 (altivec_vadds<VI_char>s): Likewise.
23712 (sub<mode>3): Likewise.
23713 (altivec_vsubcuw): Likewise.
23714 (altivec_vsubu<VI_char>s): Likewise.
23715 (altivec_vsubs<VI_char>s): Likewise.
23716 (altivec_vavgs<VI_char>): Likewise.
23717 (altivec_vcmpbfp): Likewise.
23718 (altivec_eq<mode>): Likewise.
23719 (altivec_gt<mode>): Likewise.
23720 (altivec_gtu<mode>): Likewise.
23721 (umax<mode>3): Likewise.
23722 (smax<mode>3): Likewise.
23723 (umin<mode>3): Likewise.
23724 (smin<mode>3): Likewise.
23725 (altivec_vpkuhum): Likewise.
23726 (altivec_vpkuwum): Likewise.
23727 (altivec_vpkshss): Likewise.
23728 (altivec_vpkswss): Likewise.
23729 (altivec_vpkuhus): Likewise.
23730 (altivec_vpkshus): Likewise.
23731 (altivec_vpkuwus): Likewise.
23732 (altivec_vpkswus): Likewise.
23733 (altivec_vpks<VI_char>ss): Likewise.
23734 (altivec_vpks<VI_char>us): Likewise.
23735 (altivec_vpku<VI_char>us): Likewise.
23736 (altivec_vpku<VI_char>um): Likewise.
23737 (altivec_vrl<VI_char>): Likewise.
23738 (altivec_vsl<VI_char>): Likewise.
23739 (altivec_vsr<VI_char>): Likewise.
23740 (altivec_vsra<VI_char>): Likewise.
23741 (altivec_vsldoi_<mode>): Likewise.
23742 (altivec_vupkhsb): Likewise.
23743 (altivec_vupkhs<VU_char>): Likewise.
23744 (altivec_vupkls<VU_char>): Likewise.
23745 (altivec_vupkhsh): Likewise.
23746 (altivec_vupklsb): Likewise.
23747 (altivec_vupklsh): Likewise.
23748 (altivec_vcmpequ<VI_char>_p): Likewise.
23749 (altivec_vcmpgts<VI_char>_p): Likewise.
23750 (altivec_vcmpgtu<VI_char>_p): Likewise.
23751 (abs<mode>2): Likewise.
23752 (vec_unpacks_hi_v16qi): Likewise.
23753 (vec_unpacks_hi_v8hi): Likewise.
23754 (vec_unpacks_lo_v16qi): Likewise.
23755 (vec_unpacks_hi_<VP_small_lc>): Likewise.
23756 (vec_unpacks_lo_v8hi): Likewise.
23757 (vec_unpacks_lo_<VP_small_lc>): Likewise.
23758 (vec_pack_trunc_v8h): Likewise.
23759 (vec_pack_trunc_v4si): Likewise.
23760 (vec_pack_trunc_<mode>): Likewise.
23761
23762 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
23763 V2DI builtins.
23764 (vec_vmaxsd): Likewise.
23765 (vec_vmaxud): Likewise.
23766 (vec_vminsd): Likewise.
23767 (vec_vminud): Likewise.
23768 (vec_vpksdss): Likewise.
23769 (vec_vpksdus): Likewise.
23770 (vec_vpkudum): Likewise.
23771 (vec_vpkudus): Likewise.
23772 (vec_vrld): Likewise.
23773 (vec_vsld): Likewise.
23774 (vec_vsrad): Likewise.
23775 (vec_vsrd): Likewise.
23776 (vec_vsubudm): Likewise.
23777 (vec_vupkhsw): Likewise.
23778 (vec_vupklsw): Likewise.
23779
23780 2013-05-29 Jan Hubicka <jh@suse.cz>
23781
23782 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
23783 flags; reorder rest of fields in more consistent way.
23784 (varpool_node): Remove analyzed, finalized and alias.
23785 (cgraph_ndoe): Likewise.
23786 (symtab_alias_ultimate_target): New function.
23787 (cgraph_function_node): Move offline.
23788 (cgraph_reset_node): Declare.
23789 (cgraph_comdat_can_be_unshared_p): Remove.
23790 (varpool_remove_initializer): Declare.
23791 (varpool_first_defined_variable, varpool_next_defined_variable
23792 cgraph_first_defined_function, cgraph_next_defined_function): Update.
23793 (cgraph_function_with_gimple_body_p): Update.
23794 (varpool_all_refs_explicit_p): Update.
23795 (symtab_alias_target): New function.
23796 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
23797 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
23798 (cgraph_function_or_thunk_node): Simplify using
23799 symtab_alias_ultimate_target.
23800 (varpool_variable_node): Likewise.
23801 * cgraph.c (cgraph_create_function_alias): Update.
23802 (cgraph_add_thunk): Update.
23803 (cgraph_remove_node): Update.
23804 (dump_cgraph_node): Do not dump removed flags.
23805 (cgraph_function_body_availability): Update.
23806 (cgraph_propagate_frequency): Update.
23807 (verify_cgraph_node): Check sanity of local flag.
23808 (cgraph_function_node): Move here from cgraph.h; revamp for
23809 cgraph_function_or_thunk_node.
23810 * lto-symtab.c (lto_varpool_replace_node): Update.
23811 (lto_symtab_resolve_can_prevail_p): Update.
23812 (lto_symtab_merge_cgraph_nodes): Update.
23813 * ipa-cp.c (determine_versionability, initialize_node_lattices,
23814 propagate_constants_accross_call, devirtualization_time_bonus,
23815 ipcp_propagate_stage): Update.
23816 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
23817 * ipa-inline-transform.c (clone_inlined_nodes,
23818 preserve_function_body_p): Update.
23819 * ipa-reference.c (propagate): Update.
23820 (write_node_summary_p): Update.
23821 * toplev.c (wrapup_global_declaration_2): Update.
23822 * cgraphunit.c (cgraph_analyze_function): Rename to ...
23823 (analyze_function) ... this one.
23824 (cgraph_process_new_functions): Update.
23825 (cgraph_reset_node): Export.
23826 (cgraph_finalize_function): Update.
23827 (cgraph_add_new_function): Update.
23828 (process_function_and_variable_attributes): Update.
23829 (varpool_finalize_decl): Update.
23830 (symbol_finalized): Remove.
23831 (symbol_finalized_and_needed): Rename to ...
23832 (symbol_defined_and_needed): ... update.
23833 (cgraph_analyze_functions): Update.
23834 (handle_alias_pairs): Update.
23835 (mark_functions_to_output): Update.
23836 (assemble_thunk): Update.
23837 (output_in_order): Update.
23838 (output_weakrefs): Update.
23839 (finalize_compilation_unit): Update.
23840 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
23841 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
23842 input_node, input_varpool_node): Update.
23843 * dbxout.c (dbxout_expand_expr): Update.
23844 * cgraphclones.c (cgraph_clone_node): Update.
23845 (cgraph_copy_node_for_versioning): Update.
23846 (cgraph_materialize_clone): Update.
23847 (cgraph_materialize_all_clones): Update.
23848 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
23849 propagate_pure_const, propagate_nothrow): Update.
23850 * lto-streamer-out.c (lto_output, write_symbol): Update.
23851 * ipa-utils.c (ipa_reverse_postorder): Update.
23852 * ipa-inline.c (can_inline_edge_p): Update.
23853 (update_caller_keys, ipa_inline): Update.
23854 * dwarf2out.c (reference_to_unused,
23855 premark_types_used_by_global_vars_helper): Update.
23856 * tree-eh.c (tree_could_trap_p): Update.
23857 * ipa-split.c (consider_split, execute_split_functions): Update.
23858 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23859 has_addr_references_p): Update; move ahead in file for better
23860 readability.
23861 (process_references): Simplify.
23862 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
23863 bodies are removed.
23864 (cgraph_comdat_can_be_unshared_p): Make static.
23865 (cgraph_externally_visible_p): Update.
23866 (varpool_externally_visible_p): Update.
23867 (function_and_variable_visibility): Update.
23868 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
23869 ipa_tm_mark_force_output_node): Update.
23870 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
23871 estimate_edge_devirt_benefit, inline_generate_summary,
23872 inline_write_summary): Update.
23873 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
23874 * ipa-prop.c (ipa_compute_jump_functions): Update.
23875 (ipa_print_node_params, ipa_prop_read_section,
23876 ipa_update_after_lto_read, read_replacements_section): Update.
23877 * varasm.c (mark_decl_referenced): Update.
23878 (assemble_alias, dump_tm_clone_pairs): Update.
23879 * tree-inline.c (copy_bb): Update.
23880 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
23881 Update.
23882 * symtab.c (dump_symtab_base): Print new flags.
23883 (verify_symtab_base): Verify new flags.
23884 (symtab_alias_ultimate_target): New function.
23885 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
23886 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
23887 Update.
23888 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
23889 Update.
23890 * i386.c (ix86_get_function_versions_dispatcher,
23891 ix86_generate_version_dispatcher_body): Update.
23892 (fold_builtin_cpu): Use varpool_add_new_variable.
23893 * varpool.c (varpool_remove_initializer): Break out from ...
23894 (varpool_remove_node): ... this one.
23895 (dump_varpool_node, varpool_node_for_asm,
23896 cgraph_variable_initializer_availability, varpool_analyze_node,
23897 varpool_assemble_decl, varpool_remove_unreferenced_decls,
23898 varpool_finalize_named_section_flags, varpool_create_variable_alias):
23899 Update.
23900
23901 2013-05-29 Jan Hubicka <jh@suse.cz>
23902
23903 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
23904
23905 2013-05-29 Easwaran Raman <eraman@google.com>
23906
23907 PR tree-optimization/57442
23908 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
23909 when control exits the main loop.
23910
23911 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
23912
23913 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
23914 and RX600.
23915 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
23916 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
23917 * rx/t-rx: Add rx100 under multi library matches option for nofpu
23918 option.
23919
23920 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23921
23922 PR tree-optimization/57441
23923 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
23924 Don't limit size of incr_vec to number of candidates.
23925
23926 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
23927
23928 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
23929 and mips16 directories.
23930 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
23931 (MULTILIB_DIRNAMES): Ditto.
23932 (MULTILIB_EXCEPTIONS): Add new exceptions.
23933 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
23934 (MULTILIB_DIRNAMES): Ditto.
23935 (MULTILIB_EXCEPTIONS): Add new exceptions.
23936
23937 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23938 Marcus Shawcroft <marcus.shawcroft@arm.com>
23939
23940 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
23941 SYMBOL_TINY_ABSOLUTE.
23942 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
23943 SYMBOL_TINY_ABSOLUTE.
23944 (aarch64_expand_mov_immediate): Likewise.
23945 (aarch64_classify_symbol): Likewise.
23946 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
23947 Permit SYMBOL_TINY_ABSOLUTE.
23948 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
23949
23950 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23951 Marcus Shawcroft <marcus.shawcroft@arm.com>
23952
23953 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
23954 Refactor if/switch. Replace gcc_assert with if.
23955
23956 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
23957
23958 * config/i386/i386.c (initial_ix86_tune_features): Enable
23959 FP Reassociation for AMD bdver1 and bdver2.
23960
23961 2013-05-29 Martin Jambor <mjambor@suse.cz>
23962
23963 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
23964 and IMAGPART_EXPR do not occur within other handled_components.
23965
23966 2013-05-29 Richard Biener <rguenther@suse.de>
23967
23968 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
23969 access on whether the use is in the BB we currently try to
23970 vectorize.
23971 (vect_bb_vectorization_profitable_p): Pass the BB we currently
23972 vectorize to vect_bb_slp_scalar_cost.
23973
23974 2013-05-29 Richard Biener <rguenther@suse.de>
23975
23976 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
23977 computing scalar cost offsetted by stmts that are kept live
23978 by scalar uses.
23979 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
23980 for computation of scalar cost.
23981
23982 2013-05-28 Steve Ellcey <sellcey@mips.com>
23983
23984 * config/mips/mips-cpus.def (mips32r2): Change processor type.
23985
23986 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
23987
23988 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
23989 array notation built-in reduction functions.
23990 * doc/passes.texi (Passes): Added documentation about changes done
23991 for Cilk Plus.
23992 * doc/invoke.texi (C Dialect Options): Added documentation about
23993 the -fcilkplus flag.
23994 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
23995 (BUILTINS_DEF): Depend on cilkplus.def.
23996 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
23997 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
23998 * cilkplus.def: New file.
23999
24000 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
24001
24002 PR rtl-optimization/57439
24003 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
24004
24005 2013-05-28 Easwaran Raman <eraman@google.com>
24006
24007 PR tree-optimization/57337
24008 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
24009 (find_insert_point): Correctly identify the insertion point
24010 when two statements with the same UID is compared.
24011
24012 2013-05-28 Richard Biener <rguenther@suse.de>
24013
24014 PR tree-optimization/56787
24015 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
24016 from the list of data references.
24017 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
24018 clobbers.
24019 (vect_analyze_loop_operations): Likewise.
24020 (vect_transform_loop): Remove clobbers.
24021
24022 2013-05-28 Martin Jambor <mjambor@suse.cz>
24023
24024 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
24025 and REALPART_EXPRs have scalar type.
24026
24027 2013-05-28 Richard Biener <rguenther@suse.de>
24028
24029 PR tree-optimization/57411
24030 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
24031 virtual operands.
24032 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
24033 virtual operand propagation.
24034
24035 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
24036
24037 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
24038 destination register for bmasksi_vis.
24039 (vector_init_bshuffle): Likewise.
24040 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
24041
24042 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
24043
24044 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
24045 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
24046 mode if the instruction isn't available in the original mode.
24047 * config/sparc/sparc.opt (mfix-ut699): New option.
24048 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
24049 (divdf3): Turn into expander.
24050 (divdf3_nofix): New insn.
24051 (divdf3_fix): Likewise.
24052 (divsf3): Disable if -mfix-ut699.
24053 (sqrtdf2): Turn into expander.
24054 (sqrtdf2_nofix): New insn.
24055 (sqrtdf2_fix): Likewise.
24056 (sqrtsf2): Disable if -mfix-ut699.
24057
24058 2013-05-27 Richard Biener <rguenther@suse.de>
24059
24060 PR middle-end/57412
24061 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
24062 block for the new loop.
24063
24064 2013-05-27 Richard Biener <rguenther@suse.de>
24065
24066 PR tree-optimization/57343
24067 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
24068 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
24069 (number_of_iterations_cond): Do not build the folded tree.
24070
24071 2013-05-27 Richard Biener <rguenther@suse.de>
24072
24073 Revert
24074 PR middle-end/57381
24075 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
24076 OEP_CONSTANT_ADDRESS_OF retained.
24077
24078 PR tree-optimization/57417
24079 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
24080 for unchanged base.
24081 (set_ssa_val_to): Compare addresses using
24082 get_addr_base_and_unit_offset.
24083
24084 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
24085
24086 PR rtl-optimization/56833
24087 * postreload.c (move2add_record_mode): New function.
24088 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
24089 (move2add_use_add2_insn): Use move2add_record_sym_value.
24090 (move2add_use_add3_insn): Likewise.
24091 (reload_cse_move2add): Use move2add_valid_value_p and
24092 move2add_record_mode. Invalidate call-clobbered and REG_INC
24093 affected regs by setting reg_mode to VOIDmode.
24094 (move2add_note_store): Don't pretend the inside of a SUBREG is
24095 the actual destination. Invalidate single/leading registers by
24096 setting reg_mode to VOIDmode.
24097 Use move2add_record_sym_value, move2add_valid_value_p and
24098 move2add_record_mode.
24099
24100 2013-05-27 Richard Biener <rguenther@suse.de>
24101
24102 PR tree-optimization/57396
24103 * tree-affine.c (double_int_constant_multiple_p): Properly
24104 return false for val == 0 and div != 0.
24105
24106 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
24107
24108 * config/mips/mips.h: Use #elif in preprocessor conditions.
24109
24110 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
24111
24112 PR target/53916
24113 * config/mips/constraints.md (kl): New constraint.
24114 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
24115 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
24116 constraint for operand 0. Split after CSE for MIPS16. Emit a move
24117 from LO for MIPS16.
24118 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
24119
24120 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
24121
24122 PR target/55777
24123 * config/mips/mips.c (mips_can_inline_p): New function.
24124 (TARGET_CAN_INLINE_P): Define.
24125
24126 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
24127
24128 * sched-int.h (ds_t, dw_t): Make unsigned int.
24129 Fix documentation that describes how all the ds_t bits are used.
24130 Reserve the last bit for delayed-branch scheduling.
24131 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
24132 (BITS_PER_DEP_WEAK): Fix definition and documentation.
24133 (gen_dep_weak_1): Remove prototype.
24134 * sched-deps.c (get_dep_weak_1): Make static.
24135 * target.def (speculate_insn, needs_block_p, gen_spec_check,
24136 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
24137 * doc/tm.texi: Regenerate.
24138 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
24139
24140 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
24141
24142 PR debug/56950
24143 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
24144
24145 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
24146 Sandra Loosemore <sandra@codesourcery.com>
24147
24148 * config.gcc (powerpc-*): Allow native for with-cpu.
24149
24150 2013-05-24 Jeff Law <law@redhat.com>
24151
24152 PR tree-optimization/57124
24153 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
24154 conversion feeding a condition if the range has an overflow
24155 if -fstrict-overflow. Add warnings for when we do make the
24156 transformation.
24157
24158 2013-05-24 Dehao Chen <dehao@google.com>
24159
24160 * tree-cfg.c (locus_discrim_map): Fix the typo.
24161 (locus_discrim_hasher): Likewise.
24162 (locus_discrim_hasher::hash): Likewise.
24163 (locus_discrim_hasher::equal): Likewise.
24164
24165 2013-05-24 Martin Jambor <mjambor@suse.cz>
24166
24167 PR tree-optimization/57294
24168 * cgraph.h (ipa_record_stmt_references): Declare.
24169 * cgraphbuild.c (ipa_record_stmt_references): New function.
24170 (build_cgraph_edges): Use ipa_record_stmt_references.
24171 (rebuild_cgraph_edges): Likewise.
24172 (cgraph_rebuild_references): Likewise.
24173 * ipa-prop.c (ipa_modify_call_arguments): Discard references
24174 associated with the old statement and build references from the
24175 newly built statements.
24176 * ipa-ref.c (ipa_remove_stmt_references): New function.
24177 * ipa-ref.h (ipa_remove_stmt_references): Declare.
24178
24179 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
24180
24181 * lra-constraints.c (emit_spill_move): Use smaller mode for
24182 mem-mem moves.
24183 (check_and_process_move): Consider mem-reg moves for secondary
24184 too.
24185 (curr_insn_transform): Don't lose insns emitted before for
24186 secondary memory moves.
24187 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
24188 reg set up in the current insn.
24189
24190 2013-05-24 Dehao Chen <dehao@google.com>
24191
24192 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
24193 hash function.
24194 (locus_descrim_hasher::equal): Likewise.
24195 (build_gimple_cfg): New discriminator assignment algorithm.
24196 (make_edges): Likewise.
24197 (next_discriminator_for_locus): Likewise.
24198 (same_line_p): Likewise.
24199 (assign_discriminators): Likewise.
24200 (make_cond_expr_edges): Likewise.
24201 (make_gimple_switch_edges): Likewise.
24202 (make_goto_expr_edges): Likewise.
24203 (make_gimple_asm_edges): Likewise.
24204
24205 2013-05-24 Ian Bolton <ian.bolton@arm.com>
24206
24207 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
24208 X format specifier to only display bottom 16 bits.
24209 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
24210 immediate to match for operand 2, since it will be masked.
24211
24212 2013-05-24 Richard Biener <rguenther@suse.de>
24213
24214 PR tree-optimization/57287
24215 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
24216 all SSA names that occur in abnormal PHIs.
24217
24218 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
24219
24220 PR tree-ssa/57385
24221 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
24222 that index is not negative.
24223
24224 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
24225
24226 PR rtl-optimization/55177
24227 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
24228 (simplify_byte_swapping_operation): New.
24229 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
24230 (simplify_relational_operation_1): Deal with BSWAP.
24231
24232 2013-05-23 Richard Henderson <rth@redhat.com>
24233
24234 PR target/56742
24235 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
24236 (ix86_reorg): Call it.
24237
24238 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
24239
24240 PR target/57379
24241 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
24242 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
24243 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
24244
24245 2013-05-23 Christian Bruel <christian.bruel@st.com>
24246
24247 PR debug/57351
24248 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
24249
24250 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
24251 Marcus Shawcroft <marcus.shawcroft@arm.com>
24252
24253 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
24254 * config/aarch64/constraints.md (Usa): Remove.
24255 * doc/md.texi (AArch64 Usa): Remove.
24256
24257 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
24258 Marcus Shawcroft <marcus.shawcroft@arm.com>
24259
24260 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
24261 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
24262 * config/aarch64/predicates.md (aarch64_const_address): Remove.
24263 (aarch64_mov_operand): Use aarch64_mov_operand_p.
24264
24265 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
24266
24267 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
24268 instruction (AdvSIMD).
24269 * config/aarch64/aarch64-builtins.c
24270 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
24271 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
24272
24273 2013-05-23 Martin Jambor <mjambor@suse.cz>
24274
24275 PR middle-end/57347
24276 * tree.h (contains_bitfld_component_ref_p): Declare.
24277 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
24278 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
24279 caller.
24280 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
24281 not access a bit-field. Assert all final offsets are byte-aligned.
24282
24283 2013-05-23 Richard Biener <rguenther@suse.de>
24284
24285 PR tree-optimization/57380
24286 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
24287 least one invariant or re-used load.
24288 * passes.c (init_optimization_passes): Move pass_phiprop before
24289 pass_forwprop.
24290
24291 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
24292
24293 * config/aarch64/aarch64-simd.md
24294 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
24295
24296 2013-05-23 Richard Biener <rguenther@suse.de>
24297
24298 PR middle-end/57381
24299 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
24300 OEP_CONSTANT_ADDRESS_OF retained.
24301
24302 2013-05-23 Jakub Jelinek <jakub@redhat.com>
24303
24304 PR middle-end/57344
24305 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
24306 don't lower unit. Handle unit not being always BITS_PER_WORD.
24307
24308 2013-05-23 Richard Biener <rguenther@suse.de>
24309
24310 PR rtl-optimization/57341
24311 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
24312 instead of true_dependence.
24313
24314 2013-05-22 David Malcolm <dmalcolm@redhat.com>
24315
24316 * bb-reorder.c (branch_threshold): Make const.
24317 (exec_threshold): Ditto.
24318
24319 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
24320 Pat Haugen <pthaugen@us.ibm.com>
24321 Peter Bergner <bergner@vnet.ibm.com>
24322
24323 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
24324 documentation for the power8 crypto builtins.
24325
24326 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
24327
24328 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
24329 macros for defining power8 builtin functions.
24330 (BU_P8V_AV_2): Likewise.
24331 (BU_P8V_AV_P): Likewise.
24332 (BU_P8V_VSX_1): Likewise.
24333 (BU_P8V_OVERLOAD_1): Likewise.
24334 (BU_P8V_OVERLOAD_2): Likewise.
24335 (BU_CRYPTO_1): Likewise.
24336 (BU_CRYPTO_2): Likewise.
24337 (BU_CRYPTO_3): Likewise.
24338 (BU_CRYPTO_OVERLOAD_1): Likewise.
24339 (BU_CRYPTO_OVERLOAD_2): Likewise.
24340 (XSCVSPDP): Fix typo, point to the correct instruction.
24341 (VCIPHER): Add power8 crypto builtins.
24342 (VCIPHERLAST): Likewise.
24343 (VNCIPHER): Likewise.
24344 (VNCIPHERLAST): Likewise.
24345 (VPMSUMB): Likewise.
24346 (VPMSUMH): Likewise.
24347 (VPMSUMW): Likewise.
24348 (VPERMXOR_V2DI): Likewise.
24349 (VPERMXOR_V4SI: Likewise.
24350 (VPERMXOR_V8HI: Likewise.
24351 (VPERMXOR_V16QI: Likewise.
24352 (VSHASIGMAW): Likewise.
24353 (VSHASIGMAD): Likewise.
24354 (VPMSUM): Likewise.
24355 (VPERMXOR): Likewise.
24356 (VSHASIGMA): Likewise.
24357
24358 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24359 __CRYPTO__ if the crypto instructions are available.
24360 (altivec_overloaded_builtins): Add support for overloaded power8
24361 builtins.
24362
24363 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
24364 support for power8 crypto builtins.
24365 (builtin_function_type): Likewise.
24366 (altivec_init_builtins): Add support for builtins that take vector
24367 long long (V2DI) arguments.
24368
24369 * config/rs6000/crypto.md: New file, define power8 crypto
24370 instructions.
24371
24372 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
24373 Pat Haugen <pthaugen@us.ibm.com>
24374 Peter Bergner <bergner@vnet.ibm.com>
24375
24376 * doc/invoke.texi (Option Summary): Add power8 options.
24377 (RS/6000 and PowerPC Options): Likewise.
24378
24379 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
24380 constraints.md instead of rs6000.h. Reorder w* constraints. Add
24381 wm, wn, wr documentation.
24382
24383 * config/rs6000/constraints.md (wm): New constraint for VSX
24384 registers if direct move instructions are enabled.
24385 (wn): New constraint for no registers.
24386 (wq): New constraint for quad word even GPR registers.
24387 (wr): New constraint if 64-bit instructions are enabled.
24388 (wv): New constraint if power8 vector instructions are enabled.
24389 (wQ): New constraint for quad word memory locations.
24390
24391 * config/rs6000/predicates.md (const_0_to_15_operand): New
24392 constraint for 0..15 for crypto instructions.
24393 (gpc_reg_operand): If VSX allow registers in VSX registers as well
24394 as GPR and floating point registers.
24395 (int_reg_operand): New predicate to match only GPR registers.
24396 (base_reg_operand): New predicate to match base registers.
24397 (quad_int_reg_operand): New predicate to match even GPR registers
24398 for quad memory operations.
24399 (vsx_reg_or_cint_operand): New predicate to allow vector logical
24400 operations in both GPR and VSX registers.
24401 (quad_memory_operand): New predicate for quad memory operations.
24402 (reg_or_indexed_operand): New predicate for direct move support.
24403
24404 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
24405 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
24406 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
24407 (POWERPC_MASKS): Add power8 options.
24408 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
24409 various options.
24410
24411 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24412 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
24413
24414 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
24415 (-mpower8-fusion): New power8 options.
24416 (-mpower8-fusion-sign): Likewise.
24417 (-mpower8-vector): Likewise.
24418 (-mcrypto): Likewise.
24419 (-mdirect-move): Likewise.
24420 (-mquad-memory): Likewise.
24421
24422 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
24423 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
24424 registers.
24425 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
24426 (rs6000_debug_vector_unit): Add p8_vector.
24427 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
24428 definitions. Also print fusion state.
24429 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
24430 (rs6000_builtin_mask_calculate): Add power8 builtin support.
24431 (rs6000_option_override_internal): Add support for power8.
24432 (rs6000_common_init_builtins): Add debugging for skipped builtins
24433 if -mdebug=builtin.
24434 (rs6000_adjust_cost): Add power8 support.
24435 (rs6000_issue_rate): Likewise.
24436 (insn_must_be_first_in_group): Likewise.
24437 (insn_must_be_last_in_group): Likewise.
24438 (force_new_group): Likewise.
24439 (rs6000_register_move_cost): Likewise.
24440 (rs6000_opt_masks): Likewise.
24441
24442 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
24443 power8 capable assembler, default to power7 options.
24444 (TARGET_DIRECT_MOVE): Likewise.
24445 (TARGET_CRYPTO): Likewise.
24446 (TARGET_P8_VECTOR): Likewise.
24447 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
24448 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
24449 (VECTOR_MEM_P8_VECTOR_P): Likewise.
24450 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
24451 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
24452 (TARGET_XSCVDPSPN): Likewise.
24453 (TARGET_XSCVSPDPN): Likewsie.
24454 (TARGET_SYNC_HI_QI): Likewise.
24455 (TARGET_SYNC_TI): Likewise.
24456 (MASK_CRYPTO): Likewise.
24457 (MASK_DIRECT_MOVE): Likewise.
24458 (MASK_P8_FUSION): Likewise.
24459 (MASK_P8_VECTOR): Likewise.
24460 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
24461 temporary used by some of the direct move instructions to get two FP
24462 temporary registers does not force creation of a stack frame.
24463 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
24464 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
24465 that any VSX registers are tieable, even if they are also an
24466 Altivec vector mode.
24467 (r6000_reg_class_enum): Add wm, wr, wv constraints.
24468 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
24469 (RS6000_BTM_CRYPTO): Likewise.
24470 (RS6000_BTM_COMMON): Likewise.
24471
24472 * config/rs6000/rs6000.md (cpu attribute): Add power8.
24473 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
24474 (enum rs6000_vector): Add power8 vector support.
24475
24476 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24477
24478 PR target/19599
24479 PR target/57340
24480 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
24481 (any_sibcall_could_use_r3): this and handle indirect calls.
24482 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
24483
24484 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24485
24486 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
24487
24488 2013-05-22 Richard Biener <rguenther@suse.de>
24489
24490 PR middle-end/57349
24491 * profile.c (branch_prob): Do not split blocks that are
24492 abnormally receiving from ECF_RETURNS_TWICE functions.
24493
24494 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24495
24496 * recog.c (offsettable_address_addr_space_p): Fix calculation of
24497 address mode. Move pointer mode initialization to the same place.
24498
24499 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
24500
24501 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
24502 while it has any effect.
24503
24504 2013-05-21 Easwaran Raman <eraman@google.com>
24505
24506 PR tree-optimization/57322
24507 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
24508 UID of the statement added to the BB to be 1.
24509
24510 2013-05-21 Jakub Jelinek <jakub@redhat.com>
24511
24512 PR tree-optimization/57331
24513 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
24514 of conversion from pointer type to integral type with integer.
24515
24516 2013-05-21 Martin Jambor <mjambor@suse.cz>
24517
24518 PR lto/57289
24519 * ipa-prop.c (ipa_read_node_info): Process param_used and
24520 controlled_uses in the same order as when writing.
24521
24522 2013-05-21 Magnus Granberg <baldrick@free.fr>
24523
24524 PR plugins/56754
24525 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
24526
24527 2013-05-21 Richard Biener <rguenther@suse.de>
24528
24529 PR tree-optimization/57318
24530 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
24531 estimate stmts with side-effects as likely eliminated.
24532
24533 2013-05-21 Richard Biener <rguenther@suse.de>
24534
24535 PR tree-optimization/57330
24536 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
24537 preserve the call stmts fntype.
24538
24539 2013-05-21 Richard Biener <rguenther@suse.de>
24540
24541 PR tree-optimization/57303
24542 * tree-ssa-sink.c (statement_sink_location): Improve killing
24543 stmt detection and properly handle self-assignments.
24544
24545 2013-05-21 Christian Bruel <christian.bruel@st.com>
24546
24547 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
24548 spanning registers. LEAF_REG_REMAP is supported only for contiguous
24549 registers. Set register size out of the PARALLEL loop.
24550
24551 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
24552
24553 PR target/56547
24554 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
24555 (*fmasf4, *fmasf4_media): New insns.
24556
24557 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24558
24559 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
24560 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
24561 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
24562 (mips_idiv_insns): Update the comments to say that the returned
24563 instruction counts are in units of BASE_INSN_LENGTH.
24564 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
24565 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
24566 using 2 rather than 4 as the length of indirect MIPS16 and
24567 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
24568 length of a NOP. Don't divide MIPS16 lengths by 2.
24569 (mips16_split_long_branches): Assume a branch is long if the
24570 length is greater than 4 rather than 8.
24571 * config/mips/mips.md (length): Give MIPS16 lengths directly,
24572 rather than multiplying them by 2. Multiply instruction counts
24573 by BASE_INSN_LENGTH rather than 4.
24574 (*jump_mips16, tls_get_tp_mips16_<mode>)
24575 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
24576
24577 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24578
24579 * config/mips/mips.md (extended_mips16): Remove branch case.
24580 (length): Remove duplicated extended_mips16 test.
24581
24582 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24583
24584 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
24585
24586 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
24587
24588 * recog.h (Recog_data): Rename to...
24589 (recog_data_d): ...this.
24590 (recog_data): Update accordingly.
24591 * recog.c (recog_data): Likewise.
24592 * reload.c (save_recog_data): Likewise.
24593 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
24594 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
24595
24596 2013-05-17 Julian Brown <julian@codesourcery.com>
24597
24598 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
24599 found in a REG_EQUAL note, invalidate it.
24600
24601 2013-05-17 Easwaran Raman <eraman@google.com>
24602
24603 * tree-ssa-reassoc.c (find_insert_point): New function.
24604 (insert_stmt_after): Likewise.
24605 (get_def_stmt): Likewise.
24606 (ensure_ops_are_available): Likewise.
24607 (not_dominated_by): Likewise.
24608 (rewrite_expr_tree): Do not move statements beyond what is
24609 necessary. Remove call to swap_ops_for_binary_stmt...
24610 (reassociate_bb): ... and move it here.
24611 (build_and_add_sum): Assign UIDs for new statements.
24612 (linearize_expr): Likewise.
24613 (do_reassoc): Renumber gimple statement UIDs.
24614
24615 2013-05-17 Jan Hubicka <jh@suse.cz>
24616
24617 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
24618 weakrefs.
24619 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
24620 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
24621 weakrefs.
24622 (output_weakrefs): Update.
24623
24624 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
24625 Martin Jambor <mjambor@suse.cz>
24626
24627 PR middle-end/57276
24628 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
24629 value that corresponds to the given aggval is found in values vector.
24630
24631 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
24632
24633 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
24634 sse, sse2, sse3, ssse3 and sse4a flags to options.
24635
24636 2013-05-17 David Malcolm <dmalcolm@redhat.com>
24637
24638 * gengtype-state.c: (s_expr_writer): New class, to handle
24639 prettifying of output layout of s-expressions.
24640 (state_writer): New class, to write out gtype.state.
24641 (state_written_type_count): Move this variable into member data of
24642 state_writer.
24643 (s_expr_writer::s_expr_writer): New code: constructor for new class
24644 (state_writer::state_writer(): ditto
24645 (s_expr_writer::write_new_line): New function
24646 (s_expr_writer::write_any_indent): ditto
24647 (s_expr_writer::begin_s_expr): ditto
24648 (s_expr_writer::end_s_expr): ditto
24649 (write_state_fileloc): convert to method of state_writer...
24650 (state_writer:: write_state_fileloc): ...and use methods of
24651 s_expr_writer to write indentation into the gtype.state output file
24652 to visually represent the hierarchical structure of the list
24653 structures
24654 (write_state_fields): ditto, renaming to...
24655 (state_writer::write_state_fields)
24656 (write_state_a_string): ditto, renaming to...
24657 (state_writer::write_state_a_string)
24658 (write_state_string_option): ditto, renaming to...
24659 (state_writer::write_state_string_option)
24660 (write_state_type_option): ditto, renaming to...
24661 (state_writer::write_state_type_option)
24662 (write_state_nested_option): ditto, renaming to...
24663 (state_writer::write_state_nested_option)
24664 (write_state_option): ditto, renaming to...
24665 (state_writer::write_state_option)
24666 (write_state_options): ditto, renaming to...
24667 (state_writer::write_state_options)
24668 (write_state_lang_bitmap): ditto, renaming to...
24669 (state_writer::write_state_lang_bitmap)
24670 (write_state_version): ditto, renaming to...
24671 (state_writer::write_state_version)
24672 (write_state_scalar_type): ditto, renaming to...
24673 (state_writer::write_state_scalar_type)
24674 (write_state_string_type): ditto, renaming to...
24675 (state_writer::write_state_string_type)
24676 (write_state_undefined_type): ditto, renaming to...
24677 (state_writer::write_state_undefined_type)
24678 (write_state_struct_union_type): ditto, renaming to...
24679 (state_writer::write_state_struct_union_type)
24680 (write_state_struct_type): ditto, renaming to...
24681 (state_writer::write_state_struct_type)
24682 (write_state_user_struct_type): ditto, renaming to...
24683 (state_writer::write_state_user_struct_type)
24684 (write_state_lang_struct_type): ditto, renaming to...
24685 (state_writer::write_state_lang_struct_type)
24686 (write_state_param_struct_type): ditto, renaming to...
24687 (state_writer::write_state_param_struct_type)
24688 (write_state_pointer_type): ditto, renaming to...
24689 (state_writer::write_state_pointer_type)
24690 (write_state_array_type): ditto, renaming to...
24691 (state_writer::write_state_array_type)
24692 (write_state_gc_used): ditto, renaming to...
24693 (state_writer::write_state_gc_used)
24694 (write_state_common_type_content): ditto, renaming to...
24695 (state_writer::write_state_common_type_content)
24696 (write_state_type): ditto, renaming to...
24697 (state_writer::write_state_type)
24698 (write_state_pair_list): ditto, renaming to...
24699 (state_writer::write_state_pair_list)
24700 (write_state_pair): ditto, renaming to...
24701 (state_writer::write_state_pair)
24702 (write_state_typedefs): ditto, renaming to...
24703 (state_writer::write_state_typedefs)
24704 (write_state_structures): ditto, renaming to...
24705 (state_writer::write_state_structures)
24706 (write_state_param_structs): ditto, renaming to...
24707 (state_writer::write_state_param_structs)
24708 (write_state_variables): ditto, renaming to...
24709 (state_writer::write_state_variables)
24710 (write_state_srcdir): ditto, renaming to...
24711 (state_writer::write_state_srcdir)
24712 (write_state_files_list): ditto, renaming to...
24713 (state_writer::write_state_files_list)
24714 (write_state_languages): ditto, renaming to...
24715 (state_writer::write_state_languages)
24716 (write_state): create a state_writer instance and use it when
24717 writing out the state file
24718
24719 2013-05-17 Mike Stump <mikestump@comcast.net>
24720
24721 PR rtl-optimization/57304
24722 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
24723 accessing DF_REF_REAL_LOC.
24724
24725 2013-05-17 Jakub Jelinek <jakub@redhat.com>
24726
24727 PR rtl-optimization/57281
24728 PR rtl-optimization/57300
24729 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
24730 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
24731 what the other splitter did if the registers are dead.
24732
24733 2013-05-17 Richard Biener <rguenther@suse.de>
24734
24735 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
24736 MEM_REF offsets.
24737
24738 2013-05-17 Jakub Jelinek <jakub@redhat.com>
24739
24740 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
24741 linking.
24742
24743 2013-05-17 Marek Polacek <polacek@redhat.com>
24744
24745 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
24746 length when doing non-zero store of storing '\0' to '\0'.
24747
24748 2013-05-17 Jakub Jelinek <jakub@redhat.com>
24749
24750 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
24751 vect_external_def oprnd1 with loop_vinfo, try to emit
24752 optional cast, negation and and stmts on the loop preheader
24753 edge instead of into the pattern def seq.
24754
24755 PR tree-optimization/57051
24756 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
24757 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
24758
24759 2013-05-16 Nick Clifton <nickc@redhat.com>
24760
24761 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
24762 (rl78_is_naked_func): New function.
24763 (rl78_expand_prologue): Skip prologue generation for naked functions.
24764 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
24765 * doc/extend.texi (naked): Add RL78 to the list of processors
24766 that supports this attribute.
24767
24768 2013-05-16 Jeff Law <law@redhat.com>
24769
24770 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
24771
24772 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
24773
24774 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
24775 cache parameters using detect_caches_amd also for CYRIX,
24776 NSC and TM2 signatures.
24777
24778 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
24779 Dzianis Kahanovich <mahatma@eu.by>
24780
24781 PR target/45359
24782 PR target/46396
24783 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24784 VIA/Centaur processors and determine their cache parameters
24785 using detect_caches_amd.
24786
24787 2013-05-16 Teresa Johnson <tejohnson@google.com>
24788
24789 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
24790 (rtl_verify_edges): New function.
24791 (rtl_verify_bb_insns): Ditto.
24792 (rtl_verify_bb_pointers): Ditto.
24793 (rtl_verify_bb_insn_chain): Ditto.
24794 (rtl_verify_fallthru): Ditto.
24795 (rtl_verify_bb_layout): Ditto.
24796 (rtl_verify_flow_info_1): Outline checks into new functions.
24797 (rtl_verify_flow_info): Ditto.
24798
24799 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
24800
24801 * cfghooks.c (copy_bbs): Add update_dominance argument.
24802 * cfghooks.h (copy_bbs): Update prototype.
24803 * tree-cfg.c (gimple_duplicate_sese_region):
24804 Add update_dominance argument.
24805 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
24806 * tree-ssa-loop-ch.c (copy_loop_headers): Update
24807 gimple_duplicate_sese_region call.
24808 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
24809 Update copy_bbs call.
24810 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
24811 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
24812
24813 2013-05-16 Jakub Jelinek <jakub@redhat.com>
24814
24815 * tree-vectorizer.h (NUM_PATTERNS): Increment.
24816 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
24817 vect_recog_rotate_pattern.
24818 (vect_recog_rotate_pattern): New function.
24819
24820 2013-05-16 Jason Merrill <jason@redhat.com>
24821
24822 * Makefile.in (LLINKER): New variable.
24823 (mostlyclean): Remove link mutex.
24824 * configure.ac: Handle --enable-link-mutex.
24825 * lock-and-run.sh: New script.
24826
24827 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24828
24829 PR target/19599
24830 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
24831 for NULL decl.
24832
24833 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24834
24835 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
24836
24837 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
24838
24839 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
24840 * config/arm/arm.c (next_consecutive_mem): New function.
24841 (gen_movmem_ldrd_strd): Likewise.
24842 * config/arm/arm.md (movmemqi): Update condition and code.
24843 (unaligned_loaddi, unaligned_storedi): New patterns.
24844
24845 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24846
24847 * config.gcc: Obsolete *-*-solaris2.9*.
24848 * doc/install.texi (Specific, *-*-solaris2*): Document it.
24849
24850 2013-05-16 Richard Biener <rguenther@suse.de>
24851
24852 * passes.c (init_optimization_passes): Move pass_parallelize_loops
24853 earlier, after GRAPHITE transforms and IV canonicalization.
24854
24855 2013-05-16 Jakub Jelinek <jakub@redhat.com>
24856
24857 * omp-low.c (extract_omp_for_data): For collapsed loops,
24858 if at least one of the loops is known at compile time to
24859 iterate zero times, set count to 0.
24860 (expand_omp_regimplify_p): New function.
24861 (expand_omp_for_generic): For collapsed loops, if at least
24862 one of the loops isn't known to iterate at least once,
24863 add runtime check with setting count to 0.
24864 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
24865 For unsigned types if it isn't known at compile time that
24866 the loop will iterate at least once, add runtime check to bypass
24867 the whole loop if initial condition isn't true.
24868
24869 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
24870
24871 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
24872
24873 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
24874
24875 PR middle-end/57286
24876 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
24877 transformations to avoid an infinite loop.
24878
24879 2013-05-16 Marek Polacek <polacek@redhat.com>
24880
24881 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
24882
24883 2013-05-15 Leif Ekblad <leif@rdos.net>
24884
24885 * config/i386/i386.c (ix86_decompose_address): Use
24886 DEFAULT_TLS_SEG_REG to access TLS segment register.
24887 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
24888 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
24889 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
24890
24891 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
24892
24893 PR target/57260
24894 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
24895 sibling calls to functions that would normally be lazily bound,
24896 unless $gp is call-clobbered.
24897
24898 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
24899
24900 * config/i386/i386.c (ix86_option_override_internal): Update
24901 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
24902 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
24903 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
24904 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
24905 of TARGET_3DNOW.
24906 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
24907
24908 2013-05-15 Andreas Schwab <schwab@suse.de>
24909
24910 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
24911 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
24912 third operand.
24913
24914 2013-05-15 Teresa Johnson <tejohnson@google.com>
24915
24916 * loop-unroll.c (report_unroll_peel): Check decision before
24917 emitting unroll/peel message.
24918
24919 2013-05-15 Teresa Johnson <tejohnson@google.com>
24920
24921 * function.h (has_bb_partition): New rtl_data flag.
24922 (bb_reorder_complete): Ditto.
24923 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
24924 instead of flag_reorder_blocks_and_partition.
24925 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
24926 with some enhancements.
24927 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
24928 * bb-reorder.c (connect_traces): Check for has_bb_partition
24929 instead of flag_reorder_blocks_and_partition.
24930 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
24931 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
24932 verify_hot_cold_block_grouping.
24933 (partition_hot_cold_basic_blocks): Set has_bb_partition.
24934
24935 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24936
24937 PR target/19599
24938 * config/arm/predicates.md (call_insn_operand): New predicate.
24939 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
24940 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
24941 if insn is not a tail call.
24942 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
24943 registers.
24944 * config/arm/arm.h (enum reg_class): New caller save register class.
24945 (REG_CLASS_NAMES): Likewise.
24946 (REG_CLASS_CONTENTS): Likewise.
24947 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
24948 without decls.
24949
24950 2013-05-15 Richard Biener <rguenther@suse.de>
24951
24952 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
24953 of MSG_OPTIMIZED_LOCATIONS.
24954 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
24955 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
24956 message.
24957 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
24958 of MSG_OPTIMIZED_LOCATIONS.
24959 (execute_vect_slp): Likewise.
24960 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
24961 (vect_create_cond_for_alias_checks): Likewise.
24962 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
24963 (vect_recog_widen_mult_pattern): Likewise.
24964 (vect_recog_widen_sum_pattern): Likewise.
24965 (vect_recog_over_widening_pattern): Likewise.
24966 (vect_recog_widen_shift_pattern): Likewise.
24967 (vect_recog_vector_vector_shift_pattern): Likewise.
24968 (vect_recog_divmod_pattern): Likewise.
24969 (vect_recog_mixed_size_cond_pattern): Likewise.
24970 (vect_recog_bool_pattern): Likewise.
24971 (vect_pattern_recog_1): Likewise.
24972
24973 2013-05-15 Martin Jambor <mjambor@suse.cz>
24974
24975 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
24976 non-functions to builtin_unreachable.
24977 * ipa-inline-transform.c (inline_call): Do not assert estimates were
24978 correct when new direct edges were discovered.
24979
24980 2013-05-15 Martin Jambor <mjambor@suse.cz>
24981
24982 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
24983 header, print symbol order instead of node uid, print more information
24984 about indirect edge targets.
24985 (ipa_make_edge_direct_to_target): Print symbol order instead of node
24986 uids.
24987 (ipa_make_edge_direct_to_target): Likewise.
24988 (remove_described_reference): Likewise.
24989 (propagate_controlled_uses): Likewise.
24990 (ipa_print_node_params): Also print symbol order.
24991 (ipcp_transform_function): Print symbol order instead of node uids.
24992 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
24993 (cgraph_get_create_real_symbol_node): Likewise.
24994 * ipa-cp.c (print_lattice): Likewise.
24995 (print_all_lattices): Likewise.
24996 (determine_versionability): Likewise.
24997 (initialize_node_lattices): Likewise.
24998 (estimate_local_effects): Likewise.
24999 (update_profiling_info): Likewise.
25000 (create_specialized_node): Likewise.
25001 (perhaps_add_new_callers): Likewise.
25002 (decide_about_value): Likewise.
25003 (decide_whether_version_node): Likewise.
25004 (identify_dead_nodes): Likewise.
25005 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
25006 (dump_inline_summary): Likewise.
25007 (estimate_node_size_and_time): Likewise.
25008 (inline_analyze_function): Likewise.
25009 * ipa-inline.c (report_inline_failed_reason): Likewise.
25010 (want_early_inline_function_p): Likewise.
25011 (edge_badness): Likewise.
25012 (update_edge_key): Likewise.
25013 (inline_small_functions): Likewise. Add dumping of order to two other
25014 dumps.
25015 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
25016 instead of node uids.
25017 (propagate_pure_const): Likewise.
25018 (propagate_pure_const): Likewise.
25019 * ipa-utils.c (dump_cgraph_node_set): Likewise.
25020 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
25021 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
25022 of node uids.
25023 * tree-pretty-print.c (dump_function_header): Likewise.
25024 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
25025 Print symbol order instead of node uids.
25026
25027 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25028
25029 * config/s390/s390.c (s390_register_move_cost): Don't impose the
25030 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
25031
25032 2013-05-15 Richard Biener <rguenther@suse.de>
25033
25034 PR tree-optimization/57275
25035 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
25036 return value for fail to do runtime alias checks for gather loads.
25037
25038 2013-05-15 Jan Hubicka <jh@suse.cz>
25039
25040 PR lto/57038
25041 PR lto/47375
25042 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
25043 weakrefs are not external.
25044 (lto_symtab_merge_decls): Fix thinko when dealing with
25045 non-lto_symtab decls.
25046 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
25047 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
25048 * varpool.c (dump_varpool_node): Dump more flags.
25049
25050 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
25051
25052 * config/i386/i386.c (processor_alias_table): Add instruction
25053 FSGSBASE for AMD bdver3 architecture.
25054
25055 2013-05-14 Jakub Jelinek <jakub@redhat.com>
25056
25057 * tree.c (warn_deprecated_use): Print file:line using locus color.
25058 * diagnostic.c (diagnostic_report_current_module): Print file:line
25059 and file:line:column using locus color.
25060
25061 2013-05-14 Mike Stump <mikestump@comcast.net>
25062
25063 * gdbinit.in: Add __null.
25064
25065 2013-05-14 Mike Stump <mikestump@comcast.net>
25066
25067 * recog.h: Rename struct recog_data to Recog_data.
25068 * recog.c: Likewise.
25069 * reload.c (can_reload_into): Likewise.
25070 * config/picochip/picochip.c: Likewise.
25071
25072 2013-05-14 Mike Stump <mikestump@comcast.net>
25073
25074 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
25075
25076 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
25077
25078 * resource.h (struct resources): Remove unch_memory member.
25079 (CLEAR_RESOURCE): Don't clear unch_memory.
25080 * resource.c (mark_referenced_resources): Don't set it.
25081 (mark_set_resources): Likewise.
25082 (mark_target_live_regs): Don't clear it.
25083 (init_resource_info): Likewise.
25084 * reorg.c (resource_conflicts_p): Don't compare it.
25085 (redundant_insn): Don't set it.
25086
25087 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
25088 Remove prototypes.
25089 * emit-rtl.c (next_label): Remove unused function.
25090 (skip_consecutive_labels, link_cc0_insns): Move to ...
25091 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
25092 only place where these functions are used, and make them static.
25093
25094 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
25095
25096 * fold-const.c (fold_negate_expr): Handle vectors.
25097 (fold_truth_not_expr): Make it static.
25098 (fold_invert_truthvalue): New static function.
25099 (invert_truthvalue_loc): Handle vectors. Do not call
25100 fold_truth_not_expr directly.
25101 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
25102 <TRUTH_NOT_EXPR>: Do not cast to boolean.
25103 (fold_comparison): Handle vector constants.
25104 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
25105 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
25106 * tree.h (fold_truth_not_expr): Remove declaration.
25107
25108 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
25109
25110 * config/aarch64/aarch64-simd.md
25111 (aarch64_vcond_internal<mode>): Rename to...
25112 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
25113 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
25114 float modes. Clarify all iterator modes.
25115 (vcond<mode><mode>): Use new name for vcond expanders.
25116 (vcond<v_cmp_result><mode>): Likewise.
25117 (vcondu<mode><mode>: Likewise.
25118 * config/aarch64/iterators.md (VDQF_COND): New.
25119
25120 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
25121
25122 PR bootstrap/57266
25123 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
25124 variable for the shift amount. Check that we shift by non-negative
25125 amounts.
25126
25127 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
25128
25129 PR target/42017
25130 * config/arm/arm.h (EPILOGUE_USES): Only return true
25131 for LR_REGNUM after epilogue_completed.
25132
25133 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
25134
25135 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
25136 is error_mark_node.
25137
25138 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25139
25140 PR target/57261
25141 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
25142 and Solaris 11+/x86 with gld.
25143 * configure: Regenerate.
25144
25145 2013-05-14 Jakub Jelinek <jakub@redhat.com>
25146
25147 * expmed.c (expand_shift_1): Canonicalize rotates by
25148 constant bitsize / 2 to bitsize - 1.
25149 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
25150 case ROTATERT>: Likewise.
25151
25152 Revert:
25153 2013-05-10 Jakub Jelinek <jakub@redhat.com>
25154
25155 * config/i386/i386.md (rotateinv): New code attr.
25156 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
25157 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
25158 roll $31, %eax, etc.
25159
25160 2013-05-14 Richard Biener <rguenther@suse.de>
25161
25162 PR middle-end/57235
25163 * tree-eh.c (sink_clobbers): Give up for successors with
25164 multiple predecessors and no virtual uses.
25165
25166 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
25167
25168 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
25169 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
25170
25171 2013-05-14 Jakub Jelinek <jakub@redhat.com>
25172
25173 PR middle-end/57251
25174 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
25175 the case when both op0 and op1 have VOIDmode.
25176
25177 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25178
25179 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
25180 in multiply-accumulate mode.
25181
25182 2013-05-13 Guozhi Wei <carrot@google.com>
25183
25184 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
25185
25186 2013-05-13 Kai Tietz <ktietz@redhat.com>
25187
25188 PR target/56975
25189 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
25190 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
25191 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
25192 * config/i386/i386.c (ix86_option_override_internal): Likewise.
25193 (ix86_expand_prologue): Likewise.
25194 (ix86_expand_split_stack_prologue): Likewise.
25195 (legitimate_pic_address_disp_p): Likewise.
25196 (legitimize_pic_address): Likewise.
25197 (legitimize_tls_address): Likewise.
25198 (legitimize_pe_coff_symbol): Likewise.
25199 (output_pic_addr_const): Likewise.
25200 (construct_plt_address): Likewise.
25201 (ix86_expand_call): Likewise.
25202 (x86_output_mi_thunk): Likewise.
25203 (x86_function_profiler): Likewise.
25204
25205 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
25206
25207 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
25208 similar switch cases.
25209 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
25210 (aarch64_simd_mov_to_<mode>low): Delete.
25211 (aarch64_simd_mov_to_<mode>high): Delete.
25212 (move_lo_quad_<mode>): Add w<-r alternative.
25213 (aarch64_simd_move_hi_quad_<mode>): Likewise.
25214 (aarch64_simd_mov_from_*): Update type attribute.
25215 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
25216 statement.
25217
25218 2013-05-13 Jan Hubicka <jh@suse.cz>
25219
25220 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
25221 * config/i386/i386.c (ix86_compute_frame_layout,
25222 ix86_expand_epilogue, emit_i387_cw_initialization,
25223 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
25224 ix86_local_alignment): Fix use of size/speed predicates.
25225
25226 2013-05-13 Jakub Jelinek <jakub@redhat.com>
25227
25228 PR tree-optimization/45216
25229 PR tree-optimization/57157
25230 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
25231 the (-Y) & (B - 1) variant if OP is |.
25232 * expmed.c (expand_shift_1): For rotations by const0_rtx just
25233 return shifted. Use (-op1) & (prec - 1) as other_amount
25234 instead of prec - op1.
25235
25236 2013-05-13 Martin Jambor <mjambor@suse.cz>
25237
25238 PR middle-end/42371
25239 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
25240 (ipa_constant_data): New type.
25241 (ipa_jump_func): Use ipa_constant_data to hold information about
25242 constant jump functions.
25243 (ipa_get_jf_constant): Adjust to jump function type changes.
25244 (ipa_get_jf_constant_rdesc): New function.
25245 (ipa_param_descriptor): New field controlled_uses.
25246 (ipa_get_controlled_uses): New function.
25247 (ipa_set_controlled_uses): Likewise.
25248 * ipa-ref.h (ipa_find_reference): Declare.
25249 * ipa-prop.c (ipa_cst_ref_desc): New type.
25250 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
25251 changes.
25252 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
25253 New parameter cs. Adjust all callers.
25254 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
25255 (remove_described_reference): New function.
25256 (jfunc_rdesc_usable): Likewise.
25257 (try_make_edge_direct_simple_call): Decrement controlled use count,
25258 attempt to remove reference if it hits zero.
25259 (combine_controlled_uses_counters): New function.
25260 (propagate_controlled_uses): Likewise.
25261 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
25262 (ipa_edge_duplication_hook): Duplicate reference descriptions.
25263 (ipa_print_node_params): Print described use counter.
25264 (ipa_write_jump_function): Adjust to jump function type changes.
25265 (ipa_read_jump_function): New parameter CS, pass it to
25266 ipa_set_jf_constant. Adjust caller.
25267 (ipa_write_node_info): Stream controlled use count
25268 (ipa_read_node_info): Likewise.
25269 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
25270 asserting.
25271 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
25272 count. Remove cloning-added reference if it reaches zero.
25273 * ipa-ref.c (ipa_find_reference): New function.
25274
25275 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
25276
25277 * config/i386/i386.c (processor_target_table): Modified default
25278 alignment values for AMD BD and BT architectures.
25279
25280 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
25281
25282 * tree-vect-generic.c (uniform_vector_p): Move ...
25283 * tree.c (uniform_vector_p): ... here.
25284 * tree.h (uniform_vector_p): Declare it.
25285 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
25286 into a scalar.
25287
25288 2013-05-13 Jakub Jelinek <jakub@redhat.com>
25289
25290 PR tree-optimization/57230
25291 * tree-ssa-strlen.c (handle_char_store): Record length for
25292 array store from STRING_CST.
25293
25294 PR tree-optimization/57230
25295 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
25296 check.
25297
25298 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
25299
25300 * config/epiphany/epiphany.c (epiphany_init): Check size of
25301 NUM_MODES_FOR_MODE_SWITCHING.
25302 (epiphany_expand_prologue):
25303 Remove CONFIG_REGNUM initial value handling code.
25304 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
25305 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
25306 (emit_set_fp_mode, epiphany_mode_after): Likewise.
25307 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
25308 Don't return 1 for FP_MODE_NONE.
25309 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
25310 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
25311 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
25312 * config/epiphany/epiphany.md (save_config): New pattern.
25313
25314 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
25315
25316 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
25317
25318 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
25319
25320 * config/i386/i386.md (memory): Handle sseishft1.
25321 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
25322 (*vec_extractv2di_1): Ditto.
25323
25324 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
25325
25326 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
25327 saved registers.
25328
25329 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
25330
25331 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
25332 Add mthumb/march=armv7-a multilib.
25333 Add mthumb/march=armv7-r multilib.
25334 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
25335
25336 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
25337
25338 * config/v850/t-rtems: Add more multilibs.
25339
25340 2013-05-10 Richard Biener <rguenther@suse.de>
25341
25342 PR tree-optimization/57214
25343 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
25344 not propagate from SSA names that occur in abnormal PHI nodes.
25345
25346 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
25347
25348 * stor-layout.c (element_precision): New function.
25349 * machmode.h (element_precision): Declare it.
25350 * tree.c (build_minus_one_cst): New function.
25351 (element_precision): Likewise.
25352 * tree.h (build_minus_one_cst): Declare new function.
25353 (element_precision): Likewise.
25354 * fold-const.c (operand_equal_p): Use element_precision.
25355 (fold_binary_loc): Handle vector types.
25356 * convert.c (convert_to_integer): Use element_precision.
25357 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
25358 separately.
25359
25360 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
25361
25362 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
25363 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
25364 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
25365 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
25366 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
25367 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
25368 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
25369 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
25370 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
25371 (Uuw8): New constraints.
25372 (Usb4): Move into alphabetical order.
25373 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
25374 (sd8_operand, ub8_operand, uw8_operand): New predicates.
25375 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
25376 previously unnamed patterns.
25377 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
25378 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
25379 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
25380 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
25381 of set_attr_alternative/if_then_else. Use extended_mips16 instead
25382 of specific lengths.
25383
25384 2013-05-10 Jakub Jelinek <jakub@redhat.com>
25385
25386 * config/i386/i386.md (rotateinv): New code attr.
25387 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
25388 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
25389 roll $31, %eax, etc.
25390
25391 PR tree-optimization/45216
25392 PR tree-optimization/57157
25393 * tree-ssa-forwprop.c (simplify_rotate): New function.
25394 (ssa_forward_propagate_and_combine): Call it.
25395
25396 2013-05-10 Richard Biener <rguenther@suse.de>
25397
25398 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
25399 disable peeling when we version for aliasing.
25400 (vector_alignment_reachable_p): Honor explicit user alignment.
25401 (vect_supportable_dr_alignment): Likewise.
25402 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
25403 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
25404 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
25405 then peeling to arrange for the cost-model check to come first.
25406
25407 2013-05-10 Alan Modra <amodra@gmail.com>
25408
25409 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
25410 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
25411 * configure: Regenerate.
25412
25413 2013-05-10 Alan Modra <amodra@gmail.com>
25414
25415 PR target/55033
25416 * varasm.c (default_elf_select_section): Move !DECL_P check..
25417 (get_named_section): ..to here before calling get_section_name.
25418 Adjust assertion.
25419 (default_section_type_flags): Add DECL_P check.
25420 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
25421 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
25422
25423 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
25424
25425 * config/epiphany/epiphany.c (epiphany_expand_prologue):
25426 When using gen_stack_adjust_str with a register offset, add a
25427 REG_FRAME_RELATED_EXPR note.
25428
25429 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
25430
25431 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
25432 (*vec_extractv4si_zext_mem): Ditto.
25433 (*vec_extractv2di): Add 0->x and x->x alternatives.
25434 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
25435 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
25436
25437 2013-05-09 Jason Merrill <jason@redhat.com>
25438
25439 N3639 C++1y VLA support
25440 * gimplify.c (gimplify_vla_decl): Don't touch an existing
25441 DECL_VALUE_EXPR.
25442
25443 * tree.c (build_constructor_va): New.
25444 * tree.h: Declare it.
25445
25446 2013-05-09 Martin Jambor <mjambor@suse.cz>
25447
25448 PR lto/57084
25449 * gimple-fold.c (canonicalize_constructor_val): Call
25450 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
25451
25452 2013-05-09 Jan Hubicka <jh@suse.cz>
25453 Richard Biener <rguenther@suse.de>
25454
25455 PR lto/54095
25456 * symtab.c (symtab_make_decl_local): Do not add private names.
25457
25458 2013-05-09 Jan Hubicka <jh@suse.cz>
25459
25460 PR lto/54095
25461 * symtab.c (insert_to_assembler_name_hash): Handle clones.
25462 (unlink_from_assembler_name_hash): Likewise.
25463 (symtab_prevail_in_asm_name_hash, symtab_register_node,
25464 symtab_unregister_node, symtab_initialize_asm_name_hash,
25465 change_decl_assembler_name): Update.
25466
25467 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
25468
25469 * config/aarch64/aarch64.md: New movtf split.
25470 (*movtf_aarch64): Update.
25471 (aarch64_movdi_tilow): Handle TF modes and rename to
25472 aarch64_movdi_<mode>low.
25473 (aarch64_movdi_tihigh): Handle TF modes and rename to
25474 aarch64_movdi_<mode>high
25475 (aarch64_movtihigh_di): Handle TF modes and rename to
25476 aarch64_mov<mode>high_di
25477 (aarch64_movtilow_di): Handle TF modes and rename to
25478 aarch64_mov<mode>low_di
25479 (aarch64_movtilow_tilow): Remove spurious whitespace.
25480 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
25481 splits.
25482 (aarch64_print_operand): Update.
25483
25484 2013-05-09 Alan Modra <amodra@gmail.com>
25485
25486 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
25487 powerpc64le.
25488 * configure: Regenerate.
25489
25490 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
25491
25492 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
25493 splitter preparation statements.
25494 * config/i386/sse.md (*vec_extract* splitters): Ditto.
25495 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
25496 adjust_address_nv.
25497
25498 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25499
25500 * gimple-ssa-strength-reduction.c (count_candidates): Change
25501 return value to int.
25502 (analyze_candidates_and_replace): Change type of length to int.
25503
25504 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
25505
25506 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
25507 (*vec_extract<mode>): Use VI12_128 mode iterator.
25508 (*vec_extract<mode>_mem): Ditto.
25509 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
25510 attribute.
25511
25512 2013-05-08 Diego Novillo <dnovillo@google.com>
25513
25514 PR bootstrap/54659
25515
25516 Revert:
25517 2012-08-17 Diego Novillo <dnovillo@google.com>
25518
25519 PR bootstrap/54281
25520 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
25521 * config.in: Regenerate.
25522 * configure: Regenerate.
25523 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
25524
25525 2013-05-08 Jan Hubicka <jh@suse.cz>
25526
25527 PR lto/54095
25528 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
25529 * cgraph.h (symtab_node_base): Add unique_name.
25530 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25531 input_overwrite_node, input_varpool_node): Stream unique_name.
25532 * cgraphclones.c (cgraph_create_virtual_clone,
25533 cgraph_function_versioning): Set unique_name.
25534 * ipa.c (function_and_variable_visibility): Set unique_name.
25535
25536 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25537
25538 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
25539 (alloc_cand_and_find_basis): Restrict conditional candidate
25540 processing to CAND_MULTs.
25541
25542 2013-05-08 Jan Hubicka <jh@suse.cz>
25543
25544 PR lto/54095
25545 lto-symtab.c (lto_symtab_symbol_p): New function.
25546 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
25547 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
25548 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
25549 Skip static symbols.
25550
25551 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
25552
25553 PR tree-optimization/57200
25554 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
25555 Only call inform if the preceding warning_at returns true.
25556
25557 2013-05-07 Han Shen <shenhan@google.com>
25558
25559 * cfgexpand.c (record_or_union_type_has_array_p): New function.
25560 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
25561 * common.opt (fstack-protector-strong): New option.
25562 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
25563 * doc/invoke.texi (Optimization Options): Document
25564 "-fstack-protector-strong".
25565 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
25566
25567 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
25568
25569 * config/mips/mips.c (mips_machine_reorg2): Return 0.
25570
25571 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
25572
25573 * ira.c (update_equiv_regs): Add insn having equiv memory even if
25574 it is not lhs of the insn.
25575 (setup_reg_equiv): Remove insn having equiv memory which it is not
25576 lhs of the insn.
25577 * lra-constraints.c (process_address): Try to improve generation
25578 code for address base + disp.
25579 (lra_constraints): Make correct the code for checking insn setting
25580 up backward equivalence. Remove insn only if it is in the init
25581 insn list.
25582 * lra-eliminations.c (update_reg_eliminate): Change return value.
25583 (lra_eliminate): Use the result.
25584
25585 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
25586
25587 * config/i386/sse.md (ssescalarnummask): New mode attribute.
25588 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
25589 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
25590 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
25591 register target operands.
25592 (*vec_extractv8hi_sse2): New pattern.
25593 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
25594 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
25595 (*vec_extract<mode>_mem): New insn and split pattern.
25596
25597 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
25598
25599 * config/arm/arm.c (arm_asan_shadow_offset): New function.
25600 (TARGET_ASAN_SHADOW_OFFSET): Define.
25601 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
25602 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
25603
25604 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25605
25606 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
25607 (incr_vec_index): Return -1 if increment not found.
25608 (create_add_on_incoming_edge): Assert if increment not found.
25609 (record_increment): Limit number of increments recorded.
25610 (all_phi_incrs_profitable): Return false if an increment not found.
25611 (replace_profitable_candidates): Don't process increments that were
25612 not recorded.
25613 (analyze_candidates_and_replace): Limit size of incr_vec.
25614
25615 2013-05-07 Richard Biener <rguenther@suse.de>
25616
25617 * calls.c (special_function_p): setjmp-like functions are leaf.
25618 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
25619 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
25620
25621 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
25622
25623 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
25624 (aarch64_simd_mov<mode>): New expander.
25625 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
25626 (aarch64_simd_mov_to_<mode>high): Likewise.
25627 (aarch64_simd_mov_from_<mode>low): Likewise.
25628 (aarch64_simd_mov_from_<mode>high): Likewise.
25629 (aarch64_dup_lane<mode>): Update.
25630 (aarch64_dup_lanedi): New instruction pattern.
25631 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
25632 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
25633
25634 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25635
25636 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
25637 (replace_mult_candidate): Remove unnecessary argument; remove
25638 unnecessary parameter from call to introduce_cast_before_cand.
25639 (replace_unconditional_candidate): Remove unnecessary parameter
25640 from call to replace_mult_candidate.
25641 (replace_conditional_candidate): Likewise.
25642 (insert_initializers): Use make_temp_ssa_name.
25643 (introduce_cast_before_cand): Remove unnecessary argument; use
25644 make_temp_ssa_name.
25645 (replace_one_candidate): Remove unnecessary argument; remove
25646 unnecessary parameter from calls to introduce_cast_before_cand.
25647 (replace_profitable_candidates): Remove unnecessary parameters
25648 from calls to replace_one_candidate.
25649
25650 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25651
25652 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
25653 phi def as possibly hiding a basis for a CAND_ADD whose operands
25654 have been commuted in the analysis.
25655 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
25656
25657 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25658
25659 * config/aarch64/aarch64.md
25660 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
25661 shift value between 0-4.
25662
25663 2013-05-07 Richard Biener <rguenther@suse.de>
25664
25665 * double-int.h (rshift): New overload.
25666 * double-int.c (rshift): New function.
25667 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
25668 (create_reference_ops_from_ref): Remove.
25669 (vn_reference_insert): Use shared ops for constructing the
25670 reference and copy it.
25671
25672 2013-05-07 Richard Biener <rguenther@suse.de>
25673
25674 PR middle-end/57190
25675 * tree-eh.c (sink_clobbers): Properly propagate
25676 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
25677
25678 2013-05-07 Jakub Jelinek <jakub@redhat.com>
25679
25680 PR tree-optimization/57149
25681 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
25682 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
25683 collect_phi_def_edges, execute_late_warn_uninitialized): Use
25684 uninit_undefined_value_p instead of ssa_undefined_value_p.
25685
25686 PR debug/57184
25687 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
25688 for modifier == EXPAND_INITIALIZER.
25689
25690 2013-05-07 Anton Blanchard <anton@samba.org>
25691
25692 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
25693 for powerpc64 little endian.
25694 * configure: Regenerate.
25695
25696 2013-05-06 Graham Stott <grahams@btinternet.com>
25697
25698 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
25699 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
25700 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
25701 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
25702
25703 2013-05-06 Graham Stott <grahams@btinternet.com>
25704
25705 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
25706 codes which allow non-lvalues.
25707
25708 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
25709
25710 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
25711 components are all 1s.
25712 (integer_minus_onep): New function.
25713 * tree.h (integer_minus_onep): Declare it.
25714 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
25715 integer_minus_onep instead of integer_all_onesp.
25716
25717 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25718
25719 PR target/52933
25720 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
25721 variations of these patterns.
25722
25723 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
25724
25725 * config/i386/i386.md (isa): Add x64_sse4 member.
25726 (enabled): Handle x64_sse4.
25727 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
25728 instruction for 64bit SSE4_1 targets. Update insn attributes.
25729 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
25730 instruction for SSE4_1 targets. Update insn attributes.
25731 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
25732 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
25733 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
25734 const_1 selector.
25735 (*vec_extractv4si): Rename from *sse4_1_pextrd.
25736 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
25737 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
25738
25739 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25740
25741 PR target/57108
25742 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
25743
25744 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
25745
25746 * final.c (do_assembler_dialects): Don't handle curly braces and
25747 vertical bar escaped by % as dialect delimiters.
25748 (output_asm_insn): Print curly braces and vertical bar if escaped
25749 by % and ASSEMBLER_DIALECT defined.
25750 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
25751 * doc/tm.texi: Regenerated.
25752
25753 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
25754
25755 * config/mips/mips.c: Include tree-pass.h.
25756 (mips_reorg): Split in pre- and post-dbr_schedule parts.
25757 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
25758 (pass_mips_machine_reorg2): New machine specific pass.
25759 (insert_pass_mips_machine_reorg2): New pass plugin definition.
25760 (mips_option_override): Register the new pass.
25761 * rtl.h (cleanup_barriers): Remove prototype.
25762 (dbr_schedule): Likewise.
25763 * jump.c (cleanup_barriers): Make static.
25764 * reorg.c (dbr_schedule): Likewise.
25765
25766 2013-05-06 Richard Biener <rguenther@suse.de>
25767
25768 PR tree-optimization/57185
25769 * tree-parloops.c (add_field_for_reduction): Handle anonymous
25770 SSA names properly.
25771
25772 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
25773
25774 PR target/57106
25775 * config/i386/i386.c (add_parameter_dependencies): Add dependence
25776 between "first_arg" and "insn", not "last" and "insn".
25777
25778 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25779
25780 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
25781 (find_candidates_in_block): Re-enable slsr_process_phi.
25782 (create_phi_basis): Fix double counting of candidate adjustment.
25783
25784 2013-05-06 Richard Biener <rguenther@suse.de>
25785
25786 PR middle-end/57147
25787 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
25788 the edge is also fallthru, preserve it and just clear the
25789 abnormal flag.
25790 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
25791 also complex, preserve that and just clear the fallthru flag.
25792 * tree-inline.c (update_ssa_across_abnormal_edges): Also
25793 update virtual operands.
25794
25795 2013-05-06 Alan Modra <amodra@gmail.com>
25796
25797 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
25798 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
25799 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
25800 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
25801 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
25802 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
25803
25804 2013-05-06 Alan Modra <amodra@gmail.com>
25805
25806 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
25807 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
25808 (DEFAULT_ASM_ENDIAN): Define.
25809 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
25810 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
25811 Update -K PIC clause from sysv4.h.
25812 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
25813 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
25814
25815 2013-05-06 Alan Modra <amodra@gmail.com>
25816
25817 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
25818 twice for little-endian.
25819 (ashrdi3_no_power, ashrdi3): Support little-endian.
25820
25821 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25822
25823 PR target/55303
25824 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
25825 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
25826 related expanders.
25827 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
25828 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
25829 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
25830 New predicates.
25831
25832 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
25833 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25834
25835 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
25836 * config/pa/pa.opt: Make mbig-switch a no-op.
25837 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
25838 (CASE_VECTOR_MODE): Always return SImode.
25839 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
25840 for the !TARGET_BIG_SWITCH case.
25841 * config/pa/pa-linux.h: Likewise.
25842 * config/pa/pa-openbsd.h: Likewise.
25843 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
25844 * config/pa/pa.md (short_jump): Remove define_insn.
25845 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
25846 (casesi0): Remove define_insn.
25847 (type): Remove btable_branch.
25848 (pa_combine_type): Likewise.
25849 (in_nullified_branch_delay): Likewise.
25850 (in_call_delay): Likewise.
25851 (define_delay): Likewise.
25852 (define_insn_reservation "Z3"): Likewise.
25853 (define_insn_reservation "Z4"): Likewise.
25854 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
25855 (pa_adjust_insn_length): Remove adjustment for btable branches.
25856 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
25857 and mno-big-switch
25858
25859 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
25860
25861 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
25862 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
25863 Add m->r,x alternatives.
25864 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
25865 splitters using SWI48x mode iterator.
25866 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
25867 TARGET_64BIT. Add m->x alternative.
25868 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
25869 Add o->x alternative. Enable for TARGET_SSE.
25870 (sse_storeq): Remove expander.
25871 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
25872 with memory input operand.
25873 (*vec_extractv2di_1 splitter): New.
25874 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
25875 * config/i386/i386.md (ssevecmodelower): New mode attribute.
25876
25877 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25878
25879 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
25880 (INT_LOWPART): Delete.
25881 (extract_MB): Adjust.
25882 (extract_ME): Adjust.
25883 (print_operand): Adjust.
25884
25885 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25886
25887 * config/rs6000/predicates.md (reg_or_add_cint_operand,
25888 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
25889 (reg_or_logical_cint_operand, easy_fp_constant,
25890 logical_const_operand): Delete "CONST_DOUBLE" case.
25891 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
25892 "HOST_BITS_PER_WIDE_INT == 64" test.
25893 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
25894 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
25895 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
25896 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
25897 test.
25898 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
25899 CONST_DOUBLE DImode/VOIDmode case.
25900 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
25901 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
25902 CONST_DOUBLE VOIDmode case.
25903 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
25904 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
25905 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
25906 Delete CONST_DOUBLE case.
25907 (splitters for mov FMOVE64 const_double): Delete
25908 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
25909 "HOST_BITS_PER_WIDE_INT >= 64" test.
25910 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
25911 case.
25912 (mov DI const_double): Delete.
25913
25914 2013-05-04 Jakub Jelinek <jakub@redhat.com>
25915
25916 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
25917 on op shows all bits zero in mode of a lowpart subreg, return zero.
25918
25919 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
25920
25921 PR target/57150
25922 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
25923 to save TFmode registers and DImode to save TImode registers for
25924 caller save operations.
25925 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
25926 mark being partially clobbered since they only use the first
25927 double word.
25928
25929 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
25930 and TDmode only use the upper 64-bits of each VSX register.
25931
25932 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25933
25934 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
25935 (find_candidates_in_block): Disable slsr_process_phi.
25936
25937 2013-05-03 Guozhi Wei <carrot@google.com>
25938
25939 * coverage.c (coverage_obj_init): Move the construction of gcov
25940 constructor to ...
25941 (build_init_ctor): ... here.
25942
25943 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25944
25945 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
25946 (slsr_cand_d): Redefine def_phi.
25947 (stride_status, phi_adjust_status, count_phis_status): New enums.
25948 (find_phi_def): New.
25949 (find_basis_for_base_expr): New.
25950 (find_basis_for_candidate): Handle hidden bases.
25951 (alloc_cand_and_find_basis): Handle phi candidates.
25952 (slsr_process_phi): New.
25953 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
25954 (create_mul_imm_cand): Likewise.
25955 (create_add_ssa_cand): Exclude phi base candidates.
25956 (create_add_imm_cand): Likewise.
25957 (slsr_process_cast): Likewise.
25958 (slsr_process_copy): Likewise.
25959 (find_candidates_in_block): Handle phi candidates.
25960 (dump_candidate): Likewise.
25961 (unconditional_cands): Delete.
25962 (unconditional_cands_with_known_stride_p): Delete.
25963 (phi_dependent_cand_p): New.
25964 (cand_increment): Handle phi-dependent candidates.
25965 (replace_dependent): Delete.
25966 (replace_mult_candidate): New.
25967 (replace_unconditional_candidate): New.
25968 (incr_vec_index): Move to avoid forward reference.
25969 (create_add_on_incoming_edge): New.
25970 (create_phi_basis): New.
25971 (replace_dependents): Delete.
25972 (replace_conditional_candidate): New.
25973 (phi_add_costs): New.
25974 (replace_uncond_cands_and_profitable_phis): New.
25975 (record_increment): Handle phi adjustments.
25976 (record_phi_increments): New.
25977 (record_increments): Handle phi adjustments.
25978 (phi_incr_cost): New.
25979 (lowest_cost_path): Handle phis.
25980 (total_savings): Likewise.
25981 (analyze_increments): Likewise.
25982 (ncd_with_phi): New.
25983 (ncd_of_cand_and_phis): New.
25984 (nearest_common_dominator_for_cands): Handle phi increments.
25985 (all_phi_incrs_profitable): New.
25986 (replace_profitable_candidates): Handle phi-dependent candidates.
25987 (analyze_candidates_and_replace): Likewise.
25988
25989 2013-05-03 Teresa Johnson <tejohnson@google.com>
25990
25991 PR bootstrap/57154
25992 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
25993 do not exceed REG_BR_PROB_BASE.
25994
25995 2013-05-03 Jeff Law <law@redhat.com>
25996
25997 PR tree-optimization/57144
25998 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
25999 operand of the condition will bit into the new type when eliminating
26000 a cast feeding a condition.
26001
26002 2013-05-03 Jakub Jelinek <jakub@redhat.com>
26003
26004 PR rtl-optimization/57130
26005 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
26006 of COMPARE as in_code to the recursive call if needed.
26007
26008 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
26009
26010 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
26011 (enabled): Handle new members.
26012 * config/i386/sse.md (*vec_concatv2si): Merge from
26013 *vec_concatv2si_sse2 and vec_concatv2si_sse.
26014 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
26015
26016 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
26017
26018 PR tree-optimization/57027
26019 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
26020 for fnms opportunity, check we got the prerequisite kind
26021 of tree / gimple before using accessor functions.
26022
26023 2013-05-03 Richard Biener <rguenther@suse.de>
26024
26025 * double-int.h (lshift): New overload without precision
26026 and arith argument.
26027 (operator *=, operator +=, operator -=): Move ...
26028 * double-int.c (operator *=, operator +=, operator -=): ... here
26029 and implement more efficiently.
26030 (mul_double_with_sign): Remove.
26031 (lshift_double): Adjust to take unsinged shift argument, push
26032 dispatching code to callers.
26033 (mul_double_wide_with_sign): Add early out for callers that
26034 are not interested in high parts or overflow.
26035 (lshift): New function.
26036 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
26037 dispatch code here.
26038 (lrotate, rrotate): Use logical shifts.
26039 * expr.c (get_inner_reference): Use lshift.
26040 * fixed-value.c (do_fixed_divide): Likewise.
26041 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26042 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26043 (indirect_refs_may_alias_p): Likewise.
26044 (stmt_kills_ref_p_1): Likewise.
26045
26046 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
26047
26048 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
26049
26050 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
26051
26052 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
26053 scalar form of FABD instruction.
26054
26055 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
26056
26057 * lra-constraints.c (process_alt_operands): Add checking alt
26058 number to choose the best alternative.
26059
26060 2013-05-02 Richard Biener <rguenther@suse.de>
26061
26062 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
26063 bitmap and its handling.
26064 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
26065
26066 2013-05-02 Richard Biener <rguenther@suse.de>
26067
26068 PR middle-end/57140
26069 * tree-inline.c (copy_loops): Properly handle removed loops.
26070 (copy_cfg_body): Mark destination loops for fixup if source
26071 loops needed fixup.
26072
26073 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
26074
26075 PR target/56732
26076 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
26077 generating simple_return for naked functions.
26078
26079 2013-05-02 Martin Jambor <mjambor@suse.cz>
26080
26081 PR middle-end/56988
26082 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
26083 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
26084 flags match.
26085 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
26086 ipa_agg_replacement_value structures.
26087 (known_aggs_to_agg_replacement_list): Likewise.
26088 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
26089 (read_agg_replacement_chain): Likewise.
26090 (ipcp_transform_function): Also check that by_ref flags match.
26091
26092 2013-05-02 Richard Biener <rguenther@suse.de>
26093
26094 * graphds.h (struct graph): Add obstack member.
26095 * graphds.c (new_graph): Initialize obstack and allocate
26096 vertices from it.
26097 (add_edge): Allocate edge from the obstack.
26098 (free_graph): Free the obstack instead of all edges and vertices.
26099
26100 2013-05-02 Teresa Johnson <tejohnson@google.com>
26101
26102 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
26103 divides.
26104 * cfg.c (update_bb_profile_for_threading): Ditto.
26105 * tree-inline.c (copy_bb): Ditto.
26106 (copy_edges_for_bb): Ditto.
26107 (initialize_cfun): Ditto.
26108 (copy_cfg_body): Ditto.
26109 (expand_call_inline): Ditto.
26110 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
26111 (estimate_node_size_and_time): Ditto.
26112 (inline_merge_summary): Ditto.
26113 * cgraphclones.c (cgraph_clone_edge): Ditto.
26114 (cgraph_clone_node): Ditto.
26115 * sched-rgn.c (compute_dom_prob_ps): Ditto.
26116 (compute_trg_info): Ditto.
26117
26118 2013-05-02 Ian Bolton <ian.bolton@arm.com>
26119
26120 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
26121 S reg when fp attribute set.
26122 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
26123
26124 2013-05-02 Ian Bolton <ian.bolton@arm.com>
26125
26126 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
26127 New pattern.
26128 (*and_one_cmplsi3_compare0_uxtw): Likewise.
26129 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
26130 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
26131
26132 2013-05-02 Richard Biener <rguenther@suse.de>
26133
26134 * tree-scalar-evolution.c (scev_info_hasher): Remove.
26135 (struct instantiate_cache_entry): New type.
26136 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
26137 (struct instantiate_cache_type): New type.
26138 (set_instantiated_value, get_instantiated_value): Remove.
26139 (get_instantiated_value_entry): New function.
26140 (instantiate_scev_name): Use the new cache and adjust.
26141 (instantiate_scev_poly): Adjust.
26142 (instantiate_scev_binary): Likewise.
26143 (instantiate_array_ref): Likewise.
26144 (instantiate_scev_convert): Likewise.
26145 (instantiate_scev_not): Likewise.
26146 (instantiate_scev_3): Likewise.
26147 (instantiate_scev_2): Likewise.
26148 (instantiate_scev_r): Likewise.
26149 (instantiate_scev): Likewise.
26150 (resolve_mixers): Likewise.
26151
26152 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
26153
26154 PR target/57091
26155 * lra-constraints.c (best_small_class_operands_num): Remove.
26156 (process_alt_operands): Remove small_class_operands_num. Take
26157 small classes operands into losers and only if the operand is not
26158 matched. Modify debugging output.
26159 (curr_insn_transform): Remove best_small_class_operands_num.
26160 Print insn name.
26161
26162 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26163
26164 * config/aarch64/aarch64-builtins.c
26165 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
26166 * config/aarch64/aarch64-simd-builtins.def
26167 (reduc_splus_): Add new modes.
26168 (reduc_uplus_): New.
26169 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
26170 (reduc_uplus_v4sf): Likewise.
26171 (reduc_splus_v4sf): Likewise.
26172 (aarch64_addv<mode>): Likewise.
26173 (reduc_uplus_<mode>): Likewise.
26174 (reduc_splus_<mode>): Likewise.
26175 (aarch64_addvv2di): Likewise.
26176 (reduc_uplus_v2di): Likewise.
26177 (reduc_splus_v2di): Likewise.
26178 (aarch64_addvv2si): Likewise.
26179 (reduc_uplus_v2si): Likewise.
26180 (reduc_splus_v2si): Likewise.
26181 (reduc_<sur>plus_<mode>): New.
26182 (reduc_<sur>plus_v2di): Likewise.
26183 (reduc_<sur>plus_v2si): Likewise.
26184 (reduc_<sur>plus_v4sf): Likewise.
26185 (aarch64_addpv4sf): Likewise.
26186 * config/aarch64/arm_neon.h
26187 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
26188 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
26189 add UNSPEC_SADDV, UNSPEC_UADDV.
26190 (SUADDV): New.
26191 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
26192
26193 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26194
26195 * config/aarch64/arm_neon.h
26196 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
26197
26198 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26199
26200 * config/aarch64/aarch64-builtins
26201 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
26202
26203 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26204
26205 * config/aarch64/aarch64-simd-builtins.def
26206 (reduc_smax_): New.
26207 (reduc_smin_): Likewise.
26208 (reduc_umax_): Likewise.
26209 (reduc_umin_): Likewise.
26210 (reduc_smax_nan_): Likewise.
26211 (reduc_smin_nan_): Likewise.
26212 (fmax): Remove.
26213 (fmin): Likewise.
26214 (smax): Update for V2SF, V4SF and V2DF modes.
26215 (smin): Likewise.
26216 (smax_nan): New.
26217 (smin_nan): Likewise.
26218 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
26219 (<su><maxmin><mode>3): ...This, refactor.
26220 (s<maxmin><mode>3): New.
26221 (<maxmin_uns><mode>3): Likewise.
26222 (reduc_<maxmin_uns>_<mode>): Refactor.
26223 (reduc_<maxmin_uns>_v4sf): Likewise.
26224 (reduc_<maxmin_uns>_v2si): Likewise.
26225 (aarch64_<fmaxmin><mode>: Remove.
26226 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
26227 new builtin names.
26228 (vmin<q>_f<32,64>): Likewise.
26229 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
26230 (FMAXMIN): New.
26231 (su): Add mappings for smax, smin, umax, umin.
26232 (maxmin): New.
26233 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
26234 (FMAXMIN): Rename as...
26235 (FMAXMIN_UNS): ...This.
26236 (maxminv): Remove.
26237 (fmaxminv): Likewise.
26238 (fmaxmin): Likewise.
26239 (maxmin_uns): New.
26240 (maxmin_uns_op): Likewise.
26241
26242 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26243
26244 * config/aarch64/arm_neon.h
26245 (vac<ge, gt><sd>_f<32, 64>): Rename to...
26246 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
26247 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
26248
26249 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26250
26251 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
26252 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
26253
26254 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26255
26256 * config/aarch64/aarch64-simd.md
26257 (vcond<mode>_internal): Handle special cases for constant masks.
26258 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
26259 (vcondu<mode><mode>): Likewise.
26260 (vcond<v_cmp_result><mode>): New.
26261
26262 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26263
26264 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
26265 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
26266 * config/aarch64/aarch64-simd-builtins.def
26267 (cmeq): Update to BUILTIN_VALLDI.
26268 (cmgt): Likewise.
26269 (cmge): Likewise.
26270 (cmle): Likewise.
26271 (cmlt): Likewise.
26272 * config/aarch64/arm_neon.h
26273 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
26274 to builtins or C as appropriate.
26275
26276 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26277
26278 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
26279 (cmgeu): ...This.
26280 (cmhi): Rename to...
26281 (cmgtu): ...This.
26282 * config/aarch64/aarch64-simd.md
26283 (simd_mode): Add SF.
26284 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
26285 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
26286 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
26287 (cstore<mode>_neg): ...This.
26288 * config/aarch64/iterators.md
26289 (VALLF): new.
26290 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
26291 (COMPARISONS): New.
26292 (UCOMPARISONS): Likewise.
26293 (optab): Add missing comparisons.
26294 (n_optab): New.
26295 (cmp_1): Likewise.
26296 (cmp_2): Likewise.
26297 (CMP): Likewise.
26298 (cmp): Remove.
26299 (VCMP_S): Likewise.
26300 (VCMP_U): Likewise.
26301 (V_cmp_result): Add DF, SF modes.
26302 (v_cmp_result): Likewise.
26303 (v): Likewise.
26304 (vmtype): Likewise.
26305 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
26306
26307 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
26308
26309 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
26310 define_insn to define_insn_and_split.
26311 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
26312 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
26313 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
26314 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
26315 (thumb2_negscc): Likewise.
26316
26317 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
26318
26319 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
26320
26321 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
26322
26323 * config/arm/thumb2.md: Remove trailing whitespaces.
26324
26325 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26326
26327 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
26328 Use gen_int_mode rather than GEN_INT.
26329
26330 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
26331
26332 * value-prof.c (stream_in_histogram_value): Remove the strayed
26333 debug_gimple_stmt.
26334
26335 2013-04-30 Richard Biener <rguenther@suse.de>
26336
26337 PR middle-end/57122
26338 * cfghooks.c (split_edge): Properly check for the loop latch edge.
26339
26340 2013-04-30 Richard Biener <rguenther@suse.de>
26341
26342 PR middle-end/57107
26343 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
26344
26345 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
26346
26347 PR rtl-optimization/56957
26348 PR rtl-optimization/57105
26349 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
26350 variable. Use just INSN_UID for determining whether an insn
26351 should be only disconnected from the insn stream.
26352 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
26353
26354 2013-04-30 Jakub Jelinek <jakub@redhat.com>
26355
26356 PR tree-optimization/57104
26357 * tsan.c (instrument_expr): Don't instrument accesses to
26358 DECL_HARD_REGISTER VAR_DECLs.
26359
26360 2013-04-30 Richard Biener <rguenther@suse.de>
26361
26362 * function.h (loops_for_fn): New inline function.
26363 (set_loops_for_fn): Likewise.
26364 * cfgloop.h (place_new_loop): Add struct function parameter.
26365 (get_loop): Likewise.
26366 (get_loops): Likewise.
26367 (number_of_loops): Likewise.
26368 (fel_next): Adjust.
26369 (fel_init): Likewise.
26370 * cfg.c (get_loop_copy): Adjust.
26371 * cfgloop.c (flow_loops_dump): Likewise.
26372 (record_loop_exits): Likewise.
26373 (verify_loop_structure): Likewise.
26374 * cfgloopanal.c (mark_irreducible_loops): Likewise.
26375 (estimate_reg_pressure_cost): Likewise.
26376 (mark_loop_exit_edges): Likewise.
26377 * cfgloopmanip.c (place_new_loop): Likewise.
26378 (add_loop): Likewise.
26379 (duplicate_loop): Likewise.
26380 * graph.c (draw_cfg_nodes): Likewise.
26381 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
26382 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
26383 (extract_affine_chrec): Likewise.
26384 (build_scop_iteration_domain): Likewise.
26385 * graphite.c (graphite_initialize): Likewise.
26386 * ira-build.c (create_loop_tree_nodes): Likewise.
26387 (more_one_region_p): Likewise.
26388 (rebuild_regno_allocno_maps): Likewise.
26389 (mark_loops_for_removal): Likewise.
26390 (mark_all_loops_for_removal): Likewise.
26391 (remove_unnecessary_regions): Likewise.
26392 (ira_build): Likewise.
26393 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
26394 * loop-init.c (fix_loop_structure): Likewise.
26395 (gate_rtl_move_loop_invariants): Likewise.
26396 (gate_rtl_unswitch): Likewise.
26397 (gate_rtl_unroll_and_peel_loops): Likewise.
26398 (rtl_doloop): Likewise.
26399 * lto-streamer-in.c (input_cfg): Likewise.
26400 * lto-streamer-out.c (output_cfg): Likewise.
26401 * modulo-sched.c (sms_schedule): Likewise.
26402 * predict.c (tree_estimate_probability): Likewise.
26403 (tree_estimate_probability_driver): Likewise.
26404 (estimate_loops): Likewise.
26405 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
26406 (move_sese_region_to_fn): Likewise.
26407 (debug_loop_num): Likewise.
26408 * tree-chrec.c (chrec_evaluate): Likewise.
26409 (hide_evolution_in_other_loops_than_loop): Likewise.
26410 (chrec_component_in_loop_num): Likewise.
26411 (reset_evolution_in_loop): Likewise.
26412 (evolution_function_is_invariant_rec_p): Likewise.
26413 * tree-if-conv.c (main_tree_if_conversion): Likewise.
26414 * tree-inline.c (copy_loops): Likewise.
26415 (copy_cfg_body): Likewise.
26416 (tree_function_versioning): Likewise.
26417 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
26418 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
26419 Likewise.
26420 (add_to_evolution_1): Likewise.
26421 (scev_const_prop): Likewise.
26422 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
26423 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
26424 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
26425 (tree_ssa_lim_initialize): Likewise.
26426 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
26427 (verify_loop_closed_ssa): Likewise.
26428 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
26429 (tree_ssa_loop_im): Likewise.
26430 (tree_ssa_loop_unswitch): Likewise.
26431 (tree_vectorize): Likewise.
26432 (check_data_deps): Likewise.
26433 (tree_ssa_loop_ivcanon): Likewise.
26434 (tree_ssa_loop_bounds): Likewise.
26435 (tree_complete_unroll): Likewise.
26436 (tree_complete_unroll_inner): Likewise.
26437 (tree_parallelize_loops): Likewise.
26438 (tree_ssa_loop_prefetch): Likewise.
26439 (tree_ssa_loop_ivopts): Likewise.
26440 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
26441 * tree-vectorizer.c (vectorize_loops): Likewise.
26442
26443 2013-04-29 Mike Frysinger <vapier@gentoo.org>
26444
26445 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
26446 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
26447 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
26448 with EABI_LINK_SPEC.
26449
26450 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
26451
26452 PR target/44578
26453 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
26454 alternative.
26455
26456 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
26457
26458 PR target/57097
26459 * lra-constraints.c (process_alt_operands): Discourage a bit more
26460 using memory for pseudos. Print cost dump for alternatives.
26461 Modify cost values for conflicts with early clobbers.
26462 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
26463
26464 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
26465
26466 PR target/57098
26467 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
26468
26469 2013-04-29 Ian Bolton <ian.bolton@arm.com>
26470
26471 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
26472 from/to S register.
26473 (movdi_aarch64): Support LDR/STR from/to D register.
26474
26475 2013-04-29 Ian Bolton <ian.bolton@arm.com>
26476
26477 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
26478 or higher by default.
26479
26480 2013-04-29 Richard Biener <rguenther@suse.de>
26481
26482 PR middle-end/57075
26483 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
26484 even if not adding abnormal edges for calls that can make
26485 abnormal gotos.
26486
26487 2013-04-29 Richard Biener <rguenther@suse.de>
26488
26489 PR middle-end/57103
26490 * tree-cfg.c (move_stmt_op): Fix condition under which to update
26491 TREE_BLOCK.
26492 (move_stmt_r): Remove redundant checking.
26493
26494 2013-04-29 Teresa Johnson <tejohnson@google.com>
26495
26496 PR bootstrap/57077
26497 * basic-block.h (apply_scale): New function.
26498 (apply_probability): Use apply_scale.
26499 * gimple-streamer-in.c (input_bb): Ditto.
26500 * lto-streamer-in.c (input_cfg): Ditto.
26501 * lto-cgraph.c (merge_profile_summaries): Ditto.
26502 * tree-optimize.c (execute_fixup_cfg): Ditto.
26503 * tree-inline.c (copy_bb): Update comment to use apply_scale.
26504 (copy_edges_for_bb): Ditto.
26505 (copy_cfg_body): Ditto.
26506
26507 2013-04-29 Tom de Vries <tom@codesourcery.com>
26508
26509 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
26510 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
26511 (tail_merge_optimize): Handle current_loops == NULL.
26512
26513 2013-04-26 Jeff Law <law@redhat.com>
26514
26515 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
26516 (simplify_cond_using_ranges): Generalize code to simplify
26517 COND_EXPRs where one argument is a constant and the other
26518 is an SSA_NAME created by an integral type conversion.
26519
26520 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26521
26522 * config/arm/arm.md (store_minmaxsi): Use only when
26523 optimize_insn_for_size_p.
26524
26525 2013-04-29 Christian Bruel <christian.bruel@st.com>
26526
26527 PR target/57108
26528 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
26529
26530 2013-04-29 Richard Biener <rguenther@suse.de>
26531
26532 PR middle-end/57089
26533 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
26534 loop tree make sure to schedule a fixup for the child as well.
26535 (expand_omp_for_generic): Properly add loops.
26536 (expand_omp_for_static_nochunk): Likewise.
26537 (expand_omp_for_static_chunk): Likewise.
26538 (expand_omp_for): For the degenerate case fixup loops.
26539 (expand_omp_sections): Fix default bb placement in loops.
26540 (expand_omp_atomic_pipeline): Properly add loops.
26541
26542 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26543
26544 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
26545
26546 2013-04-29 Tom de Vries <tom@codesourcery.com>
26547
26548 * tree-ssa-tail-merge.c: Update header comment.
26549
26550 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26551
26552 * config/aarch64/arm_neon.h
26553 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
26554 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
26555 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
26556 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
26557 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
26558 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
26559 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
26560 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
26561
26562 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26563
26564 * config/aarch64/aarch64-simd.md
26565 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
26566 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
26567 fix_trunc, fixuns_trunc.
26568 (ftrunc<VDQF:mode>2): New.
26569 * config/aarch64/iterators.md (optab): Add fix, fixuns.
26570 (fix_trunc_optab): New.
26571
26572 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26573
26574 * config/aarch64/aarch64-builtins.c
26575 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
26576 iceilf, lround, iroundf.
26577
26578 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
26579
26580 PR target/54349
26581 * config/i386/i386.h (enum ix86_tune_indices)
26582 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
26583 New, split from X86_TUNE_INTER_UNIT_MOVES.
26584 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
26585 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
26586 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
26587 (TARGET_INTER_UNIT_MOVES): Remove.
26588 * config/i386/i386.c (initial_ix86_tune_features): Update.
26589 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
26590 (ix86_expand_convert_uns_didf_sse): Use
26591 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26592 (ix86_expand_vector_init_one_nonzero): Ditto.
26593 (ix86_expand_vector_init_interleave): Ditto.
26594 (inline_secondary_memory_needed): Return true for moves from SSE class
26595 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
26596 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
26597 * config/i386/constraints.md (Yi, Ym): Depend on
26598 TARGET_INTER_UNIT_MOVES_TO_VEC.
26599 (Yj, Yn): New constraints.
26600 * config/i386/i386.md (*movdi_internal): Change constraints of
26601 operand 1 from Yi to Yj and from Ym to Yn.
26602 (*movsi_internal): Ditto.
26603 (*movdf_internal): Ditto.
26604 (*movsf_internal): Ditto.
26605 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
26606 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26607 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
26608 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
26609 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
26610 * config/i386/sse.md (movdi_to_sse): Ditto.
26611 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
26612 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
26613 TARGET_INTER_UNIT_MOVES.
26614 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
26615 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
26616 instead of TARGET_INTER_UNIT_MOVES.
26617 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
26618 operand 1 from Yi to Yj and from Ym to Yn.
26619
26620 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26621
26622 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
26623 (float_truncate_hi_): Likewise.
26624 (float_extend_lo_): Likewise.
26625 (float_truncate_lo_): Likewise.
26626 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
26627 (aarch64_float_extend_lo_v2df): Likewise.
26628 (vec_unpacks_hi_v4sf): Likewise.
26629 (aarch64_float_truncate_lo_v2sf): Likewise.
26630 (aarch64_float_truncate_hi_v4sf): Likewise.
26631 (vec_pack_trunc_v2df): Likewise.
26632 (vec_pack_trunc_df): Likewise.
26633
26634 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26635
26636 * config/aarch64/aarch64-builtins.c
26637 (aarch64_fold_builtin): Fold float conversions.
26638 * config/aarch64/aarch64-simd-builtins.def
26639 (floatv2si, floatv4si, floatv2di): New.
26640 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
26641 * config/aarch64/aarch64-simd.md
26642 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
26643 * config/aarch64/iterators.md (FLOATUORS): New.
26644 (optab): Add float, floatuns.
26645 (su_optab): Likewise.
26646
26647 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26648
26649 * config/aarch64/aarch64-builtins.c
26650 (aarch64_builtin_vectorized_function): Use new names for
26651 fcvt builtins.
26652 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
26653 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
26654 (fcvtzu): Split as...
26655 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
26656 (fcvtas): Split as...
26657 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
26658 (fcvtau): Split as...
26659 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
26660 (fcvtps): Split as...
26661 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
26662 (fcvtpu): Split as...
26663 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
26664 (fcvtms): Split as...
26665 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
26666 (fcvtmu): Split as...
26667 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
26668 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
26669 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
26670 (lfrintnusf, lfrintnudf): Likewise.
26671 * config/aarch64/aarch64-simd.md
26672 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
26673 define_insn.
26674 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
26675 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
26676 (fcvt_pattern): Likewise.
26677
26678 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26679
26680 * config/aarch64/aarch64-simd.md
26681 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
26682 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
26683
26684 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26685
26686 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
26687 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
26688 (vrnd<a,m,n,p>_f32): Implement using builtins.
26689 (vrnd<i,x><q>_f<32, 64>): New.
26690
26691 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26692
26693 * config/aarch64/aarch64-builtins.c
26694 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
26695 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
26696 (frintz): Rename to...
26697 (btrunc): ...this.
26698 (frintp): Rename to...
26699 (ceil): ...this.
26700 (frintm): Rename to...
26701 (floor): ...this.
26702 (frinti): Rename to...
26703 (nearbyint): ...this.
26704 (frintx): Rename to...
26705 (rint): ...this.
26706 (frinta): Rename to...
26707 (round): ...this.
26708 * config/aarch64/aarch64-simd.md
26709 (aarch64_frint<frint_suffix><mode>): Delete.
26710 (<frint_pattern><mode>2): Convert to insn.
26711 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
26712 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
26713 (frint_pattern): Likewise.
26714 (frint_suffix): Likewise.
26715
26716 2013-04-29 Richard Biener <rguenther@suse.de>
26717
26718 PR tree-optimization/57081
26719 * loop-init.c: Include tree-flow.h.
26720 (loop_optimizer_finalize): Free number of iteration estimates.
26721 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
26722
26723 2013-04-29 Jakub Jelinek <jakub@redhat.com>
26724
26725 PR tree-optimization/57083
26726 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
26727 non-singleton shift count range, zero extend low_bound for uns case.
26728
26729 * config/i386/predicates.md (general_vector_operand): New predicate.
26730 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
26731 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
26732 if they aren't nonimmediate operands. If their original values
26733 satisfy const_vector_equal_evenodd_p, don't shift them.
26734 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
26735 predicates. For the SSE4.1 case force operands[{1,2}] into registers
26736 if not nonimmediate_operand.
26737 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
26738 instead of register_operand.
26739 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
26740
26741 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
26742
26743 * stor-layout.c (finalize_size_functions): Allocate a structure and
26744 reset cfun before dumping the functions.
26745
26746 2013-04-27 Jakub Jelinek <jakub@redhat.com>
26747
26748 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
26749
26750 PR target/56866
26751 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
26752 use xop_pmacsdqh if uns_p.
26753 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
26754 the immediate rotate count.
26755
26756 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
26757
26758 * rtl.h (struct rtx_def): Add comment for field jump.
26759 (LRA_SUBREG_P): New macro.
26760 * recog.c (register_operand): Check LRA_SUBREG_P.
26761 * lra.c (lra): Add note at the end of RTL code. Align non-empty
26762 stack frame.
26763 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
26764 (lra_final_code_change): Skip subreg change for operators.
26765 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
26766 if there are no operand changes.
26767 * lra-constraints.c (curr_insn_set): New.
26768 (match_reload): Set LRA_SUBREG_P.
26769 (emit_spill_move): Ditto.
26770 (check_and_process_move): Use curr_insn_set. Process only single
26771 set insns. Don't initialize sec_mem_p and change_p.
26772 (simplify_operand_subreg): Use LRA_SUBREG_P.
26773 (reg_in_class_p): New function.
26774 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
26775 of #ifdef. Add code to remove cycling.
26776 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
26777 non-null disp. Reload inner instead of disp when base and index
26778 are null. Try to put lo_sum into register.
26779 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
26780 (check_and_process_move): Move code for move cost check to
26781 simple_move_p. Remove equiv_substitution.
26782 (simple_move_p): New function.
26783 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
26784 curr_insn_set. Call check_and_process_move only for single set
26785 insns. Use the new function. Move call of check_and_process_move
26786 after operand equiv substitution and address process.
26787
26788 2013-04-26 Jakub Jelinek <jakub@redhat.com>
26789
26790 PR go/57045
26791 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
26792 with nonlocal goto receivers or returns twice calls, ignore
26793 unininitialized values from abnormal edges to nl goto receiver
26794 or returns twice call.
26795
26796 2013-04-26 Jakub Jelinek <jakub@redhat.com>
26797
26798 PR tree-optimization/57051
26799 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
26800 and VEC_RSHIFT_EXPR if shift count is a multiple of element
26801 bitsize.
26802
26803 2013-04-26 Richard Biener <rguenther@suse.de>
26804
26805 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
26806 (expand_omp_taskreg): Likewise. Mark loops for fixup.
26807 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
26808 (fixup_loop_arrays_after_move): New function.
26809 (move_sese_region_to_fn): Properly outline the loop tree parts
26810 of the SESE region.
26811
26812 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
26813
26814 * config/i386/i386.md (type, unit): Fix long lines.
26815
26816 2013-04-26 Richard Biener <rguenther@suse.de>
26817
26818 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
26819 (lto-streamer-out.o): Likewise.
26820 * cfgloop.c (init_loops_structure): Export, add struct function
26821 argument and adjust.
26822 (flow_loops_find): Adjust.
26823 * cfgloop.h (enum loop_estimation): Add EST_LAST.
26824 (init_loops_structure): Declare.
26825 * lto-streamer-in.c: Include cfgloop.h.
26826 (input_cfg): Input the loop tree.
26827 * lto-streamer-out.c: Include cfgloop.h.
26828 (output_cfg): Output the loop tree.
26829 (output_struct_function_base): Do not drop PROP_loops.
26830
26831 2013-03-26 Richard Biener <rguenther@suse.de>
26832
26833 * tree-cfg.c (execute_build_cfg): Build the loop tree.
26834 (pass_build_cfg): Provide PROP_loops.
26835 (move_sese_region_to_fn): Remove loops that are outlined into fn
26836 for now.
26837 * tree-inline.c: Include cfgloop.h.
26838 (initialize_cfun): Do not drop PROP_loops.
26839 (copy_loops): New function.
26840 (copy_cfg_body): Copy loop structure.
26841 (tree_function_versioning): Initialize destination loop tree.
26842 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
26843 (pass_parallelize_loops): Do IL verification.
26844 * loop-init.c (loop_optimizer_init): Fixup loops if required.
26845 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
26846 the CFG make sure we fixup loops as well.
26847 * tree-ssa-tail-merge.c: Include cfgloop.h.
26848 (replace_block_by): When merging loop latches mark loops for fixup.
26849 * lto-streamer-out.c (output_struct_function_base): Drop
26850 PROP_loops for now.
26851 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
26852 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
26853 * ipa-split.c: Include cfgloop.h.
26854 (split_function): Add the new return block to the loop tree root.
26855 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
26856 whether we have removed the forwarder block.
26857 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
26858 * cfgloop.h (place_new_loop): Declare.
26859 * cfgloopmanip.c (place_new_loop): Export.
26860 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
26861 (tree-switch-conversion.o): Likewise.
26862 (tree-complex.o): Likewise.
26863 (tree-inline.o): Likewise.
26864 (tree-ssa-tailmerge.o): Likewise.
26865 (ipa-split.o): Likewise.
26866 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
26867 (tree-ssa-copy.o): Likewise.
26868 * tree-switch-conversion.c: Include cfgloop.h
26869 (process_switch): If we emit a bit-test cascade, schedule loops
26870 for fixup.
26871 * tree-complex.c: Include cfgloop.h.
26872 (expand_complex_div_wide): Properly add new basic-blocks to loops.
26873 * asan.c: Include cfgloop.h.
26874 (create_cond_insert_point): Properly add new basic-blocks to
26875 loops, schedule loop fixup.
26876 * cfgloop.c (verify_loop_structure): Check that looks are not
26877 marked for fixup.
26878 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
26879 to loops.
26880 (expand_omp_for_generic): Likewise.
26881 (expand_omp_sections): Likewise.
26882 (expand_omp_atomic_pipeline): Schedule loops for fixup.
26883 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
26884 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
26885 is initialized, not when loops are present.
26886 * tree-parloops.c (parallelize_loops): Remove checking here.
26887 * passes.c (init_optimization_passes): Schedule a copy-propagation
26888 pass before complete unrolling of inner loops.
26889
26890 2013-04-26 Jakub Jelinek <jakub@redhat.com>
26891
26892 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
26893 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
26894 (colorize_init): Add argument to _WIN32 version.
26895 * toplev.c: Include diagnostic-color.h.
26896 (process_options): Default to -fdiagnostics-color=auto if
26897 GCC_COLORS env var is in the environment.
26898 * common.opt (fdiagnostics-color=): Add Var and Init.
26899 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
26900 env var is in the environment, the default is auto rather than never.
26901
26902 * diagnostic.h (file_name_as_prefix): Add context argument.
26903 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
26904 the string as locus.
26905 * langhooks.c (lhd_print_error_function): Adjust caller.
26906
26907 2013-04-25 Lawrence Crowl <crowl@google.com>
26908
26909 * var-tracking.c (shared_hash_def::htab):
26910 Change type to hash_table. Update dependent calls and types.
26911
26912 2013-04-25 Lawrence Crowl <crowl@google.com>
26913
26914 * Makefile.in: Update as needed below.
26915
26916 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
26917 Move declaration to after the type's method definitons.
26918
26919 * attribs.c (htab_t scoped_attributes::attribute_hash):
26920 Change type to hash_table. Update dependent calls and types.
26921
26922 * bitmap.c (htab_t bitmap_desc_hash):
26923 Change type to hash_table. Update dependent calls and types.
26924
26925 * cselib.c (htab_t cselib_hash_table):
26926 Change type to hash_table. Update dependent calls and types.
26927
26928 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
26929 (hash_string_slot_node): Move implementation into lto-streamer.h
26930 struct string_slot_hasher.
26931 (eq_string_slot_node): Likewise.
26932
26933 * data-streamer-out.c: Update output_block::string_hash_table
26934 dependent calls and types.
26935
26936 * dwarf2cfi.c (htab_t trace_index):
26937 Change type to hash_table. Update dependent calls and types.
26938
26939 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
26940 Change type to hash_table. Update dependent calls and types.
26941 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
26942 (htab_t optimize_external_refs::map): Likewise.
26943 (htab_t output_comp_unit::extern_map): Likewise.
26944 (htab_t output_comdat_type_unit::extern_map): Likewise.
26945 (htab_t output_macinfo::macinfo_htab): Likewise.
26946 (htab_t optimize_location_lists::htab): Likewise.
26947 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
26948
26949 * except.c (htab_t ehspec_hash_type):
26950 Change type to hash_table. Update dependent calls and types.
26951 (assign_filter_values::ttypes): Likewise.
26952 (assign_filter_values::ehspec): Likewise.
26953 (sjlj_assign_call_site_values::ar_hash): Likewise.
26954 (convert_to_eh_region_ranges::ar_hash): Likewise.
26955
26956 * gcse.c (htab_t pre_ldst_table):
26957 Change type to hash_table. Update dependent calls and types.
26958
26959 * ggc-common.c (htab_t saving_htab):
26960 Change type to hash_table. Update dependent calls and types.
26961 (htab_t loc_hash): Likewise.
26962 (htab_t ptr_hash): Likewise.
26963 (call_count): Rename ggc_call_count.
26964 (call_alloc): Rename ggc_call_alloc.
26965 (loc_descriptor): Rename make_loc_descriptor.
26966 (add_statistics): Rename ggc_add_statistics.
26967
26968 * ggc-common.c (saving_htab):
26969 Change type to hash_table. Update dependent calls and types.
26970
26971 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
26972 (push_gimplify_context): Likewise.
26973 (pop_gimplify_context): Likewise.
26974 (struct gimple_temp_hash_elt): Added.
26975 (struct gimplify_hasher): Likewise.
26976 (struct gimplify_ctx.temp_htab):
26977 Change type to hash_table. Update dependent calls and types.
26978
26979 * gimple-fold.c: Include gimplify-ctx.h.
26980
26981 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
26982 Change type to hash_table. Update dependent calls and types.
26983 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
26984 avoid potential global name collision.
26985
26986 * gimplify.c: Include gimplify-ctx.h.
26987 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
26988 (htab_t gimplify_ctx::temp_htab):
26989 Update dependent calls and types for new type hash_table.
26990 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
26991 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
26992
26993 * gimplify-ctx.h: New.
26994 (struct gimple_temp_hash_elt): Move from gimplify.c.
26995 (class gimplify_hasher): New.
26996 (struct gimplify_ctx): Move from gimple.h.
26997 (htab_t gimplify_ctx::temp_htab):
26998 Change type to hash_table. Update dependent calls and types.
26999
27000 * graphite-clast-to-gimple.c: Include graphite-htab.h.
27001 (htab_t ivs_params::newivs_index):
27002 Change type to hash_table. Update dependent calls and types.
27003 (htab_t ivs_params::params_index): Likewise.
27004 (htab_t print_generated_program::params_index): Likewise.
27005 (htab_t gloog::newivs_index): Likewise.
27006 (htab_t gloog::params_index): Likewise.
27007
27008 * graphite.c: Include graphite-htab.h.
27009 4htab_t graphite_transform_loops::bb_pbb_mapping):
27010 Change type to hash_table. Update dependent calls and types.
27011
27012 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
27013 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
27014 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
27015
27016 * graphite-dependences.c: Include graphite-htab.h.
27017 (loop_is_parallel_p): Change hash table type of parameter.
27018
27019 * graphite-htab.h: New.
27020 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
27021 (extern find_pbb_via_hash): Move from graphite-poly.h.
27022 (extern loop_is_parallel_p): Move from graphite-poly.h.
27023 (extern get_loop_body_pbbs): Move from graphite-poly.h.
27024
27025 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
27026 (extern loop_is_parallel_p): Move to graphite-htab.h.
27027 (extern get_loop_body_pbbs): Move to graphite-htab.h.
27028
27029 * haifa-sched.c (htab_t delay_htab):
27030 Change type to hash_table. Update dependent calls and types.
27031 (htab_t delay_htab_i2): Likewise.
27032
27033 * ira-color.c (htab_t allocno_hard_regs_htab):
27034 Change type to hash_table. Update dependent calls and types.
27035
27036 * ira-costs.c (htab_t cost_classes_htab):
27037 Change type to hash_table. Update dependent calls and types.
27038
27039 * loop-invariant.c (htab_t merge_identical_invariants::eq):
27040 Change type to hash_table. Update dependent calls and types.
27041
27042 * loop-iv.c (htab_t bivs):
27043 Change type to hash_table. Update dependent calls and types.
27044
27045 * loop-unroll.c (htab_t opt_info::insns_to_split):
27046 Change type to hash_table. Update dependent calls and types.
27047 (htab_t opt_info::insns_with_var_to_expand): Likewise.
27048
27049 * lto-streamer.h (struct string_slot): Move from data-streamer.h
27050 (struct string_slot_hasher): New.
27051 (htab_t output_block::string_hash_table):
27052 Change type to hash_table. Update dependent calls and types.
27053
27054 * lto-streamer-in.c (freeing_string_slot_hasher): New.
27055 (htab_t file_name_hash_table):
27056 Change type to hash_table. Update dependent calls and types.
27057
27058 * lto-streamer-out.c: Update output_block::string_hash_table dependent
27059 calls and types.
27060
27061 * lto-streamer.c (htab_t tree_htab):
27062 Change type to hash_table. Update dependent calls and types.
27063
27064 * omp-low.c: Include gimplify-ctx.h.
27065
27066 * passes.c (htab_t name_to_pass_map):
27067 Change type to hash_table. Update dependent calls and types.
27068 (pass_traverse): Rename to passes_pass_traverse.
27069
27070 * plugin.c (htab_t event_tab):
27071 Change type to hash_table. Update dependent calls and types.
27072
27073 * postreload-gcse.c (htab_t expr_table):
27074 Change type to hash_table. Update dependent calls and types.
27075 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
27076
27077 * sese.c (debug_rename_map_1): Make extern.
27078 (htab_t copy_bb_and_scalar_dependences::rename_map):
27079 Change type to hash_table. Update dependent calls and types.
27080
27081 * sese.h (extern debug_rename_map): Move to .c file.
27082
27083 * store-motion.c (htab_t store_motion_mems_table):
27084 Change type to hash_table. Update dependent calls and types.
27085
27086 * trans-mem.c (htab_t tm_new_mem_hash):
27087 Change type to hash_table. Update dependent calls and types.
27088
27089 * tree-browser.c (htab_t TB_up_ht):
27090 Change type to hash_table. Update dependent calls and types.
27091
27092 * tree-cfg.c (htab_t discriminator_per_locus):
27093 Change type to hash_table. Update dependent calls and types.
27094
27095 * tree-complex.c: Include tree-hasher.h
27096 (htab_t complex_variable_components):
27097 Change type to hash_table. Update dependent calls and types.
27098
27099 * tree-eh.c (htab_t finally_tree):
27100 Change type to hash_table. Update dependent calls and types.
27101
27102 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
27103 struct int_tree_hasher.
27104 (extern int_tree_map_eq): Likewise.
27105 (uid_decl_map_hash): Removed.
27106 (extern decl_tree_map_eq): Likewise.
27107
27108 * tree-hasher.h: New.
27109 (struct int_tree_hasher): New.
27110 (typedef int_tree_htab_type): New.
27111
27112 * tree-inline.c: Include gimplify-ctx.h.
27113
27114 * tree-mudflap.c: Include gimplify-ctx.h.
27115
27116 * tree-parloops.c: Include tree-hasher.h.
27117 (htab_t eliminate_local_variables_stmt::decl_address):
27118 Change type to hash_table. Update dependent calls and types.
27119 (htab_t separate_decls_in_region::decl_copies): Likewise.
27120
27121 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
27122 Change type to hash_table. Update dependent calls and types.
27123
27124 * tree-sra.c (candidates):
27125 Change type to hash_table. Update dependent calls and types.
27126
27127 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
27128 in tree-flow.h.
27129 (int_tree_map_hash): Likewise.
27130
27131 * tree-ssa-dom.c (htab_t avail_exprs):
27132 Change type to hash_table. Update dependent calls and types.
27133
27134 * tree-ssa-live.c (var_map_base_init::tree_to_index):
27135 Change type to hash_table. Update dependent calls and types.
27136
27137 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
27138 Change type to hash_table. Update dependent calls and types.
27139
27140 * tree-ssa-phiopt.c (seen_ssa_names):
27141 Change type to hash_table. Update dependent calls and types.
27142
27143 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
27144 Change type to hash_table. Update dependent calls and types.
27145
27146 * tree-ssa-uncprop.c (equiv):
27147 Change type to hash_table. Update dependent calls and types.
27148
27149 2013-04-25 Jakub Jelinek <jakub@redhat.com>
27150
27151 PR rtl-optimization/57003
27152 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
27153 call note_stores with kill_clobbered_value callback again after
27154 killing regs_invalidated_by_call.
27155
27156 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
27157
27158 * config/aarch64/aarch64-simd.md
27159 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
27160 (aarch64_simd_bsl<mode>): Likewise.
27161 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
27162
27163 2013-04-25 Marek Polacek <polacek@redhat.com>
27164
27165 PR tree-optimization/57066
27166 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
27167
27168 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
27169
27170 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
27171
27172 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
27173
27174 * config/aarch64/aarch64-builtins.c
27175 (aarch64_fold_builtin): New.
27176 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
27177 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
27178 * config/aarch64/aarch64-simd-builtins.def (abs): New.
27179 * config/aarch64/arm_neon.h
27180 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
27181
27182 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
27183 Tejas Belagod <tejas.belagod@arm.com>
27184
27185 * config/aarch64/aarch64-builtins.c
27186 (aarch64_gimple_fold_builtin): New.
27187 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
27188 * config/aarch64/aarch64-simd-builtins.def (addv): New.
27189 * config/aarch64/aarch64-simd.md (addpv4sf): New.
27190 (addvv4sf): Update.
27191 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
27192
27193 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27194
27195 * config/aarch64/aarch64.md
27196 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
27197
27198 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27199
27200 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
27201 (*ngcsi_uxtw): New pattern.
27202
27203 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27204 Julian Brown <julian@codesourcery.com>
27205
27206 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
27207 (TB_DREG): Add T_V4HF.
27208 (v4hf_UP): New macro.
27209 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27210 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27211 Handle initialisation of V4HF. Adjust initialisation of reinterpret
27212 built-ins.
27213 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27214 (arm_vector_mode_supported_p): Handle V4HF.
27215 (arm_mangle_map): Handle V4HFmode.
27216 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
27217 * config/arm/arm_neon_builtins.def: Add entries for
27218 vcvtv4hfv4sf, vcvtv4sfv4hf.
27219 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
27220 (neon_vcvtv4hfv4sf): Likewise.
27221 * config/arm/neon-gen.ml: Handle half-precision floating point
27222 features.
27223 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
27224 * config/arm/arm_neon.h: Regenerate.
27225 * config/arm/neon.ml (type elts): Add F16.
27226 (type vectype): Add T_float16x4, T_floatHF.
27227 (type vecmode): Add V4HF.
27228 (type features): Add Requires_FP_bit feature.
27229 (elt_width): Handle F16.
27230 (elt_class): Likewise.
27231 (elt_of_class_width): Likewise.
27232 (mode_of_elt): Refactor.
27233 (type_for_elt): Handle F16, fix error messages.
27234 (vectype_size): Handle T_float16x4.
27235 (vcvt_sh): New function.
27236 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
27237 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
27238 (string_of_mode): Handle V4HF.
27239 * doc/arm-neon-intrinsics.texi: Regenerate.
27240
27241 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
27242
27243 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
27244 format specifier in 'X' case.
27245
27246 2013-04-25 Alan Modra <amodra@gmail.com>
27247
27248 PR target/57052
27249 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
27250 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
27251 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
27252 Repeat for many other rotate/shift and mask patterns using subregs.
27253 Name lshiftrt insns.
27254 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
27255 on WORDS_BIG_ENDIAN.
27256
27257 2013-04-25 Alan Modra <amodra@gmail.com>
27258
27259 * config.gcc: Support little-endian powerpc-linux targets.
27260 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
27261 (LINK_OS_LINUX_SPEC): Define.
27262 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
27263 Preserve MASK_LITTLE_ENDIAN.
27264 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
27265 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
27266 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
27267 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
27268 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
27269 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
27270 Correct fp word order for little-endian. Don't shift toc entries
27271 smaller than a word for little-endian.
27272 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
27273 (bswapdi2 splits): Correct low-part subreg for little-endian.
27274 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
27275 low/high where such is correct only for be.
27276 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
27277 little-endian for -mcall-aixdesc.
27278
27279 2013-04-25 Alan Modra <amodra@gmail.com>
27280
27281 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27282 replace_equiv_address_nv.
27283
27284 2013-04-25 Alan Modra <amodra@gmail.com>
27285
27286 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
27287
27288 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
27289
27290 Revert:
27291 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
27292 * rtl.h (struct rtx_def): ...
27293
27294 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
27295
27296 PR rtl-optimizations/57046
27297 * lra-constraints (split_reg): Set up lra_risky_transformations_p
27298 for multi-reg splits.
27299
27300 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
27301
27302 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
27303
27304 2013-04-24 Sterling Augustine <saugustine@google.com>
27305
27306 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
27307 (comp_dir_string, debug_str_dwo_section): New.
27308 (DEBUG_STR_DWO_SECTION): Rename to ...
27309 (DEBUG_DWO_STR_SECTION): ... this.
27310 (DEBUG_NORM_STR_SECTION): Delete.
27311 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
27312 (DEBUG_STR_DWO_SECTION_FLAGS): New.
27313 (find_AT_string): Move most logic to ...
27314 (find_AT_string_in_table): ... here. New.
27315 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
27316 add_skeleton_AT_string. Delete logic.
27317 (output_skeleton_debug_sections): Remove call to
27318 add_top_level_skeleton_die_attrs.
27319 (add_comp_dir_attribute): Move logic to comp_dir_string.
27320 (dwarf2out_init): Initialize debug_str_dwo_section.
27321 (output_indirect_string): Call find_string_form.
27322 (output_indirect_strings): Rewrite.
27323 (prune_unused_types): Empty skeleton_debug_str_hash.
27324 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
27325 (dwarf2out_finish): Call output_indirect_strings.
27326
27327 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
27328
27329 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
27330
27331 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
27332
27333 * rtl.h (struct rtx_def): Add comment for field jump.
27334 (LRA_SUBREG_P): New macro.
27335 * recog.c (register_operand): Check LRA_SUBREG_P.
27336 * lra.c (lra): Add note at the end of RTL code. Align non-empty
27337 stack frame.
27338 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
27339 (lra_final_code_change): Skip subreg change for operators.
27340 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
27341 if there are no operand changes.
27342 * lra-constraints.c (curr_insn_set): New.
27343 (match_reload): Set LRA_SUBREG_P.
27344 (emit_spill_move): Ditto.
27345 (check_and_process_move): Use curr_insn_set. Process only single
27346 set insns. Don't initialize sec_mem_p and change_p.
27347 (simplify_operand_subreg): Use LRA_SUBREG_P.
27348 (reg_in_class_p): New function.
27349 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
27350 of #ifdef. Add code to remove cycling.
27351 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
27352 non-null disp. Reload inner instead of disp when base and index
27353 are null. Try to put lo_sum into register.
27354 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
27355 (check_and_process_move): Move code for move cost check to
27356 simple_move_p. Remove equiv_substitution.
27357 (simple_move_p): New function.
27358 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
27359 curr_insn_set. Call check_and_process_move only for single set
27360 insns. Use the new function. Move call of check_and_process_move
27361 after operand equiv substitution and address process.
27362
27363 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
27364
27365 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
27366 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
27367 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
27368
27369 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
27370
27371 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
27372
27373 2013-04-24 Marek Polacek <polacek@redhat.com>
27374
27375 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
27376 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
27377 (select_loops_exit_conditions): Likewise.
27378 (number_of_iterations_for_all_loops): Likewise.
27379 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
27380 (scev_analysis): Likewise.
27381
27382 2013-04-02 Catherine Moore <clm@codesourcery.com>
27383 Chao-ying Fu <fu@mips.com>
27384
27385 * config/mips/micromips.md (jraddiusp): New pattern.
27386 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
27387 instruction if possible.
27388
27389 2013-04-24 Alan Modra <amodra@gmail.com>
27390
27391 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
27392
27393 2013-04-24 Julian Brown <julian@codesourcery.com>
27394 Chung-Lin Tang <cltang@codesourcery.com>
27395
27396 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
27397 dependency behavior in enumeration type DIE generation. Add TODO note
27398 to comments about future DW_FORM_sdata/udata re-work of related code.
27399
27400 2013-04-23 Lawrence Crowl <crowl@google.com>
27401
27402 * Makefile.in: Update as needed below.
27403
27404 * hash-table.h (class hash_table):
27405 Correct many methods with parameter types compare_type to the correct
27406 value_type. (Correct code was unlikely to notice the change.)
27407 (hash_table::elements_with_deleted) New.
27408 (class hashtable::iterator): New.
27409 (hashtable::begin()): New.
27410 (hashtable::end()): New.
27411 (FOR_EACH_HASH_TABLE_ELEMENT): New.
27412
27413 * statistics.c (statistics_hashes):
27414 Change type to hash_table. Update dependent calls and types.
27415
27416 * tree-into-ssa.c (var_infos):
27417 Change type to hash_table. Update dependent calls and types.
27418
27419 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
27420 Change type to hash_table. Update dependent calls and types.
27421
27422 * tree-ssa-loop-im.c (struct mem_ref.refs):
27423 Change type to hash_table. Update dependent calls and types.
27424
27425 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
27426 Change type to hash_table. Update dependent calls and types.
27427
27428 * tree-ssa-sccvn.c (vn_tables_s::nary):
27429 Change type to hash_table. Update dependent calls and types.
27430 (vn_tables_s::phis): Likewise.
27431 (vn_tables_s::references): Likewise.
27432
27433 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
27434 (vn_reference_eq): Update parameter and return types.
27435
27436 * tree-ssa-structalias.c (pointer_equiv_class_table):
27437 Change type to hash_table. Update dependent calls and types.
27438 (location_equiv_class_table): Likewise.
27439
27440 * tree-vect-data-refs.c: Consequential changes for making
27441 peeling a hash_table.
27442
27443 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
27444 (destroy_loop_vec_info): Dependent hash_table update.
27445
27446 * tree-vectorizer.h (peeling_htab):
27447 Change type to hash_table. Update dependent calls and types.
27448
27449 2013-04-23 Shiva Chen <shiva0217@gmail.com>
27450
27451 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
27452 to check the register content is equal or not.
27453 * lra-constraints.c (match_reload): Use lra_assign_reg_val
27454 to assign register content record.
27455 * lra-eliminations.c (update_reg_eliminate): Use
27456 lra_update_reg_val_offset to update register content offset.
27457 * lra-int.h (struct lra_reg): Add offset member.
27458 (lra_reg_val_equal_p): New static inline function.
27459 (lra_update_reg_val_offset): New static inline function.
27460 (lra_assign_reg_val): New static inline function.
27461 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
27462 to assign register content record.
27463 (initialize_lra_reg_info_element): Initial offset to zero.
27464
27465 2013-04-23 Catherine Moore <clm@codesourcery.com>
27466
27467 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
27468 operands. Record compression.
27469
27470 2013-04-23 Xinliang David Li <davidxl@google.com>
27471
27472 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
27473
27474 2013-04-23 Richard Biener <rguenther@suse.de>
27475
27476 PR middle-end/57036
27477 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
27478 parameter, only add abnormal goto edges from the copied body
27479 if the call could perform abnormal gotos.
27480 (copy_cfg_body): Adjust.
27481
27482 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
27483
27484 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
27485
27486 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
27487
27488 * coretypes.h (gimple_stmt_iterator): Add struct to make
27489 compatible with C.
27490
27491 2013-04-23 Richard Biener <rguenther@suse.de>
27492
27493 PR tree-optimization/57026
27494 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
27495 from SSA names occuring in abnormal PHI nodes.
27496
27497 2013-04-22 Andi Kleen <ak@linux.intel.com>
27498
27499 * lto/lto.c (print_lto_report_1): Fix LTO report names.
27500
27501 2013-04-22 Andi Kleen <ak@linux.intel.com>
27502
27503 * lto/lto.c (print_lto_report_1): Declare early.
27504 (read_cgraph_and_symbols): Call print_lto_report_1 early.
27505
27506 2013-04-22 Andi Kleen <ak@linux.intel.com>
27507
27508 * common.opt (-flto-report-wpa): Add.
27509 * doc/invoke.texi (-flto-report-wpa): Add.
27510 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
27511 (lto_main): dito.
27512
27513 2013-04-22 Xinliang David Li <davidxl@google.com>
27514
27515 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
27516 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
27517 * Makefile.in: New dependency
27518
27519 David Daney <ddaney.cavm@gmail.com>
27520
27521 * configure.ac (gcc_cv_as_micromips_support): Use the
27522 --fatal-warnings option.
27523 * configure: Regenerate.
27524
27525 2013-04-22 Marek Polacek <polacek@redhat.com>
27526
27527 PR sanitizer/56990
27528 * tsan.c (instrument_expr): Don't instrument expression
27529 in case its size is zero.
27530
27531 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
27532
27533 PR target/57032
27534 Revert:
27535 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
27536
27537 * config/alpha/alpha.c (TARGET_LRA_P): New define.
27538
27539 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27540
27541 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
27542 (gimple_stmt_iterator): New typedef.
27543 * gimple.h (gimple_stmt_iterator): Rename to...
27544 (gimple_stmt_iterator_d): ... This.
27545 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
27546 trees be valid for GIMPLE and GENERIC.
27547 (TARGET_GIMPLE_FOLD_BUILTIN): New.
27548 * gimple-fold.c (gimple_fold_call): Call target hook
27549 gimple_fold_builtin.
27550 * hooks.c (hook_bool_gsiptr_false): New.
27551 * hooks.h (hook_bool_gsiptr_false): New.
27552 * target.def (fold_stmt): New.
27553 * doc/tm.texi: Regenerate.
27554
27555 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
27556
27557 PR target/57018
27558 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
27559 a set sp if no stack realignment.
27560
27561 2013-04-22 Nick Clifton <nickc@redhat.com>
27562
27563 * config.gcc (tilegx-linux): Extend extra_objs rather than
27564 overwriting it.
27565 (tilepro-linux): Likewise.
27566
27567 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27568
27569 * config/aarch64/aarch64-builtins.c
27570 (CF): Remove.
27571 (CF0, CF1, CF2, CF3, CF4, CF10): New.
27572 (VAR<1-12>): Add MAP parameter.
27573 (BUILTIN_*): Likewise.
27574 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
27575 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
27576 (aarch64_ushl_n<mode>): Likewise.
27577 (aarch64_sshr_n<mode>): Likewise.
27578 (aarch64_ushr_n<mode>): Likewise.
27579 (aarch64_<maxmin><mode>): Likewise.
27580 (aarch64_sqrt<mode>): Likewise.
27581 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
27582 (vshr<q>_n_*): Likewise.
27583
27584 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27585
27586 * config/aarch64/aarch64-builtins.c
27587 (aarch64_simd_builtin_type_mode): Handle SF types.
27588 (sf_UP): Define.
27589 (BUILTIN_GPF): Define.
27590 (aarch64_init_simd_builtins): Handle SF types.
27591 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
27592 (frecps): Likewise.
27593 (frecpx): Likewise.
27594 * config/aarch64/aarch64-simd.md
27595 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
27596 (aarch64_frecpe<mode>): New.
27597 (aarch64_frecps<mode>): Likewise.
27598 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
27599 (v8type): Add frecp<esx>.
27600 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
27601 (aarch64_frecps<mode>): Likewise.
27602 * config/aarch64/iterators.md (FRECP): New.
27603 (frecp_suffix): Likewise.
27604 * config/aarch64/arm_neon.h
27605 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
27606
27607 2013-04-22 Christian Bruel <christian.bruel@st.com>
27608
27609 PR target/56995
27610 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
27611 (REG_CLASS_NAMES): Idem.
27612 (REG_CLASS_CONTENTS): Idem.
27613 (REGCLASS_HAS_FP_REG): Idem.
27614 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
27615 (sh_conditional_register_usage): Idem.
27616
27617 2013-04-21 Jeff Law <law@redhat.com>
27618
27619 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
27620 (ssa_forward_propagate_and_combine): Use it.
27621
27622 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
27623
27624 * lra.c: Update the flow chart diagram.
27625
27626 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
27627
27628 PR rtl-optimization/56847
27629 * lra-constraints.c (process_alt_operands): Discourage alternative
27630 with non-matche doffsettable memory constraint fro memory with
27631 known offset.
27632
27633 2013-04-19 Richard Biener <rguenther@suse.de>
27634
27635 PR tree-optimization/56982
27636 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
27637 function.
27638 * gimplify.c (gimplify_call_expr): Notice special calls.
27639 (gimplify_modify_expr): Likewise.
27640 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
27641 abnormal control flow receivers.
27642 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
27643 in the same way as cfun->has_nonlocal_labels.
27644 (gimple_purge_dead_abnormal_call_edges): Likewise.
27645 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
27646 receivers start a basic-block.
27647
27648 2013-04-19 Richard Biener <rguenther@suse.de>
27649
27650 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
27651 member ...
27652 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
27653 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
27654 (SLP_TREE_LOAD_PERMUTATION): Add.
27655 (vect_transform_slp_perm_load): Adjust prototype.
27656 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
27657 (vect_free_slp_instance): Likewise.
27658 (vect_create_new_slp_node): Likewise.
27659 (vect_supported_slp_permutation_p): Remove.
27660 (vect_slp_rearrange_stmts): Adjust.
27661 (vect_supported_load_permutation_p): Likewise. Inline
27662 vect_supported_slp_permutation_p here.
27663 (vect_analyze_slp_instance): Compute load permutations per
27664 slp node instead of per instance.
27665 (vect_get_slp_defs): Adjust.
27666 (vect_transform_slp_perm_load): Likewise.
27667 (vect_schedule_slp_instance): Remove redundant code.
27668 (vect_schedule_slp): Remove hack for PR56270, add it ...
27669 * tree-vect-stmts.c (vectorizable_load): ... here, do not
27670 CSE loads for SLP. Adjust.
27671
27672 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
27673
27674 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
27675 spelling in two comments.
27676
27677 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
27678
27679 PR target/56797
27680 * config/arm/arm.c (load_multiple_sequence): Require SP
27681 as base register for loads if SP is in the register list.
27682
27683 2013-04-19 Martin Jambor <mjambor@suse.cz>
27684
27685 PR tree-optimization/56718
27686 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
27687 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
27688 and made public. Adjusted all callers.
27689 (ipa_intraprocedural_devirtualization): New function.
27690 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
27691 (ipa_intraprocedural_devirtualization): Likewise.
27692 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
27693
27694 2013-04-19 Richard Biener <rguenther@suse.de>
27695
27696 PR tree-optimization/57000
27697 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
27698
27699 2013-04-19 Terry Guo <terry.guo@arm.com>
27700
27701 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
27702 Replace with ...
27703 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
27704 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
27705 (cortex_m4_fmacs): Use new reservations.
27706 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
27707
27708 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
27709
27710 PR rtl-optimization/56999
27711 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
27712 related code.
27713 (lra_coalesce): Remove split_origin_bitmap and related code.
27714 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
27715 ranges if necessary.
27716
27717 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
27718
27719 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
27720 New array.
27721 (ix86_expand_call): Remove clobbered_registers array and use
27722 x86_64_ms_sysv_extra_clobbered_registers instead.
27723 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
27724 Declare here.
27725 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
27726 predicate.
27727 * config/i386/i386.md (*call_rex64_ms_sysv): Use
27728 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
27729 (*call_value_rex64_ms_sysv): Ditto.
27730
27731 2013-04-18 Cary Coutant <ccoutant@google.com>
27732
27733 * dwarf2out.c (output_pubnames): Check die_perennial_p of
27734 parent instead of die_mark.
27735
27736 2013-04-18 Diego Novillo <dnovillo@google.com>
27737
27738 * gimple.c (create_gimple_tmp): New.
27739 (get_expr_type): New.
27740 (build_assign): New.
27741 (build_type_cast): New.
27742 * gimple.h (enum ssa_mode): Define.
27743 (gimple_seq_set_location): New.
27744 * asan.c (build_check_stmt): Change some gimple_build_* calls
27745 to use build_assign and build_type_cast.
27746
27747 2013-04-18 Richard Biener <rguenther@suse.de>
27748
27749 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27750 handle negative step. Remove redundant checks.
27751 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
27752 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
27753 for negative step and grouped loads fail to vectorize.
27754
27755 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
27756
27757 * emit-rtl.c (reset_insn_used_flags): New function.
27758 (reset_all_used_flags): Use it.
27759 (verify_insn_sharing): New function.
27760 (verify_rtl_sharing): Fix verification for SEQUENCEs.
27761
27762 2013-04-18 Jakub Jelinek <jakub@redhat.com>
27763
27764 PR tree-optimization/56984
27765 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
27766 and (x >> M) >= N don't register any assertion if N << M is the
27767 minimum value.
27768
27769 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
27770
27771 * lower-subreg.c (resolve_simple_move): If called self-recursive,
27772 do not delete_insn insns that have not yet been emitted, only
27773 unlink them with remove_insn.
27774 * df-scan.c (df_insn_delete): Revert r197492.
27775
27776 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
27777
27778 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
27779 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
27780
27781 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
27782
27783 * config/arm/arm.md (movsicc_insn): Convert define_insn into
27784 define_insn_and_split.
27785 (and_scc,ior_scc,negscc): Likewise.
27786 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
27787
27788 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
27789
27790 * config/arm/arm.c (use_return_insn): Return 0 for targets that
27791 can benefit from using a sequence of LDRD instructions in epilogue
27792 instead of a single LDM instruction.
27793
27794 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
27795
27796 PR 45688
27797 * doc/extend.texi: Fix typo.
27798
27799 2013-04-17 Richard Biener <rguenther@suse.de>
27800
27801 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
27802 (vect_build_slp_tree): ... here.
27803 (vect_build_slp_tree_1): Compute which stmts of the SLP group
27804 match. Remove special-casing of mismatched complex loads.
27805 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
27806 re-try the match with swapped commutative operands.
27807 (vect_supported_load_permutation_p): Remove special-casing of
27808 mismatched complex loads.
27809 (vect_analyze_slp_instance): Adjust.
27810
27811 2013-04-17 Richard Biener <rguenther@suse.de>
27812
27813 PR rtl-optimization/56921
27814 * cfgloop.h (struct loop): Add simple_loop_desc member.
27815 (struct niter_desc): Mark with GTY(()).
27816 (simple_loop_desc): Do not use aux field but simple_loop_desc.
27817 * loop-iv.c (get_simple_loop_desc): Likewise.
27818 (free_simple_loop_desc): Likewise.
27819
27820 Revert
27821 2013-04-16 Richard Biener <rguenther@suse.de>
27822
27823 PR rtl-optimization/56921
27824 * loop-init.c (pass_rtl_move_loop_invariants): Add
27825 TODO_do_not_ggc_collect to todo_flags_finish.
27826 (pass_rtl_unswitch): Same.
27827 (pass_rtl_unroll_and_peel_loops): Same.
27828 (pass_rtl_doloop): Same.
27829
27830 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
27831
27832 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
27833 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
27834 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
27835 references.
27836 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
27837 * tree-streamer.c (record_common_node): Adjust reference in comment.
27838
27839 2013-04-17 Terry Guo <terry.guo@arm.com>
27840
27841 * config/arm/cortex-m4.md: Add a new bypass.
27842
27843 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27844
27845 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
27846 New pattern.
27847 (*subs_<optab><mode>_multp2): New pattern.
27848 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
27849 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
27850
27851 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27852
27853 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
27854 (*subs_mul_imm_<mode>): New pattern.
27855
27856 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
27857
27858 PR target/56948
27859 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
27860 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
27861 (vsx_movti_32bit): Change j->wa to O->wa.
27862
27863 2013-04-16 Richard Biener <rguenther@suse.de>
27864
27865 PR rtl-optimization/56921
27866 * loop-init.c (pass_rtl_move_loop_invariants): Add
27867 TODO_do_not_ggc_collect to todo_flags_finish.
27868 (pass_rtl_unswitch): Same.
27869 (pass_rtl_unroll_and_peel_loops): Same.
27870 (pass_rtl_doloop): Same.
27871
27872 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
27873
27874 * config/arm/arm.c (emit_multi_reg_push): New declaration
27875 for an existing function.
27876 (arm_emit_strd_push): New function.
27877 (arm_expand_prologue): Used here.
27878 (arm_emit_ldrd_pop): New function.
27879 (arm_expand_epilogue): Used here.
27880 (arm_get_frame_offsets): Update condition.
27881 (arm_emit_multi_reg_pop): Add a special case for load of a single
27882 register with writeback.
27883
27884 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
27885
27886 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
27887 description.
27888
27889 2013-04-16 Richard Biener <rguenther@suse.de>
27890
27891 PR tree-optimization/56756
27892 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
27893 (first_mem_ref_loc): New.
27894 (execute_sm): Place the load temporarily before a previous
27895 access instead of in the latch edge to ensure its SSA dependencies
27896 are defined at points dominating the load.
27897
27898 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
27899
27900 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
27901 correct fix by moving header and footer insn to the footer of
27902 the merged basic block. Clear BB_END of the merged-away block.
27903
27904 PR middle-end/43631
27905 * emit-rtl.c (make_note_raw): New function.
27906 (link_insn_into_chain): New static inline function.
27907 (add_insn): Use it.
27908 (add_insn_before, add_insn_after): Factor insn chain linking code...
27909 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
27910 using link_insn_into_chain.
27911 (note_outside_basic_block_p): New helper function for emit_note_after
27912 and emit_note_before.
27913 (emit_note_after): Use nobb variant of add_insn_after if the note
27914 should not be contained in a basic block.
27915 (emit_note_before): Use nobb variant of add_insn_before if the note
27916 should not be contained in a basic block.
27917 (emit_note_copy): Use make_note_raw.
27918 (emit_note): Likewise.
27919 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
27920 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
27921 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
27922 the moved barrier the tail of the basic block it follows.
27923 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
27924
27925 2013-04-15 Jakub Jelinek <jakub@redhat.com>
27926
27927 PR tree-optimization/56962
27928 * gimple-ssa-strength-reduction.c (record_increment): Only set
27929 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
27930 either rhs1 or rhs2 is equal to c->base_expr.
27931
27932 2013-04-15 Richard Biener <rguenther@suse.de>
27933
27934 PR tree-optimization/56933
27935 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
27936 member.
27937 (GROUP_READ_WRITE_DEPENDENCE): Remove.
27938 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
27939 * tree-vect-data-refs.c (vect_analyze_group_access): Move
27940 dependence check ...
27941 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
27942 ... here.
27943 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
27944 GROUP_READ_WRITE_DEPENDENCE.
27945
27946 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27947
27948 * emit-rtl.c (reset_all_used_flags): New function.
27949 (verify_rtl_sharing): Call reset_all_used_flags before and after
27950 performing the checks.
27951
27952 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27953
27954 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
27955 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
27956 * config/arm/constraints.md (De): New constraint.
27957 * config/arm/neon.md (anddi3_neon): Delete.
27958 (neon_vand<mode>): Expand to standard anddi3 pattern.
27959 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
27960 Move earlier in the file.
27961 (neon_inv_logic_op2): Likewise.
27962 (arm_anddi_operand_neon): New predicate.
27963
27964 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27965
27966 * configure.ac (gcc_cv_ld_as_needed): Set
27967 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
27968 Use -z ignore, -z record on *-*-solaris2*.
27969 (HAVE_LD_AS_NEEDED): Update comment.
27970 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
27971 * configure: Regenerate.
27972 * config.in: Regenerate.
27973 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
27974 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
27975 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
27976 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
27977 equivalents. Fix markup.
27978 * doc/tm.texi: Regenerate.
27979
27980 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
27981
27982 * config/i386/i386.opt: New option mstack-protector-guard=.
27983 * config/i386/i386-opts.h: Add enum stack_protector_guard.
27984 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
27985 TARGET_SSP_TLS_GUARD.
27986 * config/i386/i386.c (ix86_option_override_internal): Set
27987 ix86_stack_protector_guard.
27988 * config/i386/i386.md (stack_protect_set): Enable for
27989 TARGET_SSP_TLS_GUARD only.
27990 (stack_protect_set_<mode>): Ditto.
27991 (stack_protect_test): Ditto.
27992 (stack_protect_test_<mode>): Ditto.
27993 * doc/invoke.texi (i386 Option): Document.
27994
27995 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
27996
27997 PR target/56890
27998 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
27999 (S_MODES): Set H_MODE bit.
28000 (SF_MODES): Set only S_MODE and SF_MODE bits.
28001 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
28002 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
28003 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
28004 <MODE_FLOAT>: Likewise.
28005
28006 2013-04-15 Joey Ye <joey.ye@arm.com>
28007
28008 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
28009
28010 2013-04-15 Joey Ye <joey.ye@arm.com>
28011
28012 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
28013 for real far jump.
28014 (thumb_far_jump_used_p): Count instruction size and set
28015 far_jump_used.
28016
28017 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
28018
28019 * reorg.c (fill_simple_delay_slots): Reindent block of code.
28020 * resource.c (mark_target_live_regs): Reformat conditional block.
28021
28022 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
28023
28024 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
28025 notes, they are emitted only just before final.
28026 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
28027
28028 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
28029
28030 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
28031 * cfgrtl.c (delete_insn): Call it here instead.
28032 * lra-spills.c (lra_final_code_change): Use delete_insn.
28033 * haifa-sched.c (sched_remove_insn): Likewise.
28034 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
28035 returning to the nop pool.
28036 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
28037 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
28038
28039 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
28040
28041 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
28042 * doc/tm.texi: Regenerated.
28043
28044 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
28045
28046 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
28047 QImode checks.
28048
28049 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
28050
28051 * df-core.c (df_find_def): Compare register numbers.
28052 (df_find_use): Likewise.
28053
28054 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
28055
28056 PR target/56903
28057 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
28058 lra_in_progress for return.
28059
28060 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
28061
28062 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
28063 define_insn into define_insn_and_split and emit movsicc patterns.
28064
28065 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
28066
28067 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
28068
28069 2013-04-12 Richard Biener <rguenther@suse.de>
28070
28071 * tree-pass.h (TODO_do_not_ggc_collect): New.
28072 * passes.c (execute_one_ipa_transform_pass): Honor
28073 TODO_do_not_ggc_collect.
28074 (execute_one_pass): Likewise.
28075
28076 Revert
28077 2013-04-10 Richard Biener <rguenther@suse.de>
28078
28079 * passes.c (init_optimization_passes): Remove reload pass.
28080 * ira.c (do_reload): Merge into ...
28081 (ira): ... this.
28082 (rest_of_handle_reload): Remove.
28083 (pass_reload): Likewise.
28084 * config/i386/i386.c (ix86_option_override): Refer to ira instead
28085 of reload for vzeroupper pass placement.
28086
28087 2013-04-12 Jakub Jelinek <jakub@redhat.com>
28088
28089 PR tree-optimization/56918
28090 PR tree-optimization/56920
28091 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
28092 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
28093 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
28094 use wide_mul_with_sign method.
28095
28096 2013-04-12 Richard Biener <rguenther@suse.de>
28097
28098 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
28099 not be considered a gimple constant.
28100
28101 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
28102
28103 * fold-const.c (const_binop): Handle vector shifts by a scalar.
28104 (fold_binary_loc): Call const_binop also for mixed vector-scalar
28105 operations.
28106
28107 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
28108 Jakub Jelinek <jakub@redhat.com>
28109
28110 * opts.c: Include diagnostic-color.h.
28111 (common_handle_option): Handle OPT_fdiagnostics_color_.
28112 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
28113 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
28114 (diagnostic-color.o): New.
28115 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
28116 (diagnostic_color_rule): New enum.
28117 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
28118 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
28119 the location string.
28120 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
28121 either NULL, or color kind.
28122 * diagnostic-color.c: New file.
28123 * diagnostic-color.h: New file.
28124 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
28125 arguments.
28126 * doc/invoke.texi (-fdiagnostics-color): Document.
28127 * pretty-print.h (pp_show_color): Define.
28128 (struct pretty_print_info): Add show_color field.
28129 * diagnostic.c: Include diagnostic-color.h.
28130 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
28131 macros. Colorize error:, warning: etc. strings and also the location
28132 string.
28133 (diagnostic_show_locus): Colorize the caret line.
28134 * pretty-print.c: Include diagnostic-color.h.
28135 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
28136 inside of %< %> quotes or quoted through q format modifier.
28137
28138 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28139
28140 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
28141
28142 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28143
28144 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
28145 code in CC_NZ mode.
28146 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
28147 pattern.
28148
28149 2013-04-11 Marek Polacek <polacek@redhat.com>
28150
28151 PR tree-optimization/48184
28152 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
28153
28154 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
28155
28156 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
28157 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
28158 (skip_simple_arithmetic): Tidy up.
28159 * tree.h (skip_simple_constant_arithmetic): Declare.
28160
28161 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28162
28163 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
28164
28165 2013-04-11 Richard Biener <rguenther@suse.de>
28166
28167 * tree-vect-loop.c (get_initial_def_for_induction): Properly
28168 generate vector constants.
28169
28170 2013-04-11 Richard Biener <rguenther@suse.de>
28171
28172 PR tree-optimization/56878
28173 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
28174 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
28175 New function.
28176 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28177 Prefer to align the DR with the most invariant base address.
28178
28179 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28180
28181 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
28182 comment.
28183
28184 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28185
28186 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
28187 floating-point vector comparisons against 0.
28188
28189 2013-04-11 Jakub Jelinek <jakub@redhat.com>
28190
28191 PR tree-optimization/56899
28192 * fold-const.c (extract_muldiv_1): Apply distributive law
28193 only if TYPE_OVERFLOW_WRAPS (ctype).
28194
28195 2013-04-11 Bin Cheng <bin.cheng@arm.com>
28196
28197 PR target/56124
28198 * ira-costs.c (scan_one_insn): Check whether the source rtx of
28199 loading has side effect.
28200
28201 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
28202
28203 * config/sparc/sparc.c: Include tree-pass.h.
28204 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
28205 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
28206 head of file. Change return type. Split off gate function.
28207 (sparc_gate_work_around_errata): New function.
28208 (pass_work_around_errata): New pass definition.
28209 (insert_pass_work_around_errata) New pass insert definition to
28210 insert pass_work_around_errata just after delayed-branch scheduling.
28211 (sparc_option_override): Insert the pass.
28212 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
28213
28214 2013-04-10 David S. Miller <davem@davemloft.net>
28215
28216 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
28217 or -mcpu=hypersparc.
28218
28219 * target.def (cstore_mode): New hook.
28220 * target.h: Include insn-codes.h
28221 * targhooks.c: Likewise.
28222 (default_cstore_mode): New function.
28223 * targhooks.h: Declare it.
28224 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
28225 * doc/tm.texi: Rebuild.
28226 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
28227 target hook, rather than inspecting the insn_data.
28228 * config/sparc/sparc.c (sparc_cstore_mode): New function.
28229 (TARGET_CSTORE_MODE): Redefine.
28230 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
28231 result patterns.
28232 * config/sparc/predicates.md (cstore_result_operand): New special
28233 predicate.
28234 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
28235 Use it for operand 0.
28236 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
28237 (*snesi_special): Likewise.
28238 (*snesi_zero): Likewise.
28239 (*seqsi_zero): Likewise.
28240 (*sltu_insn): Likewise.
28241 (*sgeu_insn): Likewise.
28242 (*seqdi_special): Make operand 0 and comparison operation be of
28243 DImode.
28244 (*snedi_special): Likewise.
28245 (*snedi_special_vis3): Likewise.
28246 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
28247 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
28248 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
28249 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
28250 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
28251 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
28252 (*sltu_extend_sp64): Likewise.
28253 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
28254 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
28255 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
28256 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
28257 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
28258
28259 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
28260
28261 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
28262 (aarch64_start_file): Use the new function.
28263
28264 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28265 Jason Merrill <jason@redhat.com>
28266
28267 * common.opt: Add -gdwarf.
28268 * opts.c (common_handle_option): Handle it.
28269 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
28270
28271 2013-04-10 Richard Biener <rguenther@suse.de>
28272
28273 * passes.c (execute_todo): Do not call ggc_collect conditional here.
28274 (execute_one_ipa_transform_pass): But unconditionally here.
28275 (execute_one_pass): And here.
28276 (init_optimization_passes): Remove reload pass.
28277 * tree-pass.h (TODO_ggc_collect): Remove.
28278 (pass_reload): Likewise.
28279 * ira.c (do_reload): Merge into ...
28280 (ira): ... this.
28281 (rest_of_handle_reload): Remove.
28282 (pass_reload): Likewise.
28283 * config/i386/i386.c (ix86_option_override): Refer to ira instead
28284 of reload for vzeroupper pass placement.
28285 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
28286 and todo_flags_finish of all passes.
28287
28288 2013-04-10 Richard Biener <rguenther@suse.de>
28289
28290 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
28291 first_const_oprnd field, rename first_def_type to first_op_type.
28292 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
28293 (vect_get_and_check_slp_defs): Always use the type of the
28294 operand. Allow mixed vect_external_def, vect_constant_def types.
28295 (vect_get_constant_vectors): Handle mixed vect_external_def,
28296 vect_constant_def types.
28297
28298 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
28299
28300 PR tree-optimization/55524
28301 * tree-ssa-math-opts.c
28302 (convert_mult_to_fma): Don't use an fms construct
28303 when we don't have an fms operation, but fnma, and it looks
28304 likely that we'll be able to use the latter.
28305
28306 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
28307
28308 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
28309 function.
28310 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
28311 inline fail caused by overwritable functions.
28312
28313 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
28314
28315 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
28316 unnecessary bits in the constant power of two case.
28317
28318 2013-04-10 Richard Biener <rguenther@suse.de>
28319
28320 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
28321 broken code swapping operands.
28322 (vect_build_slp_tree): Do not compute load permutations here.
28323 (vect_analyze_slp_instance): Compute load permutations here,
28324 after building the SLP tree.
28325
28326 2013-04-09 Christian Bruel <christian.bruel@st.com>
28327
28328 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
28329 of next/prev_real_insn.
28330
28331 2013-04-09 Jan Hubicka <jh@suse.cz>
28332
28333 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
28334 Drop aliased parameter.
28335 (function_and_variable_visibility): Do not handle alias pairs.
28336 * cgraph.c (varpool_externally_visible_p): Update prototype.
28337 * varpool.c (varpool_add_new_variable): Update.
28338
28339 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28340
28341 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
28342
28343 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
28344
28345 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
28346
28347 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
28348
28349 2013-04-09 Marek Polacek <polacek@redhat.com>
28350
28351 PR tree-optimization/48762
28352 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
28353
28354 2013-04-09 Richard Biener <rguenther@suse.de>
28355
28356 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
28357 dealing with cost.
28358 (vect_build_slp_tree): Likewise.
28359 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
28360 calculating the cost of a SLP instance.
28361 (vect_analyze_slp_instance): Use it from here, after building
28362 the SLP tree.
28363
28364 2013-04-09 Jakub Jelinek <jakub@redhat.com>
28365
28366 PR middle-end/56883
28367 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
28368 expand_omp_for_static_chunk): Use simple_p = true in
28369 force_gimple_operand_gsi calls when assigning to addressable decls.
28370
28371 2013-04-09 Jeff Law <law@redhat.com>
28372
28373 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
28374 when the boolean was created by converting a wider object which
28375 had a boolean range.
28376
28377 2013-04-09 Richard Biener <rguenther@suse.de>
28378
28379 * tree-vectorizer.h (slp_void_p): Remove.
28380 (slp_tree): Typedef before _slp_tree declaration.
28381 (struct _slp_tree): Use a vector of slp_tree as children.
28382 (vect_get_place_in_interleaving_chain): Remove.
28383 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
28384 Move ...
28385 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
28386 and make static.
28387 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
28388 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
28389 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
28390 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
28391 Use slp_node instead of slp_void_p and adjust.
28392
28393 2013-04-09 Richard Biener <rguenther@suse.de>
28394
28395 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
28396 work that is not necessary.
28397
28398 2013-04-09 Jakub Jelinek <jakub@redhat.com>
28399
28400 PR tree-optimization/56854
28401 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
28402 forward into clobber stmts if it would change MEM_REF lhs into
28403 non-MEM_REF.
28404
28405 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
28406
28407 * tree.c (type_hash_lookup, type_hash_add): Make static.
28408 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
28409
28410 2013-04-09 Richard Biener <rguenther@suse.de>
28411
28412 * tree.h (unsave_expr_now): Remove.
28413 * tree-inline.c (mark_local_for_remap_r): Remove.
28414 (unsave_expr_1): Likewise.
28415 (unsave_r): Likewise.
28416 (unsave_expr_now): Likewise.
28417 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
28418 (propagate_tree_value): Likewise.
28419
28420 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
28421
28422 * doc/rtl.texi (sequence): Rewrite documentation to match the
28423 current use of SEQUENCE rtl objects.
28424 * rtl.def (SEQUENCE): Likewise.
28425
28426 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
28427 Update documentation.
28428 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
28429 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
28430
28431 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
28432
28433 2013-04-08 Teresa Johnson <tejohnson@google.com>
28434
28435 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
28436 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
28437 methods.
28438 (estimate_edge_size_and_time): Add comment to suggest using rounding
28439 methods.
28440 (estimate_node_size_and_time): Ditto.
28441 (remap_edge_change_prob): Use helper rounding divide methods.
28442 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
28443 (gimple_mod_pow2_value_transform): Ditto.
28444 (gimple_mod_subtract_transform): Ditto.
28445 (gimple_ic_transform): Ditto.
28446 (gimple_stringops_transform): Ditto.
28447 * stmt.c (conditional_probability): Ditto.
28448 (emit_case_dispatch_table): Ditto.
28449 * lto-cgraph.c (merge_profile_summaries): Ditto.
28450 * tree-optimize.c (execute_fixup_cfg): Ditto.
28451 * cfgcleanup.c (try_forward_edges): Ditto.
28452 * cfgloopmanip.c (scale_loop_profile): Ditto.
28453 (loopify): Ditto.
28454 (duplicate_loop_to_header_edge): Ditto.
28455 (lv_adjust_loop_entry_edge): Ditto.
28456 * tree-vect-loop.c (vect_transform_loop): Ditto.
28457 * profile.c (compute_branch_probabilities): Ditto.
28458 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
28459 * lto-streamer-in.c (input_cfg): Ditto.
28460 * gimple-streamer-in.c (input_bb): Ditto.
28461 * ipa-cp.c (update_profiling_info): Ditto.
28462 (update_specialized_profile): Ditto.
28463 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
28464 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
28465 rounding methods.
28466 * sched-rgn.c (compute_dom_prob_ps): Ditto.
28467 (compute_trg_info): Ditto.
28468 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
28469 (purge_dead_edges): Ditto.
28470 * loop-unswitch.c (unswitch_loop): Ditto.
28471 * cgraphclones.c (cgraph_clone_edge): Ditto.
28472 (cgraph_clone_node): Ditto.
28473 * tree-inline.c (copy_bb): Ditto.
28474 (copy_edges_for_bb): Ditto.
28475 (initialize_cfun): Ditto.
28476 (copy_cfg_body): Ditto.
28477 (expand_call_inline): Ditto.
28478
28479 2013-04-08 Kai Tietz <ktietz@redhat.com>
28480
28481 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
28482 TARGET_CYGWIN64 by TARGET_64BIT.
28483
28484 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
28485
28486 * config/epiphany/epiphany.md (GPR_1): New constant.
28487 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
28488 * config/epiphany/epiphany.c (gen_compare_reg):
28489 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
28490 is already in place.
28491 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
28492 Don't require being called during rtl expansion; If y operlaps r0,
28493 return 0.
28494 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
28495 (epiphany_expand_epilogue): Likewise.
28496
28497 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
28498 Don't use CC_FPmode for ORDERED / UNORDERED.
28499 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
28500
28501 * config/epiphany/constraints.md (CnL): New constraint.
28502 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
28503 * config/epiphany/predicates.md (add_operand): Allow 1024.
28504
28505 * config/epiphany/epiphany.md (logical_op): New code iterator.
28506 (op_mnc): New code attribute.
28507 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
28508 (mov_f+1, mov_f+2): New peephole2 patterns.
28509
28510 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
28511 (cstoresi4): Also allow re-use of zero result when doing a NE
28512 comparison to a non-zero operand.
28513 Use (clobber (scratch)) for first insn if the gpr output is not needed.
28514
28515 * config/epiphany/epiphany.md (<insn_opname>v2si3):
28516 Use gen_addsi3_i / gen_subsi3_i.
28517
28518 2013-04-08 Jakub Jelinek <jakub@redhat.com>
28519
28520 PR c++/34949
28521 PR c++/50243
28522 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
28523 contain anything but clobbers, at most one __builtin_stack_restore,
28524 optionally debug stmts and final resx, and if it has at least one
28525 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
28526 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
28527 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
28528 which isn't defaut definition, remove them.
28529 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
28530 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
28531 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
28532 with MEM_REF LHS with SSA_NAME address.
28533
28534 2013-04-08 Jeff Law <law@redhat.com>
28535
28536 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
28537
28538 2013-04-08 Richard Biener <rguenther@suse.de>
28539
28540 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
28541 extra newline.
28542 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
28543 determined vector type.
28544 (vect_analyze_data_refs): Likewise.
28545 (vect_get_new_vect_var): Adjust.
28546 (vect_create_destination_var): Preserve SSA name versions.
28547 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
28548 not dump anything here.
28549
28550 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
28551
28552 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
28553 Add member lr_slot_known.
28554 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
28555 if necessary.
28556 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
28557 Remove code that sets lr_slot_offset according to what a previous
28558 version of epiphany_emit_save_restore used to do.
28559 (epiphany_emit_save_restore): When doing an lr save or restore,
28560 set/verify lr_slot_known and lr_slot_offset.
28561
28562 2013-04-08 Xinyu Qi <xyqi@marvell.com>
28563
28564 PR target/54338
28565 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
28566 in ALL_REGS.
28567
28568 2013-04-08 Richard Biener <rguenther@suse.de>
28569
28570 * alias.c (find_base_term): Fix thinko in previous change.
28571
28572 2013-04-08 Jakub Jelinek <jakub@redhat.com>
28573
28574 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
28575 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
28576 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
28577 if possible to compute val.
28578 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
28579 For QImode integers don't require anything about precision. Use
28580 const_with_all_bytes_same to find out if the constant doesn't have
28581 repeated bytes in it.
28582
28583 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28584
28585 * config/s390/s390.c (s390_expand_insv): Only accept insertions
28586 within mode size.
28587
28588 2013-04-08 Marek Polacek <polacek@redhat.com>
28589
28590 PR rtl-optimization/48182
28591 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
28592 value to 1.
28593
28594 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28595
28596 PR target/55487
28597 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
28598 nuses, make sure we have a label.
28599
28600 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28601
28602 PR target/56843
28603 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
28604 (rs6000_emit_swdiv_low_precision): Remove.
28605 (rs6000_emit_swdiv): Rewrite to handle between one and four
28606 iterations of Newton-Raphson generally; modify required number of
28607 iterations for some cases.
28608 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
28609
28610 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
28611
28612 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
28613 set-but-unused variable.
28614
28615 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
28616 basic blocks of released function bodies garbage-collectable.
28617
28618 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
28619 (struct rtl_opt_pass): Add TODO_df_finish.
28620
28621 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
28622
28623 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28624
28625 * config/arm/constraints.md (q): New constraint.
28626 * config/arm/ldrdstrd.md: New file.
28627 * config/arm/arm.md (ldrdstrd.md) New include.
28628 (arm_movdi): Use "q" instead of "r" constraint
28629 for double-word memory access.
28630 (movdf_soft_insn): Likewise.
28631 * config/arm/vfp.md (movdi_vfp): Likewise.
28632 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
28633 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
28634 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
28635 (mem_ok_for_ldrd_strd): Likewise.
28636 (output_move_double): Update assertion.
28637
28638 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28639
28640 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
28641
28642 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28643
28644 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
28645 define_insn_and_split.
28646 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
28647
28648 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28649
28650 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
28651 define_insn_and_split.
28652 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
28653 (shiftsi3_compare): New pattern.
28654 (rrx): New pattern.
28655 * config/arm/unspecs.md (UNSPEC_RRX): New.
28656
28657 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28658
28659 * config/arm/arm.md (negdi_extendsidi): New pattern.
28660 (negdi_zero_extendsidi): Likewise.
28661
28662 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28663
28664 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
28665 define_insn_and_split.
28666 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
28667 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
28668
28669 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28670
28671 * config/arm/arm.md (arm_subdi3): Convert define_insn into
28672 define_insn_and_split.
28673 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
28674 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
28675
28676 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28677
28678 * config/arm/arm.md (subsi3_carryin): New pattern.
28679 (subsi3_carryin_const): Likewise.
28680 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
28681 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
28682
28683 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28684
28685 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
28686
28687 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28688
28689 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
28690 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
28691
28692 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28693
28694 * config/arm/arm.c (arm_expand_builtin): Change fcode
28695 type to unsigned int.
28696
28697 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28698
28699 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
28700
28701 2013-04-04 Ian Lance Taylor <iant@google.com>
28702
28703 * doc/standards.texi (Standards): The Go frontend supports the Go 1
28704 language standard.
28705
28706 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
28707
28708 PR middle-end/56729
28709 * df-scan.c (df_insn_delete): Disable failing assert.
28710
28711 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28712
28713 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
28714 New function prototype.
28715 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
28716 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
28717 (arm_builtin_vectorized_function): New function.
28718
28719 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28720
28721 * config/arm/arm_neon_builtins.def: New file.
28722 * config/arm/arm.c (neon_builtin_data): Move contents to
28723 arm_neon_builtins.def.
28724 (enum arm_builtins): Include neon builtin definitions.
28725 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
28726 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
28727
28728 2013-04-04 Marek Polacek <polacek@redhat.com>
28729
28730 PR tree-optimization/48186
28731 * predict.c (maybe_hot_frequency_p): Return false if
28732 HOT_BB_FREQUENCY_FRACTION is 0.
28733 (cgraph_maybe_hot_edge_p): Likewise.
28734
28735 2013-04-04 Richard Biener <rguenther@suse.de>
28736
28737 PR tree-optimization/56826
28738 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
28739 more accurately.
28740
28741 2013-04-04 Richard Biener <rguenther@suse.de>
28742
28743 PR tree-optimization/56213
28744 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
28745 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
28746
28747 2013-04-04 Richard Biener <rguenther@suse.de>
28748
28749 PR tree-optimization/56837
28750 * tree-loop-distribution.c (classify_partition): For non-zero
28751 values require that the value has the same precision as its
28752 mode to be useful as memset value.
28753
28754 2013-04-03 Nick Clifton <nickc@redhat.com>
28755
28756 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
28757 (fmssf4): Use fmsf.s on E3V5 architectures.
28758 (fnmasf4): Use fnmaf.s on E3V5 architectures.
28759 (fnmssf4): Use fnmsf.s on E3V5 architectures.
28760
28761 2013-04-03 Jeff Law <law@redhat.com>
28762
28763 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
28764 (lra-eliminations.o): Likewise.
28765
28766 2013-04-03 Teresa Johnson <tejohnson@google.com>
28767
28768 * gcov-io.c (compute_working_sets): Moved most of body of old
28769 compute_working_sets here from profile.c.
28770 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
28771 (gcov_working_set_t): Moved typedef here from basic-block.h
28772 (compute_working_set): Declare.
28773 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
28774 (get_working_sets): Renamed from compute_working_set,
28775 replace most of body with call to new compute_working_sets.
28776 (get_exec_counts): Replace call to compute_working_sets
28777 to get_working_sets.
28778 * profile.h (get_working_sets): Renamed from compute_working_set.
28779 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
28780 to get_working_sets.
28781 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
28782 * gcov-dump.c (dump_working_sets): New function.
28783
28784 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
28785
28786 * hwint.c (sext_hwi, zext_hwi): New functions.
28787 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
28788 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
28789 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
28790 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
28791 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
28792 (sext_hwi, zext_hwi): New functions.
28793
28794 2013-04-03 Jeff Law <law@redhat.com>
28795
28796 PR tree-optimization/56799
28797 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
28798 back test for widening conversion erroneously dropped in prior change.
28799
28800 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28801
28802 PR target/56809
28803 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
28804 instead of next_real_insn.
28805
28806 2013-04-03 Marek Polacek <polacek@redhat.com>
28807
28808 PR sanitizer/55702
28809 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
28810
28811 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28812
28813 PR target/56809
28814 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
28815 next_real_insn.
28816 (thumb1_output_casesi): Likewise.
28817 (thumb2_output_casesi): Likewise.
28818
28819 2013-04-03 Richard Biener <rguenther@suse.de>
28820
28821 PR tree-optimization/56817
28822 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
28823 Split out ...
28824 (tree_unroll_loops_completely_1): ... new function to manually
28825 walk the loop tree, properly defering outer loops of unrolled
28826 loops to later iterations.
28827
28828 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28829
28830 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
28831 (vectorizable_load): Likewise.
28832 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
28833 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
28834
28835 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28836
28837 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
28838 BIT_FIELD_REF.
28839
28840 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28841
28842 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
28843
28844 2013-04-03 Bin Cheng <bin.cheng@arm.com>
28845
28846 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
28847
28848 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28849
28850 PR tree-optimization/56790
28851 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
28852 folding.
28853
28854 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28855
28856 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
28857 Handle VEC_MERGE.
28858 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
28859 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
28860 equal arguments.
28861
28862 2013-04-03 Jakub Jelinek <jakub@redhat.com>
28863
28864 PR c/19449
28865 * tree.h (force_folding_builtin_constant_p): New decl.
28866 * builtins.c (force_folding_builtin_constant_p): New variable.
28867 (fold_builtin_constant_p): Fold immediately also if
28868 force_folding_builtin_constant_p.
28869
28870 2013-04-03 Richard Biener <rguenther@suse.de>
28871
28872 PR tree-optimization/56812
28873 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
28874 DRs of the same interleaving chain are independent.
28875
28876 2013-04-02 Jason Merrill <jason@redhat.com>
28877
28878 * gdbinit.in (pbb): Use debug fn.
28879
28880 2013-04-02 Lawrence Crowl <crowl@google.com>
28881
28882 * sese.h (struct ivtype_map_elt_s): Remove unused.
28883 (extern debug_ivtype_map): Remove unused.
28884 (extern eq_ivtype_map_elts): Remove unused.
28885 * sese.c (debug_ivtype_map): Removed unused.
28886 (debug_ivtype_map_1): Removed unused.
28887 (debug_ivtype_elt): Remove unused.
28888 (eq_ivtype_map_elts): Remove unused.
28889
28890 2013-04-02 Kai Tietz <ktietz@redhat.com>
28891
28892 PR target/52790
28893 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
28894 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
28895 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
28896 function.
28897 (legitimize_pe_coff_symbol): Likewise.
28898 (is_imported_p): New helper-function.
28899 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
28900 for Windows x64 targets.
28901 (ix86_expand_prologue): Optimize for pe-coff targets.
28902 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
28903 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
28904 medium/large code-model.
28905 (legitimize_pic_address): Likewise.
28906 (legitimize_tls_address): Likewise.
28907 (ix86_expand_call): Likewise.
28908 (x86_output_mi_thunk): Likewise.
28909 (get_dllimport_decl): Add new beimport argument.
28910 (construct_plt_address): Don't assert for x64 pe-coff targets.
28911 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
28912 targets.
28913 (SYMBOL_FLAG_STUBVAR): New macro.
28914 (SYMBOL_REF_STUBVAR_P): Likewise.
28915 * config/i386/winnt.c (stub_list): New structure.
28916 (stub_head): New local variable.
28917 (i386_pe_record_stub): New function.
28918 (i386_pe_file_end): Emit refptr-stubs.
28919
28920 2013-04-02 Jakub Jelinek <jakub@redhat.com>
28921
28922 PR rtl-optimization/56745
28923 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
28924 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
28925
28926 PR c++/34949
28927 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
28928 and both of them are MEM_REFs, just compare first argument for
28929 equality and attempt to deal even with differing offsets.
28930
28931 PR c++/34949
28932 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
28933 of gimple_clobber_p to be MEM_REF.
28934 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
28935 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
28936 after gimplification.
28937 * asan.c (get_mem_ref_of_assignment): Don't instrument
28938 gimple_clobber_p stmts.
28939 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
28940 gimple_clobber_p stmt if they have MEM_REF lhs and
28941 are dead because of another gimple_clobber_p stmt.
28942 * tree-ssa-live.c (clear_unused_block_pointer): Treat
28943 gimple_clobber_p stmts like debug stmts.
28944 (remove_unused_locals): Remove clobbers with MEM_REF lhs
28945 that refer to unused VAR_DECLs or uninitialized values.
28946 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
28947 gimple_clobber_p stmts if they refer to removed parameters.
28948 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
28949 formatting.
28950
28951 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
28952
28953 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
28954 using SWI48 mode attribute.
28955
28956 2013-04-02 Wei Mi <wmi@google.com>
28957
28958 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
28959 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
28960 *<rotate_insn><mode>3_mask in i386.md.
28961
28962 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
28963
28964 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
28965
28966 2013-04-02 Richard Biener <rguenther@suse.de>
28967
28968 PR tree-optimization/56778
28969 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28970 Runtime alias tests are not supported for gather loads.
28971 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
28972 stmts referenced from SSA operands before updating SSA form.
28973
28974 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
28975 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28976
28977 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
28978 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
28979 * config/arm/cortex-a53.md: New file.
28980 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
28981 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
28982 * config/arm/arm.c (arm_issue_rate): Likewise.
28983 * config/arm/arm-tune.md: Regenerate
28984 * config/arm/arm-tables.opt: Regenerate.
28985 * config/arm/arm-cores.def: Add cortex-a53.
28986
28987 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
28988
28989 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
28990 non-static link.
28991
28992 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
28993
28994 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
28995 scalar load/store operations using B/H registers.
28996 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
28997
28998 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
28999
29000 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
29001 scalar move.
29002 * config/aarch64/aarch64.c
29003 (aarch64_simd_scalar_immediate_valid_for_move): New.
29004 * config/aarch64/aarch64-protos.h
29005 (aarch64_simd_scalar_immediate_valid_for_move): New.
29006 * config/aarch64/constraints.md (Dh, Dq): New.
29007 * config/aarch64/iterators.md (hq): New.
29008
29009 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
29010
29011 * reorg.c (get_branch_condition): Deal with conditional returns.
29012 (fill_simple_delay_slots): Remove dead code dealing with jumps.
29013
29014 2013-04-01 Wei Mi <wmi@google.com>
29015
29016 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
29017 Truncate operand 2 using %b asm operand modifier.
29018 (*<shift_insn><mode>3_mask): Ditto.
29019 (*<rotate_insn><mode>3_mask): Ditto.
29020
29021 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
29022
29023 PR middle-end/56798
29024 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
29025
29026 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
29027
29028 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
29029 of next_real_insn.
29030 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
29031
29032 2013-03-30 Lawrence Crowl <crowl@google.com>
29033
29034 * dse.c (clear_alias_sets): Remove never set.
29035 (disqualified_clear_alias_sets): Remove never set.
29036 (clear_alias_mode_pool): Remove never set.
29037 (dse_step0): Remove condition that is never true.
29038 (canon_address): Remove condition that is never true.
29039 (dse_step7): Remove condition that is never true.
29040 (rest_of_handle_dse): Remove condition that is never true.
29041 (rest_of_handle_dse::did_global): Remove never read from above.
29042 (dse_step2_spill): Remove never called from above.
29043 (dse_step5_spill): Remove never called from above.
29044
29045 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
29046
29047 * doc/md.texi (Standard Names) <casesi>: Update documentation for
29048 JUMP_TABLE_DATA changes.
29049 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
29050 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
29051 (Insns) <jump_table_data>: New entry.
29052 * doc/tm.texi: Regenerate.
29053
29054 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
29055
29056 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
29057 for table jump at the end of a basic block using tablejump_p.
29058 * targhooks.c (default_invalid_within_doloop): Likewise.
29059 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
29060 target hook implementation that is identical to the default hook.
29061 (rs6000_invalid_within_doloop): Remove.
29062
29063 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
29064 unused variable from tablejump_p call.
29065
29066 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
29067 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
29068 (INSN_DELETED_P): Likewise.
29069 (emit_jump_table_data): New prototype.
29070 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
29071 after 4th as unused.
29072 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
29073 * sched-vis.c (print_insn): Likewise.
29074 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
29075 insn for compatibility with back ends that use next_active_insn to
29076 identify jump table data.
29077 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
29078 (remove_insn): Likewise.
29079 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
29080 to be emitted.
29081 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
29082 (emit_jump_table_data): New function.
29083
29084 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
29085 basic block, a JUMP_TABLE_DATA never is.
29086 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
29087 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
29088 off from code handling real insns.
29089 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
29090 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
29091 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
29092 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
29093 is not a NONDEBUG_INSN_P.
29094 * ira-costs.c (scan_one_insn): Likewise.
29095 * jump.c (mark_all_labels): Likewise.
29096 (mark_jump_label_1): Likewise.
29097 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
29098 * lra.c (get_insn_freq): Expect all insns reaching here to be in
29099 a basic block.
29100 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
29101 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
29102 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
29103 JUMP_TABLE_DATA_P insns.
29104 (calculate_elim_costs_all_insns): Likewise.
29105 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
29106 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
29107 (delete_output_reload): Code style fixups.
29108 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
29109 insn flags on this non-insn.
29110 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
29111 as scheduling barriers, for pre-change compatibility.
29112 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
29113 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
29114
29115 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
29116 redundant JUMP_TABLE_DATA_P test.
29117 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
29118 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
29119 (frv_for_each_packet): Likewise.
29120 * config/i386/i386.c (min_insn_size): Likewise.
29121 (ix86_avoid_jump_mispredicts): Likewise.
29122 * config/m32r/m32r.c (m32r_is_insn): Likewise.
29123 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
29124 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
29125 (mips16_insn_length): Robustify.
29126 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
29127 (mips16_split_long_branches): Likewise.
29128 * config/pa/pa.c (pa_combine_instructions): Likewise.
29129 * config/rs6000/rs6000.c (get_next_active_insn): Treat
29130 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
29131 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
29132 as contributing to pool range lengths.
29133 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
29134 Remove redundant JUMP_TABLE_DATA_P test.
29135 (sh_loop_align): Likewise.
29136 (split_branches): Likewise.
29137 (sh_insn_length_adjustment): Likewise.
29138 * config/spu/spu.c (get_branch_target): Likewise.
29139
29140 2013-03-29 Jan Hubicka <jh@suse.cz>
29141
29142 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
29143 gcov streaming; stream hot bb threshold to ltrans.
29144 * predict.c (get_hot_bb_threshold): Break out from ....
29145 (maybe_hot_count_p): ... here.
29146 (set_hot_bb_threshold): New function.
29147 * lto-section-in.c (lto_section_name): Add profile.
29148 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
29149 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
29150 and data-streamer.h
29151 (histogram_entry): New structure.
29152 (histogram, histogram_pool): New global vars.
29153 (histogram_hash): New structure.
29154 (histogram_hash::hash): New method.
29155 (histogram_hash::equal): Likewise.
29156 (account_time_size): New function.
29157 (cmp_counts): New function.
29158 (dump_histogram): New function.
29159 (ipa_profile_generate_summary): New function.
29160 (ipa_profile_write_summary): New function.
29161 (ipa_profile_read_summary): New function.
29162 (ipa_profile): Decide on threshold.
29163 (pass_ipa_profile): Add ipa_profile_write_summary and
29164 ipa_profile_read_summary.
29165 * Makefile.in (ipa.o): Update dependencies.
29166 * lto-streamer.h (LTO_section_ipa_profile): New section.
29167
29168 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
29169
29170 * tree.h (VAR_P): New.
29171
29172 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
29173
29174 PR lto/56777
29175 * doc/invoke.texi ([-fwhole-program]): Fix typo.
29176
29177 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
29178
29179 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
29180 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
29181 (control_flow_insn_p): Likewise.
29182 * cfgrtl.c (duplicate_insn_chain): Likewise.
29183 * final.c (get_attr_length_1): Likewise.
29184 (shorten_branches): Likewise.
29185 (final_scan_insn): Likewise.
29186 * function.c (instantiate_virtual_regs): Likewise.
29187 * gcse.c (insert_insn_end_basic_block): Likewise.
29188 * ira-costs.c (scan_one_insn): Likewise.
29189 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
29190 * lra.c (check_rtl): Likewise.
29191 * reload1.c (elimination_costs_in_insn): Likewise.
29192 * reorg.c (follow_jumps): Likewise.
29193
29194 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
29195 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
29196 (thumb_far_jump_used_p): Likewise.
29197 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
29198 (workaround_speculation): Likewise.
29199 (add_sched_insns_for_speculation): Likewise.
29200 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
29201 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
29202 (frv_for_each_packet): Likewise.
29203 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
29204 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
29205 (final_emit_insn_group_barriers): Likewise.
29206 * config/m32r/m32r.c (m32r_is_insn): Likewise.
29207 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
29208 (mips16_insn_length): Likewise.
29209 * config/pa/pa.c (pa_reorg): Likewise.
29210 (pa_combine_instructions): Likewise.
29211 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
29212 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
29213 (sh_reorg): Likewise.
29214 (split_branches): Likewise.
29215 * config/spu/spu.c (get_branch_target): Likewise.
29216
29217 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
29218 JUMP_TABLE_DATA_P.
29219
29220 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
29221
29222 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
29223 Fix declaration name.
29224
29225 2013-03-28 Lawrence Crowl <crowl@google.com>
29226
29227 * graphds.h (struct graph.indicies): Remove unused.
29228 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
29229 (SCOP_ORIGINAL_PDDRS): Remove unused.
29230 * sese.h (extern insert_loop_close_phis): Removed unused.
29231 (extern insert_guard_phis): Removed unused.
29232 (extern ivtype_map_elt_info): Removed unused.
29233 (new_ivtype_map_elt): Removed unused.
29234 * sese.c (ivtype_map_elt_info): Removed unused.
29235
29236 2013-03-28 Lawrence Crowl <crowl@google.com>
29237
29238 * Makefile.in: Add several missing include dependences.
29239 (DUMPFILE_H): New.
29240 (test-dump.o): New. This object is not added to any executable,
29241 but is present for ad-hoc testing.
29242 * bitmap.c
29243 (debug (const bitmap_head_def &)): New.
29244 (debug (const bitmap_head_def *)): New.
29245 * bitmap.h
29246 (extern debug (const bitmap_head_def &)): New.
29247 (extern debug (const bitmap_head_def *)): New.
29248 * cfg.c
29249 (debug (edge_def &)): New.
29250 (debug (edge_def *)): New.
29251 * cfghooks.c
29252 (debug (basic_block_def &)): New.
29253 (debug (basic_block_def *)): New.
29254 * dumpfile.h
29255 (dump_node (const_tree, int, FILE *)): Correct source file.
29256 * dwarf2out.c
29257 (debug (die_struct &)): New.
29258 (debug (die_struct *)): New.
29259 * dwarf2out.h
29260 (extern debug (die_struct &)): New.
29261 (extern debug (die_struct *)): New.
29262 * gimple-pretty-print.c
29263 (debug (gimple_statement_d &)): New.
29264 (debug (gimple_statement_d *)): New.
29265 * gimple-pretty-print.h
29266 (extern debug (gimple_statement_d &)): New.
29267 (extern debug (gimple_statement_d *)): New.
29268 * ira-build.c
29269 (debug (ira_allocno_copy &)): New.
29270 (debug (ira_allocno_copy *)): New.
29271 (debug (ira_allocno &)): New.
29272 (debug (ira_allocno *)): New.
29273 * ira-int.h
29274 (extern debug (ira_allocno_copy &)): New.
29275 (extern debug (ira_allocno_copy *)): New.
29276 (extern debug (ira_allocno &)): New.
29277 (extern debug (ira_allocno *)): New.
29278 * ira-lives.c
29279 (debug (live_range &)): New.
29280 (debug (live_range *)): New.
29281 * lra-int.h
29282 (debug (lra_live_range &)): New.
29283 (debug (lra_live_range *)): New.
29284 * lra-lives.c
29285 (debug (lra_live_range &)): New.
29286 (debug (lra_live_range *)): New.
29287 * omega.c
29288 (debug (omega_pb_d &)): New.
29289 (debug (omega_pb_d *)): New.
29290 * omega.h
29291 (extern debug (omega_pb_d &)): New.
29292 (extern debug (omega_pb_d *)): New.
29293 * print-rtl.c
29294 (debug (const rtx_def &)): New.
29295 (debug (const rtx_def *)): New.
29296 * print-tree.c
29297 (debug_tree (tree): Move within file.
29298 (debug_raw (const tree_node &)): New.
29299 (debug_raw (const tree_node *)): New.
29300 (dump_tree_via_hooks (const tree_node *, int)): New.
29301 (debug (const tree_node &)): New.
29302 (debug (const tree_node *)): New.
29303 (debug_verbose (const tree_node &)): New.
29304 (debug_verbose (const tree_node *)): New.
29305 (debug_head (const tree_node &)): New.
29306 (debug_head (const tree_node *)): New.
29307 (debug_body (const tree_node &)): New.
29308 (debug_body (const tree_node *)): New.
29309 (debug_vec_tree (tree): Move and reimplement in terms of dump.
29310 (debug (vec<tree, va_gc> &)): New.
29311 (debug (vec<tree, va_gc> *)): New.
29312 * rtl.h
29313 (extern debug (const rtx_def &)): New.
29314 (extern debug (const rtx_def *)): New.
29315 * sbitmap.c
29316 (debug_raw (simple_bitmap_def &)): New.
29317 (debug_raw (simple_bitmap_def *)): New.
29318 (debug (simple_bitmap_def &)): New.
29319 (debug (simple_bitmap_def *)): New.
29320 * sbitmap.h
29321 (extern debug (simple_bitmap_def &)): New.
29322 (extern debug (simple_bitmap_def *)): New.
29323 (extern debug_raw (simple_bitmap_def &)): New.
29324 (extern debug_raw (simple_bitmap_def *)): New.
29325 * sel-sched-dump.c
29326 (debug (vinsn_def &)): New.
29327 (debug (vinsn_def *)): New.
29328 (debug_verbose (vinsn_def &)): New.
29329 (debug_verbose (vinsn_def *)): New.
29330 (debug (expr_def &)): New.
29331 (debug (expr_def *)): New.
29332 (debug_verbose (expr_def &)): New.
29333 (debug_verbose (expr_def *)): New.
29334 (debug (vec<rtx> &)): New.
29335 (debug (vec<rtx> *)): New.
29336 * sel-sched-dump.h
29337 (extern debug (vinsn_def &)): New.
29338 (extern debug (vinsn_def *)): New.
29339 (extern debug_verbose (vinsn_def &)): New.
29340 (extern debug_verbose (vinsn_def *)): New.
29341 (extern debug (expr_def &)): New.
29342 (extern debug (expr_def *)): New.
29343 (extern debug_verbose (expr_def &)): New.
29344 (extern debug_verbose (expr_def *)): New.
29345 (extern debug (vec<rtx> &)): New.
29346 (extern debug (vec<rtx> *)): New.
29347 * sel-sched-ir.h
29348 (_list_iter_cond_expr): Make inline instead of static.
29349 * sreal.c
29350 (debug (sreal &)): New.
29351 (debug (sreal *)): New.
29352 * sreal.h
29353 (extern debug (sreal &)): New.
29354 (extern debug (sreal *)): New.
29355 * tree.h
29356 (extern debug_raw (const tree_node &)): New.
29357 (extern debug_raw (const tree_node *)): New.
29358 (extern debug (const tree_node &)): New.
29359 (extern debug (const tree_node *)): New.
29360 (extern debug_verbose (const tree_node &)): New.
29361 (extern debug_verbose (const tree_node *)): New.
29362 (extern debug_head (const tree_node &)): New.
29363 (extern debug_head (const tree_node *)): New.
29364 (extern debug_body (const tree_node &)): New.
29365 (extern debug_body (const tree_node *)): New.
29366 (extern debug (vec<tree, va_gc> &)): New.
29367 (extern debug (vec<tree, va_gc> *)): New.
29368 * tree-cfg.c
29369 (debug (struct loop &)): New.
29370 (debug (struct loop *)): New.
29371 (debug_verbose (struct loop &)): New.
29372 (debug_verbose (struct loop *)): New.
29373 * tree-dump.c: Add header dependence.
29374 * tree-flow.h
29375 (extern debug (struct loop &)): New.
29376 (extern debug (struct loop *)): New.
29377 (extern debug_verbose (struct loop &)): New.
29378 (extern debug_verbose (struct loop *)): New.
29379 * tree-data-ref.c
29380 (debug (data_reference &)): New.
29381 (debug (data_reference *)): New.
29382 (debug (vec<data_reference_p> &)): New.
29383 (debug (vec<data_reference_p> *)): New.
29384 (debug (vec<ddr_p> &)): New.
29385 (debug (vec<ddr_p> *)): New.
29386 * tree-data-ref.h
29387 (extern debug (data_reference &)): New.
29388 (extern debug (data_reference *)): New.
29389 (extern debug (vec<data_reference_p> &)): New.
29390 (extern debug (vec<data_reference_p> *)): New.
29391 (extern debug (vec<ddr_p> &)): New.
29392 (extern debug (vec<ddr_p> *)): New.
29393 * tree-ssa-alias.c
29394 (debug (pt_solution &)): New.
29395 (debug (pt_solution *)): New.
29396 * tree-ssa-alias.h
29397 (extern debug (pt_solution &)): New.
29398 (extern debug (pt_solution *)): New.
29399 * tree-ssa-alias.c
29400 (debug (_var_map &)): New.
29401 (debug (_var_map *)): New.
29402 (debug (tree_live_info_d &)): New.
29403 (debug (tree_live_info_d *)): New.
29404 * tree-ssa-alias.h
29405 (extern debug (_var_map &)): New.
29406 (extern debug (_var_map *)): New.
29407 (extern debug (tree_live_info_d &)): New.
29408 (extern debug (tree_live_info_d *)): New.
29409
29410 2013-03-28 Jan Hubicka <jh@suse.cz>
29411
29412 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
29413
29414 2013-03-28 Ian Bolton <ian.bolton@arm.com>
29415
29416 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
29417 record only when desired or required.
29418
29419 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
29420
29421 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
29422 *vec_extractv2di_1_rex64. Use x64 isa attribute.
29423
29424 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29425
29426 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
29427 (*andsi3_compare0_uxtw): New pattern.
29428 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
29429 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
29430
29431 2013-03-28 Jan Hubicka <jh@suse.cz>
29432
29433 * data-streamer-in.c (streamer_read_gcov_count): New function.
29434 * gimple-streamer-out.c: Include value-prof.h.
29435 (output_gimple_stmt): Output histogram.
29436 (output_bb): Use streamer_write_gcov_count.
29437 * value-prof.c: Include data-streamer.h
29438 (dump_histogram_value): Add HIST_TYPE_MAX.
29439 (stream_out_histogram_value): New function.
29440 (stream_in_histogram_value): New function.
29441 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
29442 (stream_out_histogram_value, stream_in_histogram_value): Declare.
29443 * data-streamer-out.c (streamer_write_gcov_count): New function.
29444 (streamer_write_gcov_count_stream): New function.
29445 * lto-cgraph.c (lto_output_edge): Update counter streaming.
29446 (lto_output_node): Likewise.
29447 (input_node, input_edge): Likewise.
29448 * lto-streamer-out.c (output_cfg): Update streaming.
29449 * lto-streamer-in.c (input_cfg): Likewise.
29450 * data-streamer.h (streamer_write_gcov_count,
29451 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
29452 * gimple-streamer-in.c: Include value-prof.h
29453 (input_gimple_stmt): Input histograms.
29454 (input_bb): Update profile streaming.
29455
29456 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
29457
29458 * genmodes.c (emit_max_int): New function.
29459 (emit_insn_modes_h): Added call to emit_max_function.
29460 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
29461 Added doc.
29462 * machmode.def: Fixed comment.
29463
29464 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
29465
29466 * combine.c (try_combine): Removed useless assert.
29467 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
29468
29469 2013-03-28 Marek Polacek <polacek@redhat.com>
29470 Richard Biener <rguenther@suse.de>
29471
29472 PR tree-optimization/56695
29473 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
29474 build signed result of a vector comparison.
29475 * tree-cfg.c (verify_gimple_comparison): Check that a result
29476 of a vector comparison has signed type.
29477
29478 2013-03-28 Richard Biener <rguenther@suse.de>
29479
29480 PR tree-optimization/37021
29481 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
29482 do not restrict gaps between groups.
29483 * tree-vect-stmts.c (vectorizable_load): Properly account for
29484 a gap between groups.
29485
29486 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
29487
29488 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
29489 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
29490 is not enabled.
29491
29492 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
29493
29494 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
29495 * doc/extend.texi (Named Address Spaces): Ditto.
29496 (Variable Attributes): Ditto.
29497
29498 2013-03-27 Kai Tietz <ktietz@redhat.com>
29499
29500 * config.build: Add support for cygwin x64 target.
29501 * config.gcc: Likewise.
29502 * config.host: Likewise.
29503 * configure.ac: Likewise
29504 * configure: Regenerated.
29505
29506 2013-03-27 Kai Tietz <ktietz@redhat.com>
29507
29508 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
29509 * config/i386/t-cygwin-w64: New file.
29510 * config/i386/cygwin-w64.h: New file.
29511 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
29512 and add support for x64-cygwin target.
29513 (CPP_SPEC): Likewise.
29514 (CXX_WRAP_SPEC_LIST): Undefine before define.
29515 (LIBGCJ_SONAME): Use 15 as version.
29516
29517 2013-03-27 Richard Biener <rguenther@suse.de>
29518
29519 PR tree-optimization/56716
29520 * tree-ssa-structalias.c (perform_var_substitution): Adjust
29521 dumping for ref nodes.
29522
29523 2013-03-27 Martin Jambor <mjambor@suse.cz>
29524
29525 PR tree-optimization/55334
29526 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
29527 restricted pointers to arrays.
29528
29529 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
29530
29531 * Makefile.in (.SUFFIXES): Add .cc.
29532 (.c.o): Apply same recipe for implicit rule .cc.o.
29533
29534 2013-03-27 Richard Biener <rguenther@suse.de>
29535
29536 PR tree-optimization/37021
29537 * tree-vect-data-refs.c (vect_check_strided_load): Allow
29538 REALPART/IMAGPART_EXPRs around the supported refs.
29539 * tree-ssa-structalias.c (find_func_aliases): Assume that
29540 floating-point values are not used to transfer pointers.
29541
29542 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
29543
29544 * target.def (TARGET_HAS_IFUNC_P): New target hook.
29545 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
29546 * doc/tm.texi: Regenerate.
29547 * targhooks.h (default_has_ifunc_p): New.
29548 * targhooks.c (default_has_ifunc_p): Ditto.
29549 * config/linux-protos.h: New file.
29550 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
29551 hook for linux which disables support of indirect functions in android.
29552 * config/linux-android.c: New file.
29553 * config/t-linux-android.c: Ditto.
29554 * config.gcc: Added new object file linux-android.o.
29555 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
29556 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
29557 * varasm.c (do_assemble_alias): Likewise.
29558 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
29559 doesn't support indirect functions.
29560 * configure: Regenerate.
29561
29562 2013-03-27 Bin Cheng <bin.cheng@arm.com>
29563
29564 PR target/56102
29565 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
29566 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
29567 mult-word mode.
29568
29569 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29570
29571 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
29572
29573 2013-03-27 Terry Guo <terry.guo@arm.com>
29574
29575 * config/arm/arm-cores.def: Added core cortex-r7.
29576 * config/arm/arm-tune.md: Regenerated.
29577 * config/arm/arm-tables.opt: Regenerated.
29578 * doc/invoke.texi: Added entry for core cortex-r7.
29579
29580 2013-03-27 Walter Lee <walt@tilera.com>
29581
29582 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
29583 double-decrement of next_scratch_regno.
29584
29585 2013-03-27 Walter Lee <walt@tilera.com>
29586
29587 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
29588 input operands.
29589 (insn_v1mulus): Ditto.
29590 (insn_v2muls): Ditto.
29591
29592 2013-03-27 Walter Lee <walt@tilera.com>
29593
29594 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
29595 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
29596
29597 2013-03-27 Walter Lee <walt@tilera.com>
29598
29599 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
29600 (*sibcall_value): Ditto.
29601
29602 2013-03-27 Walter Lee <walt@tilera.com>
29603
29604 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
29605 (insn_mnz_v8qi): ... this ...
29606 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
29607 vector equivalent.
29608 (insn_v<n>mnz): Replaced by ...
29609 (insn_v1mnz): ... this ...
29610 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
29611 equivalent.
29612 (insn_mz_<mode>): Replaced by ...
29613 (insn_mz_v8qi): ... this ...
29614 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
29615 vector equivalent.
29616 (insn_v<n>mz): Replaced by ...
29617 (insn_v1mz): ... this ...
29618 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
29619 equivalent.
29620
29621 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
29622
29623 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
29624
29625 2013-03-26 Roland McGrath <mcgrathr@google.com>
29626
29627 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
29628 than fprintf with a non-constant, non-format string.
29629
29630 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
29631
29632 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
29633 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
29634 operand 0 predicate.
29635 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
29636 attribute. Use general_x64nomem_operand as operand 1 predicate.
29637 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
29638 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
29639 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
29640 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
29641 (mov<mode>_insv_1): Remove expander. Merge insn with
29642 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
29643 Use general_x64nomem_operand as operand 1 predicate.
29644 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
29645 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
29646 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
29647 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
29648 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
29649 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
29650 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
29651 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
29652 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
29653 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
29654 (general_x64nomem_operand): Ditto.
29655
29656 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
29657
29658 * config/rtems.opt: Add -pthread option.
29659
29660 2013-03-26 Richard Biener <rguenther@suse.de>
29661
29662 * alias.c (find_base_term): Avoid redundant and not used recursion.
29663 (base_alias_check): Get the initial base term from the caller.
29664 (true_dependence_1): Compute and pass base terms to base_alias_check.
29665 (write_dependence_p): Likewise.
29666 (may_alias_p): Likewise.
29667
29668 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
29669
29670 * config/aarch64/aarch64.c (aarch64_classify_address): Support
29671 PC-relative load in SI modes and above only.
29672
29673 2013-03-26 Xinyu Qi <xyqi@marvell.com>
29674
29675 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
29676 * config/arm/iwmmxt.md (WCGR0): Update.
29677 (WCGR1, WCGR2, WCGR3): Likewise.
29678
29679 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
29680
29681 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
29682 Use x64 and nox64 isa attributes.
29683
29684 2013-03-26 Richard Biener <rguenther@suse.de>
29685
29686 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
29687 alignment computations and rely on get_object_alignment_1
29688 for the !TYPE_P case.
29689 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
29690
29691 2013-03-26 Walter Lee <walt@tilera.com>
29692
29693 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
29694 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
29695
29696 2013-03-25 Jeff Law <law@redhat.com>
29697
29698 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
29699 check for INTEGRAL_TYPE_P that was missing due to checking in
29700 wrong version of prior patch.
29701
29702 2013-03-25 Walter Lee <walt@tilera.com>
29703
29704 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
29705 TILEGX_INSN_SHUFFLEBYTES1.
29706 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
29707 shufflebytes1.
29708 (tilegx_builtins): Ditto.
29709 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
29710
29711 2013-03-25 Walter Lee <walt@tilera.com>
29712
29713 * config/tilegx/tilegx.md (floatsisf2): New pattern.
29714 (floatunssisf2): New pattern.
29715 (floatsidf2): New pattern.
29716 (floatunssidf2): New pattern.
29717
29718 2013-03-25 Walter Lee <walt@tilera.com>
29719
29720 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
29721 tests for constraint J, K, N, P.
29722
29723 2013-03-25 Walter Lee <walt@tilera.com>
29724
29725 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
29726 Use indirect/pcrel encoding.
29727 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
29728 Ditto.
29729
29730 2013-03-25 Steve Ellcey <sellcey@mips.com>
29731
29732 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
29733 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
29734 * config/mips/mips.c (mips_option_override): Set IMADD default.
29735 * config/mips/mips.h (PTF_AVOID_IMADD): New.
29736 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
29737 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
29738 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
29739 * doc/invoke.texi (-mimadd/-mno-imadd): New.
29740
29741 2013-03-25 Jeff Law <law@redhat.com>
29742
29743 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
29744 slightly to avoid creating and folding useless trees. Simplify
29745 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
29746
29747 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
29748
29749 * config/i386/i386.md (*zero_extendsidi2): Merge with
29750 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
29751 * config/i386/predicates.md (x86_64_zext_operand): Rename from
29752 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
29753 targets. Clarify comment.
29754
29755 2013-03-25 Martin Jambor <mjambor@suse.cz>
29756
29757 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
29758 pass-through jump functions differently.
29759 (ipa_read_jump_function): Likewise. Also use setter functions to set
29760 up jump functions.
29761
29762 2013-03-25 Martin Jambor <mjambor@suse.cz>
29763
29764 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
29765 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
29766 process it.
29767 (ipa_get_indirect_edge_target): New function.
29768 (devirtualization_time_bonus): New parameter known_aggs, pass it to
29769 ipa_get_indirect_edge_target. Update all callers.
29770 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
29771 ipa_get_indirect_edge_target_1 instead of calling
29772 ipa_get_indirect_edge_target.
29773 (create_specialized_node): Pass aggvlas to
29774 ipcp_discover_new_direct_edges.
29775
29776 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29777
29778 * config/arm/arm.md (f_sels, f_seld): New types.
29779 (*cmov<mode>): New pattern.
29780 * config/arm/predicates.md (arm_vsel_comparison_operator): New
29781 predicate.
29782
29783 2013-03-25 Kai Tietz <ktietz@redhat.com>
29784
29785 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
29786 POSIX-printf for mingw-hosted builds.
29787
29788 2013-03-25 Richard Biener <rguenther@suse.de>
29789
29790 PR middle-end/56694
29791 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
29792 must-not-throw stmt location.
29793
29794 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29795
29796 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
29797 Emit load-acquire versions when acq is true.
29798 (arm_emit_store_exclusive): Add rel parameter.
29799 Emit store-release versions when rel is true.
29800 (arm_split_compare_and_swap): Use acquire-release instructions
29801 instead.
29802 of barriers when appropriate.
29803 (arm_split_atomic_op): Likewise.
29804 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
29805 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
29806 (VUNSPEC_SLX): Likewise.
29807 (VUNSPEC_LDA): Likewise.
29808 (VUNSPEC_STL): Likewise.
29809 * config/arm/sync.md (atomic_load<mode>): New pattern.
29810 (atomic_store<mode>): Likewise.
29811 (arm_load_acquire_exclusive<mode>): Likewise.
29812 (arm_load_acquire_exclusivesi): Likewise.
29813 (arm_load_acquire_exclusivedi): Likewise.
29814 (arm_store_release_exclusive<mode>): Likewise.
29815
29816 2013-03-25 Catherine Moore <clm@codesourcery.com>
29817
29818 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
29819 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
29820 * config/mip/predicates.md (lwsp_swsp_operand,
29821 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
29822 sb16_operand, db4_operand, db7_operand, ib3_operand,
29823 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
29824 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
29825 andi16_operand): New predicates.
29826 * config/mips/mips.md (compression): New attribute.
29827 (enabled): New attribute.
29828 (length): Consider compression in computing length.
29829 (shift_compression): New code attribute.
29830 (*add<mode>3): New operands. Record compression.
29831 (sub<mode>3): Likewise.
29832 (one_cmpl<mode>2): Likewise.
29833 (*and<mode>3): Likewise.
29834 (*ior<mode>3): Likewise.
29835 (unnamed pattern for xor): Likewise.
29836 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
29837 (*<optab><mode>3): Likewise.
29838 (*mov<mode>_internal: Likewise.
29839 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
29840 (mips_unsigned_immediate_p): New.
29841 (umips_lwsp_swsp_address_p): New.
29842 (m16_based_address_p): New.
29843 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
29844 (mips_unsigned_immediate_p): New prototype.
29845 (lwsp_swsp_address_p): New prototype.
29846 (m16_based_address_p): New prototype.
29847 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
29848 (mips_signed_immediate_p): New function.
29849 (m16_based_address_p): New function.
29850 (lwsp_swsp_address_p): New function.
29851 (mips_print_operand_punctuation): Recognize short delay slot insns
29852 for microMIPS.add<mode>3"
29853
29854 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29855
29856 PR target/56720
29857 * config/arm/iterators.md (v_cmp_result): New mode attribute.
29858 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
29859
29860 2013-03-25 Richard Biener <rguenther@suse.de>
29861
29862 PR tree-optimization/56689
29863 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
29864 any edge.
29865
29866 2013-03-25 Richard Biener <rguenther@suse.de>
29867
29868 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
29869 of bitmap.
29870 (memory_references): Likewise.
29871 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
29872 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
29873 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
29874 (gather_mem_refs_in_loops): Fold into ...
29875 (analyze_memory_references): ... this. Move initialization
29876 to tree_ssa_lim_initialize.
29877 (fill_always_executed_in): Rename to ...
29878 (fill_always_executed_in_1): ... this.
29879 (fill_always_executed_in): Move contains_call computation to
29880 this new function from ...
29881 (tree_ssa_lim_initialize): ... here.
29882 (tree_ssa_lim): Call fill_always_executed_in.
29883
29884 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
29885
29886 * postreload.c (reload_combine): Fix code detecting returns.
29887
29888 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
29889
29890 * function.c (emit_use_return_register_into_block): On cc0 targets,
29891 do not emit the sequence between cc0 setter and user.
29892
29893 2013-03-25 Kai Tietz <ktietz@redhat.com>
29894
29895 * config/i386/predicates.md (local_symbolic_operand): Interpret
29896 dll-imported symbols as none-local.
29897
29898 2013-03-25 Richard Biener <rguenther@suse.de>
29899
29900 * tree-ssa-loop-im.c (struct depend): Remove.
29901 (struct lim_aux_data): Make depends a vec of gimples.
29902 (free_lim_aux_data): Adjust.
29903 (add_dependency): Likewise.
29904 (set_level): Likewise.
29905
29906 2013-03-25 Richard Biener <rguenther@suse.de>
29907
29908 PR middle-end/56434
29909 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
29910 the pointer returned by calls with ECF_MALLOC set.
29911
29912 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
29913
29914 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
29915
29916 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
29917
29918 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
29919 using MMXMODE mode iterator.
29920 (*move<mode>_internal): Merge with *movv2sf_internal and
29921 *movv2sf_internal_rex64 using MMXMODE mode iterator.
29922
29923 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
29924
29925 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
29926 (record_last_mem_set_info): Likewise.
29927
29928 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
29929 of XNEWVEC followed by memset.
29930 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
29931
29932 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
29933
29934 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29935 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
29936 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
29937 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
29938 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
29939 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
29940 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
29941 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
29942 BARRIER_P instead of GET_CODE.
29943
29944 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
29945
29946 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
29947 inaccuracy in the probing code.
29948
29949 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
29950 (ctrapdi4): Likewise.
29951
29952 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
29953
29954 * calls.c (expand_call): Add missing guard to code handling return
29955 of non-BLKmode structures in MSB.
29956 * function.c (expand_function_end): Likewise.
29957
29958 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
29959
29960 * combine.c (try_combine): Adjust comment. Do not add the set of
29961 insn #0 if the destination indirectly is set or dies in insn #2.
29962 Tidy up code to distribute a new note.
29963
29964 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
29965
29966 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
29967 also for alternatives 16 and 17.
29968
29969 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
29970
29971 * config/i386/sse.md (*mov<mode>_internal): Merge with
29972 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
29973 Emit insn template depending on type attribute. Use
29974 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
29975 movd instead of movq mnemonic for interunit moves. Rewrite mode
29976 attribute calculation. Remove unit attribute calculation.
29977 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
29978 Set prefix_data16 attribute for DImode ssemov types.
29979 Use Ym instead of y for SSE-MMX conversion alternatives.
29980 Reorder operand constraints.
29981
29982 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
29983
29984 * df.h (df_insn_delete): Adjust prototype.
29985 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
29986 and let it decide whether mark the basic block dirty.
29987 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
29988 * df-scan.c (df_insn_info_delete): New helper function, split
29989 off from df_insn_delete.
29990 (df_scan_free_bb_info): Use it.
29991 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
29992 Likewise.
29993 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
29994 that the insn is actually an insn and it has a non-NULL basic block.
29995 Do not mark basic block dirty if only deleting a DEBUG_INSN.
29996
29997 2013-03-22 Richard Biener <rguenther@suse.de>
29998
29999 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
30000 dep_ref members.
30001 (mem_ref_alloc): Do not allocate them.
30002 (refs_independent_p): Do not query or maintain a cache.
30003
30004 2013-03-22 Richard Biener <rguenther@suse.de>
30005
30006 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
30007 (gather_mem_refs_in_loops): Do not compute it.
30008 (analyze_memory_references): Do not allocate it.
30009 (tree_ssa_lim_finalize): Do not free it.
30010 (for_all_locs_in_loop): Do not query all_refs_in_loop.
30011
30012 2013-03-22 Richard Biener <rguenther@suse.de>
30013
30014 * is-a.h (as_a): Use gcc_checking_assert.
30015
30016 2013-03-22 Ian Bolton <ian.bolton@arm.com>
30017
30018 * config/aarch64/aarch64.c (aarch64_print_operand): New
30019 format specifier for printing a constant in hex.
30020 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
30021 format specifier for printing second operand.
30022
30023 2013-03-22 Richard Biener <rguenther@suse.de>
30024
30025 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
30026 bitmaps.
30027 (gather_mem_refs_in_loops): Perform store accumulation here.
30028 (create_vop_ref_mapping_loop): Remove.
30029 (create_vop_ref_mapping): Likewise.
30030 (analyze_memory_references): Initialize refs_stored_in_loop.
30031 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
30032 (record_indep_loop): Remove.
30033 (record_dep_loop): New function.
30034 (ref_indep_loop_p_1): Adjust to only walk over references
30035 in the loop, not its subloops.
30036 (ref_indep_loop_p): Rename to ...
30037 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
30038 maintaining a more fine-grained cache.
30039 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
30040 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
30041
30042 2013-03-22 Richard Biener <rguenther@suse.de>
30043
30044 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
30045 (struct mem_ref): Make accesses_in_loop a vec of a vec of
30046 aggregate mem_ref_loc.
30047 (free_mem_ref_locs): Inline into ...
30048 (memref_free): ... this and adjust.
30049 (mem_ref_alloc): Adjust.
30050 (mem_ref_locs_alloc): Remove.
30051 (record_mem_ref_loc): Adjust.
30052 (get_all_locs_in_loop): Rewrite into ...
30053 (for_all_locs_in_loop): ... this iterator.
30054 (rewrite_mem_ref_loc): New functor.
30055 (rewrite_mem_refs): Use for_all_locs_in_loop.
30056 (sm_set_flag_if_changed): New functor.
30057 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
30058 (ref_always_accessed): New functor.
30059 (ref_always_accessed_p): Use for_all_locs_in_loop.
30060
30061 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
30062
30063 * tree-pass.h (PROP_gimple_lvec): New.
30064 * passes.c (dump_properties): Handle PROP_gimple_lvec.
30065 (init_optimization_passes): Move pass_lower_vector.
30066 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
30067 PROP_gimple_lvec.
30068 (pass_lower_vector): Provide PROP_gimple_lvec.
30069 (pass_lower_vector_ssa): Likewise.
30070 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
30071
30072 2013-03-21 Mark Wielaard <mjw@redhat.com>
30073
30074 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
30075
30076 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
30077
30078 * config/i386/i386.md (*movdi_internal): Disparage slightly
30079 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
30080 conversion alternatives.
30081
30082 2013-03-21 Jakub Jelinek <jakub@redhat.com>
30083
30084 PR middle-end/48087
30085 * diagnostic.def (DK_WERROR): New kind.
30086 * diagnostic.h (werrorcount): Define.
30087 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
30088 promoted to DK_ERROR, increment DK_WERROR counter instead of
30089 DK_ERROR counter.
30090 * toplev.c (toplev_main): Call print_ignored_options even if
30091 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
30092 even if just werrorcount is non-zero.
30093
30094 PR debug/55608
30095 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
30096 on failure.
30097 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
30098 (string_cst_pool_decl): New function.
30099 (optimize_one_addr_into_implicit_ptr): New function.
30100 (resolve_addr_in_expr): Optimize DWARF location expression
30101 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
30102 which doesn't live in memory, but has DW_AT_location or
30103 DW_AT_const_value, or refers to a string literal, into
30104 DW_OP_GNU_implicit_pointer.
30105 (optimize_location_into_implicit_ptr): New function.
30106 (resolve_addr): If removing DW_AT_location of a variable because
30107 it was DW_OP_addr of address of the variable, but the variable doesn't
30108 live in memory, try to emit const value attribute for the initializer.
30109
30110 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
30111
30112 * tree.h (VECTOR_TYPE_P): New macro.
30113 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
30114 TYPE_MODE): Use it.
30115 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
30116 VEC_COND_EXPR cannot be lvalues.
30117 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
30118
30119 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
30120
30121 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
30122 Restrict the transformation to equal modes.
30123
30124 2013-03-21 Richard Biener <rguenther@suse.de>
30125
30126 PR tree-optimization/39326
30127 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
30128 (MEM_ANALYZABLE): Adjust.
30129 (record_mem_ref_loc): Move bitmap ops ...
30130 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
30131 unanalyzable refs, do not record locations for it.
30132 (analyze_memory_references): Allocate ref zero as shared
30133 unanalyzable ref.
30134 (refs_independent_p): Do not test for unanalyzed mems here.
30135 (ref_indep_loop_p_1): Special-case disambiguation against
30136 the unanalyzed ref.
30137 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
30138
30139 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
30140
30141 * config/arm/arm-protos.h (tune_params): Add
30142 prefer_neon_for_64bits field.
30143 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
30144 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
30145 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
30146 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
30147 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
30148 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
30149 (arm_option_override): Handle -mneon-for-64bits new option.
30150 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
30151 (prefer_neon_for_64bits): Declare new variable.
30152 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
30153 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
30154 (arch_enabled): Handle new arch types. Remove support for onlya8
30155 and nota8.
30156 (one_cmpldi2): Use new arch names.
30157 (zero_extend<mode>di2, extend<mode>di2): Ditto.
30158 * config/arm/arm.opt (mneon-for-64bits): Add option.
30159 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
30160 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
30161 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
30162 of onlya8.
30163 * doc/invoke.texi (-mneon-for-64bits): Document.
30164
30165 2013-03-21 Richard Biener <rguenther@suse.de>
30166
30167 PR tree-optimization/39326
30168 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
30169 (sort_bbs_in_loop_postorder_cmp): New function.
30170 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
30171
30172 2013-03-21 Richard Biener <rguenther@suse.de>
30173
30174 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
30175 (vect_insert_into_interleaving_chain): Likewise.
30176 (vect_drs_dependent_in_basic_block): Inline ...
30177 (vect_slp_analyze_data_ref_dependence): ... here. New function,
30178 split out from ...
30179 (vect_analyze_data_ref_dependence): ... here. Simplify.
30180 (vect_check_interleaving): Simplify.
30181 (vect_analyze_data_ref_dependences): Likewise. Split out ...
30182 (vect_slp_analyze_data_ref_dependences): ... this new function.
30183 (dr_group_sort_cmp): New function.
30184 (vect_analyze_data_ref_accesses): Compute data-reference groups
30185 here instead of in vect_analyze_data_ref_dependence. Use
30186 a more efficient algorithm.
30187 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
30188 vect_slp_analyze_data_ref_dependences. Call
30189 vect_analyze_data_ref_accesses earlier.
30190 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
30191 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
30192 (vect_slp_analyze_data_ref_dependences): New prototype.
30193
30194 2013-03-21 Richard Biener <rguenther@suse.de>
30195
30196 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
30197 ref is stored in the loop.
30198 (find_refs_for_sm): Walk only over all stores.
30199 (store_motion_loop): Allocate from lim_bitmap_obstack.
30200 (store_motion): Likewise.
30201
30202 2013-03-21 Richard Biener <rguenther@suse.de>
30203
30204 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
30205 Update virtual SSA form.
30206
30207 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30208
30209 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
30210 * configure: Regenerate.
30211 * config.in: Regenerate.
30212 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
30213 if !HAVE_LD_EH_FRAME_CIEV3.
30214
30215 2013-03-21 Richard Biener <rguenther@suse.de>
30216
30217 * tree-cfg.c (verify_expr_no_block): New function.
30218 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
30219 nor DECL_VALUE_EXPR have locations with associated blocks.
30220 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
30221 (clear_unused_block_pointer): Remove code dealing with
30222 blocks in DECL_DEBUG_EXPR locations.
30223
30224 2013-03-21 Richard Biener <rguenther@suse.de>
30225
30226 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
30227 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
30228 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
30229 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
30230 instead of DECL_DEBUG_EXPR_IS_FROM.
30231 * gimplify.c (gimplify_modify_expr): Likewise.
30232 * tree-cfg.c (verify_expr_location_1): Likewise.
30233 * tree-complex.c (create_one_component_var): Likewise.
30234 * tree-sra.c (create_access_replacement): Likewise.
30235 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
30236 (clear_unused_block_pointer): Likewise.
30237 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
30238 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
30239 * var-tracking.c (var_debug_decl): Likewise.
30240 (track_expr_p): Likewise.
30241 * tree-inline.c (add_local_variables): Likewise. Set
30242 DECL_HAS_DEBUG_EXPR_P after copying it.
30243 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
30244 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
30245
30246 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
30247
30248 PR bootstrap/56656
30249 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
30250 * configure: Regenerate.
30251 * config.in: Regenerate.
30252 * config/i386/i386.md (*movdf_internal): Use
30253 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
30254 movd instead of movq mnemonic for interunit moves.
30255 (*movdi_internal): Ditto.
30256
30257 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30258
30259 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
30260 (abd<mode>_3): New pattern.
30261 (aba<mode>_3): New pattern.
30262 (fabd<mode>_3): New pattern.
30263
30264 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30265
30266 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
30267 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
30268 occurrence of REGISTER_PREFIX as its empty string.
30269
30270 2013-03-20 Jeff Law <law@redhat.com>
30271
30272 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
30273 addititional equivalences for equality comparisons between an SSA_NAME
30274 and a constant where the SSA_NAME was set from a widening conversion.
30275
30276 2013-03-20 Walter Lee <walt@tilera.com>
30277
30278 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
30279
30280 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
30281
30282 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
30283 depending on type attribute.
30284 (*movti_internal): Ditto.
30285 (*movtf_internal): Ditto.
30286 (*movxf_internal): Ditto.
30287 (*movdf_internal): Ditto.
30288 (*movsf_internal): Ditto.
30289
30290 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
30291
30292 * config/i386/i386.md (*movti_internal): Set prefix attribute to
30293 maybe_vex for sselog1 and ssemov types.
30294 (*movdi_internal): Reorder operand constraints.
30295 (*movsi_internal): Ditto. Set prefix attribute to
30296 maybe_vex for sselog1 and ssemov types.
30297 (*movtf_internal): Set prefix attribute to maybe_vex
30298 for sselog1 and ssemov types.
30299 (*movdf_internal): Ditto. Set prefix_data16 attribute for
30300 DImode ssemov types. Reorder operand constraints.
30301 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
30302 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
30303 attribute for SImode ssemov types. Reorder operand constraints.
30304
30305 2013-03-20 Martin Jambor <mjambor@suse.cz>
30306
30307 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
30308 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
30309
30310 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
30311
30312 * config/rs6000/predicates.md (indexed_address, update_address_mem
30313 update_indexed_address_mem): New predicates.
30314 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
30315 attribute for load/store instructions.
30316 * config/rs6000/dfp.md (movsd_store): Likewise.
30317 (movsd_load): Likewise.
30318 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
30319 (unnamed HI->DI extend define_insn): Likewise.
30320 (unnamed SI->DI extend define_insn): Likewise.
30321 (unnamed QI->SI extend define_insn): Likewise.
30322 (unnamed QI->HI extend define_insn): Likewise.
30323 (unnamed HI->SI extend define_insn): Likewise.
30324 (unnamed HI->SI extend define_insn): Likewise.
30325 (extendsfdf2_fpr): Likewise.
30326 (movsi_internal1): Likewise.
30327 (movsi_internal1_single): Likewise.
30328 (movhi_internal): Likewise.
30329 (movqi_internal): Likewise.
30330 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
30331 attribute for load/store instructions.
30332 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
30333 instructions.
30334 (mov<mode>_softfloat): Likewise.
30335 (mov<mode>_hardfloat32): Likewise.
30336 (mov<mode>_hardfloat64): Likewise.
30337 (mov<mode>_softfloat64): Likewise.
30338 (movdi_internal32): Likewise.
30339 (movdi_internal64): Likewise.
30340 (probe_stack_<mode>): Likewise.
30341
30342 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
30343
30344 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
30345 floating point, and decimal floating point to reload iterator.
30346
30347 * config/rs6000/constraints.md (wl constraint): New constraints to
30348 return FLOAT_REGS if certain options are used to reduce the number
30349 of separate patterns that exist in the file.
30350 (wx constraint): Likewise.
30351 (wz constraint): Likewise.
30352
30353 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30354 -mdebug=reg, print wg, wl, wx, and wz constraints.
30355 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
30356 Initialize the reload functions for 64-bit binary/decimal floating
30357 point types.
30358 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
30359 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
30360 create the buffer on the stack to overcome not having a 32-bit
30361 load and store.
30362 (rs6000_emit_move): Likewise.
30363 (rs6000_secondary_memory_needed_rtx): Likewise.
30364 (rs6000_alloc_sdmode_stack_slot): Likewise.
30365 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
30366 via xxlxor, just like DFmode 0.0.
30367
30368 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
30369 define as 1 if we are running on a power7 or newer.
30370 (enum r6000_reg_class_enum): Add new constraints.
30371
30372 * config/rs6000/dfp.md (movsd): Delete, combine with binary
30373 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
30374 with other moves by using conditional constraits (wg). Use LFIWZX
30375 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
30376 (movsd splitter): Likewise.
30377 (movsd_hardfloat): Likewise.
30378 (movsd_softfloat): Likewise.
30379
30380 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
30381 binary and decimal floating point moves.
30382 (fmove_ok): New attributes to combine binary and decimal floating
30383 point moves, and to combine power6x (mfpgpr) moves along normal
30384 floating moves.
30385 (real_value_to_target): Likewise.
30386 (f32_lr): Likewise.
30387 (f32_lm): Likewise.
30388 (f32_li): Likewise.
30389 (f32_sr): Likewise.
30390 (f32_sm): Likewise.
30391 (f32_si): Likewise.
30392 (movsf): Combine binary and decimal floating point moves. Combine
30393 power6x (mfpgpr) moves with other moves by using conditional
30394 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
30395 (mov<mode> for SFmode/SDmode); Likewise.
30396 (SFmode/SDmode splitters): Likewise.
30397 (movsf_hardfloat): Likewise.
30398 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
30399 (movsf_softfloat): Likewise.
30400 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
30401
30402 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
30403 wx and wz constraints.
30404
30405 * config/rs6000/constraints.md (wg constraint): New constraint to
30406 return FLOAT_REGS if -mmfpgpr (power6x) was used.
30407
30408 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
30409 constraint.
30410
30411 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30412 -mdebug=reg, print wg, wl, wx, and wz constraints.
30413 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
30414 Initialize the reload functions for 64-bit binary/decimal floating
30415 point types.
30416 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
30417 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
30418 create the buffer on the stack to overcome not having a 32-bit
30419 load and store.
30420 (rs6000_emit_move): Likewise.
30421 (rs6000_secondary_memory_needed_rtx): Likewise.
30422 (rs6000_alloc_sdmode_stack_slot): Likewise.
30423 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
30424 via xxlxor, just like DFmode 0.0.
30425
30426 * config/rs6000/dfp.md (movdd): Delete, combine with binary
30427 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
30428 with other moves by using conditional constraits (wg). Use LFIWZX
30429 and STFIWX for loading SDmode on power7.
30430 (movdd splitters): Likewise.
30431 (movdd_hardfloat32): Likewise.
30432 (movdd_softfloat32): Likewise.
30433 (movdd_hardfloat64_mfpgpr): Likewise.
30434 (movdd_hardfloat64): Likewise.
30435 (movdd_softfloat64): Likewise.
30436
30437 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
30438 64-bit binary and decimal floating point moves.
30439 (FMOVE64X): Likewise.
30440 (movdf): Combine 64-bit binary and decimal floating point moves.
30441 Combine power6x (mfpgpr) moves with other moves by using
30442 conditional constraits (wg).
30443 (mov<mode> for DFmode/DDmode): Likewise.
30444 (DFmode/DDmode splitters): Likewise.
30445 (movdf_hardfloat32): Likewise.
30446 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
30447 (movdf_softfloat32): Likewise.
30448 (movdf_hardfloat64_mfpgpr): Likewise.
30449 (movdf_hardfloat64): Likewise.
30450 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
30451 (movdf_softfloat64): Likewise.
30452 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
30453 (reload_<mode>_load): Move to later in the file so they aren't in
30454 the middle of the floating point move insns.
30455 (reload_<mode>_store): Likewise.
30456
30457 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
30458 constraint.
30459
30460 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
30461 constraint if -mdebug=reg.
30462 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
30463 Enable using dd reload support if needed.
30464
30465 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
30466 binary and decimal floating point moves in rs6000.md.
30467 (movtd_internal): Likewise.
30468
30469 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
30470 decimal floating point moves.
30471 (movtf): Likewise.
30472 (movtf_internal): Likewise.
30473 (mov<mode>_internal, TDmode/TFmode): Likewise.
30474 (movtf_softfloat): Likewise.
30475 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
30476
30477 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
30478 movdi_internal64, using wg constraint for move direct operations.
30479 (movdi_internal64): Likewise.
30480
30481 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
30482 MODES_TIEABLE_P for selected modes. Print the numerical value of
30483 the various virtual registers. Use GPR/FPR first/last values,
30484 instead of hard coding the register numbers. Print which modes
30485 have reload functions registered.
30486 (rs6000_option_override_internal): If -mdebug=reg, trace the options
30487 settings before/after setting cpu, target and subtarget settings.
30488 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
30489 and for secondary reload failures in rs6000_secondary_reload_inner.
30490 (rs6000_secondary_reload_fail): Likewise.
30491 (rs6000_secondary_reload_inner): Likewise.
30492
30493 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
30494 macros for first/last GPR and FPR registers.
30495 (LAST_GPR_REGNO): Likewise.
30496 (FIRST_FPR_REGNO): Likewise.
30497 (LAST_FPR_REGNO): Likewise.
30498
30499 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
30500 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
30501 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
30502 (vcond<mode><mode>): Likewise.
30503 (vcondu<mode><mode>): Likewise.
30504 (vector_gtu<mode>): Likewise.
30505 (vector_gte<mode>): Likewise.
30506 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
30507 to prevent the compiler from converting DImode operations to TImode.
30508 (ior<mode>3): Likewise.
30509 (and<mode>3): Likewise.
30510 (one_cmpl<mode>2): Likewise.
30511 (nor<mode>3): Likewise.
30512 (andc<mode>3): Likewise.
30513
30514 * config/rs6000/constraints.md (wt constraint): New constraint
30515 that returns VSX_REGS if TImode is allowed in VSX registers.
30516
30517 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
30518 constant under VSX.
30519
30520 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
30521 similar to TImode, but it is restricted to being in the GPRs.
30522
30523 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
30524 TImode to occupy a single VSX register.
30525
30526 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
30527 -mvsx-timode for power7/power8.
30528 (power7 cpu): Likewise.
30529 (power8 cpu): Likewise.
30530
30531 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
30532 sure that TFmode/TDmode take up two registers if they are ever
30533 allowed in the upper VSX registers.
30534 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
30535 registers.
30536 (rs6000_init_hard_regno_mode_ok): Likewise.
30537 (rs6000_debug_reg_global): Add debugging for PTImode and wt
30538 constraint. Print if LRA is turned on.
30539 (rs6000_option_override_internal): Give an error if -mvsx-timode
30540 and VSX is not enabled.
30541 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
30542 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
30543 to reg+offset addressing. Use PTImode when checking offset
30544 addresses for validity.
30545 (reg_offset_addressing_ok_p): Likewise.
30546 (rs6000_legitimate_offset_address_p): Likewise.
30547 (rs6000_legitimize_address): Likewise.
30548 (rs6000_legitimize_reload_address): Likewise.
30549 (rs6000_legitimate_address_p): Likewise.
30550 (rs6000_eliminate_indexed_memrefs): Likewise.
30551 (rs6000_emit_move): Likewise.
30552 (rs6000_secondary_reload): Likewise.
30553 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
30554 reloads to fpr registers to continue to use reg+offset addressing,
30555 but 64-bit reloads to altivec registers need reg+reg addressing.
30556 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
30557 it. Treat LO_SUM like a PLUS operation.
30558 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
30559 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
30560 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
30561 registers to share a register with a smaller sized type, since VSX
30562 puts scalars in the upper 64-bits.
30563 (print_operand): Add support for PTImode.
30564 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
30565 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
30566 registers, but don't have arithmetic support.
30567 (rs6000_memory_move_cost): Add test for VSX.
30568 (rs6000_opt_masks): Add -mvsx-timode.
30569
30570 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
30571 for TImode.
30572 (VSs): Likewise.
30573 (VSr): Use wt constraint for TImode.
30574 (VSv): Drop TImode support.
30575 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
30576 (vsx_movti_64bit): Likewise.
30577 (vsx_movti_32bit): Likewise.
30578 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
30579 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
30580 one '?' on the appropriate output constraint. Do not allow TImode
30581 logical operations on 32-bit systems.
30582 (vsx_ior<mode>3): Likewise.
30583 (vsx_xor<mode>3): Likewise.
30584 (vsx_one_cmpl<mode>2): Likewise.
30585 (vsx_nor<mode>3): Likewise.
30586 (vsx_andc<mode>3): Likewise.
30587 (vsx_concat_<mode>): Likewise.
30588 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
30589
30590 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
30591 OPTION_MASK_VSX_TIMODE.
30592 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
30593 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
30594
30595 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
30596 (TI2 iterator): New iterator for TImode, PTImode.
30597 (wd mode attribute): Add values for vector types.
30598 (movti_string): Replace TI move operations with operations for TImode
30599 and PTImode. Add support for TImode being allowed in VSX registers.
30600 (mov<mode>_string, TImode/PTImode): Likewise.
30601 (movti_ppc64): Likewise.
30602 (mov<mode>_ppc64, TImode/PTImode): Likewise.
30603 (TI mode splitters): Likewise.
30604
30605 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
30606 constraint.
30607
30608 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
30609
30610 PR tree-optimization/56355
30611 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
30612 Also handle integers with undefined overflow.
30613
30614 2013-03-20 Catherine Moore <clm@codesourcery.com>
30615 Maciej W. Rozycki <macro@codesourcery.com>
30616 Tom de Vries <tom@codesourcery.com>
30617 Nathan Sidwell <nathan@codesourcery.com>
30618 Iain Sandoe <iain@codesourcery.com>
30619 Nathan Froyd <froydnj@codesourcery.com>
30620 Chao-ying Fu <fu@mips.com>
30621
30622 * doc/extend.texi: (micromips, nomicromips, nocompression):
30623 Document new function attributes.
30624 * doc/invoke.texi (minterlink-compressed, mmicromips,
30625 m14k, m14ke, m14kec): Document new options.
30626 (minterlink-mips16): Update documentation.
30627 * doc/md.texi (ZC, ZD): Document new constraints.
30628 * configure.ac (gcc_cv_as_micromips): Check if linker
30629 supports the .set micromips directive.
30630 * configure: Regenerate.
30631 * config.in: Regenerate.
30632 * config/mips/mips-tables.opt: Regenerate.
30633 * config/mips/micromips.md: New file.
30634 * constraints.md (ZC, ZD): New constraints.
30635 * config/mips/predicates.md (movep_src_register): New predicate.
30636 (movep_src_operand): New predicate.
30637 (non_volatile_mem_operand): New predicate.
30638 * config/mips/mips.md (multimem): New type.
30639 (length): Differentiate between 17-bit and 18-bit branch offsets.
30640 (MOVEP1, MOVEP2): New mode iterator.
30641 (mov_<load>l): Use ZC constraint.
30642 (mov_<load>r): Likewise.
30643 (mov_<store>l): Likewise.
30644 (mov_<store>r): Likewise.
30645 (*branch_equality<mode>_inverted): Add microMIPS support.
30646 (*branch_equality<mode>): Likewise.
30647 (*jump_absolute): Likewise.
30648 (indirect_jump_<mode>): Likewise.
30649 (tablejump_<mode>): Likewise.
30650 (<optab>_internal): Likewise.
30651 (sibcall_internal): Likewise.
30652 (sibcall_value_internal): Likewise.
30653 (prefetch): Use constraint ZD.
30654 * config/mips/mips.opt (minterlink-compressed): New option.
30655 (minterlink-mips16): Now an alias for minterlink-compressed.
30656 (mmicromips): New option.
30657 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
30658 (compare_and_swap_12): Likewise.
30659 (sync_add<mode>): Likewise.
30660 (sync_<optab>_12): Likewise.
30661 (sync_old_<optab>_12): Likewise.
30662 (sync_new_<optab>_12): Likewise.
30663 (sync_nand_12): Likewise.
30664 (sync_old_nand_12): Likewise.
30665 (sync_new_nand_12): Likewise.
30666 (sync_sub<mode>): Likewise.
30667 (sync_old_add<mode>): Likewise.
30668 (sync_old_sub<mode>): Likewise.
30669 (sync_new_add<mode>): Likewise.
30670 (sync_new_sub<mode>): Likewise.
30671 (sync_<optab><mode>): Likewise.
30672 (sync_old_<optab><mode>): Likewise.
30673 (sync_new_<optab><mode>): Likewise.
30674 (sync_nand<mode>): Likewise.
30675 (sync_old_nand<mode>): Likewise.
30676 (sync_new_nand<mode>): Likewise.
30677 (sync_lock_test_and_set<mode>): Likewise.
30678 (test_and_set_12): Likewise.
30679 (atomic_compare_and_swap<mode>): Likewise.
30680 (atomic_exchange<mode>_llsc): Likewise.
30681 (atomic_fetch_add<mode>_llsc): Likewise.
30682 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
30683 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
30684 (umips_save_restore_pattern_p): Likewise.
30685 (umips_load_store_pair_p): Likewise.
30686 (umips_output_load_store_pair): Likewise.
30687 (umips_movep_target_p): Likewise.
30688 (umips_12bit_offset_address_p): Likewise.
30689 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
30690 (mips_base_mips16): Rename this...
30691 (mips_base_compression_flags): ...to this. Update all uses.
30692 (mips_attribute_table): Add micromips, nomicromips and nocompression.
30693 (mips_mips16_decl_p): Delete.
30694 (mips_nomips16_decl_p): Delete.
30695 (mips_get_compress_on_flags): New function.
30696 (mips_get_compress_off_flags): New function.
30697 (mips_get_compress_mode): New function.
30698 (mips_get_compress_on_name): New function.
30699 (mips_get_compress_off_name): New function.
30700 (mips_insert_attributes): Support multiple compression types.
30701 (mips_merge_decl_attributes): Likewise.
30702 (umips_12bit_offset_address_p): New function.
30703 (mips_start_function_definition): Emit .set micromips directive.
30704 (mips_call_may_need_jalx_p): New function.
30705 (mips_function_ok_for_sibcall): Add microMIPS support.
30706 (mips_print_operand_punctuation): Support short delay slots and
30707 compact jumps.
30708 (umips_swm_mask, umips_swm_encoding): New.
30709 (umips_build_save_restore): New function.
30710 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
30711 (was_mips16_p): Remove.
30712 (old_compression_mode): New.
30713 (mips_set_compression_mode): New function.
30714 (mips_set_current_function): Add microMIPS support.
30715 (mips_option_override): Likewise.
30716 (umips_save_restore_pattern_p): New function.
30717 (umips_output_save_restore): New function.
30718 (umips_load_store_pair_p_1): New function.
30719 (umips_load_store_pair_p): New function.
30720 (umips_output_load_store_pair_1): New function.
30721 (umips_output_load_store_pair): New function.
30722 (umips_movep_target_p) New function.
30723 (mips_prepare_pch_save): Add microMIPS support.
30724 * config/mips/mips.h (TARGET_COMPRESSION): New.
30725 (TARGET_CPU_CPP_BUILTINS): Update macro
30726 to use new compression flags and to support microMIPS.
30727 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
30728 (MIPS_ARCH_FLOAT_SPEC): Likewise.
30729 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
30730 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
30731 (ASM_SPEC): Support mmicromips and mno-micromips.
30732 (M16STORE_REG_P): New macro.
30733 (MIPS_CALL): Support TARGET_MICROMIPS.
30734 (MICROMIPS_J): New macro.
30735 (mips_base_mips16): Rename this...
30736 (mips_base_compression_flags): ...to this.
30737 (UMIPS_12BIT_OFFSET_P): New macro.
30738 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
30739 (MULTILIB_DIRNAMES): Likewise.
30740 2013-03-20 Richard Biener <rguenther@suse.de>
30741
30742 PR tree-optimization/56661
30743 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
30744 the result does not have to be distinct.
30745
30746 2013-03-20 Richard Biener <rguenther@suse.de>
30747
30748 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
30749 remap_gimple_op_r.
30750
30751 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30752 Steven Bosscher <steven@gcc.gnu.org>
30753
30754 PR rtl-optimization/56605
30755 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
30756
30757 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
30758
30759 PR bootstrap/56656
30760 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
30761 that require movd instead of movq.
30762
30763 2013-03-20 Richard Biener <rguenther@suse.de>
30764
30765 * tree-ssa-structalias.c (struct variable_info): Add pointer
30766 to the first field of an aggregate with sub-vars. Make
30767 this and the pointer to the next subfield its ID.
30768 (vi_next): New function.
30769 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
30770 storedanything_id, integer_id): Increment by one.
30771 (new_var_info, get_call_vi, lookup_call_clobber_vi,
30772 get_call_clobber_vi): Adjust.
30773 (solution_set_expand): Simplify and speedup.
30774 (solution_set_add): Inline into ...
30775 (set_union_with_increment): ... this. Adjust accordingly.
30776 (do_sd_constraint): Likewise.
30777 (do_ds_constraint): Likewise.
30778 (do_complex_constraint): Simplify.
30779 (build_pred_graph): Adjust.
30780 (solve_graph): Likewise. Simplify and speedup.
30781 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
30782 get_constraint_for_component_ref, get_constraint_for_1,
30783 first_vi_for_offset, first_or_preceding_vi_for_offset,
30784 create_function_info_for, create_variable_info_for_1,
30785 create_variable_info_for, intra_create_variable_infos): Adjust.
30786 (init_base_vars): Push NULL for ID zero.
30787 (compute_points_to_sets): Adjust.
30788
30789 2013-03-20 Richard Biener <rguenther@suse.de>
30790
30791 * cfgloop.c (verify_loop_structure): Streamline and avoid
30792 ICEing on corrupt loop tree.
30793 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
30794 loop tree.
30795
30796 2013-03-20 Richard Biener <rguenther@suse.de>
30797
30798 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
30799 check whether an SSA update is needed.
30800
30801 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
30802
30803 * config/mips/constraints.md (T): Rename to...
30804 (Yf): ...this.
30805 (U): Rename to...
30806 (Yd): ...this.
30807 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
30808 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
30809
30810 2013-03-19 Ian Bolton <ian.bolton@arm.com>
30811
30812 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
30813 (*subsi3_carryin_uxtw): Likewise.
30814
30815 2013-03-19 Ian Bolton <ian.bolton@arm.com>
30816
30817 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
30818 (*rorsi3_insn_uxtw): Likewise.
30819
30820 2013-03-19 Ian Bolton <ian.bolton@arm.com>
30821
30822 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
30823 (*extrsi5_insn_uxtw): Likewise.
30824
30825 2013-03-19 Richard Biener <rguenther@suse.de>
30826
30827 PR tree-optimization/56273
30828 * passes.c (init_optimization_passes): Move second VRP after DOM.
30829
30830 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
30831
30832 * config/i386/i386.md (*movti_internal): Merge from
30833 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
30834 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
30835 nox64 isa attributes.
30836
30837 2013-03-18 Richard Biener <rguenther@suse.de>
30838
30839 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
30840 (unite): Likewise.
30841 (merge_node_constraints): Likewise.
30842 (build_succ_graph): Likewise.
30843 (valid_graph_edge): Inline into single caller.
30844 (unify_nodes): Likewise. Use bitmap_set_bit return value
30845 and cache varinfo.
30846 (scc_visit): Fix formatting and variable use.
30847 (do_sd_constraint): Use gcc_checking_assert.
30848 (do_ds_constraint): Likewise.
30849 (do_complex_constraint): Likewise.
30850 (condense_visit): Likewise. Cleanup.
30851 (dump_pred_graph): New function.
30852 (perform_var_substitution): Dump the pred-graph before
30853 variable substitution.
30854 (find_equivalent_node): Use gcc_checking_assert.
30855 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
30856
30857 2013-03-18 Richard Biener <rguenther@suse.de>
30858
30859 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30860 Remove cond_expr_stmt_list argument and do not gimplify the
30861 built expression.
30862 (vect_loop_versioning): Adjust.
30863 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
30864 Cleanup to use less temporaries.
30865 (vect_create_data_ref_ptr): Cleanup.
30866
30867 2013-03-18 Jakub Jelinek <jakub@redhat.com>
30868
30869 PR tree-optimization/56635
30870 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
30871 require types_compatible_p types.
30872
30873 2013-03-18 Nick Clifton <nickc@redhat.com>
30874
30875 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
30876 spurious backslash.
30877
30878 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
30879 Add missing line to comment describing function.
30880
30881 2013-03-18 Richard Biener <rguenther@suse.de>
30882
30883 PR tree-optimization/56210
30884 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30885 Handle string / character search functions.
30886 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30887
30888 2013-03-18 Richard Biener <rguenther@suse.de>
30889
30890 PR middle-end/56483
30891 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
30892 and implement properly.
30893 * gimple.h (gimple_cond_single_var_p): Remove.
30894
30895 2013-03-18 Richard Biener <rguenther@suse.de>
30896
30897 * tree-data-ref.h (find_data_references_in_loop): Declare.
30898 * tree-data-ref.c (get_references_in_stmt): Use a stack
30899 vector pre-allocated in the callers.
30900 (find_data_references_in_stmt): Adjust.
30901 (graphite_find_data_references_in_stmt): Likewise.
30902 (create_rdg_vertices): Likewise.
30903 (find_data_references_in_loop): Export.
30904 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
30905 Compute dependences here...
30906 (vect_analyze_data_refs): ...not here. When we encounter
30907 a non-vectorizable data reference in basic-block vectorization
30908 truncate the data reference vector. Do not bother to
30909 fixup data-dependence information for gather loads.
30910 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
30911 of data references, as reported.
30912
30913 2013-03-18 Richard Biener <rguenther@suse.de>
30914
30915 PR tree-optimization/3713
30916 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
30917 has_constants and expr.
30918 (stmt_has_constants): Properly valueize SSA names when deciding
30919 whether the stmt has constants.
30920
30921 2013-03-18 Richard Biener <rguenther@suse.de>
30922
30923 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
30924 whole function when there is nothing to do.
30925 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
30926 * tree-vectorizer.c (vectorize_loops): Update virtual and
30927 loop-closed SSA once.
30928 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
30929
30930 2013-03-18 Richard Biener <rguenther@suse.de>
30931
30932 PR middle-end/56113
30933 * domwalk.c (bb_postorder): New global static.
30934 (cmp_bb_postorder): New function.
30935 (walk_dominator_tree): Replace scheme imposing an order for
30936 visiting dominator sons by one sorting them at the time they
30937 are pushed on the stack.
30938
30939 2013-03-18 Richard Biener <rguenther@suse.de>
30940
30941 PR tree-optimization/39326
30942 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
30943 (struct mem_ref): Replace mem member with ao_ref typed member.
30944 (MEM_ANALYZABLE): Adjust.
30945 (memref_eq): Likewise.
30946 (mem_ref_alloc): Likewise.
30947 (gather_mem_refs_stmt): Likewise.
30948 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
30949 (execute_sm_if_changed_flag_set): Adjust.
30950 (execute_sm): Likewise.
30951 (ref_always_accessed_p): Likewise.
30952 (refs_independent_p): Likewise.
30953 (can_sm_ref_p): Likewise.
30954
30955 2013-03-18 Jakub Jelinek <jakub@redhat.com>
30956
30957 PR c/56566
30958 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
30959 return 1 even for !unsignedp.
30960
30961 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
30962
30963 * config/i386/i386.md (isa): Add x64 and nox64.
30964 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
30965 (*pushtf): Enable *roF alternative for x64 isa only.
30966 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
30967 mode attribute of integer alternatives to DImode for TARGET_64BIT.
30968 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
30969 (*movtf_internal): Merge from *movtf_internal_rex64 and
30970 *movtf_internal_sse. Use x64 and nox64 isa attributes.
30971 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
30972 nox64 isa attributes.
30973 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
30974 nox64 isa attributes.
30975 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
30976
30977 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
30978
30979 * config/alpha/alpha.c (TARGET_LRA_P): New define.
30980
30981 2013-03-17 Jakub Jelinek <jakub@redhat.com>
30982
30983 PR target/56640
30984 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
30985 class names. Remove trailing comma after "ALL_REGS".
30986
30987 2013-03-16 Jan Hubicka <jh@suse.cz>
30988
30989 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
30990 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
30991 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
30992 of cgraph_get_create_node.
30993 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
30994
30995 2013-03-16 Jason Merrill <jason@redhat.com>
30996
30997 PR debug/49090
30998 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
30999 with DW_AT_default_value.
31000
31001 2013-03-16 Jakub Jelinek <jakub@redhat.com>
31002
31003 * BASE-VER: Set to 4.9.0.
31004
31005 2013-03-14 Andi Kleen <ak@linux.intel.com>
31006
31007 PR target/56619
31008 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
31009 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
31010 Document _x* TSX intrinsics.
31011
31012 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
31013 David Holsgrove <david.holsgrove@xilinx.com>
31014
31015 * configure.ac: Add MicroBlaze TLS support detection.
31016 * configure: Regenerate.
31017 * config/microblaze/microblaze-protos.h
31018 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
31019 symbol_mentioned_p, label_mentioned_p): Add prototypes.
31020 * config/microblaze/microblaze.c (microblaze_address_type): Add
31021 ADDRESS_TLS and tls_reloc address types.
31022 (microblaze_address_info): Add tls_reloc.
31023 (TARGET_HAVE_TLS): Define.
31024 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
31025 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
31026 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
31027 load_tls_operand, microblaze_call_tls_get_addr,
31028 microblaze_legitimize_tls_address): New functions.
31029 (microblaze_classify_unspec): Handle UNSPEC_TLS.
31030 (get_base_reg): Use microblaze_tls_symbol_p.
31031 (microblaze_classify_address): Handle TLS.
31032 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
31033 label_mentioned_p and microblaze_tls_referenced_p.
31034 (microblaze_legitimize_address): Handle TLS.
31035 (microblaze_address_insns): Handle ADDRESS_TLS.
31036 (pic_address_needs_scratch): Handle TLS.
31037 (print_operand_address): Handle TLS.
31038 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
31039 (microblaze_expand_move): Handle TLS.
31040 (microblaze_legitimate_constant_p): Check
31041 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
31042 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
31043 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
31044 (PIC_OFFSET_TABLE_REGNUM): Set.
31045 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
31046 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
31047 (addsi3, movsi_internal2, movdf_internal): Update constraints
31048 * config/microblaze/predicates.md (arith_plus_operand): Define
31049 (move_operand): Redefine as move_src_operand,
31050 check microblaze_tls_referenced_p.
31051
31052 2013-03-14 Ian Bolton <ian.bolton@arm.com>
31053
31054 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
31055 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
31056
31057 2013-03-14 Ian Bolton <ian.bolton@arm.com>
31058
31059 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
31060 CC mode for AND.
31061
31062 2013-03-14 Jakub Jelinek <jakub@redhat.com>
31063
31064 PR tree-optimization/53265
31065 * common.opt (Waggressive-loop-optimizations): New option.
31066 * tree-ssa-loop-niter.c: Include tree-pass.h.
31067 (do_warn_aggressive_loop_optimizations): New function.
31068 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
31069 if number_of_latch_executions returned constant.
31070 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
31071 early. If number_of_latch_executions returned constant, set
31072 nb_iterations_upper_bound back to it.
31073 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
31074 field.
31075 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
31076 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
31077
31078 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
31079 (MULTILIB_OSDIRNAMES): Set.
31080 * genmultilib: If defaultosdirname doesn't start with :: , set
31081 defaultosdirname2 instead, clear it and emit two . multilib_raw
31082 entries instead of just one.
31083
31084 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
31085
31086 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
31087 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
31088 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
31089 (SUBTARGET_OVERRIDE_OPTIONS): New.
31090
31091 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
31092
31093 PR target/49880
31094 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
31095 (musermode): Convert to Var(TARGET_USERMODE).
31096 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
31097 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
31098 * config/sh/sh.c (sh_option_override): Use
31099 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
31100 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
31101 condition.
31102 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
31103 TARGET_SH4.
31104 (udivsi3_i4_single, divsi3_i4_single): Use
31105 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
31106
31107 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
31108
31109 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
31110 default setting.
31111
31112 2013-03-13 Richard Biener <rguenther@suse.de>
31113
31114 PR tree-optimization/56608
31115 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
31116 calls when vectorizing basic-blocks.
31117
31118 2013-03-13 Jakub Jelinek <jakub@redhat.com>
31119
31120 PR plugins/45078
31121 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
31122 tm_file.
31123
31124 2013-03-12 Jakub Jelinek <jakub@redhat.com>
31125
31126 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
31127
31128 2013-03-11 Jan Hubicka <jh@suse.cz>
31129
31130 PR lto/56557
31131 * lto-streamer-out.c (output_symbol_p): Skip references from
31132 constructors of external variables.
31133
31134 2013-03-11 Jan Hubicka <jh@suse.cz>
31135
31136 PR middle-end/56571
31137 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
31138 from pseudos.
31139 * emit-rtl.c (verify_rtx_sharing): Likewise.
31140 (copy_insn_1): Likewise.
31141 * rtl.c (copy_rtx): Likewise.
31142
31143 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
31144
31145 PR target/56591
31146 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
31147 output_operand_lossage message.
31148
31149 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
31150
31151 PR target/56470
31152 * arm.c (shift_op): Validate RTL pattern on the fly.
31153 (arm_print_operand, case 'S'): Don't use shift_operator to validate
31154 the RTL.
31155
31156 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31157
31158 PR target/56347
31159 * config/pa/pa.md (call_value): Check for calls to powf and direct to
31160 new call patterns that clobber %fr12.
31161 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
31162 split and postreload patterns.
31163 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
31164 registers %fr12 and %fr12R as call used.
31165
31166 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
31167
31168 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
31169 (canon_address, record_store, replace_read, check_mem_read_rtx,
31170 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
31171 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
31172 rest_of_handle_dse): Likewise.
31173
31174 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
31175
31176 PR middle-end/56524
31177 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
31178 Add base_optabs.
31179 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
31180 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
31181 (save_optabs_if_changed): Replace with...
31182 (init_tree_optimization_optabs): ...this.
31183 * optabs.c (save_optabs_if_changed): Rename to...
31184 (init_tree_optimization_optabs): ...this. Take the optimization node
31185 as argument. Do nothing if the base optabs are already correct.
31186 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
31187 to recompute optabs.
31188 * function.h (function): Remove optabs field.
31189 * function.c (invoke_set_current_function_hook): Call
31190 init_tree_optimization_optabs. Use the result to initialize
31191 this_fn_optabs.
31192
31193 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
31194
31195 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
31196 if GTMA_HAS_NO_INSTRUMENTATION.
31197 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
31198 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
31199 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
31200 * gimple-pretty-print.c (dump_gimple_transaction): Handle
31201 GTMA_HAS_NO_INSTRUMENTATION.
31202
31203 2013-03-08 Jakub Jelinek <jakub@redhat.com>
31204
31205 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
31206 libasan_preinit.o.
31207
31208 2013-03-08 Marek Polacek <polacek@redhat.com>
31209 Jakub Jelinek <jakub@redhat.com>
31210
31211 PR tree-optimization/56478
31212 * predict.c (is_comparison_with_loop_invariant_p): Change the
31213 type of loop_step to tree.
31214 (predict_loops): Adjust.
31215 (predict_iv_comparison): Perform the computations on double_ints.
31216
31217 2013-03-08 Richard Biener <rguenther@suse.de>
31218
31219 PR tree-optimization/56570
31220 * tree-cfg.c (verify_expr_location_1): Verify locations for
31221 DECL_DEBUG_EXPR.
31222 * tree-sra.c (create_access_replacement): Strip locations
31223 from DECL_DEBUG_EXPRs.
31224
31225 2013-03-08 Richard Biener <rguenther@suse.de>
31226
31227 * tree-inline.c (expand_call_inline): Do not associate
31228 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
31229 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
31230
31231 2013-03-08 Richard Biener <rguenther@suse.de>
31232
31233 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
31234 or block changes with -Og. Fix for location / block encoding
31235 changes and PHI arguments with locations.
31236
31237 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
31238
31239 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
31240 for all counters.
31241 (struct output_info): Likewise.
31242 (register_overhead): Remove bad gcc_assert.
31243 (bitmap_find_bit): If there is only a single bitmap element, do not
31244 count a miss as a search.
31245 (print_statistics): Update for counter type changes.
31246 (dump_bitmap_statistics): Likewise. Print headers such that they
31247 are properly lined up with the printed counters.
31248
31249 2013-03-07 Jakub Jelinek <jakub@redhat.com>
31250
31251 PR tree-optimization/56559
31252 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
31253 check that it has only a single use.
31254
31255 2013-03-07 Richard Biener <rguenther@suse.de>
31256
31257 * doc/invoke.texi (fwhole-program): Discourage use in combination
31258 with -flto.
31259
31260 2013-03-06 Jakub Jelinek <jakub@redhat.com>
31261
31262 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
31263
31264 PR tree-optimization/56539
31265 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
31266 instead of GSI_CONTINUE_LINKING as last argument to
31267 force_gimple_operand_gsi. Adjust function comment.
31268
31269 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
31270 aarch64-cores.def.
31271
31272 PR middle-end/56548
31273 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
31274 promoted mode, convert the result back to the original mode.
31275
31276 2013-03-06 Richard Biener <rguenther@suse.de>
31277
31278 PR middle-end/56294
31279 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
31280 (insert_updated_phi_nodes_compare_uids): New function.
31281 (update_ssa): Sort symbols_to_rename after UID before
31282 traversing it to insert PHI nodes.
31283
31284 2013-03-06 Richard Biener <rguenther@suse.de>
31285
31286 PR middle-end/50494
31287 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
31288 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
31289
31290 Revert
31291 2013-02-13 Richard Biener <rguenther@suse.de>
31292
31293 PR lto/50494
31294 * varasm.c (output_constant_def_1): Get the decl representing
31295 the constant as argument.
31296 (output_constant_def): Wrap output_constant_def_1.
31297 (make_decl_rtl): Use output_constant_def_1 with the decl
31298 representing the constant.
31299 (build_constant_desc): Optionally re-use a decl already
31300 representing the constant.
31301 (tree_output_constant_def): Adjust.
31302
31303 2013-03-06 Joey Ye <joey.ye@arm.com>
31304
31305 PR lto/50293
31306 * gcc.c (convert_white_space): New function.
31307 (main): Handles white space in function name.
31308
31309 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
31310
31311 PR target/56529
31312 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
31313 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
31314 to SH_DIV_CALL_TABLE for TARGET_SH2.
31315 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
31316 list.
31317 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
31318 call-table options.
31319
31320 2013-03-05 Sterling Augustine <saugustine@google.com>
31321 Cary Coutant <ccoutant@google.com>
31322
31323 PR debug/55364
31324 * dwarf2out.c (resolve_addr): Don't call
31325 remove_loc_list_addr_table_entries a second time for the same
31326 expression.
31327
31328 2013-03-05 Jakub Jelinek <jakub@redhat.com>
31329
31330 PR debug/56510
31331 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
31332 (avoid_complex_debug_insns): New function.
31333 (expand_debug_locations): Call it.
31334
31335 PR rtl-optimization/56484
31336 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
31337 lifetimes of hard registers on small register class machines.
31338
31339 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
31340
31341 * config/microblaze/microblaze-protos.h: Rename
31342 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
31343 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
31344 fast_interrupt.
31345 (microblaze_fast_interrupt_function_p): New function.
31346 (microblaze_is_interrupt_handler): Rename to
31347 microblaze_is_interrupt_variant and add fast_interrupt check.
31348 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
31349 (save_restore_insns): Likewise.
31350 (compute_frame_size): Likewise.
31351 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
31352 (microblaze_globalize_label): Likewise.
31353 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
31354 * config/microblaze/microblaze.md: Use wrapper
31355 microblaze_is_interrupt_variant.
31356
31357 2013-03-05 Kai Tietz <ktietz@redhat.com>
31358
31359 * sdbout.c (sdbout_one_type): Switch to current function's section
31360 supporting cold/hot.
31361
31362 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
31363
31364 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
31365 -mxl-reorder.
31366
31367 2013-03-05 Jakub Jelinek <jakub@redhat.com>
31368
31369 PR middle-end/56461
31370 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
31371 if VALGRIND_GET_VBITS is defined, temporarily make object
31372 memory all defined, and restore previous valgrind addressability
31373 and definability afterwards. Free this_object at the end.
31374
31375 PR middle-end/56461
31376 * lra.c (lra): Call lra_clear_live_ranges if live_p,
31377 right before calling lra_create_live_ranges, also call it
31378 when clearing live_p. Only call lra_clear_live_ranges
31379 at the end if live_p.
31380
31381 PR middle-end/56461
31382 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
31383
31384 2013-03-05 Richard Biener <rguenther@suse.de>
31385
31386 PR tree-optimization/56521
31387 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
31388 value-id.
31389
31390 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
31391
31392 PR c++/55135
31393 * except.h (remove_unreachable_eh_regions): New prototype.
31394 * except.c (remove_eh_handler_splicer): New function, split out
31395 of remove_eh_handler.
31396 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
31397 warning about running it on many EH regions one at a time.
31398 (remove_unreachable_eh_regions_worker): New function, walk the
31399 EH tree in depth-first order and remove non-marked regions.
31400 (remove_unreachable_eh_regions): New function.
31401 * tree-eh.c (mark_reachable_handlers): New function, split out
31402 from remove_unreachable_handlers.
31403 (remove_unreachable_handlers): Use mark_reachable_handlers and
31404 remove_unreachable_eh_regions.
31405 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
31406 and remove_unreachable_eh_regions.
31407
31408 2013-03-05 Richard Biener <rguenther@suse.de>
31409
31410 PR middle-end/56525
31411 * loop-init.c (fix_loop_structure): Remove loops in two stages,
31412 not freeing them until the end.
31413
31414 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31415
31416 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
31417
31418 2013-03-05 Richard Biener <rguenther@suse.de>
31419
31420 PR tree-optimization/56270
31421 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
31422 of loads after scheduling an SLP instance.
31423
31424 2013-03-05 Jakub Jelinek <jakub@redhat.com>
31425
31426 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
31427 tic6x.exp.
31428 (check_gcc_parallelize): Run guality.exp as a separate job from
31429 vect.exp with unsorted.exp and $(dg_target_exps) separately from
31430 struct-layout-1.exp with stackalign.exp.
31431
31432 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
31433
31434 PR middle-end/56461
31435 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
31436 load_index sbitmap even if some bit in it isn't set.
31437
31438 PR middle-end/56461
31439 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
31440 (discover_iteration_bound_by_body_walk): Change queues to
31441 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
31442 spelling in comment. Call safe_push on queues[bound_index] directly.
31443 Release queues[queue_index] in every iteration unconditionally.
31444 Release bounds vector.
31445
31446 PR middle-end/56461
31447 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
31448 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
31449 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
31450 inner_phis vector.
31451
31452 2013-03-05 Richard Biener <rguenther@suse.de>
31453
31454 PR lto/56515
31455 * tree-inline.c (remap_blocks_to_null): New function.
31456 (expand_call_inline): When expanding a call stmt without
31457 an associated block inline remap all callee blocks to NULL.
31458
31459 2013-03-05 Jakub Jelinek <jakub@redhat.com>
31460
31461 PR rtl-optimization/56494
31462 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
31463 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
31464 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
31465
31466 PR middle-end/56461
31467 * sel-sched-ir.c (free_sched_pools): Release
31468 succs_info_pool.stack[succs_info_pool.max_top] vectors too
31469 if succs_info_pool.max_top isn't -1.
31470
31471 PR bootstrap/56509
31472 * opts.c (opts_obstack, opts_concat): Moved to...
31473 * opts-common.c (opts_obstack, opts_concat): ... here.
31474
31475 2013-03-04 Jakub Jelinek <jakub@redhat.com>
31476
31477 PR middle-end/56461
31478 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
31479
31480 2013-03-04 Martin Jambor <mjambor@suse.cz>
31481
31482 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
31483 all appropriate places.
31484
31485 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
31486
31487 PR tree-optimization/56424
31488 * ipa-split.c (split_function): Do not set the RSO flag if result is
31489 not by reference and its type is a register type.
31490
31491 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
31492
31493 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
31494 (microblaze_legitimate_pic_operand): Likewise
31495 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
31496 new function microblaze_legitimate_pic_operand
31497 * config/microblaze/microblaze-protos.h
31498 (microblaze_legitimate_pic_operand): Declare.
31499
31500 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31501
31502 * config/microblaze/predicates.md (call_insn_simple_operand):
31503 New predicate for supported rtx code types.
31504 * config/microblaze/microblaze.md (call_internal1): Use
31505 call_insn_simple_operand predicate.
31506
31507 2013-03-04 Jakub Jelinek <jakub@redhat.com>
31508
31509 PR middle-end/56461
31510 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
31511 partitions.ordered_remove.
31512
31513 PR middle-end/56461
31514 * tree-vect-stmts.c (vectorizable_conversion): Don't call
31515 vec_oprnds0.create (1) for modifier == NONE.
31516
31517 PR middle-end/56461
31518 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
31519 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
31520 vec_oprnds1 right before pushing anything to it for
31521 scalar_shift_arg.
31522
31523 PR middle-end/56461
31524 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
31525 set nbbs to 0 instead of having separate code path.
31526 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
31527 instead of false as last argument if returning NULL.
31528
31529 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
31530
31531 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
31532 the attribute is now called "target" instead of "option".
31533 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
31534 * doc/tm.texi.in (Target Attributes): Likewise document the correct
31535 attribute/pragma name for TARGET_OPTION_VALID_P and
31536 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
31537 * doc/tm.texi: Regenerated.
31538
31539 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
31540
31541 * config/microblaze/microblaze.c:
31542 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
31543 * config/microblaze/microblaze.h: Add -mxl-reorder to
31544 DRIVER_SELF_SPECS.
31545 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
31546 instructions emitted if TARGET_REORDER.
31547 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
31548 or 0 for -m/-mno case, but initialises as 2 to detect default use case
31549 separately.
31550
31551 2013-03-01 Xinliang David Li <davidxl@google.com>
31552
31553 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
31554 walk length.
31555
31556 2013-03-01 Jakub Jelinek <jakub@redhat.com>
31557
31558 PR middle-end/56461
31559 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
31560 vector even when returning true. Fix up function comment formatting.
31561
31562 PR middle-end/56461
31563 * ira-build.c (ira_loop_nodes_count): New variable.
31564 (create_loop_tree_nodes): Initialize it.
31565 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
31566
31567 PR middle-end/56461
31568 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
31569 method on dr_chain and result_chain.
31570 * tree-vect-stmts.c (vectorizable_store): Only call
31571 result_chain.create if j == 0.
31572
31573 PR middle-end/56461
31574 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
31575 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
31576 before overwriting it.
31577
31578 2013-03-01 Tobias Burnus <burnus@net-b.de>
31579
31580 * doc/extended.texi (C Extensions): Change order in @menu
31581 to match @node.
31582 (Other MIPS Built-in Functions): Move last MIPS entry before
31583 "picoChip Built-in Functions".
31584 (SH Built-in Functions): Move after RX Built-in Functions.
31585 * doc/gcc.texi (Introduction): Change order in @menu
31586 to match @node.
31587 * doc/md.texi (Constraints): Ditto.
31588 * gty.texi (Type Information): Ditto.
31589 (User-provided marking routines for template types): Make
31590 subsection.
31591 * doc/invoke.texi (AArch64 Options): Move before
31592 "Adapteva Epiphany Options".
31593
31594 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
31595 Jakub Jelinek <jakub@redhat.com>
31596
31597 PR sanitizer/56454
31598 * asan.c (gate_asan): Lookup no_sanitize_address instead of
31599 no_address_safety_analysis attribute.
31600 * doc/extend.texi (no_address_safety_attribute): Rename to
31601 no_sanitize_address attribute, mention no_address_safety_analysis
31602 attribute as deprecated alias.
31603
31604 2013-02-28 Jakub Jelinek <jakub@redhat.com>
31605
31606 PR middle-end/56461
31607 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
31608 type to vec<vec<tree> > *.
31609 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
31610 to be vec<tree> instead of vec<tree> *, set vec_defs
31611 to vNULL and call vec_defs.create (number_of_vects), adjust other
31612 uses of vec_defs.
31613 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
31614 vectorizable_condition): Adjust vect_get_slp_defs callers.
31615
31616 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31617
31618 * config/aarch64/aarch64.c
31619 (aarch64_float_const_representable): Remove unused variable.
31620
31621 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31622
31623 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
31624
31625 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31626
31627 * config/aarch64/aarch64-builtins.c
31628 (aarch64_init_simd_builtins): Make static.
31629
31630 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31631
31632 * config/aarch64/aarch64.c
31633 (aarch64_simd_make_constant): Make static.
31634
31635 2013-02-28 Martin Jambor <mjambor@suse.cz>
31636
31637 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
31638 with no initialization to the RHS of debug statements.
31639
31640 2013-02-28 Martin Jambor <mjambor@suse.cz>
31641
31642 PR tree-optimization/56294
31643 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
31644 Adjust dumping.
31645 (get_access_replacement): Do not call create_access_replacement.
31646 Assert a replacement exists.
31647 (get_repl_default_def_ssa_name): Create the replacement declaration
31648 itself.
31649
31650 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31651
31652 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
31653 final_end_function.
31654
31655 2013-02-28 Marek Polacek <polacek@redhat.com>
31656
31657 PR rtl-optimization/56466
31658 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
31659 if we're changing a loop.
31660 (peel_loops_completely): Likewise.
31661
31662 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
31663
31664 PR c++/55813
31665 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
31666
31667 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
31668
31669 PR target/56445
31670 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
31671 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
31672 INTX_FTYPE_FX, FX_FTYPE_INTX.
31673 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
31674
31675 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
31676
31677 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
31678 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
31679 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
31680 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
31681 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
31682 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
31683 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
31684 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
31685 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
31686 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
31687 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
31688 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
31689 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
31690 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
31691 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
31692 (avrxmega6): Increase max flash segments from 5 to 6.
31693 * config/avr/t-multilib: Regenerate.
31694 * config/avr/avr-tables.opt: Regenerate.
31695 * doc/avr-mmcu.texi: Regenerate.
31696
31697 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
31698
31699 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
31700 (avr_device_to_arch): Rename to avr_device_to_ld.
31701 (avr_device_to_as): New prototype.
31702 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
31703 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
31704 * config/avr/driver-avr.c (avr_device_to_as): New.
31705 (avr_device_to_arch): Rename to avr_device_to_ld.
31706
31707 2013-02-27 Jakub Jelinek <jakub@redhat.com>
31708
31709 PR middle-end/56461
31710 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
31711 method on dr_chain and result_chain.
31712
31713 PR middle-end/56461
31714 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
31715 pointer_set_destroy on not_executed_last_iteration.
31716
31717 PR middle-end/56461
31718 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
31719
31720 PR middle-end/56461
31721 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
31722 FOR_EACH_DEFINED_FUNCTION when freeing state.
31723
31724 PR middle-end/56461
31725 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
31726 pool_free.
31727 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
31728 overwriting it.
31729
31730 PR middle-end/56461
31731 * ipa-cp.c (decide_whether_version_node): Call vec_free on
31732 known_aggs[i].items and release known_aggs vector.
31733
31734 PR middle-end/56461
31735 * ipa-reference.c (propagate): Free node_info even for alias nodes.
31736
31737 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31738
31739 * config/microblaze/microblaze.c (microblaze_emit_compare):
31740 Use xor for EQ/NE comparisions.
31741 * config/microblaze/microblaze.md (cstoresf4): Add constraints
31742 (cbranchsf4): Adjust operator to comparison_operator.
31743
31744 2013-02-27 Jakub Jelinek <jakub@redhat.com>
31745
31746 PR middle-end/56461
31747 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
31748 vector.
31749 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
31750 vec_safe_push, always update *slot.
31751 (redirect_edge_var_map_clear): Use vec_free.
31752 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
31753 (free_var_map_entry): Use vec_free.
31754 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
31755 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
31756
31757 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
31758
31759 PR middle-end/45472
31760 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
31761 when the may_trap_p bit of the exprs being merged differs.
31762 Reorder tests for speculativeness in the logical and operator.
31763
31764 2013-02-27 Jakub Jelinek <jakub@redhat.com>
31765
31766 * incpath.c (add_standard_paths): Use reconcat instead of concat
31767 where appropriate and avoid leaking memory.
31768
31769 * opts.h: Include obstack.h.
31770 (opts_concat): New prototype.
31771 (opts_obstack): New declaration.
31772 * opts.c (opts_concat): New function.
31773 (opts_obstack): New variable.
31774 (init_options_struct): Call gcc_init_obstack on opts_obstack.
31775 (finish_options): Use opts_concat instead of concat
31776 and XOBNEWVEC instead of XNEWVEC.
31777 * opts-common.c (generate_canonical_option, decode_cmdline_option,
31778 generate_option): Likewise.
31779 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
31780 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
31781
31782 PR target/56455
31783 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
31784 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
31785
31786 2013-02-26 Jakub Jelinek <jakub@redhat.com>
31787
31788 PR middle-end/56461
31789 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
31790
31791 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
31792
31793 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
31794 (arm_block_move_unaligned_straight): Likewise.
31795 (arm_adjust_block_mem): Likewise.
31796
31797 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
31798
31799 PR target/48901
31800 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
31801 temp, cond and label.
31802 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
31803
31804 PR target/52500
31805 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
31806 * config/c6x/c6x.h (dbx_register_map): Update declaration.
31807
31808 PR target/52501
31809 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
31810 of prologue/epilogue functions.
31811
31812 PR target/52550
31813 * config/tilegx/tilegx.c (tilegx_expand_prologue):
31814 Remove unused variable cfa_offset.
31815 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
31816
31817 PR target/54639
31818 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
31819 type promotion to unsigned.
31820
31821 PR target/54640
31822 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
31823 for HOST_WIDE_INT of 32 bit / same size as int.
31824 (arm_block_move_unaligned_straight): Likewise.
31825 (arm_adjust_block_mem): Likewise.
31826
31827 PR target/54662
31828 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
31829 ALL_CFLAGS.
31830
31831 2013-02-26 Marek Polacek <polacek@redhat.com>
31832
31833 PR tree-optimization/56426
31834 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
31835
31836 2013-02-26 Richard Biener <rguenther@suse.de>
31837
31838 PR target/56444
31839 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
31840 unused variable loops.
31841
31842 2013-02-26 Jakub Jelinek <jakub@redhat.com>
31843
31844 PR tree-optimization/56448
31845 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
31846 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
31847 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
31848 later operands of the references, or even first operand for
31849 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
31850
31851 PR tree-optimization/56443
31852 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
31853 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
31854 to type_for_mode langhook.
31855
31856 2013-02-25 Matt Turner <mattst88@gmail.com>
31857
31858 * doc/invoke.texi: Document r4700.
31859
31860 2013-02-25 Richard Biener <rguenther@suse.de>
31861
31862 PR tree-optimization/56175
31863 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
31864 split out from ...
31865 (simplify_bitwise_binary): ... here. Also guard the conversion
31866 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
31867
31868 2013-02-25 Catherine Moore <clm@codesourcery.com>
31869
31870 Revert:
31871 2013-02-24 Catherine Moore <clm@codesourcery.com>
31872 Maciej W. Rozycki <macro@codesourcery.com>
31873 Tom de Vries <tom@codesourcery.com>
31874 Nathan Sidwell <nathan@codesourcery.com>
31875 Iain Sandoe <iain@codesourcery.com>
31876 Nathan Froyd <froydnj@codesourcery.com>
31877 Chao-ying Fu <fu@mips.com>
31878
31879 * doc/extend.texi: (micromips, nomicromips, nocompression):
31880 Document new function attributes.
31881 * doc/invoke.texi (minterlink-compressed, mmicromips,
31882 m14k, m14ke, m14kec): Document new options.
31883 (minterlink-mips16): Update documentation.
31884 * doc/md.texi (ZC, ZD): Document new constraints.
31885 * configure.ac (gcc_cv_as_micromips): Check if linker
31886 supports the .set micromips directive.
31887 * configure: Regenerate.
31888 * config.in: Regenerate.
31889 * config/mips/mips-tables.opt: Regenerate.
31890 * config/mips/micromips.md: New file.
31891 * constraints.md (ZC, AD): New constraints.
31892 * config/mips/predicates.md (movep_src_register): New predicate.
31893 (movep_src_operand): New predicate.
31894 (non_volatile_mem_operand): New predicate.
31895 * config/mips/mips.md (multimem): New type.
31896 (length): Differentiate between 17-bit and 18-bit branch offsets.
31897 (MOVEP1, MOVEP2): New mode iterator.
31898 (mov_<load>l): Use ZC constraint.
31899 (mov_<load>r): Likewise.
31900 (mov_<store>l): Likewise.
31901 (mov_<store>r): Likewise.
31902 (*branch_equality<mode>_inverted): Add microMIPS support.
31903 (*branch_equality<mode>): Likewise.
31904 (*jump_absolute): Likewise.
31905 (indirect_jump_<mode>): Likewise.
31906 (tablejump_<mode>): Likewise.
31907 (<optab>_internal): Likewise.
31908 (sibcall_internal): Likewise.
31909 (sibcall_value_internal): Likewise.
31910 (prefetch): Use constraint ZD.
31911 * config/mips/mips.opt (minterlink-compressed): New option.
31912 (minterlink-mips16): Now an alias for minterlink-compressed.
31913 (mmicromips): New option.
31914 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31915 (compare_and_swap_12): Likewise.
31916 (sync_add<mode>): Likewise.
31917 (sync_<optab>_12): Likewise.
31918 (sync_old_<optab>_12): Likewise.
31919 (sync_new_<optab>_12): Likewise.
31920 (sync_nand_12): Likewise.
31921 (sync_old_nand_12): Likewise.
31922 (sync_new_nand_12): Likewise.
31923 (sync_sub<mode>): Likewise.
31924 (sync_old_add<mode>): Likewise.
31925 (sync_old_sub<mode>): Likewise.
31926 (sync_new_add<mode>): Likewise.
31927 (sync_new_sub<mode>): Likewise.
31928 (sync_<optab><mode>): Likewise.
31929 (sync_old_<optab><mode>): Likewise.
31930 (sync_new_<optab><mode>): Likewise.
31931 (sync_nand<mode>): Likewise.
31932 (sync_old_nand<mode>): Likewise.
31933 (sync_new_nand<mode>): Likewise.
31934 (sync_lock_test_and_set<mode>): Likewise.
31935 (test_and_set_12): Likewise.
31936 (atomic_compare_and_swap<mode>): Likewise.
31937 (atomic_exchange<mode>_llsc): Likewise.
31938 (atomic_fetch_add<mode>_llsc): Likewise.
31939 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31940 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31941 (umips_save_restore_pattern_p): Likewise.
31942 (umips_load_store_pair_p): Likewise.
31943 (umips_output_load_store_pair): Likewise.
31944 (umips_movep_target_p): Likewise.
31945 (umips_12bit_offset_address_p): Likewise.
31946 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31947 (mips_base_mips16): Rename this...
31948 (mips_base_compression_flags): ...to this. Update all uses.
31949 (mips_attribute_table): Add micromips, nomicromips and nocompression.
31950 (mips_mips16_decl_p): Delete.
31951 (mips_nomips16_decl_p): Delete.
31952 (mips_get_compress_on_flags): New function.
31953 (mips_get_compress_off_flags): New function.
31954 (mips_get_compress_mode): New function.
31955 (mips_get_compress_on_name): New function.
31956 (mips_get_compress_off_name): New function.
31957 (mips_insert_attributes): Support multiple compression types.
31958 (mips_merge_decl_attributes): Likewise.
31959 (umips_12bit_offset_address_p): New function.
31960 (mips_start_function_definition): Emit .set micromips directive.
31961 (mips_call_may_need_jalx_p): New function.
31962 (mips_function_ok_for_sibcall): Add microMIPS support.
31963 (mips_print_operand_punctuation): Support short delay slots and
31964 compact jumps.
31965 (umips_swm_mask, umips_swm_encoding): New.
31966 (umips_build_save_restore): New function.
31967 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31968 (was_mips16_p): Remove.
31969 (old_compression_mode): New.
31970 (mips_set_compression_mode): New function.
31971 (mips_set_current_function): Add microMIPS support.
31972 (mips_option_override): Likewise.
31973 (umips_save_restore_pattern_p): New function.
31974 (umips_output_save_restore): New function.
31975 (umips_load_store_pair_p_1): New function.
31976 (umips_load_store_pair_p): New function.
31977 (umips_output_load_store_pair_1): New function.
31978 (umips_output_load_store_pair): New function.
31979 (umips_movep_target_p) New function.
31980 (mips_prepare_pch_save): Add microMIPS support.
31981 * config/mips/mips.h (TARGET_COMPRESSION): New.
31982 (TARGET_CPU_CPP_BUILTINS): Update macro
31983 to use new compression flags and to support microMIPS.
31984 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31985 (MIPS_ARCH_FLOAT_SPEC): Likewise.
31986 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31987 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31988 (ASM_SPEC): Support mmicromips and mno-micromips.
31989 (M16STORE_REG_P): New macro.
31990 (MIPS_CALL): Support TARGET_MICROMIPS.
31991 (MICROMIPS_J): New macro.
31992 (mips_base_mips16): Rename this...
31993 (mips_base_compression_flags): ...to this.
31994 (UMIPS_12BIT_OFFSET_P): New macro.
31995 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31996 (MULTILIB_DIRNAMES): Likewise.
31997
31998 2013-02-25 Tom de Vries <tom@codesourcery.com>
31999
32000 PR rtl-optimization/56131
32001 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
32002 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
32003 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
32004
32005 2013-02-25 Tobias Burnus <burnus@net-b.de>
32006
32007 * doc/invoke.texi (-fsanitize=): Move from optimization
32008 to debugging options.
32009
32010 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
32011
32012 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
32013
32014 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
32015 Alexander Monakov <amonakov@ispras.ru>
32016
32017 PR middle-end/56077
32018 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
32019 flush pending lists also on non-jumps. Adjust comment.
32020
32021 2013-02-24 Catherine Moore <clm@codesourcery.com>
32022 Maciej W. Rozycki <macro@codesourcery.com>
32023 Tom de Vries <tom@codesourcery.com>
32024 Nathan Sidwell <nathan@codesourcery.com>
32025 Iain Sandoe <iain@codesourcery.com>
32026 Nathan Froyd <froydnj@codesourcery.com>
32027 Chao-ying Fu <fu@mips.com>
32028
32029 * doc/extend.texi: (micromips, nomicromips, nocompression):
32030 Document new function attributes.
32031 * doc/invoke.texi (minterlink-compressed, mmicromips,
32032 m14k, m14ke, m14kec): Document new options.
32033 (minterlink-mips16): Update documentation.
32034 * doc/md.texi (ZC, ZD): Document new constraints.
32035 * configure.ac (gcc_cv_as_micromips): Check if linker
32036 supports the .set micromips directive.
32037 * configure: Regenerate.
32038 * config.in: Regenerate.
32039 * config/mips/mips-tables.opt: Regenerate.
32040 * config/mips/micromips.md: New file.
32041 * constraints.md (ZC, AD): New constraints.
32042 * config/mips/predicates.md (movep_src_register): New predicate.
32043 (movep_src_operand): New predicate.
32044 (non_volatile_mem_operand): New predicate.
32045 * config/mips/mips.md (multimem): New type.
32046 (length): Differentiate between 17-bit and 18-bit branch offsets.
32047 (MOVEP1, MOVEP2): New mode iterator.
32048 (mov_<load>l): Use ZC constraint.
32049 (mov_<load>r): Likewise.
32050 (mov_<store>l): Likewise.
32051 (mov_<store>r): Likewise.
32052 (*branch_equality<mode>_inverted): Add microMIPS support.
32053 (*branch_equality<mode>): Likewise.
32054 (*jump_absolute): Likewise.
32055 (indirect_jump_<mode>): Likewise.
32056 (tablejump_<mode>): Likewise.
32057 (<optab>_internal): Likewise.
32058 (sibcall_internal): Likewise.
32059 (sibcall_value_internal): Likewise.
32060 (prefetch): Use constraint ZD.
32061 * config/mips/mips.opt (minterlink-compressed): New option.
32062 (minterlink-mips16): Now an alias for minterlink-compressed.
32063 (mmicromips): New option.
32064 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32065 (compare_and_swap_12): Likewise.
32066 (sync_add<mode>): Likewise.
32067 (sync_<optab>_12): Likewise.
32068 (sync_old_<optab>_12): Likewise.
32069 (sync_new_<optab>_12): Likewise.
32070 (sync_nand_12): Likewise.
32071 (sync_old_nand_12): Likewise.
32072 (sync_new_nand_12): Likewise.
32073 (sync_sub<mode>): Likewise.
32074 (sync_old_add<mode>): Likewise.
32075 (sync_old_sub<mode>): Likewise.
32076 (sync_new_add<mode>): Likewise.
32077 (sync_new_sub<mode>): Likewise.
32078 (sync_<optab><mode>): Likewise.
32079 (sync_old_<optab><mode>): Likewise.
32080 (sync_new_<optab><mode>): Likewise.
32081 (sync_nand<mode>): Likewise.
32082 (sync_old_nand<mode>): Likewise.
32083 (sync_new_nand<mode>): Likewise.
32084 (sync_lock_test_and_set<mode>): Likewise.
32085 (test_and_set_12): Likewise.
32086 (atomic_compare_and_swap<mode>): Likewise.
32087 (atomic_exchange<mode>_llsc): Likewise.
32088 (atomic_fetch_add<mode>_llsc): Likewise.
32089 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32090 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32091 (umips_save_restore_pattern_p): Likewise.
32092 (umips_load_store_pair_p): Likewise.
32093 (umips_output_load_store_pair): Likewise.
32094 (umips_movep_target_p): Likewise.
32095 (umips_12bit_offset_address_p): Likewise.
32096 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32097 (mips_base_mips16): Rename this...
32098 (mips_base_compression_flags): ...to this. Update all uses.
32099 (mips_attribute_table): Add micromips, nomicromips and nocompression.
32100 (mips_mips16_decl_p): Delete.
32101 (mips_nomips16_decl_p): Delete.
32102 (mips_get_compress_on_flags): New function.
32103 (mips_get_compress_off_flags): New function.
32104 (mips_get_compress_mode): New function.
32105 (mips_get_compress_on_name): New function.
32106 (mips_get_compress_off_name): New function.
32107 (mips_insert_attributes): Support multiple compression types.
32108 (mips_merge_decl_attributes): Likewise.
32109 (umips_12bit_offset_address_p): New function.
32110 (mips_start_function_definition): Emit .set micromips directive.
32111 (mips_call_may_need_jalx_p): New function.
32112 (mips_function_ok_for_sibcall): Add microMIPS support.
32113 (mips_print_operand_punctuation): Support short delay slots and
32114 compact jumps.
32115 (umips_swm_mask, umips_swm_encoding): New.
32116 (umips_build_save_restore): New function.
32117 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32118 (was_mips16_p): Remove.
32119 (old_compression_mode): New.
32120 (mips_set_compression_mode): New function.
32121 (mips_set_current_function): Add microMIPS support.
32122 (mips_option_override): Likewise.
32123 (umips_save_restore_pattern_p): New function.
32124 (umips_output_save_restore): New function.
32125 (umips_load_store_pair_p_1): New function.
32126 (umips_load_store_pair_p): New function.
32127 (umips_output_load_store_pair_1): New function.
32128 (umips_output_load_store_pair): New function.
32129 (umips_movep_target_p) New function.
32130 (mips_prepare_pch_save): Add microMIPS support.
32131 * config/mips/mips.h (TARGET_COMPRESSION): New.
32132 (TARGET_CPU_CPP_BUILTINS): Update macro
32133 to use new compression flags and to support microMIPS.
32134 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32135 (MIPS_ARCH_FLOAT_SPEC): Likewise.
32136 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32137 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32138 (ASM_SPEC): Support mmicromips and mno-micromips.
32139 (M16STORE_REG_P): New macro.
32140 (MIPS_CALL): Support TARGET_MICROMIPS.
32141 (MICROMIPS_J): New macro.
32142 (mips_base_mips16): Rename this...
32143 (mips_base_compression_flags): ...to this.
32144 (UMIPS_12BIT_OFFSET_P): New macro.
32145 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32146 (MULTILIB_DIRNAMES): Likewise.
32147
32148 2013-02-24 Jakub Jelinek <jakub@redhat.com>
32149
32150 PR target/52555
32151 * target-globals.c (save_target_globals): For init_reg_sets and
32152 target_reinit remporarily set this_fn_optabs to this_target_optabs.
32153
32154 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
32155
32156 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
32157 * config/aarch64/t-aarch64
32158 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
32159
32160 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
32161
32162 PR inline-asm/56148
32163 * lra-constraints.c (process_alt_operands): Reload operand
32164 conflicting with earlier clobber only if no more other conflicting
32165 operands.
32166
32167 2013-02-22 Jakub Jelinek <jakub@redhat.com>
32168
32169 PR sanitizer/56393
32170 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
32171 if not linking a shared library.
32172
32173 2013-02-22 Seth LaForge <sethml@google.com>
32174
32175 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
32176
32177 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
32178
32179 * config/arm/arm.md (split for extendsidi): Update condition.
32180 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
32181 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
32182 (qhs_zextenddi_cstr): Likewise.
32183
32184 2013-02-21 Jakub Jelinek <jakub@redhat.com>
32185
32186 PR middle-end/56420
32187 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
32188 avoid signed wrapping.
32189 (expand_mult): Handle properly multiplication by
32190 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
32191 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
32192 in the compiler if coeff is HOST_WIDE_INT_MIN.
32193 (expand_divmod): Don't make ext_op1 static, change it's type to
32194 uhwi. Avoid undefined behavior in -INTVAL (op1).
32195
32196 PR rtl-optimization/50339
32197 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
32198 field.
32199 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
32200 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
32201 into splitting_ashiftrt field.
32202 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
32203 ASHIFTRT.
32204 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
32205 choices.
32206
32207 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
32208
32209 PR middle-end/56108
32210 * trans-mem.c (execute_tm_mark): Do not expand transactions that
32211 are sure to go irrevocable.
32212
32213 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
32214
32215 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
32216 scalars are valid operands.
32217
32218 2013-02-21 Martin Jambor <mjambor@suse.cz>
32219
32220 PR tree-optimization/56310
32221 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
32222 only matching indices and non-negative final offsets.
32223 (intersect_aggregates_with_edge): Pass src_idx to
32224 agg_replacements_to_vector. Pass src_idx insstead of index to
32225 intersect_with_agg_replacements.
32226
32227 2013-02-21 Martin Jambor <mjambor@suse.cz>
32228
32229 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
32230 instead of hard-wired defaults.
32231
32232 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
32233
32234 * doc/invoke.texi (MIPS Options): Update documentation of the
32235 floating-point multiply-accumulate instruction restrictions.
32236
32237 2013-02-21 Kostya Serebryany <kcc@google.com>
32238
32239 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
32240 asan_shadow_offset on x86_64 linux.
32241
32242 2013-02-21 Richard Biener <rguenther@suse.de>
32243
32244 PR tree-optimization/56415
32245 Revert
32246 2013-02-11 Richard Biener <rguenther@suse.de>
32247
32248 PR tree-optimization/56273
32249 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
32250 first VRP run.
32251
32252 2013-02-21 Jakub Jelinek <jakub@redhat.com>
32253
32254 PR bootstrap/56258
32255 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
32256 instead of @itemx.
32257
32258 PR inline-asm/56405
32259 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
32260 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
32261
32262 2013-02-20 Jan Hubicka <jh@suse.cz>
32263
32264 PR tree-optimization/56265
32265 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
32266 when target is referenced for first time.
32267
32268 2013-02-20 Richard Biener <rguenther@suse.de>
32269
32270 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
32271 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
32272 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
32273 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
32274 not return anything.
32275 (rename_ssa_copies): Do not remove unused locals.
32276 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
32277 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
32278 * passes.c (execute_function_todo): Do not schedule unused locals
32279 removal if cleanup_tree_cfg did something.
32280 * tree-ssa-live.c (remove_unused_locals): Dump statistics
32281 about the number of removed locals.
32282
32283 2013-02-20 Richard Biener <rguenther@suse.de>
32284
32285 PR tree-optimization/56398
32286 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
32287
32288 2013-02-20 Martin Jambor <mjambor@suse.cz>
32289
32290 PR tree-optimization/55334
32291 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
32292 restricted pointers to arrays.
32293
32294 2013-02-20 Richard Biener <rguenther@suse.de>
32295 Jakub Jelinek <jakub@redhat.com>
32296
32297 PR tree-optimization/56396
32298 * tree-ssa-ccp.c (n_const_val): New static variable.
32299 (get_value): Return NULL for SSA names we don't have a lattice
32300 entry for.
32301 (ccp_initialize): Initialize n_const_val.
32302 * tree-ssa-copy.c (n_copy_of): New static variable.
32303 (init_copy_prop): Initialize n_copy_of.
32304 (get_value): Return NULL_TREE for SSA names we don't have a
32305 lattice entry for.
32306
32307 2013-02-20 Martin Jambor <mjambor@suse.cz>
32308
32309 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
32310
32311 2013-02-20 Richard Biener <rguenther@suse.de>
32312
32313 * genpreds.c (write_lookup_constraint): Do not compare first
32314 letter of the constraint again.
32315
32316 2013-02-20 Richard Biener <rguenther@suse.de>
32317
32318 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
32319 and ceil_log2.
32320 (get_use_iv_cost): Terminate hashtable walk when coming across
32321 an empty entry.
32322
32323 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
32324
32325 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
32326 reassociation for avx2 targets.
32327
32328 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32329
32330 * config/microblaze/microblaze.c: microblaze_has_clz = 0
32331 Add version check for v8.10.a to enable microblaze_has_clz
32332 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
32333 version and TARGET_PATTERN_COMPARE check
32334 * config/microblaze/microblaze.md: New clzsi2 instruction
32335
32336 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32337
32338 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
32339 function before branching.
32340
32341 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
32342
32343 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
32344 DUMP_INSN_RTX_UID.
32345 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
32346
32347 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
32348
32349 PR middle-end/55889
32350 * sel-sched.c: Include ira.h.
32351 (implicit_clobber_conflict_p): New function.
32352 (moveup_expr): Use it.
32353 * Makefile.in (sel-sched.o): Depend on ira.h.
32354
32355 2013-02-19 Richard Biener <rguenther@suse.de>
32356
32357 PR tree-optimization/56384
32358 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
32359 (vn_hash_type): Split out from ...
32360 (vn_hash_constant_with_type): ... here.
32361 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
32362 (vn_phi_eq): Compare types from vn_phi_s structure.
32363 (vn_phi_lookup): Populate vn_phi_s type.
32364 (vn_phi_insert): Likewise.
32365
32366 2013-02-19 Jakub Jelinek <jakub@redhat.com>
32367
32368 PR tree-optimization/56350
32369 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
32370 if haven't found reduction or nested cycle operand, rather than
32371 asserting we must find it.
32372
32373 PR tree-optimization/56381
32374 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
32375 to fold_build3.
32376
32377 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
32378 Jakub Jelinek <jakub@redhat.com>
32379
32380 PR target/52555
32381 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
32382 (swap_optab_enable): Same.
32383 (init_all_optabs): Use argument instead of global.
32384 * tree.h (struct tree_optimization_option): New field target_optabs.
32385 * expr.h (init_all_optabs): Add argument to prototype.
32386 (TREE_OPTIMIZATION_OPTABS): New.
32387 (save_optabs_if_changed): Protoize.
32388 * optabs.h: Declare this_fn_optabs.
32389 * optabs.c (save_optabs_if_changed): New.
32390 Declare this_fn_optabs.
32391 (init_optabs): Add argument to init_all_optabs() call.
32392 * function.c (invoke_set_current_function_hook): Handle per
32393 function optabs.
32394 * function.h (struct function): New field optabs.
32395 * config/mips/mips.c (mips_set_mips16_mode): Handle when
32396 optimization_current_node has changed.
32397 * target-globals.h (save_target_globals_default_opts): Protoize.
32398 * target-globals.c (save_target_globals_default_opts): New.
32399
32400 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32401
32402 PR target/56347
32403 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
32404 registers %fr12 and %fr12R as call used.
32405
32406 PR target/56214
32407 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
32408 and HImode, require all displacements to be an integer multiple of
32409 their mode size.
32410 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
32411 only allow QImode and HImode when reload is in progress and strict is
32412 true. Likewise for symbolic addresses. Use base14_operand to check
32413 displacements in REG+BASE addresses.
32414
32415 2013-02-18 Richard Biener <rguenther@suse.de>
32416
32417 PR tree-optimization/56366
32418 * tree-vect-loop.c (get_initial_def_for_induction): Properly
32419 handle sign-conversion of outer-loop initial induction value.
32420
32421 2013-02-18 Richard Biener <rguenther@suse.de>
32422
32423 PR middle-end/56349
32424 * cfghooks.c (merge_blocks): If we merge a latch into another
32425 block adjust references to it.
32426 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
32427 (verify_loop_structure): Verify that a recorded latch is in fact
32428 a latch.
32429
32430 2013-02-18 Richard Biener <rguenther@suse.de>
32431
32432 PR tree-optimization/56321
32433 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
32434 order SSA name release and virtual operand unlinking.
32435
32436 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32437
32438 * config/microblaze/microblaze.md (save_stack_block): Define.
32439 (restore_stack_block): Likewise.
32440
32441 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32442
32443 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
32444 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
32445 * config/microblaze/microblaze.c (microblaze_option_override):
32446 Bail out early for PIC modes when target does not support PIC.
32447
32448 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32449
32450 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
32451 Replace with a microblaze version.
32452 (microblaze_trampoline_init): Adapt for microblaze.
32453 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
32454 microblaze.
32455
32456 2013-02-16 Jakub Jelinek <jakub@redhat.com>
32457 Dodji Seketeli <dodji@redhat.com>
32458
32459 PR asan/56330
32460 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
32461 (instrument_mem_region_access): Do not forget to always put
32462 instrumentation of the of 'base' and 'base + len' in a "if (len !=
32463 0) statement, even for cases where either 'base' or 'base + len'
32464 are not instrumented -- because they have been previously
32465 instrumented. Simplify the logic by putting all the statements
32466 instrument 'base + len' inside a sequence, and then insert that
32467 sequence right before the current insertion point. Then, to
32468 instrument 'base + len', just get an iterator on that statement.
32469 And do not forget to update the pointer to iterator the function
32470 received as argument.
32471
32472 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
32473
32474 PR rtl-optimization/56348
32475 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
32476
32477 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
32478
32479 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
32480 (clean_graph_dump_file): Pass base to start_graph_dump.
32481
32482 2013-02-14 Richard Henderson <rth@redhat.com>
32483
32484 PR target/55941
32485 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
32486
32487 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
32488
32489 * collect2-aix.h: Define F_LOADONLY.
32490
32491 2013-02-14 Richard Biener <rguenther@suse.de>
32492
32493 PR lto/50494
32494 * varasm.c (output_constant_def_1): Get the decl representing
32495 the constant as argument.
32496 (output_constant_def): Wrap output_constant_def_1.
32497 (make_decl_rtl): Use output_constant_def_1 with the decl
32498 representing the constant.
32499 (build_constant_desc): Optionally re-use a decl already
32500 representing the constant.
32501 (tree_output_constant_def): Adjust.
32502
32503 2013-02-14 Dodji Seketeli <dodji@redhat.com>
32504
32505 Fix an asan crash
32506 * asan.c (instrument_builtin_call): Really put the length of the
32507 second source argument into src1_len.
32508
32509 2013-02-13 Jakub Jelinek <jakub@redhat.com>
32510
32511 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
32512 argument. If it is false, don't create edge from then_bb to
32513 fallthru_bb.
32514 (insert_if_then_before_iter): Pass true to it.
32515 (build_check_stmt): Pass false to it.
32516 (transform_statements): Flush hash table only on extended basic
32517 block boundaries, rather than at the beginning of every bb.
32518 Don't flush hash table on nonfreeing_call_p calls.
32519 * tree-flow.h (nonfreeing_call_p): New prototype.
32520 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
32521
32522 2013-02-13 David S. Miller <davem@davemloft.net>
32523
32524 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
32525
32526 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
32527
32528 PR target/56184
32529 * ira.c (max_regno_before_ira): Move from ...
32530 (ira): ... here.
32531 (fix_reg_equiv_init): Use max_regno_before_ira instead of
32532 vec_safe_length.
32533
32534 2013-02-13 Jakub Jelinek <jakub@redhat.com>
32535
32536 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
32537
32538 2013-02-13 Richard Biener <rguenther@suse.de>
32539
32540 PR lto/56295
32541 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
32542 globals in MEM_REFs.
32543
32544 2013-02-13 Richard Biener <rguenther@suse.de>
32545
32546 * loop-init.c (loop_optimizer_init): Clear loop state when
32547 re-initializing preserved loops.
32548 * loop-unswitch.c (unswitch_single_loop): Return whether
32549 we unswitched the loop. Do not verify loop state here.
32550 (unswitch_loops): When we unswitched a loop discover new loops.
32551
32552 2013-02-13 Kostya Serebryany <kcc@google.com>
32553
32554 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
32555 on x86_64 linux.
32556 * sanitizer.def: Rename __asan_init to __asan_init_v1.
32557
32558 2013-02-12 Dodji Seketeli <dodji@redhat.com>
32559
32560 Avoid instrumenting duplicated memory access in the same basic block
32561 * Makefile.in (asan.o): Add new dependency on hash-table.h
32562 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
32563 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
32564 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
32565 (free_mem_ref_resources, has_mem_ref_been_instrumented)
32566 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
32567 (get_mem_ref_of_assignment): New functions.
32568 (get_mem_refs_of_builtin_call): Extract from
32569 instrument_builtin_call and tweak a little bit to make it fit with
32570 the new signature.
32571 (instrument_builtin_call): Use the new
32572 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
32573 of is_gimple_builtin_call.
32574 (instrument_derefs, instrument_mem_region_access): Insert the
32575 instrumented memory reference into the hash table.
32576 (maybe_instrument_assignment): Renamed instrument_assignment into
32577 this, and change it to advance the iterator when instrumentation
32578 actually happened and return true in that case. This makes it
32579 homogeneous with maybe_instrument_assignment, and thus give a
32580 chance to callers to be more 'regular'.
32581 (transform_statements): Clear the memory reference hash table
32582 whenever we enter a new BB, when we cross a function call, or when
32583 we are done transforming statements. Use
32584 maybe_instrument_assignment instead of instrumentation. No more
32585 need to special case maybe_instrument_assignment and advance the
32586 iterator after calling it; it's now handled just like
32587 maybe_instrument_call. Update comment.
32588
32589 2013-02-13 Richard Biener <rguenther@suse.de>
32590
32591 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
32592 Fix loop discovery code.
32593
32594 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
32595
32596 PR inline-asm/56148
32597 * lra-constraints.c (process_alt_operands): Match early clobber
32598 operand with itself. Check conflicts with earlyclobber only if
32599 the operand is not reloaded. Prefer to reload conflicting operand
32600 if earlyclobber and matching operands are the same.
32601
32602 2013-02-12 Richard Biener <rguenther@suse.de>
32603
32604 PR lto/56297
32605 * lto-streamer-out.c (write_symbol): Do not output symbols
32606 for hard register variables.
32607
32608 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
32609
32610 PR target/54222
32611 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
32612 (umulsidi3_insn, mulsidi3_insn): New insns.
32613
32614 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
32615
32616 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
32617 (struct tune_params): Add vec_costs field.
32618 * config/arm/arm.c (arm_builtin_vectorization_cost)
32619 (arm_add_stmt_cost): New functions.
32620 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
32621 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
32622 (arm_default_vec_cost): New struct of type cpu_vec_costs.
32623 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
32624 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
32625 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
32626 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
32627
32628 2013-02-12 Richard Biener <rguenther@suse.de>
32629
32630 PR lto/56295
32631 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
32632 decls again if possible.
32633
32634 2013-02-12 Richard Biener <rguenther@suse.de>
32635
32636 PR middle-end/56288
32637 * tree-ssa.c (verify_ssa_name): Fix check, move
32638 SSA_NAME_IN_FREE_LIST check up.
32639
32640 2013-02-12 Jakub Jelinek <jakub@redhat.com>
32641 Steven Bosscher <steven@gcc.gnu.org>
32642
32643 PR rtl-optimization/56151
32644 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
32645 equal to op0 or op1, and last_insn pattern is CODE operation
32646 with MEM dest and one of the operands matches that MEM.
32647
32648 2013-02-11 Sriraman Tallam <tmsriram@google.com>
32649
32650 * doc/extend.texi: Document Function Multiversioning and "default"
32651 parameter string to target attribute.
32652 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
32653 target attribute parameter is "default".
32654 (ix86_compare_version_priority): Remove checks for target attribute.
32655 (ix86_mangle_function_version_assembler_name): Change error to sorry.
32656 Remove check for target attribute equal to NULL. Add assert.
32657 (ix86_generate_version_dispatcher_body): Change error to sorry.
32658
32659 2013-02-11 Iain Sandoe <iain@codesourcery.com>
32660 Jack Howarth <howarth@bromo.med.uc.edu>
32661 Patrick Marlier <patrick.marlier@gmail.com>
32662
32663 PR libitm/55693
32664 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
32665 define ENDFILE_SPEC as TM_DESTRUCTOR.
32666 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
32667
32668 2013-02-11 Alexander Potapenko <glider@google.com>
32669 Jack Howarth <howarth@bromo.med.uc.edu>
32670 Jakub Jelinek <jakub@redhat.com>
32671
32672 PR sanitizer/55617
32673 * config/darwin.c (cdtor_record): Rename ctor_record.
32674 (sort_cdtor_records): Rename sort_ctor_records.
32675 (finalize_dtors): New routine to sort destructors by
32676 priority before use in assemble_integer.
32677 (machopic_asm_out_destructor): Use finalize_dtors if needed.
32678
32679 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
32680
32681 PR rtl-optimization/56275
32682 * simplify-rtx.c (avoid_constant_pool_reference): Check that
32683 offset is non-negative and less than cmode size before
32684 calling simplify_subreg.
32685
32686 2013-02-11 Richard Biener <rguenther@suse.de>
32687
32688 PR tree-optimization/56264
32689 * cfgloop.h (fix_loop_structure): Adjust prototype.
32690 * loop-init.c (fix_loop_structure): Return the number of
32691 newly discovered loops.
32692 * tree-cfgcleanup.c (repair_loop_structures): When new loops
32693 are discovered, do a full loop-closed SSA rewrite.
32694
32695 2013-02-11 Richard Biener <rguenther@suse.de>
32696
32697 PR tree-optimization/56273
32698 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
32699 first VRP run.
32700 (check_array_ref): Fix missing newline in dumps.
32701 (search_for_addr_array): Likewise.
32702
32703 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
32704
32705 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
32706
32707 2013-02-09 Jakub Jelinek <jakub@redhat.com>
32708
32709 PR target/56256
32710 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
32711
32712 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
32713
32714 PR rtl-optimization/56246
32715 * lra-constraints.c (simplify_operand_subreg): Try to reuse
32716 reload pseudo.
32717 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
32718 constraints are satisfied.
32719
32720 2013-02-08 Jeff Law <law@redhat.com>
32721
32722 PR debug/53948
32723 * emit-rtl.c (reg_is_parm_p): New function.
32724 * regs.h (reg_is_parm_p): New prototype.
32725 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
32726 callee-clobbered registers.
32727
32728 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
32729
32730 PR target/56043
32731 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
32732 If there is no implicit builtin declaration, just return NULL.
32733
32734 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
32735
32736 * config/i386/sse.md (FMAMODEM): New mode iterator.
32737 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
32738 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
32739
32740 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
32741
32742 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
32743 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
32744 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
32745
32746 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32747
32748 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
32749 (microblaze*-*-elf): Likewise.
32750 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
32751 LINK_SPEC.
32752 * config/microblaze/microblaze-c.c: Add builtin defines for
32753 _LITTLE_ENDIAN and _BIG_ENDIAN.
32754 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
32755 add to TARGET_DEFAULT flags.
32756 Expand ASM_SPEC and LINK_SPEC.
32757 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
32758 * config/microblaze/microblaze.md: Update extendsidi2 and
32759 movdi_internal instructions to use low-order / high-order reg
32760 print_operands.
32761 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
32762 options and inversemask / mask of LITTLE_ENDIAN.
32763 * config/microblaze/t-microblaze: Expand multilib options to
32764 include mlittle-endian (le) and update exceptions patterns.
32765
32766 2013-02-08 Jakub Jelinek <jakub@redhat.com>
32767
32768 PR rtl-optimization/56195
32769 * lra-constraints.c (get_reload_reg): Don't reuse regs
32770 if they have smaller mode than requested, if they have
32771 wider mode than requested, try to return a SUBREG.
32772
32773 PR tree-optimization/56250
32774 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
32775 if type is unsigned and code isn't MULT_EXPR.
32776
32777 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
32778
32779 PR tree-optimization/56064
32780 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
32781 bits according to mode.
32782 * fixed-value.h (fixed_from_double_int)
32783 (const_fixed_from_double_int): Adjust comments.
32784
32785 2013-02-08 Richard Biener <rguenther@suse.de>
32786
32787 PR lto/56231
32788 * lto-streamer.h (struct data_in): Remove current_file, current_line
32789 and current_col members.
32790 * lto-streamer-out.c (lto_output_location): Stream changed bits
32791 en-block for efficiency.
32792 * lto-streamer-in.c (clear_line_info): Remove.
32793 (lto_input_location): Cache current file, line and column
32794 globally via local statics. Read changed bits en-block.
32795 (input_function): Do not call clear_line_info.
32796 (lto_read_body): Likewise.
32797 (lto_input_toplevel_asms): Likewise.
32798
32799 2013-02-08 Michael Matz <matz@suse.de>
32800
32801 PR tree-optimization/52448
32802 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
32803 (nt_call_phase): New static.
32804 (add_or_mark_expr): Only mark accesses with newer phase than any
32805 call seen.
32806 (nonfreeing_call_p): New.
32807 (nt_init_block): Update nt_call_phase, mark blocks as visited.
32808 (nt_fini_block): Keep blocks marked as visited.
32809 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
32810
32811 2013-02-08 Richard Biener <rguenther@suse.de>
32812
32813 * ira.c (ira): Free broken dominator information.
32814
32815 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
32816
32817 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
32818
32819 2013-02-08 Marek Polacek <polacek@redhat.com>
32820
32821 * cfgloop.c (verify_loop_structure): Add more checking of headers.
32822
32823 2013-02-08 Richard Biener <rguenther@suse.de>
32824
32825 PR middle-end/56181
32826 * cfgloop.h (flow_loops_find): Adjust.
32827 (bb_loop_header_p): Declare.
32828 * cfgloop.c (bb_loop_header_p): New function split out from ...
32829 (flow_loops_find): ... here. Adjust function signature,
32830 support incremental loop structure update.
32831 (verify_loop_structure): Cleanup. Verify a loop is a loop.
32832 * cfgloopmanip.c (fix_loop_structure): Move ...
32833 * loop-init.c (fix_loop_structure): ... here.
32834 (apply_loop_flags): Split out from ...
32835 (loop_optimizer_init): ... here.
32836 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
32837 in incremental mode, only remove dead loops here.
32838
32839 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
32840
32841 PR target/54222
32842 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
32843 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
32844 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
32845 (*round<mode>3.libgcc): New insns for fixed-modes.
32846 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
32847 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
32848 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
32849 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
32850 implementations. Define to __builtin_avr_absFX,
32851 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
32852 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
32853 __builtin_avr_countlsFX, respectively.
32854 * config/avr/avr-c.c (target.h): Include it.
32855 (enum avr_builtin_id): New enum.
32856 (avr_resolve_overloaded_builtin): New static function.
32857 (avr_register_target_pragmas): Use it to set
32858 targetm.resolve_overloaded_builtin.
32859 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
32860 tree nodes used by DEF_BUILTIN.
32861 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
32862 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
32863 <AVR_BUILTIN_xxBITS>: Same.
32864
32865 2013-02-08 Richard Biener <rguenther@suse.de>
32866
32867 * cfgloop.c (verify_loop_structure): Properly handle
32868 a loop exiting to another loop header.
32869 * ira-int.h (ira_loops): Remove.
32870 * ira.c (ira_loops): Remove.
32871 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
32872 (do_reload): Use loop_optimizer_finalize.
32873 * ira-build.c (create_loop_tree_nodes): Use get_loops and
32874 number_of_loops to access the loop tree.
32875 (more_one_region_p): Likewise.
32876 (finish_loop_tree_nodes): Likewise.
32877 (rebuild_regno_allocno_maps): Likewise.
32878 (mark_loops_for_removal): Likewise.
32879 (mark_all_loops_for_removal): Likewise.
32880 (remove_unnecessary_regions): Likewise.
32881 (ira_build): Likewise.
32882 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
32883
32884 2013-02-08 Richard Biener <rguenther@suse.de>
32885
32886 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
32887 * ipa-pure-const.c (analyze_function): Avoid calling
32888 mark_irreducible_loops twice.
32889 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
32890
32891 2013-02-07 David S. Miller <davem@davemloft.net>
32892
32893 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
32894 on 'reg'.
32895 * var-tracking.c (vt_add_function_parameter): Test the presence of
32896 HAVE_window_save properly and do not remap argument registers when
32897 we have a leaf function.
32898
32899 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
32900
32901 PR bootstrap/56227
32902 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
32903 instead of "ll".
32904 * config/i386/i386.c (ix86_print_operand): Ditto.
32905
32906 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
32907
32908 * lra-constraints.c (process_alt_operands): Fix recently added comment.
32909
32910 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
32911
32912 PR rtl-optimization/56225
32913 * lra-constraints.c (process_alt_operands): Check that reload hard
32914 reg can hold value for strict_low_part.
32915
32916 2013-02-07 Jakub Jelinek <jakub@redhat.com>
32917
32918 PR debug/56154
32919 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
32920 dwarf2out_end_function.
32921 (in_first_function_p, maybe_at_text_label_p,
32922 first_loclabel_num_not_at_text_label): New variables.
32923 (dwarf2out_var_location): In the first function find out
32924 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
32925 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
32926 functions.
32927
32928 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
32929
32930 PR rtl-optimization/56178
32931 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
32932 SUBREG of a register. Tidy up related block of code.
32933 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
32934 note if the source is a register or a SUBREG of a register.
32935
32936 2013-02-07 Jakub Jelinek <jakub@redhat.com>
32937
32938 PR target/56228
32939 * config/rs6000/rs6000.md (ptrm): New mode attr.
32940 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
32941 call_value_indirect_aix<pttrsize>,
32942 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
32943 m in constraints.
32944
32945 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
32946
32947 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
32948 if -bnortl. Convert to strcmp and strncmp.
32949
32950 2013-02-07 Alan Modra <amodra@gmail.com>
32951
32952 PR target/54009
32953 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
32954 addresses won't wrap when offsetting.
32955 (rs6000_secondary_reload): Provide secondary reloads needed for
32956 wrapping LO_SUM addresses.
32957
32958 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
32959
32960 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
32961 MACH, just __MACH__.
32962
32963 2013-02-06 Richard Biener <rguenther@suse.de>
32964
32965 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
32966 instead of calling fix_loop_structure.
32967
32968 2013-02-06 Jakub Jelinek <jakub@redhat.com>
32969
32970 PR middle-end/56217
32971 * omp-low.c (use_pointer_for_field): Return false if
32972 lower_send_shared_vars doesn't generate any copy-out code.
32973
32974 2013-02-06 Tom de Vries <tom@codesourcery.com>
32975
32976 PR rtl-optimization/56131
32977 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
32978 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
32979 of the label is NULL. Add comment.
32980
32981 2013-02-05 Jakub Jelinek <jakub@redhat.com>
32982
32983 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
32984
32985 PR sanitizer/55374
32986 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
32987 (STATIC_LIBTSAN_LIBS): Likewise.
32988 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
32989 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
32990 is defined, don't add anything else beyond that.
32991 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
32992 (LINK_COMMAND_SPEC): Use them.
32993
32994 PR tree-optimization/56205
32995 * tree-stdarg.c (check_all_va_list_escapes): Return true if
32996 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
32997 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
32998
32999 2013-02-05 Richard Biener <rguenther@suse.de>
33000
33001 PR tree-optimization/53342
33002 PR tree-optimization/53185
33003 * tree-vectorizer.h (vect_check_strided_load): Remove.
33004 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
33005 not disallow peeling for vectorized strided loads.
33006 (vect_check_strided_load): Make static and simplify.
33007 (vect_analyze_data_refs): Adjust.
33008 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
33009 correctly when vectorizing strided loads.
33010
33011 2013-02-05 Richard Biener <rguenther@suse.de>
33012
33013 * doc/install.texi: Refer to ISL, not PPL.
33014
33015 2013-02-05 Jan Hubicka <jh@suse.cz>
33016
33017 PR tree-optimization/55789
33018 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
33019
33020 2013-02-05 Jan Hubicka <jh@suse.cz>
33021
33022 PR tree-optimization/55789
33023 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
33024 the dead call anyway.
33025
33026 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
33027
33028 PR sanitizer/55374
33029 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
33030
33031 2013-02-04 Alexander Potapenko <glider@google.com>
33032 Jack Howarth <howarth@bromo.med.uc.edu>
33033 Jakub Jelinek <jakub@redhat.com>
33034
33035 PR sanitizer/55617
33036 * config/darwin.c (sort_ctor_records): Stabilized qsort
33037 on constructor priority by using original position.
33038 (finalize_ctors): New routine to sort constructors by
33039 priority before use in assemble_integer.
33040 (machopic_asm_out_constructor): Use finalize_ctors if needed.
33041
33042 2013-02-04 Jakub Jelinek <jakub@redhat.com>
33043
33044 PR libstdc++/54314
33045 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
33046 about visibility on artificial decls.
33047 * config/sol2.c (solaris_assemble_visibility): Likewise.
33048
33049 2013-02-04 Kai Tietz <ktietz@redhat.com>
33050
33051 PR target/56186
33052 * config/i386/i386.c (function_value_ms_64): Add additional valtype
33053 argument and improve checking of return-argument types for 16-byte
33054 modes.
33055 (ix86_function_value_1): Add additional valtype argument on call
33056 of function_value_64.
33057 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
33058 handling infunction_value_64 function.
33059
33060 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
33061
33062 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
33063
33064 2013-02-04 Richard Biener <rguenther@suse.de>
33065
33066 PR tree-optimization/56188
33067 * tree-ssa-structalias.c (label_visit): Consider case with
33068 initially non-empty points-to set.
33069 (perform_var_substitution): Dump node mapping and clean up.
33070
33071 2013-02-04 Richard Guenther <rguenther@suse.de>
33072
33073 PR lto/56168
33074 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
33075 node prevail as last resort.
33076 (lto_symtab_merge_decls): Remove guard on LTRANS here.
33077 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
33078
33079 2013-02-04 Richard Biener <rguenther@suse.de>
33080
33081 PR tree-optimization/56113
33082 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
33083 Merge into ...
33084 (equiv_class_lookup_or_add): ... this.
33085 (label_visit): Adjust and fix error in previous patch.
33086 (perform_var_substitution): Adjust.
33087
33088 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
33089
33090 * config/sh/divtab.c: Fix formatting and comments throughout the file.
33091 * config/sh/sh4-300.md: Likewise.
33092 * config/sh/sh4a.md: Likewise.
33093 * config/sh/constraints.md: Likewise.
33094 * config/sh/sh.md: Likewise.
33095 * config/sh/netbsd-elf.h: Likewise.
33096 * config/sh/predicates.md: Likewise.
33097 * config/sh/sh-protos.h: Likewise.
33098 * config/sh/ushmedia.h: Likewise.
33099 * config/sh/linux.h: Likewise.
33100 * config/sh/sh.c: Likewise.
33101 * config/sh/superh.h: Likewise.
33102 * config/sh/elf.h: Likewise.
33103 * config/sh/sh4.md: Likewise.
33104 * config/sh/sh.h: Likewise.
33105
33106 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33107
33108 * config/pa/constraints.md: Adjust unused letters. Change "T"
33109 constraint to match_test floating_point_store_memory_operand().
33110 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
33111 (base14_operand): New.
33112 (floating_point_store_memory_operand): New.
33113 (integer_store_memory_operand): Revise to use base14_operand and
33114 reg_plus_base_memory_operand.
33115 (move_dest_operand): Allow symbolic_memory_operands.
33116 (symbolic_memory_operand): Check for LO_SOM.
33117 (symbolic_operand): Change default case to break.
33118 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
33119 CONST_DOUBLE values to be reloaded by putting them into memory when
33120 the destination is a floating point register.
33121 (movdf): Remove code to handle CONST_DOUBLE.
33122 (movsf): Likewise.
33123 (reload_indf_r1): New.
33124 (reload_insf_r1): New.
33125 Consistently use "Q" and "T" constraints with integer and floating
33126 point move instructions, respectively.
33127 (movdi): Remove FAIL.
33128 Change predicate for source operand unamed DImode move from
33129 general_operand to move_src_operand.
33130 (umulsidi3): Change predicate for destination operand to
33131 register_operand.
33132 Likewise for similar unamed patterns.
33133 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
33134 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
33135 (hppa_legitimize_address): Simplify mask calculation.
33136 (pa_emit_move_sequence): Revised handling of secondary reloads from
33137 REG+D addresses for floating point loads and stores. Directly handle
33138 loading CONST0_RTX (mode) to a floating point register.
33139 (pa_secondary_reload): Handle reloading DF and SFmode constant values
33140 to floating point registers. Don't restrict secondary reloads to
33141 floating point registers to integer modes. Revise some comments and
33142 cleanup some code.
33143 (TARGET_LEGITIMATE_ADDRESS_P): Define.
33144 (pa_legitimate_address_p): New.
33145 (pa_legitimize_reload_address): New.
33146 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
33147 (STRICT_REG_OK_FOR_BASE_P): New.
33148 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
33149 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
33150
33151 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
33152 Andrew Dixie <andrewd@gentrack.com>
33153
33154 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
33155 flag set.
33156
33157 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
33158
33159 * expmed.c (extract_bit_field_1): Pass the full width of the
33160 structure to get_best_reg_extraction_insn.
33161
33162 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
33163
33164 PR target/54601
33165 * configure.ac (use_cxa_atexit): Add AIX.
33166 * configure: Regenerate.
33167
33168 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
33169
33170 2013-02-01 Jakub Jelinek <jakub@redhat.com>
33171
33172 PR debug/54793
33173 * final.c (need_profile_function): New variable.
33174 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
33175 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
33176 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
33177 notes, targetm.asm_out.function_prologue doesn't emit anything,
33178 HAVE_prologue and profiler should be emitted before prologue,
33179 set need_profile_function instead of emitting it.
33180 (final_scan_insn): If need_profile_function, emit
33181 profile_function on the first NOTE_INSN_BASIC_BLOCK or
33182 NOTE_INSN_FUNCTION_BEG note.
33183
33184 2013-02-01 Richard Henderson <rth@redhat.com>
33185
33186 * config/rs6000/rs6000.md (smulditi3): New.
33187 (umulditi3): New.
33188
33189 * config/alpha/alpha.md (umulditi3): New.
33190
33191 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
33192
33193 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
33194 (ASM_OUTPUT_ALIGNED_LOCAL): New.
33195
33196 2013-02-01 Richard Biener <rguenther@suse.de>
33197
33198 PR tree-optimization/56113
33199 * tree-ssa-structalias.c (label_visit): Reduce work for
33200 single-predecessor nodes.
33201
33202 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
33203
33204 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
33205 range isn't testing for zero.
33206
33207 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
33208
33209 PR middle-end/56113
33210 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
33211
33212 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
33213 Nick Clifton <nickc@redhat.com>
33214
33215 * config/v850/constraints.md (Q): Define as a memory constraint.
33216 * config/v850/predicates.md (label_ref_operand): New predicate.
33217 (e3v5_shift_operand): New predicate.
33218 (ior_operator): New predicate.
33219 * config/v850/t-v850: Add e3v5 multilib.
33220 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
33221 (v850_gen_movdi): Prototype.
33222 * config/v850/v850.c: Add support for e3v5 architecture.
33223 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
33224 TARGET_V850E_UP.
33225 (construct_save_jarl): Add e3v5 long JARL support.
33226 (v850_adjust_insn_length): New function. Adjust length of call
33227 insns when using e3v5 instructions.
33228 (v850_gen_movdi): New function: Generate instructions to move a
33229 DImode value.
33230 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
33231 (CPP_SPEC): Define __v850e3v5__ as appropriate.
33232 (TARGET_USE_FPU): Enable for e3v5.
33233 (CONST_OK_FOR_W): New macro.
33234 (ADJUST_INSN_LENGTH): Define.
33235 * config/v850/v850.md (UNSPEC_LOOP): Define.
33236 (attr cpu): Add v850e3v5.
33237 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
33238 (movdi): New pattern.
33239 (movdi_internal): New pattern.
33240 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
33241 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
33242 (cstoresf4): Likewise.
33243 (cstoredf4): Likewise.
33244 (insv): New pattern.
33245 (rotlso3_a): New pattern.
33246 (rotlsi3_b): New pattern
33247 (rotlsi3_v850e3v5): New pattern.
33248 (doloop_begin): New pattern.
33249 (fix_loop_counter): New pattern.
33250 (doloop_end): New pattern.
33251 (branch_normal): Add e3v5 long branch support.
33252 (branch_invert): Likewise.
33253 (branch_z_normal): Likewise.
33254 (branch_z_invert): Likewise.
33255 (branch_nz_normal): Likewise.
33256 (branch_nz_invert): Likewise.
33257 (call_internal_short): Add e3v5 register-indirect JARL support.
33258 (call_internal_long): Likewise.
33259 (call_value_internal_short): Likewise.
33260 (call_value_internal_long): Likewise.
33261 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
33262 (mloop): New option.
33263 * config.gcc: Add support for configuring v840e3v5 target.
33264 * doc/invoke.texi: Document new v850 specific command line options.
33265
33266 2013-01-31 Paul Koning <ni1d@arrl.net>
33267
33268 PR debug/55059
33269 PR debug/54508
33270 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
33271 children if parent is a class.
33272 (prune_unused_types_prune): Don't add DW_AT_declaration.
33273
33274 2013-01-31 Richard Biener <rguenther@suse.de>
33275
33276 PR tree-optimization/56157
33277 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
33278 match up operand with SLP child.
33279
33280 2013-01-31 Jason Merrill <jason@redhat.com>
33281
33282 PR debug/54410
33283 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
33284 parameters the first time.
33285 (gen_scheduled_generic_parms_dies): Check completeness here.
33286
33287 2013-01-31 Richard Biener <rguenther@suse.de>
33288
33289 PR middle-end/53073
33290 * common.opt (faggressive-loop-optimizations): New flag,
33291 enabled by default.
33292 * doc/invoke.texi (faggressive-loop-optimizations): Document.
33293 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
33294 infer_loop_bounds_from_undefined by it.
33295
33296 2013-01-31 Richard Biener <rguenther@suse.de>
33297
33298 PR tree-optimization/56150
33299 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
33300 visit virtual operands.
33301 (find_uses_to_rename_bb): Likewise.
33302
33303 2013-01-31 Richard Biener <rguenther@suse.de>
33304
33305 PR tree-optimization/56150
33306 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
33307 mixed store non-store stmts.
33308
33309 2013-01-30 Jakub Jelinek <jakub@redhat.com>
33310
33311 PR sanitizer/55374
33312 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
33313 LIBASAN_EARLY_SPEC is defined.
33314 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
33315 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
33316 before %o.
33317 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
33318
33319 PR c++/55742
33320 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
33321 invalid args instead of ICEing on it.
33322 (ix86_valid_target_attribute_tree): Return error_mark_node if
33323 ix86_valid_target_attribute_inner_p failed.
33324 (ix86_valid_target_attribute_p): Return false only if
33325 ix86_valid_target_attribute_tree returned error_mark_node. Allow
33326 target("default") attribute.
33327 (sorted_attr_string): Change argument from const char * to tree,
33328 merge in all target attribute arguments rather than just one.
33329 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
33330 instead of free. Avoid using strcat.
33331 (ix86_mangle_function_version_assembler_name): Mangle
33332 target("default") as if no target attribute is present. Adjust
33333 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
33334 instead of xmalloc and XDELETEVEC instead of free.
33335 (ix86_function_versions): Don't return true if one of the decls
33336 doesn't have target attribute. If they don't and one of the decls
33337 is DECL_FUNCTION_VERSIONED, report an error. Adjust
33338 sorted_attr_string caller. Use XDELETEVEC instead of free.
33339 (ix86_supports_function_versions): Remove.
33340 (make_name): Fix up formatting.
33341 (make_dispatcher_decl): Remove resolver_name and its initialization.
33342 Avoid leaking memory.
33343 (is_function_default_version): Return true if there is
33344 target("default") attribute rather than no target attribute at all.
33345 (make_resolver_func): Avoid leaking memory.
33346 (ix86_generate_version_dispatcher_body): Likewise.
33347 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
33348 * target.def (supports_function_versions): Remove.
33349 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
33350 * doc/tm.texi: Regenerated.
33351
33352 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
33353
33354 PR rtl-optimization/56144
33355 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
33356 for values with side effects.
33357
33358 2013-01-30 Richard Biener <rguenther@suse.de>
33359
33360 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
33361 (sparseset_pop): Likewise.
33362 * cfganal.c (compute_idf): Likewise. Increase work-stack size
33363 to be able to use quick_push in the worker loop.
33364
33365 2013-01-30 Marek Polacek <polacek@redhat.com>
33366
33367 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
33368
33369 2013-01-30 Richard Biener <rguenther@suse.de>
33370
33371 PR lto/56147
33372 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
33373
33374 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
33375
33376 PR tree-optimization/56064
33377 * fixed-value.c (fixed_from_double_int): New function.
33378 * fixed-value.h (fixed_from_double_int): New prototype.
33379 (const_fixed_from_double_int): New static inline function.
33380 * fold-const.c (native_interpret_fixed): New static function.
33381 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
33382 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
33383 (native_encode_fixed): New static function.
33384 (native_encode_expr) <FIXED_CST>: Use it.
33385 (native_interpret_int): Move double_int worker code to...
33386 * double-int.c (double_int::from_buffer): ...this new static method.
33387 * double-int.h (double_int::from_buffer): Prototype it.
33388
33389 2013-01-30 Richard Biener <rguenther@suse.de>
33390
33391 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
33392 New pointer-map and obstack.
33393 (init_alias_vars): Allocate pointer-map and obstack.
33394 (delete_points_to_sets): Free them.
33395 (find_what_var_points_to): Cache result.
33396 (find_what_p_points_to): Adjust for changed interface of
33397 find_what_var_points_to.
33398 (compute_points_to_sets): Likewise.
33399 (ipa_pta_execute): Likewise.
33400
33401 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33402
33403 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
33404 * configure: Regenerate.
33405 * config.in: Regenerate.
33406 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
33407 #nobits/#progbits if supported.
33408
33409 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
33410
33411 PR target/56121
33412 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
33413 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
33414 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
33415
33416 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33417
33418 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
33419 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
33420
33421 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33422
33423 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
33424 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
33425
33426 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33427
33428 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
33429 declaration.
33430 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
33431 * config/arm/cortex-a7.md: New bypasses using
33432 arm_mac_accumulator_is_result.
33433
33434 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33435
33436 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
33437 (cortex_a7_neon_mla): Likewise.
33438 (cortex_a7_fpfmad): New reservation.
33439 (cortex_a7_fpmacs): Use ffmas and update required units.
33440 (cortex_a7_fpmuld): Update required units and latency.
33441 (cortex_a7_fpmacd): Likewise.
33442 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
33443 (cortex_a7_neon). Likewise.
33444 (bypass) Update participating units.
33445
33446 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33447
33448 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
33449 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
33450 from fmac to ffma.
33451 * config/arm/vfp11.md (vfp_farith): Use ffmas.
33452 (vfp_fmul): Use ffmad.
33453 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
33454 (cortex_r4_fmacd): Use ffmad.
33455 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
33456 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
33457 (cortex_a9_fmacd): Use ffmad.
33458 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
33459 (cortex_a8_vfp_macd): Use ffmad.
33460 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
33461 (cortex_a5_fpmacd): Use ffmad.
33462 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
33463 (cortex_a15_vfp_macd): Use ffmad.
33464 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
33465
33466 2013-01-29 Jason Merrill <jason@redhat.com>
33467
33468 PR libstdc++/54314
33469 * varasm.c (default_assemble_visibility): Don't warn about
33470 visibility on artificial decls.
33471
33472 2013-01-29 Richard Biener <rguenther@suse.de>
33473
33474 PR tree-optimization/56113
33475 * tree-ssa-structalias.c (equiv_class_lookup): Also return
33476 the bitmap leader.
33477 (label_visit): Free duplicate bitmaps and record the leader instead.
33478 (perform_var_substitution): Adjust.
33479
33480 2013-01-29 Richard Biener <rguenther@suse.de>
33481
33482 PR tree-optimization/55270
33483 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
33484 the CFG, schedule loops for fixup.
33485
33486 2013-01-29 Nick Clifton <nickc@redhat.com>
33487
33488 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
33489 SP_REG.
33490
33491 2013-01-28 Leif Ekblad <leif@rdos.net>
33492
33493 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
33494 * config/i386/i386.h (TARGET_RDOS): New macro.
33495 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
33496 * config/i386/i386.c (ix86_option_override_internal): For 64bit
33497 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
33498 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
33499 DEFAULT_LARGE_SECTION_THRESHOLD.
33500 * config/i386/i386.md (R14_REG, R15_REG): New constants.
33501 * config/i386/rdos.h: New file.
33502 * config/i386/rdos64.h: New file.
33503
33504 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
33505
33506 PR other/54814
33507 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
33508 TEST_HARD_REG_BIT.
33509
33510 2013-01-28 Jakub Jelinek <jakub@redhat.com>
33511
33512 PR rtl-optimization/56117
33513 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
33514 call cselib_lookup_from_insn on the MEM before calling
33515 add_insn_mem_dependence.
33516
33517 2013-01-28 Richard Biener <rguenther@suse.de>
33518
33519 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
33520 to a stmt that didn't have one.
33521 (copy_phis_for_bb): Likewise for PHI arguments.
33522 (copy_debug_stmt): Likewise for debug stmts.
33523
33524 2013-01-28 Richard Biener <rguenther@suse.de>
33525
33526 PR tree-optimization/56034
33527 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
33528 (partition_builtin_p): Adjust.
33529 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
33530 it is the last partition.
33531 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
33532 up the vertex for the definition.
33533 (classify_partition): Classify whether a partition is a
33534 PKIND_REDUCTION, thus has uses outside of the loop.
33535 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
33536 Merge all PKIND_REDUCTION partitions into the last partition.
33537 (tree_loop_distribution): Seed partitions from reductions as well.
33538
33539 2013-01-28 Jakub Jelinek <jakub@redhat.com>
33540
33541 PR tree-optimization/56125
33542 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
33543 pow(x,c) into sqrt(x) * powi(x, n/2) or
33544 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
33545 optimizing for size.
33546 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
33547 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
33548 integer.
33549
33550 PR tree-optimization/56094
33551 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
33552 to UNKNOWN_LOCATION while gimplifying expr.
33553
33554 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
33555
33556 PR target/56114
33557 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
33558 operand 0 in movabs insn template for -masm=intel asm alternative.
33559 (*movabs<mode>_2): Ditto for operand 1.
33560
33561 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
33562
33563 PR target/54663
33564 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
33565 of microblaze-c.o
33566
33567 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33568
33569 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
33570 tm_file.
33571
33572 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33573
33574 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
33575 Undef to avoid warning.
33576
33577 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
33578
33579 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
33580 * configure: Regenerate.
33581
33582 2013-01-25 Jakub Jelinek <jakub@redhat.com>
33583
33584 PR tree-optimization/56098
33585 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
33586 for stmts with volatile ops.
33587 (cond_store_replacement): Don't optimize if assign has volatile ops.
33588 (cond_if_else_store_replacement_1): Don't optimize if either
33589 then_assign or else_assign have volatile ops.
33590 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
33591 volatile ops.
33592
33593 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
33594
33595 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
33596
33597 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
33598
33599 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
33600 missing ':' in asm example.
33601
33602 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
33603
33604 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
33605 entries into lane and laneq entries.
33606 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
33607 Remove AdvSIMD scalar modes.
33608 (aarch64_sq<r>dmulh_laneq<mode>): New.
33609 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
33610 modes.
33611 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
33612 builtin implementations to relfect changes in RTL in aarch64-simd.md.
33613 * config/aarch64/iterators.md (VCOND): New.
33614 (VCONQ): New.
33615
33616 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
33617
33618 PR target/54222
33619 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
33620 Add NULL LIBNAME argument to existing definitions.
33621 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
33622 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
33623 * config/avr/avr.c (DEF_BUILTIN): Same.
33624 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
33625 (avr_expand_builtin): Expand to a vanilla call if a libgcc
33626 implementation is available (DECL_ASSEMBLER_NAME is set).
33627 (avr_fold_absfx): New static function.
33628 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
33629 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
33630 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
33631 AVR_BUILTIN_ABSLLK.
33632 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
33633 (abshk, absk, abslk, absllk): Provide as static inline functions.
33634
33635 2013-01-25 Marek Polacek <polacek@redhat.com>
33636
33637 PR tree-optimization/56035
33638 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
33639
33640 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
33641
33642 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
33643 (*movtf_internal_rex64): Add (!o,C) alternative
33644 (*movxf_internal_rex64): Ditto.
33645 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
33646
33647 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
33648
33649 * doc/invoke.texi: fix typo.
33650 * doc/objc.texi: fix typo.
33651
33652 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
33653
33654 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
33655 for the first two alternatives.
33656
33657 2013-01-24 Diego Novillo <dnovillo@google.com>
33658
33659 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
33660 (ggc-zone.o): Remove.
33661 * configure.ac: Remove option --with-gc.
33662 * configure: Re-generate.
33663 * doc/install.texi: Remove documentation for --with-gc.
33664 * gengtype.c (write_enum_defn): Remove. Update all users.
33665 (write_Types_process_field): Remove generation of gt_e_* argument.
33666 (output_type_enum): Remove. Update all users.
33667 (write_enum_defn): Remove. Update all users.
33668 (enum alloc_zone): Remove. Update all users.
33669 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
33670 * ggc-common.c (ggc_splay_alloc): Remove first argument.
33671 Update all callers.
33672 (struct ptr_data): Remove field TYPE. Update all users.
33673 (gt_pch_note_object): Remove argument TYPE. Update all users.
33674 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
33675 Update all users.
33676 * ggc-none.c (ggc_alloc_typed_stat): Remove.
33677 (struct alloc_zone): Remove.
33678 (ggc_internal_alloc_zone_stat): Remove.
33679 (ggc_internal_cleared_alloc_zone_stat): Remove.
33680 * ggc-page.c (ggc_alloc_typed_stat): Remove.
33681 (ggc_pch_count_object): Remove last argument. Update all users.
33682 (ggc_pch_alloc_object): Remove last argument. Update all users.
33683 (struct alloc_zone): Remove.
33684 * ggc-zone.c: Remove.
33685 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
33686 (struct alloc_zone): Remove.
33687 (ggc_alloc_typed_stat): Remove.
33688 (ggc_alloc_typed): Remove.
33689 (ggc_splay_alloc): Remove first argument.
33690 (rtl_zone): Remove. Update all users.
33691 (tree_zone): Remove. Update all users.
33692 (tree_id_zone): Remove. Update all users.
33693 (ggc_internal_zone_alloc_stat): Remove. Update all users.
33694 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
33695 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
33696 * tree-ssanames.c: Remove references to zone allocator in comments.
33697
33698 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
33699
33700 * config/avr/avr.c (avr_out_fract): Make register numbers that
33701 might be outside of source operand signed.
33702
33703 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
33704
33705 * config/i386/constraints.md (Yf): New constraint.
33706 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
33707 of f constraint to conditionaly disable x87 register preferences.
33708 (*movdf_internal): Ditto.
33709 (*movsf_internal): Ditto.
33710
33711 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
33712
33713 PR inline-asm/55934
33714 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
33715 that have operands with impossible constraints.
33716 Add a FIXME for a speed-up opportunity.
33717 * lra-constraints.c (process_alt_operands): Verify that a class
33718 selected from constraints on asms is valid for the operand mode.
33719 (curr_insn_transform): Remove incorrect comment.
33720
33721 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
33722
33723 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
33724 TOC operand is a valid symbol ref in the constant pool.
33725
33726 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33727
33728 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
33729
33730 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
33731
33732 PR target/54222
33733 * config/avr/stdfix.h: New file.
33734 * t-avr (stdfix-gcc.h): New rule to build it.
33735 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
33736
33737 2013-01-23 Kostya Serebryany <kcc@google.com>
33738
33739 * config/darwin.h: remove dependency on
33740 CoreFoundation (asan on Mac OS).
33741
33742 2013-01-23 Jakub Jelinek <jakub@redhat.com>
33743
33744 PR target/49069
33745 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
33746 instead of cmpdi_operand for first comparison operand.
33747 Don't assert that comparison operands aren't both constants.
33748
33749 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
33750
33751 * doc/install.texi (Downloading the Source): Update references to
33752 downloading separate components.
33753
33754 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
33755
33756 * doc/extend.texi (__int128): Improve grammar.
33757
33758 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
33759
33760 PR target/56028
33761 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
33762 alternative to (o,r).
33763 (*movdi_internal_rex64): Remove (!o,n) alternative.
33764 (DImode immediate->memory splitter): Remove.
33765 (DImode immediate->memory peephole2): Remove.
33766 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
33767 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
33768 alternative to (!o,*r).
33769 (*movtf_internal_sse): New pattern.
33770 (*movxf_internal_rex64): New pattern.
33771 (*movxf_internal): Disable for TARGET_64BIT.
33772 (*movdf_internal_rex64): Remove (!o,F) alternative.
33773
33774 2013-01-22 Jakub Jelinek <jakub@redhat.com>
33775
33776 PR middle-end/56074
33777 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
33778 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
33779 * tree-vect-loop-manip.c (find_loop_location): Also ignore
33780 stmt locations where LOCATION_LOCUS of the stmt location is
33781 UNKNOWN_LOCATION or BUILTINS_LOCATION.
33782
33783 PR target/55686
33784 * config/i386/i386.md (UNSPEC_STOS): New.
33785 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
33786 *strsetqi_1): Add UNSPEC_STOS.
33787
33788 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
33789
33790 PR c++/56067
33791 * doc/invoke.texi: Remove left over -Wsynth example.
33792
33793 2013-01-21 Jakub Jelinek <jakub@redhat.com>
33794
33795 PR tree-optimization/56051
33796 * fold-const.c (fold_binary_loc): Don't fold
33797 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
33798 a narrowing conversion, or widening conversion from signed
33799 to unsigned.
33800
33801 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
33802
33803 PR rtl-optimization/56023
33804 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
33805 dependent on debug instruction.
33806
33807 2013-01-21 Martin Jambor <mjambor@suse.cz>
33808
33809 PR middle-end/56022
33810 * function.c (allocate_struct_function): Call
33811 invoke_set_current_function_hook earlier.
33812
33813 2013-01-21 Jakub Jelinek <jakub@redhat.com>
33814
33815 * reload1.c (init_reload): Only initialize reload_obstack
33816 during the first call.
33817
33818 2013-01-21 Marek Polacek <polacek@redhat.com>
33819
33820 * cfgloop.c (verify_loop_structure): Fix up grammar.
33821
33822 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
33823
33824 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
33825 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
33826
33827 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33828
33829 PR target/56058
33830 * config/arm/marvell-pj4.md: Update copyright year.
33831 Fix up use of alu to alu_reg and simple_alu_imm.
33832
33833 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
33834
33835 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
33836
33837 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
33838
33839 PR target/55433
33840 * lra-constraints.c (curr_insn_transform): Don't reuse original
33841 insn for secondary memory move when memory mode should be different.
33842
33843 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33844
33845 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
33846 atomic_storedi_1): New patterns.
33847
33848 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
33849
33850 btver2 pipeline descriptions.
33851 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
33852 descriptions.
33853 * config/i386/i386.md (btver2_decode): New type attributes.
33854 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
33855 type attributes.
33856 * config/i386/btver2.md: New file describing btver2 pipelines.
33857
33858 2013-01-19 Andrew Pinski <apinski@cavium.com>
33859
33860 PR tree-optimization/52631
33861 * tree-ssa-sccvn (visit_use): Before looking up the original
33862 statement, try looking up the simplified expression.
33863
33864 2013-01-19 Anthony Green <green@moxielogic.com>
33865
33866 * config/moxie/moxie.c (moxie_expand_prologue): Set
33867 current_function_static_stack_size.
33868
33869 2013-01-18 Jakub Jelinek <jakub@redhat.com>
33870
33871 PR tree-optimization/56029
33872 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
33873 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
33874
33875 2013-01-18 Sharad Singhai <singhai@google.com>
33876
33877 PR tree-optimization/55995
33878 * dumpfile.c (dump_loc): Print location only if available.
33879 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
33880
33881 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
33882
33883 PR target/55433
33884 * lra-constraints.c (curr_insn_transform): Reuse original insn for
33885 secondary memory move.
33886 (inherit_reload_reg): Use rclass instead of cl for
33887 check_secondary_memory_needed_p.
33888
33889 2013-01-18 Jakub Jelinek <jakub@redhat.com>
33890
33891 PR middle-end/56015
33892 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
33893 the case where writing real complex part of target modifies op1.
33894
33895 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
33896
33897 * config/aarch64/aarch64-simd.md
33898 (aarch64_vcond_internal<mode>): Handle unordered cases.
33899 * config/aarch64/iterators.md (v_cmp_result): New.
33900
33901 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
33902 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33903
33904 * config/arm/marvell-pj4.md: New file.
33905 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
33906 * config/arm/arm.md (generic_sched): Add marvell_pj4.
33907 (generic_vfp): Likewise.
33908 * config/arm/arm-cores.def: Add marvell-pj4.
33909 * config/arm/arm-tune.md: Regenerate.
33910 * config/arm/arm-tables.opt: Regenerate.
33911 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
33912 * doc/invoke.texi: Document marvell-pj4.
33913
33914 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
33915
33916 * config/aarch64/arm_neon.h: Map scalar types to standard types.
33917
33918 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
33919
33920 PR debug/54114
33921 PR debug/54402
33922 PR debug/49888
33923 * var-tracking.c (negative_power_of_two_p): New.
33924 (global_get_addr_cache, local_get_addr_cache): New.
33925 (get_addr_from_global_cache, get_addr_from_local_cache): New.
33926 (vt_canonicalize_addr): Rewrite using the above. Adjust the
33927 heading comment.
33928 (vt_stack_offset_p): Remove.
33929 (vt_canon_true_dep): Always canonicalize loc's address.
33930 (clobber_overlapping_mems): Make sure we have a MEM.
33931 (local_get_addr_clear_given_value): New.
33932 (val_reset): Clear local cached entries.
33933 (compute_bb_dataflow): Create and release the local cache.
33934 Disable duplicate MEMs clobbering.
33935 (emit_notes_in_bb): Clobber MEMs likewise.
33936 (vt_emit_notes): Create and release the local cache.
33937 (vt_initialize, vt_finalize): Create and release the global
33938 cache, respectively.
33939 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
33940
33941 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
33942
33943 PR libmudflap/53359
33944 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
33945 not found in the symtab.
33946
33947 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
33948
33949 PR debug/56006
33950 PR rtl-optimization/55547
33951 PR rtl-optimization/53827
33952 PR debug/53671
33953 PR debug/49888
33954 * alias.c (offset_overlap_p): New, factored out of...
33955 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
33956 the conservative special case for symbolic constants. Don't
33957 adjust zero sizes on alignment.
33958
33959 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
33960
33961 PR rtl-optimization/52573
33962 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
33963 REG_UNUSED for the same register.
33964
33965 2013-01-17 Richard Biener <rguenther@suse.de>
33966 Marek Polacek <polacek@redhat.com>
33967
33968 PR rtl-optimization/55833
33969 * loop-unswitch.c (unswitch_loops): Move loop verification...
33970 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
33971 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
33972 Set it to true when we're removing a loop from hierarchy tree in
33973 an irreducible region.
33974 (fix_bb_placements): Adjust caller.
33975 (fix_loop_placements): Likewise.
33976
33977 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
33978
33979 * config/avr/builtins.def (DEF_BUILTIN): Factor out
33980 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
33981 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
33982 Remove ID. Adjust comments.
33983 * config/avr/avr-c.c (avr_builtin_name): Remove.
33984 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
33985 * config/avr/avr.c (avr_tolower): New static function.
33986 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
33987 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
33988 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
33989 default expansion.
33990
33991 2013-01-17 Jan Hubicka <jh@suse.cz>
33992
33993 PR tree-optimization/55273
33994 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
33995
33996 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
33997
33998 PR target/55981
33999 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
34000 store through atomic_store<mode>_1.
34001 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
34002
34003 2013-01-17 Martin Jambor <mjambor@suse.cz>
34004
34005 PR tree-optimizations/55264
34006 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
34007 for virtual methods.
34008 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
34009 virtual methods before inlining is over.
34010 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
34011 virtual functions.
34012 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
34013 non-virtual.
34014
34015 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
34016
34017 PR rtl-optimization/56005
34018 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
34019 pending reads for prefetch.
34020
34021 2013-01-16 Ian Bolton <ian.bolton@arm.com>
34022
34023 * config/aarch64/aarch64.md
34024 (*cstoresi_neg_uxtw): New pattern.
34025 (*cmovsi_insn_uxtw): New pattern.
34026 (*<optab>si3_uxtw): New pattern.
34027 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
34028 (*<optab>si3_insn_uxtw): New pattern.
34029 (*bswapsi2_uxtw): New pattern.
34030
34031 2013-01-16 Richard Biener <rguenther@suse.de>
34032
34033 * tree-inline.c (tree_function_versioning): Remove set but
34034 never used variable.
34035
34036 2013-01-16 Richard Biener <rguenther@suse.de>
34037
34038 PR tree-optimization/55964
34039 * tree-flow.h (rename_variables_in_loop): Remove.
34040 (rename_variables_in_bb): Likewise.
34041 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
34042 (copy_loop_before): Adjust and delete update-ssa status.
34043 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
34044 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
34045 (rename_variables_in_loop): Remove.
34046 (slpeel_update_phis_for_duplicate_loop): Likewise.
34047 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
34048 use available cfg machinery instead of duplicating it.
34049 Update PHI nodes and perform poor-mans SSA update here.
34050 (slpeel_tree_peel_loop_to_edge): Adjust.
34051
34052 2013-01-16 Richard Biener <rguenther@suse.de>
34053
34054 PR tree-optimization/54767
34055 PR tree-optimization/53465
34056 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
34057 (vrp_visit_phi_node): For PHI arguments coming via backedges
34058 drop all symbolical range information.
34059 (execute_vrp): Compute backedges.
34060
34061 2013-01-16 Richard Biener <rguenther@suse.de>
34062
34063 * doc/install.texi: Update CLooG and ISL requirements to
34064 0.18.0 and 0.11.1.
34065
34066 2013-01-16 Christian Bruel <christian.bruel@st.com>
34067
34068 PR target/55301
34069 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
34070 (broken_move): Handle UNSPECV_SP_SWITCH_B.
34071 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
34072
34073 2013-01-16 DJ Delorie <dj@redhat.com>
34074
34075 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
34076 (UNSPECV_SP_SWITCH_E): New.
34077 (sp_switch_1): Change to an unspec.
34078 (sp_switch_2): Change to an unspec. Don't use post-inc when we
34079 replace $r15.
34080
34081 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
34082
34083 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
34084 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
34085 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
34086 (expand_mem_thread_fence): Ditto.
34087 (expand_mem_signal_fence): Ditto.
34088 (expand_atomic_load): Ditto.
34089 (expand_atomic_store): Ditto.
34090
34091 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
34092
34093 PR rtl-optimization/55547
34094 PR rtl-optimization/53827
34095 PR debug/53671
34096 PR debug/49888
34097 * alias.c (memrefs_conflict_p): Set sizes to negative after
34098 AND adjustments.
34099
34100 2013-01-15 Jakub Jelinek <jakub@redhat.com>
34101
34102 PR target/55940
34103 * function.c (thread_prologue_and_epilogue_insns): Always
34104 add crtl->drap_reg to set_up_by_prologue.set, even if
34105 stack_realign_drap is false.
34106
34107 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34108
34109 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
34110 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
34111 *call): Fix indention.
34112
34113 2013-01-15 Tom de Vries <tom@codesourcery.com>
34114
34115 PR target/55876
34116 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
34117 Update comment.
34118
34119 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
34120
34121 PR rtl-optimization/55153
34122 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
34123
34124 2013-01-15 Martin Jambor <mjambor@suse.cz>
34125
34126 PR tree-optimization/55920
34127 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
34128 accesses as grp_to_be_debug_replaced.
34129
34130 2013-01-15 Jakub Jelinek <jakub@redhat.com>
34131
34132 PR tree-optimization/55920
34133 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
34134 there is non-useless type conversion needed from debug rhs to lhs,
34135 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
34136
34137 2013-01-15 Joseph Myers <joseph@codesourcery.com>
34138 Mikael Pettersson <mikpe@it.uu.se>
34139
34140 PR target/43961
34141 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
34142 Thumb.
34143 (ASM_OUTPUT_CASE_LABEL): Remove.
34144 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
34145 * final.c (shorten_branches): Update alignment of labels before
34146 jump tables if CASE_VECTOR_SHORTEN_MODE.
34147
34148 2013-01-15 Richard Biener <rguenther@suse.de>
34149
34150 PR bootstrap/55961
34151 * system.h: Do not include gmp.h for building host tools.
34152
34153 2013-01-15 Richard Biener <rguenther@suse.de>
34154
34155 PR middle-end/55882
34156 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
34157 account for bitpos when computing alignment.
34158
34159 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
34160
34161 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
34162 (ix86_target_macros_internal): Likewise.
34163
34164 * config/i386/i386.c (m_CORE2I7): Removed.
34165 (m_CORE_HASWELL): New macro.
34166 (m_CORE_ALL): Likewise.
34167 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
34168 (initial_ix86_arch_features): Likewise.
34169 (processor_target_table): Initializations for Core avx2.
34170 (cpu_names): New names "core-avx2".
34171 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
34172 PROCESSOR_CORE_HASWELL.
34173 (ix86_issue_rate): New case.
34174 (ia32_multipass_dfa_lookahead): Likewise.
34175 (ix86_sched_init_global): Likewise.
34176
34177 * config/i386/i386.h (TARGET_HASWELL): New macro.
34178 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
34179 (processor_type): New PROCESSOR_HASWELL.
34180
34181 2013-01-15 Jakub Jelinek <jakub@redhat.com>
34182
34183 PR tree-optimization/55955
34184 * tree-vect-loop.c (vectorizable_reduction): Give up early on
34185 *SHIFT_EXPR and *ROTATE_EXPR codes.
34186
34187 PR tree-optimization/48766
34188 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
34189 -ftrapv disable -fwrapv.
34190
34191 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
34192
34193 PR target/55974
34194 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
34195 etc. to 1 and not to __flash.
34196 Use LL suffix for __INT24_MAX__ with -mint8.
34197 Use ULL suffix for __UINT24_MAX__ with -mint8.
34198
34199 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
34200
34201 * config/avr/avr-arch.h
34202 (struct base_arch_s): Use typedef avr_arch_t instead.
34203 (struct arch_info_s): Use typedef avr_arch_info_t instead.
34204 (struct mcu_type_s): Use typedef avr_mcu_t instead.
34205 * config/avr/avr.c: Same.
34206 * config/avr/avr-devices.c: Same.
34207 * config/avr/driver-avr.c: Same.
34208 * config/avr/gen-avr-mmcu-texi.c: Same.
34209 * config/avr/avr-mcus.def: Adjust comment.
34210
34211 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
34212
34213 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
34214 * config/aarch64/iterators.md (VALLDI): New.
34215
34216 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
34217 Andi Kleen <ak@linux.intel.com>
34218
34219 PR target/55948
34220 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
34221 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
34222 memmodel flag.
34223
34224 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
34225
34226 * config/avr/avr-stdint.h: Remove trailing blanks.
34227 * config/avr/avr-log.h: Same.
34228 * config/avr/avr-arch.h: Same.
34229 * config/avr/avr-devices.c: Same.
34230 * config/avr/avr-dimode.md: Same.
34231 * config/avr/predicates.md: Same.
34232 * config/avr/avr-c.c: Same. And fix typo.
34233
34234 * config/avr/avr-protos.h: Same. And:
34235 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
34236 (init_cumulative_args): Rename to avr_init_cumulative_args.
34237 (expand_prologue): Rename to avr_expand_prologue.
34238 (expand_epilogue): Rename to avr_expand_epilogue.
34239 (adjust_insn_length): Rename to avr_adjust_insn_length.
34240 (notice_update_cc): Rename to avr_notice_update_cc.
34241 (final_prescan_insn): Rename to avr_final_prescan_insn.
34242 * config/avr/avr.c: Same.
34243 * config/avr/avr.h: Same.
34244 * config/avr/avr.md: Remove trailing blanks.
34245 (prologue): Use avr_expand_prologue.
34246 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
34247
34248 2013-01-14 Richard Biener <rguenther@suse.de>
34249
34250 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
34251 verify_location, collect_subblocks): New functions.
34252 (verify_gimple_in_cfg): Verify that locations only reference
34253 BLOCKs in the functions BLOCK tree.
34254
34255 2013-01-14 Richard Biener <rguenther@suse.de>
34256
34257 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
34258 PHI argument.
34259 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
34260 unshare reference.
34261 (insert_out_of_ssa_copy_on_edge): Likewise.
34262 (rewrite_close_phi_out_of_ssa): Likewise.
34263 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
34264 debug expressions.
34265 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
34266 propagated constants.
34267 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
34268 can not be shared.
34269
34270 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
34271
34272 * config/avr/avr-modes.def: Add GPL copyright notice.
34273
34274 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
34275
34276 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
34277 MEMMODEL_MASK to determine memory model.
34278 (atomic_store<mode>): Ditto from operands[2].
34279 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
34280
34281 2013-01-13 Jakub Jelinek <jakub@redhat.com>
34282
34283 PR fortran/55935
34284 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
34285 (fold_gimple_assign): Don't call unshare_expr here.
34286 (fold_ctor_reference): Call unshare_expr.
34287
34288 2013-01-13 Terry Guo <terry.guo@arm.com>
34289
34290 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
34291 * doc/fragments.texi: Document MULTILIB_REUSE.
34292 * gcc.c (multilib_reuse): New internal spec.
34293 (set_multilib_dir): Also search multilib from multilib_reuse.
34294 * genmultilib (tmpmultilib3): Refactor code.
34295 (tmpmultilib4): Ditto.
34296 (multilib_reuse): New multilib argument.
34297
34298 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
34299
34300 * Makefile.in: Update copyright.
34301
34302 2013-01-12 Tom de Vries <tom@codesourcery.com>
34303
34304 PR middle-end/55890
34305 * calls.c (expand_call): Check if arg_nr is valid.
34306
34307 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
34308
34309 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
34310 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
34311 documentation. Add missing '__' in front of
34312 __builtin_ia32_packssdw256.
34313
34314 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34315
34316 PR target/55719
34317 * config/s390/s390.c (s390_preferred_reload_class): Do not return
34318 NO_REGS for larl operands.
34319 (s390_reload_larl_operand): Use s390_load_address instead of
34320 emit_move_insn.
34321
34322 2013-01-11 Richard Biener <rguenther@suse.de>
34323
34324 * tree-cfg.c (verify_node_sharing_1): Split out from ...
34325 (verify_node_sharing): ... here.
34326 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
34327
34328 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
34329
34330 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
34331 Substitute TREECHECKING.
34332 * configure: Regenerate.
34333 * Makefile.in (TREECHECKING): New.
34334
34335 2013-01-11 Richard Guenther <rguenther@suse.de>
34336
34337 PR tree-optimization/44061
34338 * tree-vrp.c (extract_range_basic): Compute zero as
34339 value-range for __builtin_constant_p of function parameters.
34340
34341 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
34342
34343 Update copyright years.
34344
34345 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
34346
34347 PR rtl-optimization/55672
34348 * lra-eliminations.c (mark_not_eliminable): Permit addition with
34349 const to be eliminable.
34350
34351 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
34352
34353 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
34354 * configure: Regenerate.
34355
34356 2013-01-10 Richard Biener <rguenther@suse.de>
34357
34358 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
34359
34360 2013-01-10 Richard Biener <rguenther@suse.de>
34361
34362 PR bootstrap/55792
34363 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
34364 locations for virtual PHI arguments.
34365 (rewrite_update_phi_arguments): Likewise.
34366
34367 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
34368
34369 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
34370 on to assembler.
34371
34372 2013-01-10 Jakub Jelinek <jakub@redhat.com>
34373
34374 PR tree-optimization/55921
34375 * tree-complex.c (expand_complex_asm): New function.
34376 (expand_complex_operations_1): Call it for GIMPLE_ASM.
34377
34378 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34379
34380 PR target/55718
34381 * config/s390/s390.c (s390_symref_operand_p)
34382 (s390_loadrelative_operand_p): Merge the two functions.
34383 (s390_check_qrst_address, print_operand_address): Add parameters
34384 to s390_loadrelative_operand_p invokation.
34385 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
34386 (s390_reload_larl_operand, s390_secondary_reload): Use
34387 s390_loadrelative_operand_p instead of s390_symref_operand_p.
34388 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
34389
34390 2013-01-09 Mike Stump <mikestump@comcast.net>
34391
34392 * dse.c (record_store): Remove unnecessary assert.
34393
34394 2013-01-09 Jan Hubicka <jh@suse.cz>
34395
34396 PR tree-optimization/55569
34397 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
34398 * cfgloop.h (scale_loop_profile): Likewise.
34399
34400 2013-01-09 Jan Hubicka <jh@suse.cz>
34401
34402 PR lto/45375
34403 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
34404 functions.
34405 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
34406
34407 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
34408
34409 PR middle-end/55114
34410 * expr.h (maybe_emit_group_store): Declare.
34411 * expr.c (maybe_emit_group_store): New function.
34412 * builtins.c (expand_builtin_int_roundingfn): Call it.
34413 (expand_builtin_int_roundingfn_2): Likewise.
34414
34415 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
34416
34417 PR rtl-optimization/55829
34418 * lra-constraints.c (match_reload): Add code for absent output.
34419 (curr_insn_transform): Add code for reloads of matched inputs
34420 without output.
34421
34422 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
34423
34424 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
34425 attribute of movddup insn to DF.
34426 (*vec_interleave_lowv2df): Ditto.
34427 (vec_dupv2df): Ditto.
34428
34429 2013-01-09 Jan Hubicka <jh@suse.cz>
34430
34431 PR tree-optimiation/55875
34432 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
34433 EVERY_ITERATION parameter.
34434 (number_of_iterations_exit): Check if exit is executed every iteration.
34435 (idx_infer_loop_bounds): Similarly here.
34436 (n_of_executions_at_most): Simplify
34437 to only test for cases where statement is dominated by the
34438 particular bound; handle correctly the "postdominance" test.
34439 (scev_probably_wraps_p): Use max loop iterations info
34440 as a global bound first.
34441
34442 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
34443 Nick Clifton <nickc@redhat.com>
34444
34445 * config/v850/v850.md (cbranchsf4): New pattern.
34446 (cstoresf4): New pattern.
34447 (cbranchdf4): New pattern.
34448 (cstoredf4): New pattern.
34449 (movsicc): Disallow floating point comparisons.
34450 (cmpsf_le_insn): Fix order of operators.
34451 (cmpsf_lt_insn): Likewise.
34452 (cmpsf_eq_insn): Likewise.
34453 (cmpdf_le_insn): Likewise.
34454 (cmpdf_lt_insn): Likewise.
34455 (cmpdf_eq_insn): Likewise.
34456 (cmpsf_ge_insn): Use LE comparison.
34457 (cmpdf_ge_insn): Likewise.
34458 (cmpsf_gt_insn): Use LT comparison.
34459 (cmpdf_gt_insn): Likewise.
34460 (cmpsf_ne_insn): Delete pattern.
34461 (cmpdf_ne_insn): Delete pattern.
34462 * config/v850/v850.c (v850_gen_float_compare): Use
34463 gen_cmpdf_eq_insn for NE comparison.
34464 (v850_float_z_comparison_operator)
34465 (v850_float_nz_comparison_operator): Move from here ...
34466 * config/v850/predicates.md: ... to here. Move GT and GE
34467 comparisons into v850_float_z_comparison_operator.
34468 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
34469 Delete prototype.
34470 (v850_float_nz_comparison_operator): Likewise.
34471
34472 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34473
34474 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
34475 with calls to gen_insvsi/gen_insvdi.
34476
34477 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
34478
34479 * config/i386/i386.c (initial_ix86_tune_features): Set up
34480 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
34481
34482 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
34483 Jakub Jelinek <jakub@redhat.com>
34484
34485 PR tree-optimization/48189
34486 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
34487 If nitercst is 0, don't predict the exit edge.
34488
34489 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34490
34491 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
34492 in asm_fprintf with reg_names.
34493 (aarch64_print_operand_address): Likewise.
34494 (aarch64_return_addr): Likewise.
34495 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
34496
34497 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34498
34499 * config/pa/pa.h (VAL_U6_BITS_P): Define.
34500 (INT_U6_BITS): Likewise.
34501 * config/pa/predicates.md (uint6_operand): New predicate.
34502 (shift5_operand, shift6_operand): Likewise.
34503 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
34504 arith32_operand.
34505 (lshrdi3): Use shift6_operand.
34506 (shrpsi4, shrpdi4): New insn patterns.
34507 (extzv): Delete expander.
34508 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
34509 predicates in unamed zero extract patterns. Tighten common constraint.
34510 (extv): Delete expander.
34511 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
34512 predicates in unamed sign extract patterns. Tighten common constraint.
34513 (insv): Delete expander.
34514 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
34515 predicates in unamed insert patterns. Tighten common constraint.
34516 Change uint32_operand predicate to uint6_operand predicate in unamed
34517 DImode pattern to insert constant values of type 1...1xxxx.
34518
34519 2013-01-04 Jan Hubicka <jh@suse.cz>
34520
34521 PR tree-optimization/55823
34522 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
34523 issue.
34524
34525 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34526 Uros Bizjak <ubizjak@gmail.com>
34527
34528 PR rtl-optimization/55845
34529 * df-problems.c (can_move_insns_across): Stop scanning at
34530 volatile_insn_p source instruction or give up if
34531 across_from .. across_to range contains any volatile_insn_p
34532 instructions.
34533
34534 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
34535
34536 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
34537 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
34538 Declare.
34539 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
34540 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
34541
34542 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34543
34544 PR fortran/55341
34545 * asan.c (asan_clear_shadow): New function.
34546 (asan_emit_stack_protection): Use it.
34547
34548 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
34549
34550 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
34551 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
34552 with tab instead of space.
34553
34554 2013-01-08 Nick Clifton <nickc@redhat.com>
34555
34556 * config/rl78/rl78.c (rl78_expand_prologue): Always select
34557 register bank 0 at the start of an interrupt handler.
34558 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
34559 MDBH registers.
34560
34561 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
34562
34563 * config/aarch64/aarch64-simd.md
34564 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
34565 (aarch64_simd_bsl): Likewise.
34566 (aarch64_vcond_internal<mode>): Likewise.
34567 (vcond<mode><mode>): Likewise.
34568 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
34569 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
34570
34571 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
34572
34573 * config/aarch64/aarch64-builtins.c
34574 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
34575
34576 2013-01-08 Martin Jambor <mjambor@suse.cz>
34577
34578 PR debug/55579
34579 * tree-sra.c (analyze_access_subtree): Return true also after
34580 potentially creating a debug-only replacement.
34581
34582 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34583
34584 PR middle-end/55890
34585 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
34586
34587 PR tree-optimization/54120
34588 * tree-vrp.c (range_fits_type_p): Don't allow
34589 src_precision < precision from signed vr to unsigned_p
34590 if vr->min or vr->max is negative.
34591 (simplify_float_conversion_using_ranges): Test can_float_p
34592 against CODE_FOR_nothing.
34593
34594 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34595 Richard Biener <rguenther@suse.de>
34596
34597 PR middle-end/55851
34598 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
34599 types instead of just INTEGER_TYPE types.
34600
34601 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
34602
34603 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
34604 TF_SIZE): Define.
34605
34606 2013-01-07 Steve Ellcey <sellcey@mips.com>
34607
34608 PR target/42661
34609 * config/mips/mips.opt: Change mad to mmad to match documentation.
34610
34611 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34612
34613 PR target/55897
34614 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
34615 .progmemx.data now.
34616
34617 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34618
34619 PR target/55897
34620 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
34621 (avr_addrspace_t): Add .section_name field.
34622 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
34623 array size.
34624 (avr_addrspace): Same. Initialize .section_name. Remove last
34625 NULL entry. Put __memx into .progmemx.data.
34626 (progmem_section_prefix): Remove.
34627 (avr_asm_init_sections): No need to initialize progmem_section.
34628 (avr_asm_named_section): Use avr_addrspace[].section_name to get
34629 section name prefix.
34630 (avr_asm_select_section): Ditto. And use get_unnamed_section to
34631 retrieve the progmem section.
34632 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
34633 boundary to run over avr_addrspace[].
34634 (avr_register_target_pragmas): Ditto.
34635
34636 2013-01-06 Jakub Jelinek <jakub@redhat.com>
34637
34638 * varasm.c (output_constant_def_contents): For asan_protect_global
34639 protected strings, adjust DECL_ALIGN if needed, before testing for
34640 anchored symbols.
34641 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
34642 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
34643 normal decls.
34644 (output_object_block): For asan protected decls, emit asan padding
34645 after their contents.
34646 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
34647 (asan_finish_file): Test it here instead.
34648
34649 2013-01-07 Nick Clifton <nickc@redhat.com>
34650 Matthias Klose <doko@debian.org>
34651 Doug Kwan <dougkwan@google.com>
34652 H.J. Lu <hongjiu.lu@intel.com>
34653
34654 PR driver/55470
34655 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
34656
34657 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
34658
34659 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
34660
34661 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
34662
34663 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
34664
34665 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34666
34667 PR target/54461
34668 * doc/install.texi (Cross-Compiler-Specific Options): Document
34669 --with-avrlibc.
34670
34671 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
34672
34673 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
34674 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
34675 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
34676 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
34677 vqmovun_high_s64): Fix source operand number and update copyright.
34678
34679 2013-01-07 Richard Biener <rguenther@suse.de>
34680
34681 PR middle-end/55890
34682 * gimple.h (gimple_call_builtin_p): New overload.
34683 * gimple.c (validate_call): New function.
34684 (gimple_call_builtin_p): Likewise.
34685 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34686 Use gimple_call_builtin_p.
34687 (find_func_clobbers): Likewise.
34688 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
34689 (strlen_optimize_stmt): Likewise.
34690
34691 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
34692
34693 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
34694 (vld1q_dup_*): Likewise.
34695 (vld1_*): Likewise.
34696 (vld1q_*): Likewise.
34697 (vld1_lane_*): Likewise.
34698 (vld1q_lane_*): Likewise.
34699
34700 2013-01-07 Richard Biener <rguenther@suse.de>
34701
34702 * lto-streamer.h (LTO_minor_version): Bump to 2.
34703
34704 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
34705
34706 * config/aarch64/aarch64-protos.h
34707 (aarch64_const_double_zero_rtx_p): Rename to...
34708 (aarch64_float_const_zero_rtx_p): ...this.
34709 (aarch64_float_const_representable_p): New.
34710 (aarch64_output_simd_mov_immediate): Likewise.
34711 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
34712 move immediate case.
34713 * config/aarch64/aarch64.c
34714 (aarch64_const_double_zero_rtx_p): Rename to...
34715 (aarch64_float_const_zero_rtx_p): ...this.
34716 (aarch64_print_operand): Allow printing of new constants.
34717 (aarch64_valid_floating_const): New.
34718 (aarch64_legitimate_constant_p): Check for valid floating-point
34719 constants.
34720 (aarch64_simd_valid_immediate): Likewise.
34721 (aarch64_vect_float_const_representable_p): New.
34722 (aarch64_float_const_representable_p): Likewise.
34723 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
34724 (aarch64_output_simd_mov_immediate): New.
34725 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
34726 (*movdf_aarch64): Likewise.
34727 * config/aarch64/constraints.md (Ufc): New.
34728 (Y): call aarch64_float_const_zero_rtx.
34729 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
34730
34731 2013-01-07 Richard Biener <rguenther@suse.de>
34732
34733 PR tree-optimization/55888
34734 PR tree-optimization/55862
34735 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
34736 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
34737 not if it is contained therein.
34738
34739 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34740
34741 * config/avr/t-avr: Typo.
34742
34743 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34744
34745 PR55243
34746 * config/avr/t-avr: Don't automatically rebuild
34747 $(srcdir)/config/avr/t-multilib
34748 $(srcdir)/config/avr/avr-tables.opt
34749 $(srcdir)/doc/avr-mmcu.texi
34750 (avr-mcus): New phony target to build them on request.
34751 (s-avr-mlib, s-avr-mmcu-texi): Remove.
34752 * avr/avr-mcus.def: Adjust comments.
34753
34754 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
34755
34756 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
34757
34758 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
34759
34760 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
34761
34762 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
34763
34764 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
34765
34766 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
34767
34768 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
34769 to generate profiling.
34770 * config/rs6000/aix64.h (LIB_SPEC): Same.
34771
34772 2013-01-04 Andrew Pinski <apinski@cavium.com>
34773
34774 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
34775 New function.
34776 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
34777
34778 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
34779
34780 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
34781 unconditionally.
34782 (ix86_expand_move): Ditto.
34783 (ix86_zero_extend_to_Pmode): Ditto.
34784 (ix86_expand_call): Ditto.
34785 (ix86_expand_special_args_builtin): Ditto.
34786 (ix86_expand_builtin): Ditto.
34787
34788 2013-01-04 Richard Biener <rguenther@suse.de>
34789
34790 PR tree-optimization/55862
34791 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
34792 translating them through PHI nodes.
34793
34794 2013-01-04 Martin Jambor <mjambor@suse.cz>
34795
34796 PR tree-optimization/55755
34797 * tree-sra.c (sra_modify_assign): Do not check that an access has no
34798 children when trying to avoid producing a VIEW_CONVERT_EXPR.
34799
34800 2013-01-04 Marek Polacek <polacek@redhat.com>
34801
34802 PR middle-end/55859
34803 * opts.c (default_options_optimization): Clarify error message.
34804
34805 2013-01-04 Richard Biener <rguenther@suse.de>
34806
34807 PR middle-end/55863
34808 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
34809 reassociation.
34810
34811 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34812
34813 PR target/53789
34814 * config/pa/pa.md (movsi): Revert previous change.
34815 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
34816 references.
34817
34818 2013-01-03 Richard Henderson <rth@redhat.com>
34819
34820 * config/i386/i386.c (ix86_expand_move): Always assign to op1
34821 after eliminating TLS symbols.
34822
34823 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
34824
34825 PR bootstrap/50167
34826 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
34827 * graphite-poly.c (debug_gmp_value): Likewise.
34828
34829 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
34830
34831 PR target/55712
34832 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
34833 selected code model, define __code_mode_small__, __code_model_medium__,
34834 __code_model_large__, __code_model_32__ or __code_model_kernel__.
34835 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
34836 xchg temporary register with %k. Declare temporary register as
34837 early clobbered.
34838 [__x86_64__]: For medium and large code models, preserve %rbx register.
34839
34840 2013-01-03 Richard Biener <rguenther@suse.de>
34841
34842 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
34843 (dump_subscript): Adjust.
34844 (finalize_ddr_dependent): Do not dump redundant info.
34845 (analyze_siv_subscript): Adjust.
34846 (subscript_dependence_tester): Likewise.
34847 (compute_affine_dependence): Likewise.
34848
34849 2013-01-03 Richard Biener <rguenther@suse.de>
34850
34851 Revert
34852 2013-01-03 Richard Biener <rguenther@suse.de>
34853
34854 PR tree-optimization/55857
34855 * tree-vect-stmts.c (vectorizable_load): Do not setup
34856 re-alignment for invariant loads.
34857
34858 2013-01-02 Richard Biener <rguenther@suse.de>
34859
34860 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
34861 invariant load do not generate a vector load from the scalar location.
34862
34863 2013-01-03 Richard Biener <rguenther@suse.de>
34864
34865 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
34866 for not vectorizing.
34867 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
34868 not build INDIRECT_REFs, call get_name once only.
34869 (vect_create_data_ref_ptr): Likewise. Dump base object kind
34870 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
34871
34872 2013-01-03 Richard Biener <rguenther@suse.de>
34873
34874 PR tree-optimization/55857
34875 * tree-vect-stmts.c (vectorizable_load): Do not setup
34876 re-alignment for invariant loads.
34877
34878 2013-01-03 Richard Biener <rguenther@suse.de>
34879
34880 PR lto/55848
34881 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
34882 prefer a built-in decl.
34883
34884 2013-01-03 Jakub Jelinek <jakub@redhat.com>
34885
34886 * gcc.c (process_command): Update copyright notice dates.
34887 * gcov.c (print_version): Likewise.
34888 * gcov-dump.c (print_version): Likewise.
34889
34890 PR rtl-optimization/55838
34891 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
34892 iv0.step, iv1.step and step.
34893
34894 2013-01-03 Jakub Jelinek <jakub@redhat.com>
34895 Marc Glisse <marc.glisse@inria.fr>
34896
34897 PR tree-optimization/55832
34898 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
34899 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
34900 integer_{one,zero}_node.
34901
34902 2013-01-03 Jakub Jelinek <jakub@redhat.com>
34903
34904 PR debug/54402
34905 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
34906 * var-tracking.c (reverse_op): Don't add reverse ops to
34907 VALUEs that have already
34908 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
34909
34910 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
34911
34912 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
34913
34914 2013-01-02 Teresa Johnson <tejohnson@google.com>
34915
34916 * dumpfile.c (dump_loc): Print filename with location.
34917 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
34918 new location_t parameter to emit complete unroll message with
34919 new dump framework.
34920 (canonicalize_loop_induction_variables): Compute loops location
34921 and pass to try_unroll_loop_completely.
34922 * loop-unroll.c (report_unroll_peel): New function.
34923 (peel_loops_completely): Use new dump format with location
34924 for main dumpfile message, and invoke report_unroll_peel on success.
34925 (decide_unrolling_and_peeling): Ditto.
34926 (decide_peel_once_rolling): Remove old dumpfile message subsumed
34927 by report_unroll_peel.
34928 (decide_peel_completely): Ditto.
34929 (decide_unroll_constant_iterations): Ditto.
34930 (decide_unroll_runtime_iterations): Ditto.
34931 (decide_peel_simple): Ditto.
34932 (decide_unroll_stupid): Ditto.
34933 * cfgloop.c (get_loop_location): New function.
34934 * cfgloop.h (get_loop_location): Declare.
34935
34936 2013-01-02 Sriraman Tallam <tmsriram@google.com>
34937
34938 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
34939 NULL.
34940
34941 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34942
34943 PR middle-end/55198
34944 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
34945 BLKmode objects when EXPAND_MEMORY is specified.
34946
34947 2013-01-02 Sriraman Tallam <tmsriram@google.com>
34948
34949 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
34950 in loop predicate.
34951 (fold_builtin_cpu): Do not share cpu model decls across statements.
34952
34953 2013-01-02 Jason Merrill <jason@redhat.com>
34954
34955 PR c++/55804
34956 * tree.c (build_array_type_1): Revert earlier change.
34957
34958 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
34959
34960 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
34961 "cortex-a57".
34962 * config/aarch64/aarch64-tune.md: Re-generate.
34963
34964 2013-01-02 Richard Biener <rguenther@suse.de>
34965
34966 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
34967 invariant load do not generate a vector load from the scalar location.
34968
34969 2013-01-02 Richard Biener <rguenther@suse.de>
34970
34971 PR bootstrap/55784
34972 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
34973 * configure: Regenerate.
34974
34975 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
34976
34977 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
34978 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
34979 (expand_builtin_int_roundingfn_2): Keep the original target around
34980 for the fallback case.
34981
34982 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
34983
34984 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
34985 to be clear for sign changes.
34986
34987 2013-01-01 Jan Hubicka <jh@suse.cz>
34988
34989 * ipa-inline-analysis.c: Fix formatting.
34990
34991 2013-01-01 Jakub Jelinek <jakub@redhat.com>
34992
34993 PR tree-optimization/55831
34994 * tree-vect-loop.c (get_initial_def_for_induction): Use
34995 gsi_after_labels instead of gsi_start_bb.
34996 \f
34997 Copyright (C) 2013 Free Software Foundation, Inc.
34998
34999 Copying and distribution of this file, with or without modification,
35000 are permitted in any medium without royalty provided the copyright
35001 notice and this notice are preserved.