1 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3 * gimple.h: Remove all includes.
4 (recalculate_side_effects): Move prototype to gimplify.h.
5 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
6 * gengtype.c (open_base_files): Add gimple.h include list.
7 * gimplify.h (recalculate_side_effects): Relocate prototype here.
8 * gimple.c: Adjust include list.
9 (recalculate_side_effects): Move to gimplify.c.
10 * gimplify.c: Adjust include list.
11 (recalculate_side_effects): Relocate from gimple.c.
12 * alias.c: Add required include files removed from gimple.h.
14 * builtins.c: Likewise.
16 * cfgexpand.c: Likewise.
17 * cfgloop.c: Likewise.
18 * cfgloopmanip.c: Likewise.
19 * cgraphbuild.c: Likewise.
21 * cgraphclones.c: Likewise.
22 * cgraphunit.c: Likewise.
23 * cilk-common.c: Likewise.
24 * data-streamer.c: Likewise.
25 * data-streamer-in.c: Likewise.
26 * data-streamer-out.c: Likewise.
28 * dwarf2out.c: Likewise.
29 * emit-rtl.c: Likewise.
32 * fold-const.c: Likewise.
33 * function.c: Likewise.
34 * gimple-builder.c: Likewise.
35 * gimple-expr.c: Likewise.
36 * gimple-fold.c: Likewise.
37 * gimple-iterator.c: Likewise.
38 * gimple-low.c: Likewise.
39 * gimple-pretty-print.c: Likewise.
40 * gimple-ssa-isolate-paths.c: Likewise.
41 * gimple-ssa-strength-reduction.c: Likewise.
42 * gimple-streamer-in.c: Likewise.
43 * gimple-streamer-out.c: Likewise.
44 * gimple-walk.c: Likewise.
45 * gimplify-me.c: Likewise.
46 * graphite-blocking.c: Likewise.
47 * graphite.c: Likewise.
48 * graphite-clast-to-gimple.c: Likewise.
49 * graphite-dependences.c: Likewise.
50 * graphite-interchange.c: Likewise.
51 * graphite-optimize-isl.c: Likewise.
52 * graphite-poly.c: Likewise.
53 * graphite-scop-detection.c: Likewise.
54 * graphite-sese-to-poly.c: Likewise.
55 * internal-fn.c: Likewise.
58 * ipa-devirt.c: Likewise.
59 * ipa-inline-analysis.c: Likewise.
60 * ipa-inline.c: Likewise.
61 * ipa-profile.c: Likewise.
62 * ipa-prop.c: Likewise.
63 * ipa-pure-const.c: Likewise.
64 * ipa-reference.c: Likewise.
65 * ipa-split.c: Likewise.
66 * ipa-utils.c: Likewise.
67 * langhooks.c: Likewise.
68 * lto-cgraph.c: Likewise.
69 * lto-compress.c: Likewise.
70 * lto-opts.c: Likewise.
71 * lto-section-in.c: Likewise.
72 * lto-section-out.c: Likewise.
73 * lto-streamer.c: Likewise.
74 * lto-streamer-in.c: Likewise.
75 * lto-streamer-out.c: Likewise.
76 * omp-low.c: Likewise.
77 * opts-global.c: Likewise.
79 * predict.c: Likewise.
80 * profile.c: Likewise.
83 * stor-layout.c: Likewise.
85 * targhooks.c: Likewise.
88 * trans-mem.c: Likewise.
89 * tree-affine.c: Likewise.
91 * tree-call-cdce.c: Likewise.
92 * tree-cfg.c: Likewise.
93 * tree-cfgcleanup.c: Likewise.
94 * tree-chrec.c: Likewise.
95 * tree-complex.c: Likewise.
96 * tree-data-ref.c: Likewise.
97 * tree-dfa.c: Likewise.
98 * tree-eh.c: Likewise.
99 * tree-emutls.c: Likewise.
100 * tree-if-conv.c: Likewise.
101 * tree-inline.c: Likewise.
102 * tree-into-ssa.c: Likewise.
103 * tree-loop-distribution.c: Likewise.
104 * tree-nested.c: Likewise.
105 * tree-nrv.c: Likewise.
106 * tree-object-size.c: Likewise.
107 * tree-outof-ssa.c: Likewise.
108 * tree-parloops.c: Likewise.
109 * tree-phinodes.c: Likewise.
110 * tree-predcom.c: Likewise.
111 * tree-pretty-print.c: Likewise.
112 * tree-profile.c: Likewise.
113 * tree-scalar-evolution.c: Likewise.
114 * tree-sra.c: Likewise.
115 * tree-ssa-address.c: Likewise.
116 * tree-ssa-alias.c: Likewise.
117 * tree-ssa.c: Likewise.
118 * tree-ssa-ccp.c: Likewise.
119 * tree-ssa-coalesce.c: Likewise.
120 * tree-ssa-copy.c: Likewise.
121 * tree-ssa-copyrename.c: Likewise.
122 * tree-ssa-dce.c: Likewise.
123 * tree-ssa-dom.c: Likewise.
124 * tree-ssa-dse.c: Likewise.
125 * tree-ssa-forwprop.c: Likewise.
126 * tree-ssa-ifcombine.c: Likewise.
127 * tree-ssa-live.c: Likewise.
128 * tree-ssa-loop.c: Likewise.
129 * tree-ssa-loop-ch.c: Likewise.
130 * tree-ssa-loop-im.c: Likewise.
131 * tree-ssa-loop-ivcanon.c: Likewise.
132 * tree-ssa-loop-ivopts.c: Likewise.
133 * tree-ssa-loop-manip.c: Likewise.
134 * tree-ssa-loop-niter.c: Likewise.
135 * tree-ssa-loop-prefetch.c: Likewise.
136 * tree-ssa-loop-unswitch.c: Likewise.
137 * tree-ssa-math-opts.c: Likewise.
138 * tree-ssanames.c: Likewise.
139 * tree-ssa-operands.c: Likewise.
140 * tree-ssa-phiopt.c: Likewise.
141 * tree-ssa-phiprop.c: Likewise.
142 * tree-ssa-pre.c: Likewise.
143 * tree-ssa-propagate.c: Likewise.
144 * tree-ssa-reassoc.c: Likewise.
145 * tree-ssa-sccvn.c: Likewise.
146 * tree-ssa-sink.c: Likewise.
147 * tree-ssa-strlen.c: Likewise.
148 * tree-ssa-structalias.c: Likewise.
149 * tree-ssa-tail-merge.c: Likewise.
150 * tree-ssa-ter.c: Likewise.
151 * tree-ssa-threadedge.c: Likewise.
152 * tree-ssa-threadupdate.c: Likewise.
153 * tree-ssa-uncprop.c: Likewise.
154 * tree-ssa-uninit.c: Likewise.
155 * tree-stdarg.c: Likewise.
156 * tree-streamer.c: Likewise.
157 * tree-streamer-in.c: Likewise.
158 * tree-streamer-out.c: Likewise.
159 * tree-switch-conversion.c: Likewise.
160 * tree-tailcall.c: Likewise.
161 * tree-vect-data-refs.c: Likewise.
162 * tree-vect-generic.c: Likewise.
163 * tree-vect-loop.c: Likewise.
164 * tree-vect-loop-manip.c: Likewise.
165 * tree-vectorizer.c: Likewise.
166 * tree-vect-patterns.c: Likewise.
167 * tree-vect-slp.c: Likewise.
168 * tree-vect-stmts.c: Likewise.
169 * tree-vrp.c: Likewise.
172 * value-prof.c: Likewise.
173 * varpool.c: Likewise.
174 * var-tracking.c: Likewise.
175 * vtable-verify.c: Likewise.
176 * config/darwin.c: Likewise.
177 * config/aarch64/aarch64-builtins.c: Likewise.
178 * config/aarch64/aarch64.c: Likewise.
179 * config/alpha/alpha.c: Likewise.
180 * config/i386/i386.c: Likewise.
181 * config/i386/winnt.c: Likewise.
182 * config/ia64/ia64.c: Likewise.
183 * config/m32c/m32c.c: Likewise.
184 * config/mep/mep.c: Likewise.
185 * config/mips/mips.c: Likewise.
186 * config/rs6000/rs6000.c: Likewise.
187 * config/s390/s390.c: Likewise.
188 * config/sh/sh.c: Likewise.
189 * config/sparc/sparc.c: Likewise.
190 * config/spu/spu.c: Likewise.
191 * config/stormy16/stormy16.c: Likewise.
192 * config/tilegx/tilegx.c: Likewise.
193 * config/tilepro/tilepro.c: Likewise.
194 * config/xtensa/xtensa.c: Likewise.
196 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
199 * arm.md (negdi_extendsidi): Fix invalid split.
201 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
203 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
204 (vmov_n_f64): Likewise.
205 (vmov_n_p8): Likewise.
206 (vmov_n_p16): Likewise.
207 (vmov_n_s8): Likewise.
208 (vmov_n_s16): Likewise.
209 (vmov_n_s32): Likewise.
210 (vmov_n_s64): Likewise.
211 (vmov_n_u8): Likewise.
212 (vmov_n_u16): Likewise.
213 (vmov_n_u32): Likewise.
214 (vmov_n_u64): Likewise.
215 (vmovq_n_f32): Likewise.
216 (vmovq_n_f64): Likewise.
217 (vmovq_n_p8): Likewise.
218 (vmovq_n_p16): Likewise.
219 (vmovq_n_s8): Likewise.
220 (vmovq_n_s16): Likewise.
221 (vmovq_n_s32): Likewise.
222 (vmovq_n_s64): Likewise.
223 (vmovq_n_u8): Likewise.
224 (vmovq_n_u16): Likewise.
225 (vmovq_n_u32): Likewise.
226 (vmovq_n_u64): Likewise.
228 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
230 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
231 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
232 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
233 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
234 and also change to float UNSPEC.
235 (reduc_maxmin_uns>_<mode>): Remove V2DI.
236 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
237 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
238 result access for big-endian.
239 (__LANE0): New macro used to fix up lane access of 'across-lanes'
240 intrinsics for big-endian.
241 * config/aarch64/iterators.md (VDQV): Add V2DI.
243 (vp): New mode attribute.
245 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
247 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
248 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for big-endian.
250 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
252 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
253 for big-endian element order.
254 (aarch64_simd_vec_setv2di): Likewise.
255 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
256 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
257 (vec_extract): Expand using aarch64_get_lane.
258 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
260 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
262 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
263 and stores to be ABI compliant.
265 2013-11-22 David Malcolm <dmalcolm@redhat.com>
267 * input.h (input_line): Remove.
268 (input_filename): Likewise.
269 (in_system_header): Likewise.
270 * tree.h (EXPR_LOC_OR_HERE): Remove.
271 * config/bfin/bfin.c (output_file_start): Remove use of
272 input_filename macro.
273 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
274 * gimplify.c (internal_get_tmp_var): Likewise.
275 EXPR_LOC_OR_HERE macro.
276 (shortcut_cond_expr): Likewise.
277 * tree-diagnostic.c (diagnostic_report_current_function): Remove
278 use of input_filename macro.
279 * tree.c (get_file_function_name): Likewise.
281 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
283 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
285 2013-11-22 Jakub Jelinek <jakub@redhat.com>
287 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
288 (same sized) elements even if the type of the CONSTRUCTOR has
289 vector mode and target is a REG.
291 2013-11-22 Richard Biener <rguenther@suse.de>
294 2013-11-21 Richard Biener <rguenther@suse.de>
296 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
297 nb_iterations_upper_bound by one.
299 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
301 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
304 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
305 core-avx-i, core-avx2 and slm.
307 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
309 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
311 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
313 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
314 (stzx_24_<mode>): Likewise mra_operand.
316 2013-11-22 Jeff Law <law@redhat.com>
318 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
319 (thread_block_1): Do not cancel jump threads which go from
320 inside a loop, through the header, then back inside the loop.
321 (bb_ends_with_multiway_branch): New function.
322 (thread_through_all_blocks): Handle threading cases which start
323 in a loop through the loop header to a point in the loop.
325 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
326 jump thread path properly.
328 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
330 * vec.h (auto_vec): New class.
331 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
332 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
333 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
334 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
335 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
336 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
337 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
338 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
339 appropriate instead of vec for local variables.
341 2013-11-21 Teresa Johnson <tejohnson@google.com>
344 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
345 not understood by old_insns_match_p.
347 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
349 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
350 little endian change.
351 (vec_pack_sfix_trunc_v2df): Likewise.
352 (vec_pack_ufix_trunc_v2df): Likewise.
353 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
354 double checking of endianness.
356 2013-11-22 Jakub Jelinek <jakub@redhat.com>
358 * tree-vect-generic.c (optimize_vector_constructor): New function.
359 (expand_vector_operations_1): Call it.
361 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
363 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
364 ix86_zero_extend_to_Pmode where appropriate.
365 (ix86_expand_builtin): Ditto.
367 2013-11-21 Cary Coutant <ccoutant@google.com>
369 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
370 (add_linkage_name): Don't add linkage name for -g1.
371 (decls_for_scope): Process subblocks for -g1.
372 (dwarf2out_source_line): Output line tables for -g1.
373 (dwarf2out_finish): Likewise.
374 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
375 unused scopes for -g1.
376 * opts.c (common_handle_option): Handle -g same as -g2.
377 * doc/invoke.texi: Update description for -g1.
379 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
381 * doc/extend.texi: Document htm builtins.
383 2013-11-21 Jeff Law <law@redhat.com>
385 PR tree-optimization/59221
386 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
387 temporary equivalences when threading through joiner blocks.
389 2013-11-21 Joseph Myers <joseph@codesourcery.com>
391 PR rtl-optimization/55950
392 * real.c (real_sqrt): Remove function.
393 * real.h (real_sqrt): Remove prototype.
394 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
395 SQRT using real_sqrt.
397 2013-11-21 Richard Biener <rguenther@suse.de>
399 PR tree-optimization/59058
400 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
401 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
402 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
403 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
404 (NITERS_KNOWN_P): Fold into ...
405 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
406 (LOOP_VINFO_PEELING_FOR_NITER): Add.
407 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
408 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
409 (vect_do_peeling_for_alignment): Re-use precomputed niter
410 instead of re-emitting it.
411 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
412 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
413 * tree-vect-loop.c (vect_get_loop_niters): Use
414 number_of_latch_executions.
415 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
416 (vect_analyze_loop_form): Simplify.
417 (vect_analyze_loop_operations): Move epilogue peeling code ...
418 (vect_analyze_loop_2): ... here and adjust it to compute
419 LOOP_VINFO_PEELING_FOR_NITER.
420 (vect_estimate_min_profitable_iters): Use
421 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
422 (vect_build_loop_niters): Emit on the preheader.
423 (vect_generate_tmps_on_preheader): Likewise.
424 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
425 of recomputing it. Adjust.
427 2013-11-21 Richard Biener <rguenther@suse.de>
429 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
430 LOC_LINE): Remove wrappers and fix all users.
431 (struct _loop_vec_info): Remove loop_line_number member.
432 (LOOP_VINFO_LOC): Remove.
433 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
434 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
437 2013-11-21 Richard Biener <rguenther@suse.de>
439 * tree-ssa-forwprop.c (simplify_vce): New function.
440 (ssa_forward_propagate_and_combine): Call it.
442 2013-11-21 Richard Biener <rguenther@suse.de>
444 * tree-vect-loop-manip.c (vect_build_loop_niters,
445 vect_generate_tmps_on_preheader): Move ...
446 * tree-vect-loop.c (vect_build_loop_niters,
447 vect_generate_tmps_on_preheader): ... here and simplify.
448 (vect_transform_loop): Call them here and pass down results
450 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
451 Get niter variables from caller.
452 (vect_do_peeling_for_alignment): Likewise.
453 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
454 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
457 2013-11-21 Richard Biener <rguenther@suse.de>
459 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
460 nb_iterations_upper_bound by one.
462 2013-11-21 Richard Biener <rguenther@suse.de>
464 PR tree-optimization/59058
465 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
466 (build_size_arg_loc): Apply niter adjustment here.
467 (generate_memset_builtin): Adjust.
468 (generate_memcpy_builtin): Likewise.
469 (classify_partition): Do not use number_of_exit_cond_executions
470 but record whether niter needs to be adjusted.
472 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
474 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
477 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
480 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
481 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
482 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
483 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
484 sh_optimize_sett_clrt pass.o to extra_objs.
486 2013-11-20 David Malcolm <dmalcolm@redhat.com>
488 * cfg.c (dump_edge_info): Remove redundant comment.
489 * cfgcleanup.c (outgoing_edges_match): Reword reference to
490 EXIT_BLOCK_PTR in comment.
491 (try_optimize_cfg): Likewise.
492 * cfgrtl.c (last_bb_in_partition): Likewise.
493 * cgraph.c (cgraph_node_cannot_return): Likewise.
494 * function.c (thread_prologue_and_epilogue_insns): Likewise.
495 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
496 * ipa-split.c (consider_split): Likewise.
497 * profile.c (find_spanning_tree): Likewise.
498 * sched-int.h (common_sched_info_def.add_block): Likewise.
499 * dominance.c (calc_dfs_tree_nonrec): Reword references in
500 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
501 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
502 in comments to now removed ENTRY_BLOCK_PTR macro.
503 (tree_forwarder_block_p): Reword reference in comment to
505 * tree-inline.c (copy_cfg_body): Reword references in comments to
506 now removed ENTRY_BLOCK_PTR macro.
507 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
508 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
509 a comma to the comment to clarify the meaning.
511 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
513 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
515 (free_gimplify_stack): Add prototype.
516 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
517 (struct gimplify_ctx): Relocate here.
518 (gimplify_ctxp): Make static.
519 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
520 list of struct gimplify_ctx.
521 (push_gimplify_context): Add default parameters and allocate a struct
523 (pop_gimplify_context): Free a struct back to the pool.
524 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
525 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
526 use a local 'struct gimplify_ctx'.
527 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
528 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
530 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
531 lower_omp_ordered, lower_omp_critical, lower_omp_for,
532 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
533 lower_omp_teams, execute_lower_omp): Likewise.
534 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
535 * tree-inline.c (optimize_inline_calls): Likewise.
537 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
539 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
540 (vsx_extract_<mode>): Likewise.
541 (*vsx_extract_<mode>_one_le): New LE variant on
542 *vsx_extract_<mode>_zero.
543 (vsx_extract_v4sf): Adjust for little endian.
545 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
547 PR rtl-optimization/59133
548 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
550 (lra_create_new_reg_with_unique_value): Pass new argument value.
551 (lra_emit_add, lra_emit_move): Ditto.
552 * lra-constraints.c (in_class_p): Add check for move for a new insn.
553 (change_class): Rename to lra_change_class. Move to lra-int.h.
554 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
556 (process_addr_reg, process_addr): Ditto.
557 (curr_insn_transform): Ditto. Add check on old pseudo for
559 * lra-int.h (lra_get_regno_hard_regno): Move below.
560 (lra_change_class): Renamed change_class from lra.c.
562 2013-11-20 David Malcolm <dmalcolm@redhat.com>
564 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
565 the children of a NULL pointer.
567 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
569 * lra.c (lra): Set lra_in_progress before check_rtl call.
570 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
571 adding clobber regs when LRA is running.
573 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
575 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
576 restriction for ISA_MIPS32R2.
577 (ISA_HAS_LXC1_SXC1): New macro.
578 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
579 (ISA_HAS_NMADD4_NMSUB4): Likewise.
580 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
581 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
582 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
583 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
584 (*<ANYF:storex>_<P:mode>): Likewise.
586 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
588 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
589 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
590 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
591 * config/mips/mips.md (recip_condition): Remove mode attribute.
592 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
594 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
596 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
599 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
600 Make sure neg2_ovf is set before being used.
602 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
604 * plugin.def: Add comment about register_callback and
605 invoke_plugin_callbacks_full.
607 * plugin.c (register_callback, invoke_plugin_callbacks_full):
608 Handle PLUGIN_INCLUDE_FILE event.
610 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
612 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
613 allow subregs of TDmode in FPRs of smaller size in little-endian.
614 (rs6000_split_multireg_move): When splitting an access to TDmode
615 in FPRs, do not use simplify_gen_subreg.
617 2013-11-20 Joseph Myers <joseph@codesourcery.com>
620 * real.c: Remove comment about decimal string conversion and
622 (real_from_string): Use MPFR to convert nonzero decimal constant
625 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
627 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
628 endianness of the D registers for the legacy encodings.
630 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
632 PR rtl-optimization/54300
633 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
634 outputs in a single-set are killed from the value chains.
636 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
638 * cgraph.h (varpool_node): Add need_bounds_init field.
639 * lto-cgraph.c (lto_output_varpool_node): Output
640 need_bounds_init value.
641 (input_varpool_node): Read need_bounds_init value.
642 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
644 2013-11-20 Jan Hubicka <jh@suse.cz>
646 * opts.c (finish_options): Imply -ffat-lto-objects with
647 -fno-use-linker-plugin.
648 * common.opt (fuse-linker-plugin): Add var.
650 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
652 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
653 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
654 (gen_type_die_with_usage): Skip pointer bounds.
655 (dwarf2out_global_decl): Likewise.
657 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
659 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
662 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
665 * config/i386/i386.c (ix86_option_override_internal): Add missed
666 argument prefix for 'ix86_fpmath'.
667 * config/i386/ssemath.h: Add missed definition of
668 TARGET_FPMATH_DEFAULT_P macros.
670 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
671 Mike Stump <mikestump@comcast.net>
672 Richard Sandiford <rdsandiford@googlemail.com>
674 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
675 instead of TREE_INT_CST_LOW, in cases where there is a protecting
676 tree_fits_shwi_p or tree_fits_uhwi_p.
677 * builtins.c (fold_builtin_powi): Likewise.
678 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
680 * dbxout.c (dbxout_symbol): Likewise.
681 * expr.c (expand_expr_real_1): Likewise.
682 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
683 (fold_binary_loc): Likewise.
684 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
685 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
686 * omp-low.c (lower_omp_for_lastprivate): Likewise.
687 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
688 * stor-layout.c (compute_record_mode): Likewise.
689 * tree-cfg.c (verify_expr): Likewise.
690 * tree-dfa.c (get_ref_base_and_extent): Likewise.
691 * tree-pretty-print.c (dump_array_domain): Likewise.
692 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
693 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
694 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
695 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
696 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
697 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
698 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
699 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
700 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
701 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
702 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
703 (create_variable_info_for_1): Likewise.
704 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
705 (vect_verify_datarefs_alignment): Likewise.
706 (vect_analyze_data_ref_accesses): Likewise.
707 (vect_prune_runtime_alias_test_list): Likewise.
708 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
710 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
712 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
713 overflow. Use tree_to_shwi.
715 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
717 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
718 HOST_WIDE_INTs when folding (x >> c) << c.
720 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
721 Dominik Vogt <vogt@linux.vnet.ibm.com>
723 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
724 int comparisons with an out of range condition code.
725 (s390_optimize_nonescaping_tx): Skip empty BBs.
726 Generate the new tbegin RTX when removing the FPR clobbers (with
728 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
729 result before doing the retry calculations.
730 (s390_init_builtins): Make tbegin "returns_twice" and tabort
732 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
733 the TDB setting part of an tbegin.
734 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
735 ("tx_assist"): Set unused argument to an immediate zero instead of
736 loading zero into a GPR and pass it as argument.
737 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
738 Remove inline and related attributes.
739 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
740 (__TM_is_illegal, __TM_is_footprint_exceeded)
741 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
743 2013-11-20 Richard Biener <rguenther@suse.de>
746 * lto-opts.c (lto_write_options): Write defaults only if
747 they were not explicitely specified. Also write
748 -ffp-contract default.
749 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
751 (run_gcc): Pass through -ffp-contract.
753 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
755 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
757 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
759 * gcc/config/aarch64/aarch64-builtins.c
760 (aarch64_simd_itype): Remove.
761 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
762 (VAR1): Use qualifiers.
763 (aarch64_build_scalar_type): New.
764 (aarch64_build_vector_type): Likewise.
765 (aarch64_build_type): Likewise.
766 (aarch64_init_simd_builtins): Refactor, remove special cases,
767 consolidate main loop.
768 (aarch64_simd_expand_args): Likewise.
770 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
773 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
775 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
777 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
779 2013-11-19 David Malcolm <dmalcolm@redhat.com>
781 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
782 to "vec<>" instances.
783 (build_pretty_printer): Register the vec<>* prettyprinter.
785 2013-11-19 David Malcolm <dmalcolm@redhat.com>
787 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
788 (GdbSubprinter.handles_type): New.
789 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
790 (GdbSubprinterRegex): New subclass of GdbSubprinter.
791 (GdbPrettyPrinters.add_printer): Remove in favor of...
792 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
793 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
794 (GdbPrettyPrinters.__call__): Update search for subprinter
795 to use handles_type method.
796 (build_pretty_printer): Update registration of subprinters to
797 use the new API above, supporting multiple spelling of each type,
798 and allowing for future regex-based subprinters.
800 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
802 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
803 V16QI vector splat case for little endian.
805 2013-11-19 Jeff Law <law@redhat.com>
807 * tree-ssa-threadedge.c (thread_across_edge): After threading
808 through a joiner, allow threading a normal block requiring duplication.
810 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
811 jump threading requests that would muck up the loop structures.
813 * tree-ssa-threadupdate.c: Fix trailing whitespace.
814 * tree-ssa-threadupdate.h: Likewise.
816 2013-11-19 Mike Stump <mikestump@comcast.net>
818 * gdbinit.in: Add pmz to print out mpz values.
820 2013-11-20 Jan Hubicka <jh@suse.cz>
822 * common.opt (ffat-lto-objects): Disable by default.
823 * doc/invoke.texi (fat-lto-objects): Update documentation.
824 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
826 2013-11-19 Martin Jambor <mjambor@suse.cz>
828 PR rtl-optimization/59099
829 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
831 (ira): Move init_reg_equiv and call to
832 split_live_ranges_for_shrink_wrap up, remove analyses around call
833 to find_moveable_pseudos.
835 2013-11-20 Alan Modra <amodra@gmail.com>
837 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
838 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
839 to strict alignment on older processors when little-endian.
840 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
843 2013-11-19 Teresa Johnson <tejohnson@google.com>
845 * common/config/i386/i386-common.c: Enable
846 -freorder-blocks-and-partition at -O2 and up for x86.
847 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
848 * opts.c (finish_options): Only warn if
849 -freorder-blocks-and-partition was set on command line.
851 2013-11-19 Sriraman Tallam <tmsriram@google.com>
853 * final.c (final_scan_insn): Emit a label for the split
854 cold function part. Label name is formed by suffixing
855 the original function name with "cold".
857 2013-11-19 David Malcolm <dmalcolm@redhat.com>
859 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
860 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
861 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
862 (EXIT_BLOCK_PTR_FOR_FN): ...this.
863 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
865 (EXIT_BLOCK_PTR): Likewise.
866 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
867 (FOR_ALL_BB_FN): Update for renaming of
868 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
870 * cfg.c (init_flow): Likewise.
871 (check_bb_profile): Likewise.
872 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
873 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
874 * cfghooks.c (account_profile_record): Likewise.
875 * cfgloop.c (init_loops_structure): Likewise.
876 * cgraphbuild.c (record_eh_tables): Likewise.
877 (compute_call_stmt_bb_frequency): Likewise.
878 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
879 * lto-streamer-in.c (input_cfg): Likewise.
880 * predict.c (maybe_hot_frequency_p): Likewise.
881 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
882 * tree-inline.c (initialize_cfun): Likewise.
883 (copy_cfg_body): Likewise.
884 (copy_body): Likewise.
885 (tree_function_versioning): Likewise.
887 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
888 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
889 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
890 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
891 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
892 (connect_traces): Likewise.
893 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
894 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
895 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
897 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
899 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
900 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
901 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
902 (rotate_loop): Likewise.
903 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
904 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
906 (alloc_aux_for_edges): Likewise.
907 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
908 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
910 (compact_blocks): Likewise.
911 (clear_edges): Likewise.
912 * cfganal.c (single_pred_before_succ_order): Remove usage of
913 ENTRY_BLOCK_PTR macro.
914 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
915 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
916 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
917 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
918 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
920 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
921 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
923 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
924 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
925 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
926 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
927 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
928 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
930 (print_edge_list): Likewise.
931 (create_edge_list): Likewise.
932 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
933 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
935 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
937 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
938 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
939 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
940 (try_optimize_cfg): Likewise.
941 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
942 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
943 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
944 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
945 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
946 (try_forward_edges): Likewise.
947 (try_simplify_condjump): Likewise.
948 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
949 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
950 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
951 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
953 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
954 (expand_gimple_tailcall): Likewise.
955 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
956 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
957 (tidy_fallthru_edges): Likewise.
958 (verify_flow_info): Likewise.
959 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
960 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
961 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
962 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
963 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
964 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
965 (get_loop_body_in_dom_order): Likewise.
966 (get_loop_body): Likewise.
967 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
968 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
969 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
971 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
972 (fix_bb_placement): Likewise.
973 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
974 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
975 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
976 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
978 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
979 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
980 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
981 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
983 (fixup_fallthru_exit_predecessor): Remove uses of macros:
984 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
985 (fixup_reorder_chain): Likewise.
986 (relink_block_chain): Likewise.
987 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
988 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
989 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
990 (force_one_exit_fallthru): Likewise.
991 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
993 (rtl_verify_edges): Likewise.
994 (commit_edge_insertions): Likewise.
995 (commit_one_edge_insertion): Likewise.
996 (rtl_split_edge): Likewise.
997 (force_nonfallthru_and_redirect): Likewise.
998 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
999 (skip_insns_after_block): Likewise.
1000 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
1002 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
1003 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
1005 (contains_no_active_insn_p): Likewise.
1006 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1007 (entry_of_function): Likewise.
1008 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
1009 (fixup_new_cold_bb): Likewise.
1010 (patch_jump_insn): Likewise.
1011 (try_redirect_by_replacing_jump): Likewise.
1012 (block_label): Likewise.
1013 (could_fall_through): Likewise.
1014 (can_fallthru): Likewise.
1015 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
1016 ENTRY_BLOCK_PTR macro.
1017 (rebuild_cgraph_edges): Likewise.
1018 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
1019 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1020 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
1021 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
1022 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
1023 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
1024 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
1025 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
1027 (reg_nonzero_bits_for_combine): Likewise.
1028 (set_nonzero_bits_and_sign_copies): Likewise.
1029 (combine_instructions): Likewise.
1030 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
1032 (bypass_conditional_jumps): Likewise.
1033 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
1034 (find_implicit_sets): Likewise.
1035 (cprop_jump): Likewise.
1036 * cse.c (cse_cc_succs): Likewise.
1037 (cse_find_path): Likewise.
1038 * df-problems.c (df_lr_confluence_0): Likewise.
1039 * df-scan.c (df_entry_block_defs_collect): Remove usage of
1040 ENTRY_BLOCK_PTR macro.
1041 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
1042 * dominance.c (iterate_fix_dominators): Remove usage of
1043 ENTRY_BLOCK_PTR macro.
1044 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1045 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
1046 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
1048 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
1050 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
1052 * domwalk.c (cmp_bb_postorder): Likewise.
1053 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
1054 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
1056 (sjlj_emit_function_enter): Likewise.
1057 * final.c (compute_alignments): Likewise.
1058 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
1059 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1060 (reposition_prologue_and_epilogue_notes): Remove usage of
1061 EXIT_BLOCK_PTR macro.
1062 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
1064 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
1065 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
1066 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
1067 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
1068 (compute_code_hoist_vbeinout): Likewise.
1069 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
1070 (pre_expr_reaches_here_p_work): Likewise.
1071 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1072 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
1074 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
1075 ENTRY_BLOCK_PTR macro.
1076 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
1078 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
1079 ENTRY_BLOCK_PTR macro.
1080 * graphite-scop-detection.c (build_scops): Likewise.
1081 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
1082 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
1083 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
1085 (unlink_bb_notes): Likewise.
1086 (create_check_block_twin): Likewise.
1087 (init_before_recovery): Likewise.
1088 (sched_extend_bb): Likewise.
1089 (priority): Likewise.
1090 * hw-doloop.c (reorder_loops): Likewise.
1091 (discover_loop): Likewise.
1092 * ifcvt.c (dead_or_predicable): Remove uses of macros:
1093 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1094 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
1095 (block_has_only_trap): Likewise.
1096 (cond_exec_find_if_block): Likewise.
1097 (merge_if_block): Likewise.
1098 * ipa-inline-analysis.c (param_change_prob): Remove usage of
1099 ENTRY_BLOCK_PTR macro.
1100 (record_modified): Likewise.
1101 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
1102 EXIT_BLOCK_PTR macro.
1103 (local_pure_const): Likewise.
1104 * ipa-split.c (split_function): Remove uses of macros:
1105 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1106 (find_split_points): Likewise.
1107 (consider_split): Likewise.
1108 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
1109 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
1110 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
1111 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
1112 * ira-emit.c (entered_from_non_parent_p): Remove usage of
1113 ENTRY_BLOCK_PTR macro.
1114 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
1115 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
1116 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
1117 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1118 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
1120 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
1122 (compute_farthest): Likewise.
1123 (compute_available): Likewise.
1124 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
1125 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
1127 (compute_earliest): Likewise.
1128 (compute_antinout_edge): Likewise.
1129 * loop-iv.c (simplify_using_initial_values): Remove usage of
1130 ENTRY_BLOCK_PTR macro.
1131 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
1133 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
1135 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
1137 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
1138 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1139 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
1141 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
1143 * lto-streamer-out.c (output_cfg): Likewise.
1144 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
1146 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
1147 * mode-switching.c (optimize_mode_switching): Likewise.
1148 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
1149 * modulo-sched.c (rest_of_handle_sms): Likewise.
1150 (canon_loop): Likewise.
1151 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
1152 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
1153 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1154 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
1156 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
1157 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
1158 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
1159 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
1160 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
1161 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
1162 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
1163 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
1164 (gimple_predict_edge): Likewise.
1165 (probably_never_executed): Likewise.
1166 * profile.c (find_spanning_tree): Remove uses of macros:
1167 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1168 (branch_prob): Likewise.
1169 (compute_branch_probabilities): Likewise.
1170 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
1171 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
1172 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
1173 (set_bb_counts): Likewise.
1174 (correct_negative_edge_counts): Likewise.
1175 (get_exec_counts): Likewise.
1176 (instrument_values): Likewise.
1177 (instrument_edges): Likewise.
1178 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
1180 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
1181 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
1182 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1183 (reg_to_stack): Likewise.
1184 * regs.h (REG_N_SETS): Likewise.
1185 * reload.c (find_dummy_reload): Likewise.
1186 (combine_reloads): Likewise.
1187 (push_reload): Likewise.
1188 * reload1.c (has_nonexceptional_receiver): Remove usage of
1189 EXIT_BLOCK_PTR macro.
1190 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
1192 (find_basic_block): Likewise.
1193 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
1194 (schedule_ebbs): Likewise.
1195 * sched-int.h (sel_sched_p): Likewise.
1196 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
1198 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
1199 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
1201 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
1202 (extend_rgns): Likewise.
1203 (find_single_block_region): Likewise.
1204 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
1205 ENTRY_BLOCK_PTR macro.
1206 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
1207 (sel_create_recovery_block): Likewise.
1208 (bb_ends_ebb_p): Likewise.
1209 (sel_bb_end): Likewise.
1210 (sel_bb_head): Likewise.
1211 (free_lv_sets): Likewise.
1212 (init_lv_sets): Likewise.
1213 (tidy_control_flow): Likewise.
1214 (maybe_tidy_empty_bb): Likewise.
1215 * sel-sched-ir.h (_succ_iter_cond): Likewise.
1216 (_succ_iter_start): Likewise.
1217 (sel_bb_empty_or_nop_p): Likewise.
1218 (get_loop_exit_edges_unique_dests): Likewise.
1219 (inner_loop_header_p): Likewise.
1220 * sel-sched.c (create_block_for_bookkeeping): Likewise.
1221 (find_block_for_bookkeeping): Likewise.
1222 * store-motion.c (remove_reachable_equiv_notes): Likewise.
1223 (insert_store): Likewise.
1224 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
1225 ENTRY_BLOCK_PTR macro.
1226 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
1227 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
1228 (gate_tm_init): Likewise.
1229 (tm_region_init): Likewise.
1230 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
1231 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1232 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
1233 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1235 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
1236 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
1238 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
1240 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
1242 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
1244 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1245 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
1246 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
1247 (build_gimple_cfg): Likewise.
1248 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
1249 (gimple_can_merge_blocks_p): Likewise.
1250 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
1251 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1252 * tree-complex.c (update_parameter_components): Remove usage of
1253 ENTRY_BLOCK_PTR macro.
1254 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
1255 EXIT_BLOCK_PTR macro.
1256 * tree-inline.c (tree_function_versioning): Remove uses of macros:
1257 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1258 (delete_unreachable_blocks_update_callgraph): Likewise.
1259 (initialize_cfun): Likewise.
1260 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
1261 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
1262 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
1263 * tree-into-ssa.c (update_ssa): Likewise.
1264 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
1265 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
1266 (rewrite_into_ssa): Likewise.
1267 (rewrite_debug_stmt_uses): Likewise.
1268 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
1269 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1270 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
1271 ENTRY_BLOCK_PTR macro.
1272 * tree-scalar-evolution.h (block_before_loop): Likewise.
1273 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
1274 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
1276 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
1278 (propagate_dereference_distances): Remove uses of macros:
1279 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1280 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
1282 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
1283 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
1284 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
1285 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
1286 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1287 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
1288 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
1289 (mark_control_dependent_edges_necessary): Remove uses of macros:
1290 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1291 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
1292 ENTRY_BLOCK_PTR macro.
1293 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
1294 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
1295 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1296 (calculate_live_on_exit): Likewise.
1297 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1298 (loe_visit_block): Likewise.
1299 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
1300 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1301 (live_on_entry): Likewise.
1302 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
1303 EXIT_BLOCK_PTR macro.
1304 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
1305 ENTRY_BLOCK_PTR macro.
1306 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
1307 (bound_difference): Likewise.
1308 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
1309 of EXIT_BLOCK_PTR macro.
1310 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
1311 of ENTRY_BLOCK_PTR macro.
1312 * tree-ssa-math-opts.c (register_division_in): Likewise.
1313 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
1314 * tree-ssa-pre.c (compute_avail): Likewise.
1315 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
1316 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
1317 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1318 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
1319 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
1321 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
1322 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
1323 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1324 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
1325 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1326 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
1327 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
1328 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
1329 (find_pdom): Likewise.
1330 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
1331 * tree-stdarg.c (reachable_at_most_once): Likewise.
1332 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
1333 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1334 (eliminate_tail_call): Likewise.
1335 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
1337 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
1338 * var-tracking.c (vt_initialize): Remove uses of macros:
1339 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1340 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
1341 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
1342 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
1344 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
1346 * config/bfin/bfin.c (hwloop_optimize): Likewise.
1347 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
1348 of EXIT_BLOCK_PTR macro.
1349 * config/arm/arm.c (require_pic_register): Remove usage of
1350 ENTRY_BLOCK_PTR macro.
1351 (arm_r3_live_at_start_p): Likewise.
1352 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
1353 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1354 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
1355 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
1356 ENTRY_BLOCK_PTR macro.
1357 * config/i386/i386.c (ix86_count_insn): Likewise.
1358 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
1359 (ix86_pad_short_function): Likewise.
1360 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
1361 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
1362 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
1363 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
1364 (ix86_expand_epilogue): Likewise.
1365 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
1366 (ia64_expand_prologue): Likewise.
1368 2013-11-19 Catherine Moore <clm@codesourcery.com>
1370 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
1371 * config/mips/mips.opt (mfix-rm7000): New option.
1372 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
1373 * config/mips/mips.c (mips_reorg_process_insns): Disable
1374 noreorder for TARGET_FIX_RM7000.
1376 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
1378 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
1380 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1382 * config/arm/arm.c (arm_new_rtx_costs):
1383 Handle narrow mode add-shifts properly.
1384 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
1385 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
1388 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
1390 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
1392 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1394 * config/rs6000/vector.md ("mov<mode>"): Do not call
1395 rs6000_emit_le_vsx_move to move into or out of GPRs.
1396 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
1397 source and destination are not GPR hard regs.
1399 2013-11-19 David Malcolm <dmalcolm@redhat.com>
1401 * basic-block.h (n_edges_for_function): Rename macro to...
1402 (n_edges_for_fn): ...this.
1403 (n_edges): Eliminate macro as work towards making uses of
1406 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
1407 to "n_edges_for_fn".
1409 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
1410 (clear_edges): Likewise.
1411 (free_edge): Likewise.
1412 * cfghooks.c (dump_flow_info): Likewise.
1413 * cprop.c (is_too_expensive): Likewise.
1414 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
1415 * gcse.c (is_too_expensive): Likewise.
1416 (prune_insertions_deletions): Likewise.
1417 * mcf.c (create_fixup_graph): Likewise.
1418 * sched-rgn.c (haifa_find_rgns): Likewise.
1419 * tree-cfg.c (gimple_dump_cfg): Likewise.
1420 * var-tracking.c (variable_tracking_main_1): Likewise.
1422 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
1424 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
1427 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
1429 * config/aarch64/aarch64.md
1430 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
1432 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
1434 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
1436 2013-11-19 Joseph Myers <joseph@codesourcery.com>
1438 * varasm.c (align_variable): Give error instead of warning for
1439 unsupported alignment.
1440 (assemble_noswitch_variable): Likewise.
1442 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1444 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
1447 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
1449 * loop-doloop.c (doloop_optimize_loops): Remove unused
1450 loop iterator argument from FOR_EACH_LOOP.
1452 2013-11-19 David Malcolm <dmalcolm@redhat.com>
1454 Convert gimple types from a union to C++ inheritance.
1455 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
1456 * coretypes.h (union gimple_statement_d): Remove declaration.
1457 (gimple): Convert from being a "union gimple_statement_d *"
1458 to a "struct gimple_statement_base *".
1459 (const_gimple): Likewise (with "const").
1460 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
1461 (ggc_alloc_cleared_gimple_statement_stat): ...this.
1462 * gimple-pretty-print.c (debug): Change parameter from a
1463 "gimple_statement_d &" to a "gimple_statement_base &".
1464 (debug): Change parameter from a "gimple_statement_d *" to
1465 a "gimple_statement_base *".
1466 * gimple-pretty-print.h (debug): Update declarations as above.
1467 * gimple.c (gimple_alloc_stat): Update for renaming of
1468 ggc_alloc_cleared_gimple_statement_d_stat to
1469 ggc_alloc_cleared_gimple_statement_stat.
1470 * gimple.h: Include "is-a.h" for use by is_a_helper
1471 specializations in followup autogenerated patch.
1472 (struct gimple statement_base): Make this type usable as a base
1473 class by adding "desc", "tag" and "variable_size" to GTY, thus
1474 using opting-in to gengtype's support for simple inheritance.
1475 (gimple_statement_with_ops_base): Convert to a subclass of
1476 gimple_statement_base, dropping initial "gsbase" field. Note that
1477 this type is abstract, with no GSS_ value, and thus no GTY tag value.
1478 (gimple_statement_with_ops): Convert to a subclass of
1479 gimple_statement_with_ops_base, dropping initial "opbase" field.
1480 Add tag value to GTY marking. Update marking of op field to
1481 reflect how num_ops field is accessed via inheritance.
1482 (gimple_statement_with_memory_ops_base): Convert to a subclass of
1483 gimple_statement_with_ops_base, dropping initial "opbase" field.
1484 Add tag value to GTY marking.
1485 (gimple_statement_with_memory_ops): Convert to a subclass of
1486 public gimple_statement_with_memory_ops_base, dropping initial
1487 "membase" field. Add tag value to GTY marking. Update marking
1488 of op field to reflect how num_ops field is accessed via inheritance.
1489 (gimple_statement_call): Analogous changes that also update the
1490 marking of the "u" union.
1491 (gimple_statement_omp): Convert to a subclass of
1492 gimple_statement_base, dropping initial "gsbase" field, adding
1493 tag value to GTY marking.
1494 (gimple_statement_bind): Likewise.
1495 (gimple_statement_catch): Likewise.
1496 (gimple_statement_eh_filter): Likewise.
1497 (gimple_statement_eh_else): Likewise.
1498 (gimple_statement_eh_mnt): Likewise.
1499 (gimple_statement_phi): Likewise.
1500 (gimple_statement_eh_ctrl): Likewise.
1501 (gimple_statement_try): Likewise.
1502 (gimple_statement_wce): Likewise.
1503 (gimple_statement_asm): Convert to a subclass of
1504 gimple_statement_with_memory_ops_base, dropping initial
1505 "membase" field, adding tag value to GTY marking, and updating
1506 marking of op field.
1507 (gimple_statement_omp_critical): Convert to a subclass of
1508 gimple_statement_omp, dropping initial "omp" field, adding tag
1509 value to GTY marking.
1510 (gimple_statement_omp_for): Likewise.
1511 (gimple_statement_omp_parallel): Likewise.
1512 (gimple_statement_omp_task): Convert to a subclass of
1513 gimple_statement_omp_parallel, dropping initial "par" field,
1514 adding tag value to GTY marking.
1515 (gimple_statement_omp_sections): Convert to a subclass of
1516 gimple_statement_omp, dropping initial "omp" field, adding
1517 tag value to GTY marking.
1518 (gimple_statement_omp_continue): Convert to a subclass of
1519 gimple_statement_base, dropping initial "gsbase" field, adding
1520 tag value to GTY marking.
1521 (gimple_statement_omp_single): Convert to a subclass of
1522 gimple_statement_omp, dropping initial "omp" field, adding
1523 tag value to GTY marking.
1524 (gimple_statement_omp_atomic_load): Convert to a subclass of
1525 gimple_statement_base, dropping initial "gsbase" field, adding
1526 tag value to GTY marking.
1527 (gimple_statement_omp_atomic_store): Convert to a subclass of
1528 gimple_statement_base, dropping initial "gsbase" field, adding
1529 tag value to GTY marking.
1530 (gimple_statement_transaction): Convert to a subclass of
1531 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
1532 field, adding tag value to GTY marking.
1533 (union gimple_statement_d): Remove.
1534 * system.h (CONST_CAST_GIMPLE): Update to use
1535 "struct gimple_statement_base *" rather than
1536 "union gimple_statement_d *".
1537 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
1538 gimple_statement_d to gimple_statement_base.
1540 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
1541 (gimple_set_use_ops): Port from union to usage of as_a.
1542 (gimple_set_vuse): Likewise.
1543 (gimple_set_vdef): Likewise.
1544 (gimple_call_internal_fn): Port from union to a static_cast,
1545 given that the type has already been asserted.
1546 (gimple_omp_body_ptr): Port from unchecked union usage to
1548 (gimple_omp_set_body): Likewise.
1550 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
1551 gimple types to a true class hierarchy.
1552 (update_call_edge_frequencies): Likewise.
1553 (gsi_insert_seq_nodes_before): Likewise.
1554 (gsi_insert_seq_nodes_after): Likewise.
1555 (gsi_split_seq_after): Likewise.
1556 (gsi_set_stmt): Likewise.
1557 (gsi_split_seq_before): Likewise.
1558 (gsi_remove): Likewise.
1559 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
1560 (gsi_next): Likewise.
1561 (gsi_prev): Likewise.
1562 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
1563 * gimple-ssa.h (gimple_vuse_op): Likewise.
1564 (gimple_vdef_op): Likewise.
1565 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
1566 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1567 * gimple.c (gimple_set_code): Likewise.
1568 (gimple_alloc_stat): Likewise.
1569 (gimple_set_subcode): Likewise.
1570 (gimple_build_call_internal_1): Likewise.
1571 (gimple_check_failed): Likewise.
1572 (gimple_call_flags): Likewise.
1573 (gimple_set_bb): Likewise.
1574 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
1575 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
1576 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
1577 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
1578 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
1579 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
1580 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
1581 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
1582 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
1583 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
1584 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
1585 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
1586 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
1587 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
1588 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
1589 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
1590 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
1591 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
1592 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
1593 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
1594 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
1595 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
1596 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
1597 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
1598 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
1599 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
1601 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
1603 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
1605 (is_a_helper <const gimple_statement_omp_atomic_store>
1606 (const_gimple)): Likewise.
1607 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
1609 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
1611 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
1613 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
1615 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
1617 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
1619 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
1621 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
1622 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
1624 (gimple_seq_last): Update for conversion of gimple types to a true
1626 (gimple_seq_set_last): Likewise.
1627 (gimple_code): Likewise.
1628 (gimple_bb): Likewise.
1629 (gimple_block): Likewise.
1630 (gimple_set_block): Likewise.
1631 (gimple_location): Likewise.
1632 (gimple_location_ptr): Likewise.
1633 (gimple_set_location): Likewise.
1634 (gimple_no_warning_p): Likewise.
1635 (gimple_set_no_warning): Likewise.
1636 (gimple_set_visited): Likewise.
1637 (gimple_visited_p): Likewise.
1638 (gimple_set_plf): Likewise.
1639 (gimple_plf): Likewise.
1640 (gimple_set_uid): Likewise.
1641 (gimple_uid): Likewise.
1642 (gimple_init_singleton): Likewise.
1643 (gimple_modified_p): Likewise.
1644 (gimple_set_modified): Likewise.
1645 (gimple_expr_code): Likewise.
1646 (gimple_has_volatile_ops): Likewise.
1647 (gimple_set_has_volatile_ops): Likewise.
1648 (gimple_omp_subcode): Likewise.
1649 (gimple_omp_set_subcode): Likewise.
1650 (gimple_omp_return_set_nowait): Likewise.
1651 (gimple_omp_section_set_last): Likewise.
1652 (gimple_omp_parallel_set_combined_p): Likewise.
1653 (gimple_omp_atomic_set_need_value): Likewise.
1654 (gimple_omp_atomic_set_seq_cst): Likewise.
1655 (gimple_num_ops): Likewise.
1656 (gimple_set_num_ops): Likewise.
1657 (gimple_assign_nontemporal_move_p): Likewise.
1658 (gimple_assign_set_nontemporal_move): Likewise.
1659 (gimple_assign_rhs_code): Likewise.
1660 (gimple_assign_set_rhs_code): Likewise.
1661 (gimple_call_internal_p): Likewise.
1662 (gimple_call_with_bounds_p): Likewise.
1663 (gimple_call_set_with_bounds): Likewise.
1664 (gimple_call_set_tail): Likewise.
1665 (gimple_call_tail_p): Likewise.
1666 (gimple_call_set_return_slot_opt): Likewise.
1667 (gimple_call_return_slot_opt_p): Likewise.
1668 (gimple_call_set_from_thunk): Likewise.
1669 (gimple_call_from_thunk_p): Likewise.
1670 (gimple_call_set_va_arg_pack): Likewise.
1671 (gimple_call_va_arg_pack_p): Likewise.
1672 (gimple_call_set_nothrow): Likewise.
1673 (gimple_call_set_alloca_for_var): Likewise.
1674 (gimple_call_alloca_for_var_p): Likewise.
1675 (gimple_call_copy_flags): Likewise.
1676 (gimple_cond_code): Likewise.
1677 (gimple_cond_set_code): Likewise.
1678 (gimple_cond_make_false): Likewise.
1679 (gimple_cond_make_true): Likewise.
1680 (gimple_asm_volatile_p): Likewise.
1681 (gimple_asm_set_volatile): Likewise.
1682 (gimple_asm_set_input): Likewise.
1683 (gimple_asm_input_p): Likewise.
1684 (gimple_try_kind): Likewise.
1685 (gimple_try_set_kind): Likewise.
1686 (gimple_try_catch_is_cleanup): Likewise.
1687 (gimple_try_set_catch_is_cleanup): Likewise.
1688 (gimple_wce_cleanup_eh_only): Likewise.
1689 (gimple_wce_set_cleanup_eh_only): Likewise.
1690 (gimple_debug_bind_p): Likewise.
1691 (gimple_debug_source_bind_p): Likewise.
1692 (gimple_omp_for_set_kind): Likewise.
1693 (gimple_omp_for_set_combined_p): Likewise.
1694 (gimple_omp_for_set_combined_into_p): Likewise.
1695 (gimple_omp_target_set_kind): Likewise.
1696 (gimple_transaction_subcode): Likewise.
1697 (gimple_transaction_set_subcode): Likewise.
1698 (gimple_predict_predictor): Likewise.
1699 (gimple_predict_set_predictor): Likewise.
1700 (gimple_predict_outcome): Likewise.
1701 (gimple_predict_set_outcome): Likewise.
1702 (gimple_transaction_set_label): Likewise.
1703 (gimple_transaction_set_body): Likewise.
1704 (gimple_transaction_label_ptr): Likewise.
1705 (gimple_transaction_label): Likewise.
1706 (gimple_transaction_body_ptr): Likewise.
1707 (gimple_omp_continue_set_control_use): Likewise.
1708 (gimple_omp_continue_control_use_ptr): Likewise.
1709 (gimple_omp_continue_control_use): Likewise.
1710 (gimple_omp_continue_set_control_def): Likewise.
1711 (gimple_omp_continue_control_def_ptr): Likewise.
1712 (gimple_omp_continue_control_def): Likewise.
1713 (gimple_omp_atomic_load_rhs_ptr): Likewise.
1714 (gimple_omp_atomic_load_rhs): Likewise.
1715 (gimple_omp_atomic_load_set_rhs): Likewise.
1716 (gimple_omp_atomic_load_lhs_ptr): Likewise.
1717 (gimple_omp_atomic_load_lhs): Likewise.
1718 (gimple_omp_atomic_load_set_lhs): Likewise.
1719 (gimple_omp_atomic_store_val_ptr): Likewise.
1720 (gimple_omp_atomic_store_val): Likewise.
1721 (gimple_omp_atomic_store_set_val): Likewise.
1722 (gimple_omp_for_cond): Likewise.
1723 (gimple_omp_for_set_cond): Likewise.
1724 (gimple_omp_sections_set_control): Likewise.
1725 (gimple_omp_sections_control_ptr): Likewise.
1726 (gimple_omp_sections_control): Likewise.
1727 (gimple_omp_sections_set_clauses): Likewise.
1728 (gimple_omp_sections_clauses_ptr): Likewise.
1729 (gimple_omp_sections_clauses): Likewise.
1730 (gimple_omp_teams_set_clauses): Likewise.
1731 (gimple_omp_teams_clauses_ptr): Likewise.
1732 (gimple_omp_teams_clauses): Likewise.
1733 (gimple_omp_target_set_data_arg): Likewise.
1734 (gimple_omp_target_data_arg_ptr): Likewise.
1735 (gimple_omp_target_data_arg): Likewise.
1736 (gimple_omp_target_set_child_fn): Likewise.
1737 (gimple_omp_target_child_fn_ptr): Likewise.
1738 (gimple_omp_target_child_fn): Likewise.
1739 (gimple_omp_target_set_clauses): Likewise.
1740 (gimple_omp_target_clauses_ptr): Likewise.
1741 (gimple_omp_target_clauses): Likewise.
1742 (gimple_omp_single_set_clauses): Likewise.
1743 (gimple_omp_single_clauses_ptr): Likewise.
1744 (gimple_omp_single_clauses): Likewise.
1745 (gimple_omp_task_set_arg_align): Likewise.
1746 (gimple_omp_task_arg_align_ptr): Likewise.
1747 (gimple_omp_task_arg_align): Likewise.
1748 (gimple_omp_task_set_arg_size): Likewise.
1749 (gimple_omp_task_arg_size_ptr): Likewise.
1750 (gimple_omp_task_arg_size): Likewise.
1751 (gimple_omp_task_set_copy_fn): Likewise.
1752 (gimple_omp_task_copy_fn_ptr): Likewise.
1753 (gimple_omp_task_copy_fn): Likewise.
1754 (gimple_omp_task_set_data_arg): Likewise.
1755 (gimple_omp_task_data_arg_ptr): Likewise.
1756 (gimple_omp_task_data_arg): Likewise.
1757 (gimple_omp_task_set_child_fn): Likewise.
1758 (gimple_omp_task_child_fn_ptr): Likewise.
1759 (gimple_omp_task_child_fn): Likewise.
1760 (gimple_omp_task_set_clauses): Likewise.
1761 (gimple_omp_task_clauses_ptr): Likewise.
1762 (gimple_omp_task_clauses): Likewise.
1763 (gimple_omp_parallel_set_data_arg): Likewise.
1764 (gimple_omp_parallel_data_arg_ptr): Likewise.
1765 (gimple_omp_parallel_data_arg): Likewise.
1766 (gimple_omp_parallel_set_child_fn): Likewise.
1767 (gimple_omp_parallel_child_fn_ptr): Likewise.
1768 (gimple_omp_parallel_child_fn): Likewise.
1769 (gimple_omp_parallel_set_clauses): Likewise.
1770 (gimple_omp_parallel_clauses_ptr): Likewise.
1771 (gimple_omp_parallel_clauses): Likewise.
1772 (gimple_omp_for_set_pre_body): Likewise.
1773 (gimple_omp_for_pre_body_ptr): Likewise.
1774 (gimple_omp_for_set_incr): Likewise.
1775 (gimple_omp_for_incr_ptr): Likewise.
1776 (gimple_omp_for_incr): Likewise.
1777 (gimple_omp_for_set_final): Likewise.
1778 (gimple_omp_for_final_ptr): Likewise.
1779 (gimple_omp_for_final): Likewise.
1780 (gimple_omp_for_set_initial): Likewise.
1781 (gimple_omp_for_initial_ptr): Likewise.
1782 (gimple_omp_for_initial): Likewise.
1783 (gimple_omp_for_set_index): Likewise.
1784 (gimple_omp_for_index_ptr): Likewise.
1785 (gimple_omp_for_index): Likewise.
1786 (gimple_omp_for_collapse): Likewise.
1787 (gimple_omp_for_set_clauses): Likewise.
1788 (gimple_omp_for_clauses_ptr): Likewise.
1789 (gimple_omp_for_clauses): Likewise.
1790 (gimple_omp_critical_set_name): Likewise.
1791 (gimple_omp_critical_name_ptr): Likewise.
1792 (gimple_omp_critical_name): Likewise.
1793 (gimple_eh_dispatch_set_region): Likewise.
1794 (gimple_eh_dispatch_region): Likewise.
1795 (gimple_resx_set_region): Likewise.
1796 (gimple_resx_region): Likewise.
1797 (gimple_phi_set_arg): Likewise.
1798 (gimple_phi_arg): Likewise.
1799 (gimple_phi_set_result): Likewise.
1800 (gimple_phi_result_ptr): Likewise.
1801 (gimple_phi_result): Likewise.
1802 (gimple_phi_num_args): Likewise.
1803 (gimple_phi_capacity): Likewise.
1804 (gimple_wce_set_cleanup): Likewise.
1805 (gimple_wce_cleanup_ptr): Likewise.
1806 (gimple_try_set_cleanup): Likewise.
1807 (gimple_try_set_eval): Likewise.
1808 (gimple_try_cleanup_ptr): Likewise.
1809 (gimple_try_eval_ptr): Likewise.
1810 (gimple_eh_else_set_e_body): Likewise.
1811 (gimple_eh_else_set_n_body): Likewise.
1812 (gimple_eh_else_e_body_ptr): Likewise.
1813 (gimple_eh_else_n_body_ptr): Likewise.
1814 (gimple_eh_must_not_throw_set_fndecl): Likewise.
1815 (gimple_eh_must_not_throw_fndecl): Likewise.
1816 (gimple_eh_filter_set_failure): Likewise.
1817 (gimple_eh_filter_set_types): Likewise.
1818 (gimple_eh_filter_failure_ptr): Likewise.
1819 (gimple_eh_filter_types_ptr): Likewise.
1820 (gimple_eh_filter_types): Likewise.
1821 (gimple_catch_set_handler): Likewise.
1822 (gimple_catch_set_types): Likewise.
1823 (gimple_catch_handler_ptr): Likewise.
1824 (gimple_catch_types_ptr): Likewise.
1825 (gimple_catch_types): Likewise.
1826 (gimple_asm_string): Likewise.
1827 (gimple_asm_set_label_op): Likewise.
1828 (gimple_asm_label_op): Likewise.
1829 (gimple_asm_set_clobber_op): Likewise.
1830 (gimple_asm_clobber_op): Likewise.
1831 (gimple_asm_set_output_op): Likewise.
1832 (gimple_asm_output_op_ptr): Likewise.
1833 (gimple_asm_output_op): Likewise.
1834 (gimple_asm_set_input_op): Likewise.
1835 (gimple_asm_input_op_ptr): Likewise.
1836 (gimple_asm_input_op): Likewise.
1837 (gimple_asm_nlabels): Likewise.
1838 (gimple_asm_nclobbers): Likewise.
1839 (gimple_asm_noutputs): Likewise.
1840 (gimple_asm_ninputs): Likewise.
1841 (gimple_bind_set_block): Likewise.
1842 (gimple_bind_block): Likewise.
1843 (gimple_bind_add_seq): Likewise.
1844 (gimple_bind_add_stmt): Likewise.
1845 (gimple_bind_set_body): Likewise.
1846 (gimple_bind_body_ptr): Likewise.
1847 (gimple_bind_append_vars): Likewise.
1848 (gimple_bind_set_vars): Likewise.
1849 (gimple_bind_vars): Likewise.
1850 (gimple_call_clobber_set): Likewise.
1851 (gimple_call_use_set): Likewise.
1852 (gimple_call_set_internal_fn): Likewise.
1853 (gimple_call_set_fntype): Likewise.
1854 (gimple_call_fntype): Likewise.
1855 (gimple_omp_return_lhs_ptr): Likewise.
1856 (gimple_omp_return_lhs): Likewise.
1857 (gimple_omp_return_set_lhs): Likewise.
1858 (gimple_omp_taskreg_set_data_arg): Likewise.
1859 (gimple_omp_taskreg_data_arg_ptr): Likewise.
1860 (gimple_omp_taskreg_data_arg): Likewise.
1861 (gimple_omp_taskreg_set_child_fn): Likewise.
1862 (gimple_omp_taskreg_child_fn_ptr): Likewise.
1863 (gimple_omp_taskreg_child_fn): Likewise.
1864 (gimple_omp_taskreg_set_clauses): Likewise.
1865 (gimple_omp_taskreg_clauses_ptr): Likewise.
1866 (gimple_omp_taskreg_clauses): Likewise.
1867 (gimple_vuse): Likewise.
1868 (gimple_vdef): Likewise.
1869 (gimple_vuse_ptr): Likewise.
1870 (gimple_vdef_ptr): Likewise.
1871 * tree-inline.c (copy_debug_stmt): Likewise.
1872 * tree-phinodes.c (make_phi_node): Likewise.
1874 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
1875 (is_a_helper <gimple_statement_with_ops>::test): New.
1876 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
1877 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
1879 * gimple-streamer-in.c (input_gimple_stmt): Port from union
1880 access to use of as_a.
1881 * gimple.c (gimple_build_asm_1): Likewise.
1882 (gimple_build_try): Likewise. Also, return a specific subclass
1883 rather than just gimple.
1884 (gimple_build_resx): Port from union access to use of as_a.
1885 (gimple_build_eh_dispatch): Likewise.
1886 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
1887 now that gengtype no longer provides a typed allocator function.
1888 (gimple_copy): Likewise.
1889 * gimple.h (gimple_build_try): Return a specific subclass rather
1891 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
1892 with subclass access by making use of new return type of
1894 * tree-phinodes.c: (allocate_phi_node): Return a
1895 "gimple_statement_phi *" rather than just a gimple.
1896 (resize_phi_node): Likewise.
1897 (make_phi_node): Replace union access with subclass access by
1898 making use of new return type of allocate_phi_node.
1899 (reserve_phi_args_for_new_edge): Replace union access with as_a.
1900 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
1902 (remove_phi_args): Update for change to remove_phi_arg_num.
1904 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
1905 code field to reflect inheritance, rather than embedding of
1906 the base gimple type.
1908 2013-11-19 Richard Biener <rguenther@suse.de>
1910 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
1911 and destructor and make fel_next a member function.
1912 (fel_next): Transform into ...
1913 (loop_iterator::next): ... this.
1914 (fel_init): Transform into ...
1915 (loop_iterator::loop_iterator): ... this.
1916 (loop_iterator::~loop_iterator): New.
1917 (FOR_EACH_LOOP): Remove loop-iterator argument.
1918 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
1919 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
1920 graphite-clast-to-gimple.c, graphite-scop-detection.c,
1921 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
1922 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
1923 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
1924 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
1925 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
1926 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
1927 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
1928 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
1929 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
1930 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
1931 FOR_EACH_LOOP_BREAK with break.
1933 2013-11-19 Richard Biener <rguenther@suse.de>
1935 PR tree-optimization/59164
1936 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
1938 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
1939 whether we can create an epilogue loop to reflect thecases where
1942 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
1944 * graphite-sese-to-poly.c: Include expr.h.
1946 2013-11-19 Richard Biener <rguenther@suse.de>
1949 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
1950 loads into stmts that may clobber it.
1952 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
1954 * cgraphunit.c (symtab_terminator): New variable.
1955 (queued_nodes): Renamed from first. Use symtab_terminator as
1957 (analyze_functions): Adjust accordingly.
1958 (cgraph_process_new_functions): Return void.
1959 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
1961 2013-11-19 Marek Polacek <polacek@redhat.com>
1963 * opts.c (common_handle_option): Add -fsanitize=null option.
1964 Turn off -fdelete-null-pointer-checks option when doing the
1965 NULL pointer checking.
1966 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
1967 * tree-pass.h (make_pass_ubsan): Declare.
1968 (make_pass_sanopt): Declare.
1969 * timevar.def (TV_TREE_UBSAN): New timevar.
1970 * passes.def: Add pass_sanopt and pass_ubsan.
1971 * ubsan.h (ubsan_null_ckind): New enum.
1972 (ubsan_mismatch_data): New struct.
1973 (ubsan_expand_null_ifn): Declare.
1974 (ubsan_create_data): Adjust declaration.
1975 (ubsan_type_descriptor): Likewise.
1976 * asan.c: Include "ubsan.h".
1977 (pass_data_sanopt): New pass.
1978 (execute_sanopt): New function.
1979 (gate_sanopt): Likewise.
1980 (make_pass_sanopt): Likewise.
1981 (class pass_sanopt): New class.
1982 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
1983 gimple-iterator.h and cfgloop.h.
1984 (PROB_VERY_UNLIKELY): Define.
1985 (tree_type_map_hash): New function.
1986 (ubsan_type_descriptor): Add new parameter.
1987 Improve type name generation.
1988 (ubsan_create_data): Add new parameter. Add pointer data into
1990 (ubsan_expand_null_ifn): New function.
1991 (instrument_member_call): Likewise.
1992 (instrument_mem_ref): Likewise.
1993 (instrument_null): Likewise.
1994 (ubsan_pass): Likewise.
1995 (gate_ubsan): Likewise.
1996 (make_pass_ubsan): Likewise.
1997 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
1998 (class pass_ubsan): New class.
1999 (pass_data_ubsan): New pass.
2000 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
2001 * internal-fn.c (expand_UBSAN_NULL): New function.
2002 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
2003 even when !flag_toplevel_reorder.
2004 * internal-fn.def (UBSAN_NULL): New.
2006 2013-11-19 Jan Hubicka <jh@suse.cz>
2008 * cgraph.c (cgraph_create_indirect_edge): Use
2009 get_polymorphic_call_info.
2010 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
2011 maybe_in_construction and maybe_derived_type.
2012 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
2013 (ipa_dummy_polymorphic_call_context): New global var.
2014 (possible_polymorphic_call_targets): Add context paramter.
2015 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
2016 (possible_polymorphic_call_target_p): Likewise.
2017 (get_polymorphic_call_info): New function.
2018 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
2019 (add_type_duplicate): Remove forgotten debug output.
2020 (method_class_type): Add sanity check.
2021 (maybe_record_node): Add FINALP parameter.
2022 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
2023 by info by get_binfo_at_offset.
2024 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
2025 parameters; pass them to record-binfo.
2026 (polymorphic_call_target_d): Add context and FINAL.
2027 (polymorphic_call_target_hasher::hash): Hash context.
2028 (polymorphic_call_target_hasher::equal): Compare context.
2029 (free_polymorphic_call_targets_hash):
2030 (get_class_context): New function.
2031 (contains_type_p): New function.
2032 (get_polymorphic_call_info): New function.
2033 (walk_bases): New function.
2034 (possible_polymorphic_call_targets): Add context parameter; honnor it.
2035 (dump_possible_polymorphic_call_targets): Dump context.
2036 (possible_polymorphic_call_target_p): Add context.
2037 (update_type_inheritance_graph): Update comment.s
2038 (ipa_set_jf_known_type): Assert that compoentn type is known.
2039 (ipa_note_param_call): Do not tamper with offsets.
2040 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
2042 (update_indirect_edges_after_inlining): Likewise.
2043 (ipa_write_indirect_edge_info): Stream new fields.
2044 (ipa_read_indirect_edge_info): Stream in new fields.
2046 2013-11-19 Jan Hubicka <jh@suse.cz>
2048 * tree-pretty-print.c (dump_generic_node): Print class type of
2051 2013-11-19 Joey Ye <joey.ye@arm.com>
2053 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
2054 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
2056 * config/arm/arm.c (arm_option_override): By default disable
2057 -marm-pic-data-is-text-relative.
2058 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
2059 (arm_assemble_integer): Likewise.
2060 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
2061 New macro to initialize -marm-pic-data-is-text-relative.
2063 2013-11-19 Bin Cheng <bin.cheng@arm.com>
2065 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
2066 (address_cost_data): New field.
2067 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
2068 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
2070 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
2072 * config/aarch64/aarch64.md: Remove v8type from all insns.
2074 2013-11-19 Richard Biener <rguenther@suse.de>
2076 PR tree-optimization/57517
2077 * tree-predcom.c (combinable_refs_p): Verify the combination
2078 is always executed when the refs are.
2080 2013-11-19 Jeff Law <law@redhat.com>
2082 * tree-ssa-threadupdate.c: Include ssa-iterators.h
2083 (copy_phi_arg_into_existing_phi): New function.
2084 (any_remaining_duplicated_blocks): Likewise.
2085 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
2086 blocks on a jump threading path.
2088 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
2089 thread through a joiner which has the latch edge.
2091 2013-11-19 Jan Hubicka <jh@suse.cz>
2093 * md.texi (setmem): Document new parameter.
2094 * optabs.c (maybe_gen_insn): Support 9 operands.
2095 * builtins.c (determine_block_size): Add probable_max_size;
2096 support anti-ranges.
2097 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
2099 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
2100 emit_block_move, clear_storage_hints, set_storage_via_setmem):
2102 * expr.h (emit_block_move_hints, clear_storage_hints,
2103 set_storage_via_setmem): Update prototype.
2104 * i386.md (setmem, movmem patterns): Add 9th operand.
2105 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
2106 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
2107 argument; pass it to decide_alg.
2109 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2111 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
2112 (n_basic_blocks_for_fn): ...this.
2114 (n_basic_blocks): Eliminate macro as work towards making uses of
2117 * cfgloop.c (init_loops_structure): Update for renaming of
2118 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
2119 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2120 * ipa-utils.c (ipa_merge_profiles): Likewise.
2121 * lto-streamer-in.c (make_new_block): Likewise.
2122 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2123 (dump_function_to_file): Likewise.
2125 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
2126 macro with "n_basic_blocks_for_fn (cfun)".
2127 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
2128 (duplicate_computed_gotos): Likewise.
2129 (reorder_basic_blocks): Likewise.
2130 * bt-load.c (augment_live_range): Likewise.
2131 * cfg.c (expunge_block): Likewise.
2132 (compact_blocks): Likewise.
2133 * cfganal.c (single_pred_before_succ_order): Likewise.
2134 (compute_idf): Likewise.
2135 (flow_dfs_compute_reverse_init): Likewise.
2136 (pre_and_rev_post_order_compute): Likewise.
2137 (pre_and_rev_post_order_compute_fn): Likewise.
2138 (inverted_post_order_compute): Likewise.
2139 (post_order_compute): Likewise.
2140 (print_edge_list): Likewise.
2141 (find_unreachable_blocks): Likewise.
2142 (mark_dfs_back_edges): Likewise.
2143 * cfgcleanup.c (try_optimize_cfg): Likewise.
2144 (try_forward_edges): Likewise.
2145 * cfghooks.c (dump_flow_info): Likewise.
2146 * cfgloop.c (verify_loop_structure): Likewise.
2147 (get_loop_body): Likewise.
2148 (flow_loops_find): Likewise.
2149 * cfgloopmanip.c (add_loop): Likewise.
2150 (remove_path): Likewise.
2151 (find_path): Likewise.
2152 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2153 (rtl_verify_bb_layout): Likewise.
2154 (entry_of_function): Likewise.
2155 (rtl_create_basic_block): Likewise.
2156 * coverage.c (coverage_compute_cfg_checksum): Likewise.
2157 * cprop.c (one_cprop_pass): Likewise.
2158 (is_too_expensive): Likewise.
2159 * df-core.c (df_compute_cfg_image): Likewise.
2160 (df_compact_blocks): Likewise.
2161 (df_worklist_dataflow_doublequeue): Likewise.
2162 * dominance.c (calculate_dominance_info): Likewise.
2163 (calc_dfs_tree): Likewise.
2164 (calc_dfs_tree_nonrec): Likewise.
2165 (init_dom_info): Likewise.
2166 * domwalk.c (cmp_bb_postorder): Likewise.
2167 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2168 (generate_setjmp_warnings): Likewise.
2169 * fwprop.c (build_single_def_use_links): Likewise.
2170 * gcse.c (is_too_expensive): Likewise.
2171 (one_code_hoisting_pass): Likewise.
2172 (one_pre_gcse_pass): Likewise.
2173 * graphite.c (graphite_initialize): Likewise.
2174 * haifa-sched.c (haifa_sched_init): Likewise.
2175 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
2176 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
2177 * ira-build.c (ira_build): Likewise.
2178 * lcm.c (compute_nearerout): Likewise.
2179 (compute_available): Likewise.
2180 (compute_laterin): Likewise.
2181 (compute_antinout_edge): Likewise.
2182 * lra-lives.c (lra_create_live_ranges): Likewise.
2183 * lra.c (has_nonexceptional_receiver): Likewise.
2184 * mcf.c (create_fixup_graph): Likewise.
2185 * profile.c (branch_prob): Likewise.
2186 * reg-stack.c (convert_regs_2): Likewise.
2187 * regrename.c (regrename_analyze): Likewise.
2188 * reload1.c (has_nonexceptional_receiver): Likewise.
2189 * reorg.c (dbr_schedule): Likewise.
2190 * sched-deps.c (sched_deps_init): Likewise.
2191 * sched-ebb.c (schedule_ebbs): Likewise.
2192 * sched-rgn.c (extend_regions): Likewise.
2193 (schedule_insns): Likewise.
2194 (sched_rgn_init): Likewise.
2195 (extend_rgns): Likewise.
2196 (haifa_find_rgns): Likewise.
2197 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
2198 (sel_recompute_toporder): Likewise.
2199 * sel-sched.c (run_selective_scheduling): Likewise.
2200 * store-motion.c (one_store_motion_pass): Likewise.
2201 (remove_reachable_equiv_notes): Likewise.
2202 * tracer.c (tracer): Likewise.
2203 (tail_duplicate): Likewise.
2204 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
2205 (dump_cfg_stats): Likewise.
2206 (gimple_dump_cfg): Likewise.
2207 (create_bb): Likewise.
2208 (build_gimple_cfg): Likewise.
2209 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
2210 * tree-inline.c (optimize_inline_calls): Likewise.
2211 (fold_marked_statements): Likewise.
2212 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
2213 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
2214 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2215 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
2216 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
2217 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
2218 * tree-ssa-pre.c (do_pre): Likewise.
2219 (init_pre): Likewise.
2220 (compute_avail): Likewise.
2221 * tree-ssa-reassoc.c (init_reassoc): Likewise.
2222 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2223 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
2224 (init_worklist): Likewise.
2225 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2226 * var-tracking.c (variable_tracking_main_1): Likewise.
2227 (vt_find_locations): Likewise.
2228 (vt_stack_adjustments): Likewise.
2229 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
2230 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2232 2013-11-18 Jan Hubicka <jh@suse.cz>
2234 * profile.c (compute_branch_probabilities): Do not sanity check
2237 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
2239 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
2241 * fold-const.c (fold_single_bit_test_into_sign_test)
2242 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
2244 2013-11-18 Teresa Johnson <tejohnson@google.com>
2246 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
2247 cfglayout after bb reordering.
2248 * passes.def: Move compgotos before bb reordering since it goes into
2251 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
2253 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
2254 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
2256 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
2257 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
2258 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
2259 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
2260 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
2261 Remove all_lto_gen_passes.
2262 * passes.c (pass_manager::dump_passes): Remove its use.
2263 (pass_manager::register_pass): Likewise.
2264 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
2265 (pass_manager::pass_manager): Don't initialize or use it.
2266 (write_lto): New static function.
2267 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
2268 instead of using all_lto_gen_passes.
2269 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
2270 pass_ipa_lto_finish_out): Delete.
2271 * tree-pass.h (make_pass_ipa_lto_gimple_out,
2272 make_pass_ipa_lto_finish_out): Don't declare.
2274 2013-11-18 Jeff Law <law@redhat.com>
2276 * tree-ssa-threadupdate.c (redirection_data): Record two
2277 duplicated blocks instead of just one.
2278 (local_info): Explain why we don't create a template for the
2279 second duplicated block in a thread path.
2280 (create_block_for_threading): Accept argument indicating array
2281 index into redirection_data to store its result.
2282 (lookup_redirection_data): Initialize both duplicate blocks.
2283 (ssa_create_duplicates): If a jump threading path needs multiple
2284 blocks duplicated, then duplicate them.
2285 (ssa_fix_duplicate_block_edges): Corresponding changes.
2286 (ssa_fixup_template_block, thread_single_edge): Likewise.
2288 2013-11-18 Marek Polacek <polacek@redhat.com>
2290 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
2292 2013-11-18 Andrew Pinski <apinski@cavium.com>
2293 Steve Ellcey <sellcey@mips.com>
2296 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
2297 type restriction from equality_operator on conditonal move.
2298 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
2299 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
2301 2013-11-18 Jeff Law <law@redhat.com>
2303 * tree-ssa-threadupdate.c: Fix file block comment.
2304 Fix minor indention issue.
2306 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
2308 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
2309 ix86_address_subreg_operand. Move subreg checks to
2310 ix86_validate_address_register. Move address override check to
2311 ix86_legitimate_address_p.
2312 (ix86_validate_address_register): New function.
2313 (ix86_legitimate_address_p): Call ix86_validate_address_register
2314 to validate base and index registers. Add address override check
2315 from ix86_decompose_address.
2316 (ix86_decompose_address): Remove.
2318 2013-11-18 Richard Biener <rguenther@suse.de>
2320 PR tree-optimization/59125
2321 PR tree-optimization/54570
2322 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
2323 is not complete do not treat component-references with offset zero
2324 but different fields as equal.
2325 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
2326 (compute_object_sizes): Apply TLC. Propagate the constant
2327 results into all uses and fold their stmts.
2328 * passes.def (pass_all_optimizations): Move pass_object_sizes
2329 after the first pass_forwprop and before pass_fre.
2331 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2333 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
2334 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
2335 (tree_ctz): Remove cast to unsigned type.
2336 * builtins.c (fold_builtin_memory_op): Likewise.
2337 * dwarf2out.c (descr_info_loc): Likewise.
2338 * godump.c (go_output_typedef): Likewise.
2339 * omp-low.c (expand_omp_simd): Likewise.
2340 * stor-layout.c (excess_unit_span): Likewise.
2341 * tree-object-size.c (addr_object_size): Likewise.
2342 * tree-sra.c (analyze_all_variable_accesses): Likewise.
2343 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
2344 (simplify_rotate): Likewise.
2345 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
2346 (handle_pointer_plus): Likewise.
2347 * tree-switch-conversion.c (check_range): Likewise.
2348 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
2349 * tsan.c (instrument_builtin_call): Likewise.
2350 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
2351 * trans-mem.c (tm_log_add): Likewise.
2352 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
2353 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
2354 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
2355 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
2357 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2359 * tree.h (host_integerp, tree_low_cst): Delete.
2360 * tree.c (host_integerp, tree_low_cst): Delete.
2362 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2364 * expr.h: Update comments to refer to tree_to_[su]hwi rather
2366 * fold-const.c (fold_binary_loc): Likewise.
2367 * expr.c (store_constructor): Use tree_to_uhwi rather than
2369 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
2370 * stmt.c (emit_case_dispatch_table): Likewise.
2371 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
2373 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2375 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
2376 config/aarch64/aarch64.c, config/alpha/predicates.md,
2377 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
2378 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
2379 config/mep/mep-pragma.c, config/mips/mips.c,
2380 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
2381 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
2382 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
2383 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
2384 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
2385 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
2386 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
2387 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
2388 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
2389 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
2391 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2393 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
2394 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
2395 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
2396 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
2397 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
2398 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
2399 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
2400 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
2401 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
2402 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
2403 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
2405 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2407 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
2408 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
2410 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2412 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
2415 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2417 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
2418 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
2419 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
2420 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
2421 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
2422 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
2423 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
2424 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
2425 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
2426 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
2427 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
2428 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
2429 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
2430 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
2431 tree_fits_uhwi_p throughout.
2433 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2435 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
2436 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
2437 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
2438 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
2439 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
2440 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
2441 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
2442 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
2443 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
2444 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
2445 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
2446 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
2447 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
2450 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2452 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
2453 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
2455 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
2457 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
2458 flag if it kills its address, not its post-increment.
2460 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
2462 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
2463 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
2464 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
2465 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
2466 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2467 (gimple_call_with_bounds_p): New.
2468 (gimple_call_set_with_bounds): New.
2469 (gimple_call_num_nobnd_args): Remove.
2470 (gimple_call_nobnd_arg): Remove.
2471 * tree.h (CALL_WITH_BOUNDS_P): New.
2472 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2474 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
2476 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
2477 (symtab_node_name): Rename to symtab_node::name.
2478 (cgraph_node_asm_name): Remove.
2479 (varpool_node_asm_name): Remove.
2480 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
2481 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
2482 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
2483 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
2484 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
2486 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2488 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
2489 * config/arm/arm.c (arm_cortex_a53_tune): New.
2490 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
2492 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2494 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
2495 (case ${target}): Add bdver4.
2496 * config/i386/bdver3.md: Add bdver4.
2497 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2498 -march=native recognize bdver4 processors.
2499 * config/i386/i386-c.c (ix86_target_macros_internal): Add
2500 bdver4 def_and_undef
2501 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
2502 (m_BDVER4): New definition.
2503 (m_AMD_MULTIPLE): Includes m_BDVER4.
2504 (processor_target_table): Add bdver4 entry.
2505 (static const char *const cpu_names): Add bdver4 entry.
2506 (software_prefetching_beneficial_p): Add bdver3.
2507 (ix86_option_override_internal): Add bdver4 instruction sets.
2508 (ix86_issue_rate): Add bdver4.
2509 (ix86_adjust_cost): Add bdver4.
2510 (ia32_multipass_dfa_lookahead): Add bdver4.
2511 (enum processor_model): Add M_AMDFAM15H_BDVER4.
2512 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
2513 (has_dispatch): Add bdver4.
2514 * config/i386/i386.h (TARGET_BDVER4): New definition.
2515 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
2516 (enum processor_type): Add PROCESSOR_BDVER4.
2517 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
2518 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
2519 * doc/extend.texi: Add details about bdver4.
2520 * doc/invoke.texi: Add details about bdver4. Add
2521 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
2523 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2525 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
2526 sdmode_stack_slot also in little-endian mode.
2528 2013-11-17 Jan Hubicka <jh@suse.cz>
2530 * doc/md.texi (setmem, movstr): Update documentation.
2531 * builtins.c (determine_block_size): New function.
2532 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
2533 (expand_builtin_memset_args): Use it and pass it to
2534 set_storage_via_setmem.
2535 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
2536 parameters; update call to expander.
2537 (emit_block_move_hints): Add min_size/max_size parameters.
2538 (clear_storage_hints): Likewise.
2539 (set_storage_via_setmem): Likewise.
2540 (clear_storage): Update.
2541 * expr.h (emit_block_move_hints, clear_storage_hints,
2542 set_storage_via_setmem): Update prototypes.
2543 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
2544 (ix86_expand_movmem, ix86_expand_setmem): Remove.
2545 (ix86_expand_movmem, ix86_expand_setmem): Remove.
2546 * i386.md (movmem, setmem): Pass parameters.
2548 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
2551 * config/i386/i386.c (ix86_address_subreg_operand): Do not
2552 reject non-integer subregs.
2553 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
2554 Move check for invalid x32 constant addresses ...
2555 (ix86_legitimate_address_p): ... here.
2557 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2559 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
2560 parameter and use it in REG_FRAME_RELATED_EXPR note.
2561 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
2563 (rs6000_emit_prologue): Likewise, but for little endian VSX
2564 stores, pass the source register of the store instead.
2566 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
2568 * gimple.h: Reorder prototypes to match .c declaration order, and
2569 remove protyotypes for functions not in gimple.c.
2570 (LABEL): Move to tree-into-ssa.c.
2571 * gimple.c: Remove unused prototypes.
2572 (get_base_address): Move to tree.c.
2573 * tree.c (get_base_address): Relocate from gimple.c.
2574 * builtins.h (validate_gimple_arglist): Add prototype.
2575 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
2576 * cfgexpand.h: New File.
2577 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
2578 * tree.h (build_addr): Move to tree-nested.h.
2579 * tree-nested.h: New File.
2580 (build_addr, lower_nested_functions, insert_field_into_struct): Add
2582 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
2583 * ipa-inline-analysis.c: Include cfgexpand.h.
2584 * cgraphunit.c: Include tree-nested.h.
2585 * omp-low.c: Likewise.
2586 * tree-parloops.c: Likewise.
2587 * gimple-low.h: Likewise.
2588 * tree-profile.h: Likewise.
2589 * expr.c: Include cfgexpand.h.
2590 * tree-affine.c: Likewise.
2591 * tree-ssa.c: Likewise.
2592 * tree-ssa-loop-im.c: Include trans-mem.h.
2593 * tree-ssa-tail-merge.c: Likewise.
2594 * value-prof.c: Include builtins.h and tree-nested.h.
2595 * tree-into-ssa.c (LABEL): Define here.
2597 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
2599 * config/arc/arc.c (arc_predicate_delay_insns): New function.
2600 (pass_data_arc_predicate_delay_insns): New pass_data instance.
2601 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
2602 (make_pass_arc_predicate_delay_insns): New function.
2603 (arc_init): Register pass_arc_predicate_delay_insns if
2604 flag_delayed_branch is active.
2606 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
2608 * config/arc/constraints.md (Rcq): Simplify register number test.
2610 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
2612 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
2614 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
2616 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
2619 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
2621 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
2622 * gimple-pretty-print.c (dump_omp_for): Add case for
2623 GF_OMP_FOR_KIND_CILKSIMD.
2624 * gimple.h (enum gf_mask): Restructure entries to add
2625 GF_OMP_FOR_KIND_CILKSIMD.
2626 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
2627 (gimplify_omp_for): Handle CILK_SIMD.
2628 (gimplify_expr): Add ccase for CILK_SIMD.
2629 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
2630 (build_outer_var_ref): Same.
2631 (check_omp_nesting_restrictions): Same.
2632 (lower_rec_input_clauses): Same.
2633 (lower_lastprivate_clauses): Same.
2634 (expand_omp_for): Same.
2635 (execute_expand_omp): Check flag_enable_cilkplus.
2636 (execute_lower_omp): Same.
2637 (diagnose_sb_0): Handle CILK_SIMD.
2638 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
2639 (setjmp_or_longjmp_p): New.
2640 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
2641 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
2642 * tree.def: Add tree code for CILK_SIMD.
2644 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2646 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
2648 (altivec_vperm_<mode>): Revert earlier little endian change.
2649 (*altivec_vperm_<mode>_internal): Remove.
2650 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
2651 (*altivec_vperm_<mode>_uns_internal): Remove.
2652 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
2654 2013-11-15 Jeff Law <law@redhat.com>
2656 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
2657 has_abnormal_or_outgoing_edge. Check for EH edges as well.
2658 * gimple-ssa-isolate-paths.c
2659 (find_implicit_erroneous_behaviour): Corresponding changes.
2660 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
2661 (find_explicit_erroneous_behaviour): Likewise.
2663 2013-11-15 Jeff Law <law@redhat.com>
2665 * ifcvt.c (find_cond_trap): Properly handle case where
2668 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
2670 * configure: Regenerate.
2672 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
2674 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
2675 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
2676 where it is incorrect or missing.
2678 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2680 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
2682 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
2683 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
2685 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
2686 pair with a TREE_CODE test and TREE_INT_CST_LOW.
2687 * tree-vect-generic.c (expand_vector_divmod): Likewise.
2689 2013-11-15 Richard Biener <rguenther@suse.de>
2691 PR tree-optimization/50262
2692 * tree-ssa-alias.h (struct pt_solution): Split
2693 vars_contains_global into vars_contains_nonlocal,
2694 vars_contains_escaped and vars_contains_escaped_heap.
2695 * tree-ssa-structalias.c (label_visit): Expand comment.
2696 (handle_lhs_call): Adjust comment.
2697 (set_uids_in_ptset): Set the new flags appropriately.
2698 (pt_solution_set): Adjust.
2699 (pt_solution_set_var): Likewise.
2700 (pt_solution_ior_into): Likewise.
2701 (pt_solution_includes_global): Likewise.
2702 (pt_solutions_intersect_1): Optimize escaped handling.
2703 (compute_points_to_sets): Remove heap variable globalization.
2704 (ipa_escaped_pt): Adjust initializer.
2705 (pass_data_ipa_pta): Do not run TODO_update_ssa.
2706 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
2707 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
2709 2013-11-15 Richard Biener <rguenther@suse.de>
2711 * tree-loop-distribution.c (tree_loop_distribution): Make sure
2712 to distribute all stores.
2714 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2716 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
2718 2013-11-15 Joseph Myers <joseph@codesourcery.com>
2720 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
2721 * configure.ac: Determine target_header_dir earlier.
2722 (--with-glibc-version): New configure option.
2723 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
2724 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
2725 * configure: Regenerate.
2726 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
2727 native toolchains for default.
2728 (--with-glibc-version): Document.
2730 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
2732 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
2734 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
2736 * lto-streamer-in.c (input function): Call cgraph_create_node if
2737 cgraph_get_node failed.
2739 2013-11-14 Olivier Hainque <hainque@adacore.com>
2741 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
2742 defer allocation of DECL_IGNORED_P variables at toplevel unless really
2743 small. Factorize size threshold computation from the existing one.
2744 (expand_used_vars): Refine comment.
2746 2013-11-14 Cong Hou <congh@google.com>
2748 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
2749 address field as it can be obtained from dr. Rename the struct.
2750 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
2751 steps of data references during sort.
2752 (vect_prune_runtime_alias_test_list): Adjust with the change to
2753 struct dr_with_seg_len.
2754 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2755 Adjust with the change to struct dr_with_seg_len.
2757 2013-11-14 Jeff Law <law@redhat.com>
2760 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
2761 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
2762 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
2763 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
2764 edges, then ignore it. If the statement exhibiting erroneous
2765 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
2766 then we can not optimize.
2767 (find_explicit_erroneous_behaviour): Likewise.
2769 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
2771 * gimplify-me.h: New file. Add prototypes.
2772 * gimplify.h: Don't include gimple.h.
2773 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
2774 Relocate from gimple.h.
2775 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
2776 is_gimple_sizepos): Move to gimplify.h.
2777 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
2778 (enum gsi_iterator_update): Move to gimple-iterator.h.
2779 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
2780 * gimplify-me.c: New File.
2781 (force_gimple_operand_1, force_gimple_operand,
2782 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2783 gimple_regimplify_operands): Relocate from gimplify.c.
2784 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
2785 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2786 gimple_regimplify_operands): Move to gimplify-me.c.
2787 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
2789 * Makefile.in (OBJS): Add gimplify-me.o
2790 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
2792 * cfgloopmanip.c: Likewise.
2793 * cgraphunit.c: Likewise.
2794 * cilk-common.c: Likewise.
2795 * fold-const.c: Likewise.
2796 * function.c: Likewise.
2797 * gimple-expr.c: Likewise.
2798 * gimple-fold.c: Likewise.
2799 * gimple-ssa-strength-reduction.c: Likewise.
2800 * gimple.c: Likewise.
2801 * graphite-clast-to-gimple.c: Likewise.
2802 * graphite-sese-to-poly.c: Likewise.
2803 * ipa-prop.c: Likewise.
2804 * ipa-split.c: Likewise.
2806 * langhooks.c: Likewise.
2807 * omp-low.c: Likewise.
2809 * stor-layout.c: Likewise.
2810 * targhooks.c: Likewise.
2811 * trans-mem.c: Likewise.
2812 * tree-affine.c: Likewise.
2813 * tree-cfg.c: Likewise.
2814 * tree-cfgcleanup.c: Likewise.
2815 * tree-complex.c: Likewise.
2816 * tree-if-conv.c: Likewise.
2817 * tree-inline.c: Likewise.
2818 * tree-loop-distribution.c: Likewise.
2819 * tree-nested.c: Likewise.
2820 * tree-parloops.c: Likewise.
2821 * tree-predcom.c: Likewise.
2822 * tree-profile.c: Likewise.
2823 * tree-scalar-evolution.c: Likewise.
2824 * tree-sra.c: Likewise.
2825 * tree-ssa-address.c: Likewise.
2826 * tree-ssa-ccp.c: Likewise.
2827 * tree-ssa-dce.c: Likewise.
2828 * tree-ssa-forwprop.c: Likewise.
2829 * tree-ssa-ifcombine.c: Likewise.
2830 * tree-ssa-loop-im.c: Likewise.
2831 * tree-ssa-loop-ivopts.c: Likewise.
2832 * tree-ssa-loop-manip.c: Likewise.
2833 * tree-ssa-loop-niter.c: Likewise.
2834 * tree-ssa-loop-prefetch.c: Likewise.
2835 * tree-ssa-loop-unswitch.c: Likewise.
2836 * tree-ssa-math-opts.c: Likewise.
2837 * tree-ssa-phiopt.c: Likewise.
2838 * tree-ssa-phiprop.c: Likewise.
2839 * tree-ssa-pre.c: Likewise.
2840 * tree-ssa-propagate.c: Likewise.
2841 * tree-ssa-reassoc.c: Likewise.
2842 * tree-ssa-sccvn.c: Likewise.
2843 * tree-ssa-strlen.c: Likewise.
2844 * tree-ssa.c: Likewise.
2845 * tree-switch-conversion.c: Likewise.
2846 * tree-tailcall.c: Likewise.
2847 * tree-vect-data-refs.c: Likewise.
2848 * tree-vect-generic.c: Likewise.
2849 * tree-vect-loop-manip.c: Likewise.
2850 * tree-vect-loop.c: Likewise.
2851 * tree-vect-patterns.c: Likewise.
2852 * tree-vect-stmts.c: Likewise.
2855 * value-prof.c: Likewise.
2856 * config/aarch64/aarch64.c: Likewise.
2857 * config/alpha/alpha.c: Likewise.
2858 * config/darwin.c: Likewise.
2859 * config/i386/i386.c: Likewise.
2860 * config/ia64/ia64.c: Likewise.
2861 * config/mep/mep.c: Likewise.
2862 * config/mips/mips.c: Likewise.
2863 * config/rs6000/rs6000.c: Likewise.
2864 * config/s390/s390.c: Likewise.
2865 * config/sh/sh.c: Likewise.
2866 * config/sparc/sparc.c: Likewise.
2867 * config/spu/spu.c: Likewise.
2868 * config/stormy16/stormy16.c: Likewise.
2869 * config/tilegx/tilegx.c: Likewise.
2870 * config/tilepro/tilepro.c: Likewise.
2871 * config/xtensa/xtensa.c: Likewise.
2873 2013-11-14 Diego Novillo <dnovillo@google.com>
2875 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
2877 2013-11-14 Diego Novillo <dnovillo@google.com>
2879 * tree.h: Include fold-const.h.
2880 (aggregate_value_p): Moved to function.h.
2881 (alloca_call_p): Moved to calls.h.
2882 (allocate_struct_function): Moved to function.h.
2883 (apply_tm_attr): Moved to attribs.h.
2884 (array_at_struct_end_p): Moved to expr.h.
2885 (array_ref_element_size): Moved to tree-dfa.h.
2886 (array_ref_low_bound): Moved to tree-dfa.h.
2887 (array_ref_up_bound): Moved to tree.h.
2888 (assemble_alias): Moved to cgraph.h.
2889 (bit_from_pos): Moved to stor-layout.h.
2890 (build_addr): Moved to tree-nested.h.
2891 (build_duplicate_type): Moved to tree-inline.h.
2892 (build_fold_addr_expr): Moved to fold-const.h.
2893 (build_fold_addr_expr_with_type): Moved to fold-const.h.
2894 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
2895 (build_fold_indirect_ref): Moved to fold-const.h.
2896 (build_fold_indirect_ref_loc): Moved to fold-const.h.
2897 (build_personality_function): Moved to tree.h.
2898 (build_range_check): Moved to fold-const.h.
2899 (build_simple_mem_ref): Moved to fold-const.h.
2900 (build_simple_mem_ref_loc): Moved to fold-const.h.
2901 (build_tm_abort_call): Moved to trans-mem.h.
2902 (byte_from_pos): Moved to stor-layout.h.
2903 (call_expr_flags): Moved to calls.h.
2904 (can_move_by_pieces): Moved to expr.h.
2905 (categorize_ctor_elements): Moved to expr.h.
2906 (change_decl_assembler_name): Moved to gcc-symtab.h.
2907 (combine_comparisons): Moved to fold-const.h.
2908 (complete_ctor_at_level_p): Moved to tree.h.
2909 (component_ref_field_offset): Moved to tree-dfa.h.
2910 (compute_builtin_object_size): Moved to tree-object-size.h.
2911 (compute_record_mode): Moved to stor-layout.h.
2912 (constant_boolean_node): Moved to fold-const.h.
2913 (constructor_static_from_elts_p): Moved to varasm.h.
2914 (cxx11_attribute_p): Moved to attribs.h.
2915 (debug_body): Moved to print-tree.h.
2916 (debug_find_tree): Moved to tree-inline.h.
2917 (debug_fold_checksum): Moved to fold-const.h.
2918 (debug_head): Moved to print-tree.h.
2919 (debug_head): Moved to print-tree.h.
2920 (debug_raw): Moved to print-tree.h.
2921 (debug_tree): Moved to print-tree.h.
2922 (debug_vec_tree): Moved to print-tree.h.
2923 (debug_verbose): Moved to print-tree.h.
2924 (debug_verbose): Moved to print-tree.h.
2925 (decl_attributes): Moved to attribs.h.
2926 (decl_binds_to_current_def_p): Moved to varasm.h.
2927 (decl_default_tls_model): Moved to varasm.h.
2928 (decl_replaceable_p): Moved to varasm.h.
2929 (div_if_zero_remainder): Moved to fold-const.h.
2930 (double_int mem_ref_offset): Moved to fold-const.h.
2931 (dump_addr): Moved to print-tree.h.
2932 (element_precision): Moved to machmode.h.
2933 (expand_dummy_function_end): Moved to function.h.
2934 (expand_function_end): Moved to function.h.
2935 (expand_function_start): Moved to function.h.
2936 (expand_label): Moved to stmt.h.
2937 (expr_first): Moved to tree-iterator.h.
2938 (expr_last): Moved to tree-iterator.h.
2939 (finalize_size_functions): Moved to stor-layout.h.
2940 (finish_builtin_struct): Moved to stor-layout.h.
2941 (finish_record_layout): Moved to stor-layout.h.
2942 (fixup_signed_type): Moved to stor-layout.h.
2943 (fixup_unsigned_type): Moved to stor-layout.h.
2944 (flags_from_decl_or_type): Moved to calls.h.
2945 (fold): Moved to fold-const.h.
2946 (fold_abs_const): Moved to fold-const.h.
2947 (fold_binary): Moved to fold-const.h.
2948 (fold_binary_loc): Moved to fold-const.h.
2949 (fold_binary_to_constant): Moved to fold-const.h.
2950 (fold_build1): Moved to fold-const.h.
2951 (fold_build1_initializer_loc): Moved to fold-const.h.
2952 (fold_build1_loc): Moved to fold-const.h.
2953 (fold_build1_stat_loc): Moved to fold-const.h.
2954 (fold_build2): Moved to fold-const.h.
2955 (fold_build2_initializer_loc): Moved to fold-const.h.
2956 (fold_build2_loc): Moved to fold-const.h.
2957 (fold_build2_stat_loc): Moved to fold-const.h.
2958 (fold_build3): Moved to fold-const.h.
2959 (fold_build3_loc): Moved to fold-const.h.
2960 (fold_build3_stat_loc): Moved to fold-const.h.
2961 (fold_build_call_array): Moved to fold-const.h.
2962 (fold_build_call_array_initializer): Moved to fold-const.h.
2963 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
2964 (fold_build_call_array_loc): Moved to fold-const.h.
2965 (fold_build_cleanup_point_expr): Moved to fold-const.h.
2966 (fold_convert): Moved to fold-const.h.
2967 (fold_convert_loc): Moved to fold-const.h.
2968 (fold_convertible_p): Moved to fold-const.h.
2969 (fold_defer_overflow_warnings): Moved to fold-const.h.
2970 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
2971 (fold_fma): Moved to fold-const.h.
2972 (fold_ignored_result): Moved to fold-const.h.
2973 (fold_indirect_ref): Moved to fold-const.h.
2974 (fold_indirect_ref_1): Moved to fold-const.h.
2975 (fold_indirect_ref_loc): Moved to fold-const.h.
2976 (fold_read_from_constant_string): Moved to fold-const.h.
2977 (fold_real_zero_addition_p): Moved to fold-const.h.
2978 (fold_single_bit_test): Moved to fold-const.h.
2979 (fold_strip_sign_ops): Moved to fold-const.h.
2980 (fold_ternary): Moved to fold-const.h.
2981 (fold_ternary_loc): Moved to fold-const.h.
2982 (fold_unary): Moved to tree-data-ref.h.
2983 (fold_unary_ignore_overflow): Moved to fold-const.h.
2984 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
2985 (fold_unary_loc): Moved to fold-const.h.
2986 (fold_unary_to_constant): Moved to fold-const.h.
2987 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
2988 (fold_undefer_overflow_warnings): Moved to fold-const.h.
2989 (folding_initializer): Moved to fold-const.h.
2990 (free_temp_slots): Moved to function.h.
2991 (generate_setjmp_warnings): Moved to function.h.
2992 (get_attribute_name): Moved to attribs.h.
2993 (get_identifier): Moved to stringpool.h.
2994 (get_identifier_with_length): Moved to stringpool.h.
2995 (get_inner_reference): Moved to tree.h.
2996 (gimple_alloca_call_p): Moved to calls.h.
2997 (gimplify_parameters): Moved to function.h.
2998 (highest_pow2_factor): Moved to expr.h.
2999 (indent_to): Moved to print-tree.h.
3000 (init_attributes): Moved to attribs.h.
3001 (init_dummy_function_start): Moved to function.h.
3002 (init_function_start): Moved to function.h.
3003 (init_inline_once): Moved to tree-inline.h.
3004 (init_object_sizes): Moved to tree-object-size.h.
3005 (init_temp_slots): Moved to function.h.
3006 (init_tree_optimization_optabs): Moved to optabs.h.
3007 (initialize_sizetypes): Moved to stor-layout.h.
3008 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
3009 (initializer_constant_valid_p): Moved to varasm.h.
3010 (int_const_binop): Moved to fold-const.h.
3011 (internal_reference_types): Moved to stor-layout.h.
3012 (invert_tree_comparison): Moved to fold-const.h.
3013 (invert_truthvalue): Moved to fold-const.h.
3014 (invert_truthvalue_loc): Moved to fold-const.h.
3015 (is_tm_ending_fndecl): Moved to trans-mem.h.
3016 (is_tm_may_cancel_outer): Moved to trans-mem.h.
3017 (is_tm_pure): Moved to trans-mem.h.
3018 (is_tm_safe): Moved to trans-mem.h.
3019 (layout_decl): Moved to stor-layout.h.
3020 (layout_type): Moved to stor-layout.h.
3021 (lookup_attribute_spec): Moved to attribs.h.
3022 (make_accum_type): Moved to stor-layout.h.
3023 (make_decl_one_only): Moved to varasm.h.
3024 (make_decl_rtl): Moved to tree.h.
3025 (make_decl_rtl_for_debug): Moved to varasm.h.
3026 (make_fract_type): Moved to stor-layout.h.
3027 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
3028 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
3029 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
3030 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
3031 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
3032 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
3033 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
3034 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
3035 (make_range): Moved to fold-const.h.
3036 (make_range_step): Moved to fold-const.h.
3037 (make_sat_signed_accum_type): Moved to stor-layout.h.
3038 (make_sat_signed_fract_type): Moved to stor-layout.h.
3039 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
3040 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
3041 (make_signed_accum_type): Moved to stor-layout.h.
3042 (make_signed_fract_type): Moved to stor-layout.h.
3043 (make_signed_type): Moved to stor-layout.h.
3044 (make_unsigned_accum_type): Moved to stor-layout.h.
3045 (make_unsigned_fract_type): Moved to stor-layout.h.
3046 (make_unsigned_type): Moved to stor-layout.h.
3047 (mark_decl_referenced): Moved to varasm.h.
3048 (mark_referenced): Moved to varasm.h.
3049 (may_negate_without_overflow_p): Moved to fold-const.h.
3050 (maybe_get_identifier): Moved to stringpool.h.
3051 (merge_ranges): Moved to fold-const.h.
3052 (merge_weak): Moved to varasm.h.
3053 (mode_for_size_tree): Moved to stor-layout.h.
3054 (multiple_of_p): Moved to fold-const.h.
3055 (must_pass_in_stack_var_size): Moved to calls.h.
3056 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
3057 (native_encode_expr): Moved to fold-const.h.
3058 (native_interpret_expr): Moved to fold-const.h.
3059 (non_lvalue): Moved to fold-const.h.
3060 (non_lvalue_loc): Moved to fold-const.h.
3061 (normalize_offset): Moved to stor-layout.h.
3062 (normalize_rli): Moved to stor-layout.h.
3063 (notice_global_symbol): Moved to varasm.h.
3064 (omit_one_operand): Moved to fold-const.h.
3065 (omit_one_operand_loc): Moved to fold-const.h.
3066 (omit_two_operands): Moved to fold-const.h.
3067 (omit_two_operands_loc): Moved to fold-const.h.
3068 (operand_equal_p): Moved to tree-data-ref.h.
3069 (parse_input_constraint): Moved to stmt.h.
3070 (parse_output_constraint): Moved to stmt.h.
3071 (place_field): Moved to stor-layout.h.
3072 (pop_function_context): Moved to function.h.
3073 (pop_temp_slots): Moved to function.h.
3074 (pos_from_bit): Moved to stor-layout.h.
3075 (preserve_temp_slots): Moved to function.h.
3076 (print_node): Moved to print-tree.h.
3077 (print_node_brief): Moved to print-tree.h.
3078 (print_rtl): Moved to rtl.h.
3079 (process_pending_assemble_externals): Moved to varasm.h.
3080 (ptr_difference_const): Moved to fold-const.h.
3081 (push_function_context): Moved to function.h.
3082 (push_struct_function): Moved to function.h.
3083 (push_temp_slots): Moved to function.h.
3084 (record_tm_replacement): Moved to trans-mem.h.
3085 (relayout_decl): Moved to stor-layout.h.
3086 (resolve_asm_operand_names): Moved to stmt.h.
3087 (resolve_unique_section): Moved to varasm.h.
3088 (rli_size_so_far): Moved to stor-layout.h.
3089 (rli_size_unit_so_far): Moved to stor-layout.h.
3090 (round_down): Moved to fold-const.h.
3091 (round_down_loc): Moved to fold-const.h.
3092 (round_up): Moved to fold-const.h.
3093 (round_up_loc): Moved to fold-const.h.
3094 (set_decl_incoming_rtl): Moved to emit-rtl.h.
3095 (set_decl_rtl): Moved to tree.h.
3096 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
3097 (set_user_assembler_name): Moved to varasm.h.
3098 (setjmp_call_p): Moved to calls.h.
3099 (size_binop): Moved to fold-const.h.
3100 (size_binop_loc): Moved to fold-const.h.
3101 (size_diffop): Moved to fold-const.h.
3102 (size_diffop_loc): Moved to fold-const.h.
3103 (size_int_kind): Moved to fold-const.h.
3104 (stack_protect_epilogue): Moved to function.h.
3105 (start_record_layout): Moved to stor-layout.h.
3106 (supports_one_only): Moved to varasm.h.
3107 (swap_tree_comparison): Moved to fold-const.h.
3108 (tm_malloc_replacement): Moved to trans-mem.h.
3109 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
3110 (tree build_invariant_address): Moved to fold-const.h.
3111 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
3112 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
3113 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
3114 (tree_expr_nonnegative_p): Moved to fold-const.h.
3115 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
3116 (tree_output_constant_def): Moved to varasm.h.
3117 (tree_overlaps_hard_reg_set): Moved to stmt.h.
3118 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
3119 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
3120 (tree_swap_operands_p): Moved to fold-const.h.
3121 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
3122 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
3123 (update_alignment_for_field): Moved to stor-layout.h.
3124 (use_register_for_decl): Moved to function.h.
3125 (variable_size): Moved to rtl.h.
3126 (vector_type_mode): Moved to stor-layout.h.
3127 * cgraph.h: Corresponding changes.
3128 * emit-rtl.h: Corresponding changes.
3129 * expr.h: Corresponding changes.
3130 * function.h: Corresponding changes.
3131 * optabs.h: Corresponding changes.
3132 * trans-mem.h: Corresponding changes.
3133 Protect against multiple inclusion.
3134 * tree-inline.h: Corresponding changes.
3135 * tree-iterator.h: Corresponding changes.
3136 * tree-dfa.h: Include expr.h.
3137 * tree-ssanames.h: Include stringpool.h.
3138 * attribs.h: New file.
3139 * calls.h: New file.
3140 * fold-const.h: New file.
3141 * gcc-symtab.h: New file.
3142 * print-rtl.h: New file.
3143 * print-tree.h: New file.
3145 * stor-layout.h: New file.
3146 * strinpool.h: New file.
3147 * tree-nested.h: New file
3148 * tree-object-size.h: New file.
3149 * varasm.h: New file.
3151 2013-11-14 Diego Novillo <dnovillo@google.com>
3153 * alias.c: Include varasm.h.
3155 * asan.c: Include calls.h.
3156 Include stor-layout.h.
3158 * attribs.c: Include stringpool.h.
3160 Include stor-layout.h.
3161 * builtins.c: Include stringpool.h.
3162 Include stor-layout.h.
3165 Include tree-object-size.h.
3166 * calls.c: Include stor-layout.h.
3168 Include stringpool.h.
3170 * cfgexpand.c: Include stringpool.h.
3172 Include stor-layout.h.
3174 Include print-tree.h.
3175 * cgraph.c: Include varasm.h.
3177 Include print-tree.h.
3178 * cgraphclones.c: Include stringpool.h.
3181 Move inclusion of rtl.h earlier in the file.
3182 * cgraphunit.c: Include varasm.h.
3183 Include stor-layout.h.
3184 Include stringpool.h.
3185 * cilk-common.c: Include stringpool.h.
3186 Include stor-layout.h.
3187 * combine.c: Include stor-layout.h.
3188 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
3189 Include stringpool.h.
3191 * config/aarch64/aarch64.c: Include stringpool.h.
3192 Include stor-layout.h.
3195 * config/alpha/alpha.c: Include stor-layout.h.
3198 * config/arc/arc.c: Include varasm.h.
3199 Include stor-layout.h.
3200 Include stringpool.h.
3202 * config/arm/arm.c: Include stringpool.h.
3203 Include stor-layout.h.
3206 * config/avr/avr-c.c: Include stor-layout.h.
3207 * config/avr/avr-log.c: Include print-tree.h.
3208 * config/avr/avr.c: Include print-tree.h.
3210 Include stor-layout.h.
3211 Include stringpool.h.
3212 * config/bfin/bfin.c: Include varasm.h.
3214 * config/c6x/c6x.c: Include stor-layout.h.
3217 Include stringpool.h.
3218 * config/cr16/cr16.c: Include stor-layout.h.
3220 * config/cris/cris.c: Include varasm.h.
3221 Include stor-layout.h.
3224 * config/darwin.c: Include stringpool.h.
3226 Include stor-layout.h.
3227 * config/epiphany/epiphany.c: Include stor-layout.h.
3230 Include stringpool.h.
3231 * config/fr30/fr30.c: Include stor-layout.h.
3233 * config/frv/frv.c: Include varasm.h.
3234 Include stor-layout.h.
3235 Include stringpool.h.
3236 * config/h8300/h8300.c: Include stor-layout.h.
3239 Include stringpool.h.
3240 * config/i386/i386.c: Include stringpool.h.
3243 Include stor-layout.h.
3245 * config/i386/winnt-cxx.c: Include stringpool.h.
3247 * config/i386/winnt.c: Include stringpool.h.
3249 * config/ia64/ia64-c.c: Include stringpool.h.
3250 * config/ia64/ia64.c: Include stringpool.h.
3251 Include stor-layout.h.
3254 * config/iq2000/iq2000.c: Include stor-layout.h.
3257 * config/lm32/lm32.c: Include calls.h.
3258 * config/m32c/m32c.c: Include stor-layout.h.
3261 * config/m32r/m32r.c: Include stor-layout.h.
3263 Include stringpool.h.
3265 * config/m68k/m68k.c: Include calls.h.
3266 Include stor-layout.h.
3268 * config/mcore/mcore.c: Include stor-layout.h.
3270 Include stringpool.h.
3272 * config/mep/mep.c: Include varasm.h.
3274 Include stringpool.h.
3275 Include stor-layout.h.
3276 * config/microblaze/microblaze.c: Include varasm.h.
3277 Include stor-layout.h.
3279 * config/mips/mips.c: Include varasm.h.
3280 Include stringpool.h.
3281 Include stor-layout.h.
3283 * config/mmix/mmix.c: Include varasm.h.
3284 Include stor-layout.h.
3286 * config/mn10300/mn10300.c: Include stor-layout.h.
3289 * config/moxie/moxie.c: Include stor-layout.h.
3292 * config/msp430/msp430.c: Include stor-layout.h.
3294 * config/nds32/nds32.c: Include stor-layout.h.
3297 * config/pa/pa.c: Include stor-layout.h.
3298 Include stringpool.h.
3301 * config/pdp11/pdp11.c: Include stor-layout.h.
3304 * config/picochip/picochip.c: Include calls.h.
3305 Include stor-layout.h.
3306 Include stringpool.h.
3308 * config/rl78/rl78.c: Include varasm.h.
3309 Include stor-layout.h.
3311 * config/rs6000/rs6000-c.c: Include stor-layout.h.
3312 Include stringpool.h.
3313 * config/rs6000/rs6000.c: Include stringpool.h.
3314 Include stor-layout.h.
3316 Include print-tree.h.
3318 * config/rx/rx.c: Include varasm.h.
3319 Include stor-layout.h.
3321 * config/s390/s390.c: Include print-tree.h.
3322 Include stringpool.h.
3323 Include stor-layout.h.
3326 * config/score/score.c: Include stringpool.h.
3329 Include stor-layout.h.
3330 * config/sh/sh-c.c: Include stringpool.h.
3331 Include attribs.h.h.
3332 * config/sh/sh.c: Include stringpool.h.
3333 Include stor-layout.h.
3336 * config/sol2-c.c: Include stringpool.h.
3338 * config/sol2-cxx.c: Include stringpool.h.
3339 * config/sol2.c: Include stringpool.h.
3341 * config/sparc/sparc.c: Include stringpool.h.
3342 Include stor-layout.h.
3345 * config/spu/spu-c.c: Include stringpool.h.
3346 * config/spu/spu.c: Include stringpool.h.
3347 Include stor-layout.h.
3350 * config/stormy16/stormy16.c: Include stringpool.h.
3351 Include stor-layout.h.
3354 * config/tilegx/tilegx.c: Include stringpool.h.
3355 Include stor-layout.h.
3358 * config/tilepro/tilepro.c: Include stringpool.h.
3359 Include stor-layout.h.
3362 * config/v850/v850-c.c: Include stringpool.h.
3364 * config/v850/v850.c: Include stringpool.h.
3365 Include stor-layout.h.
3368 * config/vax/vax.c: Include calls.h.
3370 * config/vms/vms.c: Include stringpool.h.
3371 * config/vxworks.c: Include stringpool.h.
3372 * config/xtensa/xtensa.c: Include stringpool.h.
3373 Include stor-layout.h.
3376 * convert.c: Include stor-layout.h.
3377 * coverage.c: Include stringpool.h.
3378 Include stor-layout.h.
3379 * dbxout.c: Include varasm.h.
3380 Include stor-layout.h.
3381 * dojump.c: Include stor-layout.h.
3382 * dse.c: Include stor-layout.h.
3383 * dwarf2asm.c: Include stringpool.h.
3385 * dwarf2cfi.c: Include stor-layout.h.
3386 * dwarf2out.c: Include rtl.h.
3387 Include stringpool.h.
3388 Include stor-layout.h.
3392 Move inclusion of rtl.h earlier in the file.
3393 * emit-rtl.c: Include varasm.h.
3394 * except.c: Include stringpool.h.
3395 Include stor-layout.h.
3396 * explow.c: Include stor-layout.h.
3397 * expmed.c: Include stor-layout.h.
3398 * expr.c: Include stringpool.h.
3399 Include stor-layout.h.
3402 * final.c: Include varasm.h.
3403 * fold-const.c: Include stor-layout.h.
3405 Include tree-iterator.h.
3406 * function.c: Include stor-layout.h.
3408 Include stringpool.h.
3409 * genattrtab.c (write_header): Emit includes for varasm.h,
3410 stor-layout.h and calls.h.
3411 * genautomata.c (main): Likewise.
3412 * genemit.c: Likewise.
3413 * genopinit.c: Likewise.
3414 * genoutput.c (output_prologue): Likewise.
3415 * genpeep.c: Likewise.
3416 * genpreds.c (write_insn_preds_c): Likewise.
3417 * gengtype.c (open_base_files): Add stringpool.h.
3418 * gimple-expr.c: Include stringpool.h.
3419 Include stor-layout.h.
3420 * gimple-fold.c: Include stringpool.h.
3423 Include stor-layout.h.
3424 * gimple-low.c: Include tree-nested.h.
3426 * gimple-pretty-print.c: Include stringpool.h.
3427 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
3429 * gimple-walk.c: Include stmt.h.
3430 * gimple.c: Include calls.h.
3432 Include stor-layout.h.
3433 * gimplify.c: Include stringpool.h.
3436 Include stor-layout.h.
3438 Include print-tree.h.
3440 * gimplify-me.c: Include stmt.h
3441 Include stor-layout.h
3442 * internal-fn.c: Include stor-layout.h.
3443 * ipa-devirt.c: Include print-tree.h.
3445 * ipa-inline-analysis.c: Include stor-layout.h.
3446 Include stringpool.h.
3447 Include print-tree.h.
3448 * ipa-inline.c: Include trans-mem.h.
3450 * ipa-prop.c: Include expr.h.
3451 Include stor-layout.h.
3452 Include print-tree.h.
3453 * ipa-pure-const.c: Include print-tree.h.
3455 * ipa-reference.c: Include calls.h.
3456 * ipa-split.c: Include stringpool.h.
3459 * ipa.c: Include calls.h.
3460 Include stringpool.h.
3461 * langhooks.c: Include stringpool.h.
3463 * lto-cgraph.c: Include stringpool.h.
3464 * lto-streamer-in.c: Include stringpool.h.
3465 * lto-streamer-out.c: Include stor-layout.h.
3466 Include stringpool.h.
3467 * omp-low.c: Include stringpool.h.
3468 Include stor-layout.h.
3470 * optabs.c: Include stor-layout.h.
3471 Include stringpool.h.
3473 * passes.c: Include varasm.h.
3474 * predict.c: Include calls.h.
3475 * print-rtl.c: Include print-tree.h.
3476 * print-tree.c: Include varasm.h.
3477 Include print-rtl.h.
3478 Include stor-layout.h.
3479 * realmpfr.c: Include stor-layout.h.
3480 * reg-stack.c: Include varasm.h.
3481 * sdbout.c: Include varasm.h.
3482 Include stor-layout.h.
3483 * simplify-rtx.c: Include varasm.h.
3484 * stmt.c: Include varasm.h.
3485 Include stor-layout.h.
3486 * stor-layout.c: Include stor-layout.h.
3487 Include stringpool.h.
3489 Include print-tree.h.
3490 * symtab.c: Include rtl.h.
3491 Include print-tree.h.
3495 * targhooks.c: Include stor-layout.h.
3497 * toplev.c: Include varasm.h.
3498 Include tree-inline.h.
3499 * trans-mem.c: Include calls.h.
3503 * tree-affine.c: Include expr.h.
3504 * tree-browser.c: Include print-tree.h.
3505 * tree-call-cdce.c: Include stor-layout.h.
3506 * tree-cfg.c: Include trans-mem.h.
3507 Include stor-layout.h.
3508 Include print-tree.h.
3509 * tree-complex.c: Include stor-layout.h.
3510 * tree-data-ref.c: Include expr.h.
3511 * tree-dfa.c: Include stor-layout.h.
3512 * tree-eh.c: Include expr.h.
3514 * tree-emutls.c: Include stor-layout.h.
3516 * tree-if-conv.c: Include stor-layout.h.
3517 * tree-inline.c: Include stor-layout.h.
3519 * tree-loop-distribution.c: Include stor-layout.h.
3520 * tree-nested.c: Include stringpool.h.
3521 Include stor-layout.h.
3522 * tree-object-size.c: Include tree-object-size.h.
3523 * tree-outof-ssa.c: Include stor-layout.h.
3524 * tree-parloops.c: Include stor-layout.h.
3525 Include tree-nested.h.
3526 * tree-pretty-print.c: Include stor-layout.h.
3528 * tree-profile.c: Include varasm.h.
3529 Include tree-nested.h.
3530 * tree-scalar-evolution.c: Include expr.h.
3531 * tree-sra.c: Include stor-layout.h.
3532 * tree-ssa-address.c: Include stor-layout.h.
3533 * tree-ssa-ccp.c: Include stor-layout.h.
3534 * tree-ssa-dce.c: Include calls.h.
3535 * tree-ssa-dom.c: Include stor-layout.h.
3536 * tree-ssa-forwprop.c: Include stor-layout.h.
3537 * tree-ssa-ifcombine.c: Include stor-layout.h.
3538 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
3539 * tree-ssa-loop-niter.c: Include calls.h.
3541 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
3542 * tree-ssa-math-opts.c: Include stor-layout.h.
3543 * tree-ssa-operands.c: Include stmt.h.
3544 Include print-tree.h.
3545 * tree-ssa-phiopt.c: Include stor-layout.h.
3546 * tree-ssa-reassoc.c: Include stor-layout.h.
3547 * tree-ssa-sccvn.c: Include stor-layout.h.
3548 * tree-ssa-sink.c: Include stor-layout.h.
3549 * tree-ssa-strlen.c: Include stor-layout.h.
3550 * tree-ssa-structalias.c: Include stor-layout.h.
3552 * tree-ssa-tail-merge.c: Include stor-layout.h.
3553 Include trans-mem.h.
3554 * tree-ssa-uncprop.c: Include stor-layout.h.
3555 * tree-ssa.c: Include stor-layout.h.
3556 * tree-ssanames.c: Include stor-layout.h.
3557 * tree-streamer-in.c: Include stringpool.h.
3558 * tree-streamer-out.c: Include stor-layout.h.
3559 * tree-switch-conversion.c: Include varasm.h.
3560 Include stor-layout.h.
3561 * tree-tailcall.c: Include stor-layout.h.
3562 * tree-vect-data-refs.c: Include stor-layout.h.
3563 * tree-vect-generic.c: Include stor-layout.h.
3564 * tree-vect-loop.c: Include stor-layout.h.
3565 * tree-vect-patterns.c: Include stor-layout.h.
3566 * tree-vect-slp.c: Include stor-layout.h.
3567 * tree-vect-stmts.c: Include stor-layout.h.
3568 * tree-vectorizer.c: Include stor-layout.h.
3569 * tree-vrp.c: Include stor-layout.h.
3571 * tree.c: Include stor-layout.h.
3575 * tsan.c: Include expr.h.
3576 * ubsan.c: Include stor-layout.h.
3577 Include stringpool.h.
3578 * value-prof.c: Include tree-nested.h.
3580 * var-tracking.c: Include varasm.h.
3581 Include stor-layout.h.
3582 * varasm.c: Include stor-layout.h.
3583 Include stringpool.h.
3584 Include gcc-symtab.h.
3586 * varpool.c: Include varasm.h.
3587 * vmsdbgout.c: Include varasm.h.
3588 * xcoffout.c: Include varasm.h.
3590 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
3592 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
3595 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3597 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
3599 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3600 Alan Modra <amodra@gmail.com>
3602 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
3603 (RS6000_SAVE_TOC): Remove.
3604 (RS6000_TOC_SAVE_SLOT): New macro.
3605 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
3606 (rs6000_parm_start): Use it.
3607 (rs6000_function_arg_advance_1): Likewise.
3608 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
3609 (rs6000_emit_epilogue): Likewise.
3610 (rs6000_call_aix): Likewise.
3611 (rs6000_output_function_prologue): Do not save/restore r11
3612 around calling _mcount for ABI_ELFv2.
3614 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3615 Alan Modra <amodra@gmail.com>
3617 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
3619 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
3620 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
3621 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
3622 (rs6000_function_parms_need_stack): Likewise.
3623 (rs6000_reg_parm_stack_space): Likewise.
3624 (rs6000_function_arg): Do not replace BLKmode by Pmode when
3625 returning a register argument.
3627 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3628 Michael Gschwind <mkg@us.ibm.com>
3630 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
3631 (ALTIVEC_ARG_MAX_RETURN): Likewise.
3632 (FUNCTION_VALUE_REGNO_P): Use them.
3633 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
3634 (rs6000_return_in_msb): New function.
3635 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
3636 Handle aggregates of up to 16 bytes for ELFv2.
3637 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
3639 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3640 Michael Gschwind <mkg@us.ibm.com>
3642 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3643 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3644 (rs6000_discover_homogeneous_aggregate): Likewise.
3645 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3646 (rs6000_function_arg_advance_1): Likewise.
3647 (rs6000_function_arg): Likewise.
3648 (rs6000_arg_partial_bytes): Likewise.
3649 (rs6000_psave_function_arg): Handle BLKmode arguments.
3651 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3652 Michael Gschwind <mkg@us.ibm.com>
3654 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3655 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3656 (rs6000_discover_homogeneous_aggregate): Likewise.
3657 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3658 (rs6000_function_arg_advance_1): Likewise.
3659 (rs6000_function_arg): Likewise.
3660 (rs6000_arg_partial_bytes): Likewise.
3661 (rs6000_psave_function_arg): Handle BLKmode arguments.
3663 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3665 * config/rs6000/rs6000.c (machine_function): New member
3667 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
3668 (rs6000_output_mi_thunk): Set r2_setup_needed.
3669 (rs6000_output_function_prologue): Output global entry point
3670 prologue and local entry point marker if needed for ABI_ELFv2.
3671 Output -mprofile-kernel code here.
3672 (output_function_profiler): Do not output -mprofile-kernel
3673 code here; moved to rs6000_output_function_prologue.
3674 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
3676 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
3677 (rs6000_output_function_entry): Likewise.
3678 (rs6000_assemble_integer): Likewise.
3679 (rs6000_elf_encode_section_info): Likewise.
3680 (rs6000_elf_declare_function_name): Do not create dot symbols
3681 or .opd section for ABI_ELFv2.
3683 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
3684 (rs6000_trampoline_init): Likewise.
3685 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
3687 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
3688 for function descriptors in ABI_ELFv2.
3690 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
3691 on ABI_AIX only, not ABI_ELFv2.
3692 ("*call_value_indirect_aix<mode>"): Likewise.
3693 ("*call_indirect_elfv2<mode>"): New pattern.
3694 ("*call_value_indirect_elfv2<mode>"): Likewise.
3696 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
3697 check for function descriptors in ABI_ELFv2.
3698 ("current_file_function_operand"): Likewise.
3700 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
3702 (FUNC_NAME): Define ELFv2 variant.
3703 (JUMP_TARGET): Likewise.
3704 (FUNC_START): Likewise.
3705 (HIDDEN_FUNC): Likewise.
3706 (FUNC_END): Likeiwse.
3708 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3710 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
3711 and --with-abi=elfv2.
3712 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
3713 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
3714 (mabi=elfv2): Likewise.
3715 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
3716 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
3718 (ELFv2_ABI_CHECK): New macro.
3719 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
3720 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
3721 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
3722 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
3723 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
3725 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
3726 (debug_stack_info): Likewise.
3727 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
3728 (rs6000_legitimize_tls_address): Likewise.
3729 (rs6000_conditional_register_usage): Likewise.
3730 (rs6000_emit_move): Likewise.
3731 (init_cumulative_args): Likewise.
3732 (rs6000_function_arg_advance_1): Likewise.
3733 (rs6000_function_arg): Likewise.
3734 (rs6000_arg_partial_bytes): Likewise.
3735 (rs6000_output_function_entry): Likewise.
3736 (rs6000_assemble_integer): Likewise.
3737 (rs6000_savres_strategy): Likewise.
3738 (rs6000_stack_info): Likewise.
3739 (rs6000_function_ok_for_sibcall): Likewise.
3740 (rs6000_emit_load_toc_table): Likewise.
3741 (rs6000_savres_routine_name): Likewise.
3742 (ptr_regno_for_savres): Likewise.
3743 (rs6000_emit_prologue): Likewise.
3744 (rs6000_emit_epilogue): Likewise.
3745 (rs6000_output_function_epilogue): Likewise.
3746 (output_profile_hook): Likewise.
3747 (output_function_profiler): Likewise.
3748 (rs6000_trampoline_size): Likewise.
3749 (rs6000_trampoline_init): Likewise.
3750 (rs6000_elf_output_toc_section_asm_op): Likewise.
3751 (rs6000_elf_encode_section_info): Likewise.
3752 (rs6000_elf_reloc_rw_mask): Likewise.
3753 (rs6000_elf_declare_function_name): Likewise.
3754 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
3755 except that rs6000_compat_align_parm is always assumed false.
3756 (rs6000_gimplify_va_arg): Likewise.
3757 (rs6000_call_aix): Update comment.
3758 (rs6000_sibcall_aix): Likewise.
3759 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
3760 Treat ABI_ELFv2 the same as ABI_AIX.
3761 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3762 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
3763 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3764 ("load_toc_aix_si"): Likewise.
3765 ("load_toc_aix_di"): Likewise.
3767 ("call_value"): Likewise.
3768 ("*call_local_aix<mode>"): Likewise.
3769 ("*call_value_local_aix<mode>"): Likewise.
3770 ("*call_nonlocal_aix<mode>"): Likewise.
3771 ("*call_value_nonlocal_aix<mode>"): Likewise.
3772 ("*call_indirect_aix<mode>"): Likewise.
3773 ("*call_value_indirect_aix<mode>"): Likewise.
3774 ("sibcall"): Likewise.
3775 ("sibcall_value"): Likewise.
3776 ("*sibcall_aix<mode>"): Likewise.
3777 ("*sibcall_value_aix<mode>"): Likewise.
3778 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
3779 ("current_file_function_operand"): Likewise.
3781 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3783 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
3784 by making use of the fact that for vector / floating point arguments
3785 passed both in VRs/FPRs and in the fixed parameter area, the partial
3786 bytes mechanism is in fact not used.
3788 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3790 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
3791 (rs6000_finish_function_arg): Likewise.
3792 (rs6000_function_arg): Use rs6000_psave_function_arg and
3793 rs6000_finish_function_arg to handle both vector and floating
3794 point arguments that are also passed in GPRs / the stack.
3796 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3798 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
3799 (USE_ALTIVEC_FOR_ARG_P): Likewise.
3800 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
3801 (rs6000_function_arg_advance_1):Likewise.
3802 (rs6000_darwin64_record_arg_recurse): Likewise.
3803 (rs6000_function_arg): Likewise.
3804 (rs6000_arg_partial_bytes): Likewise.
3806 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3808 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
3809 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
3810 (rs6000_savres_strategy): Likewise.
3811 (rs6000_return_addr): Likewise.
3812 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
3813 testing for ABI_V4 (since ABI_DARWIN is impossible here).
3814 (rs6000_emit_prologue): Likewise.
3815 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
3816 (rs6000_elf_declare_function_name): Remove duplicated test.
3817 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
3818 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
3819 ("load_toc_v4_PIC_1_normal"): Likewise.
3820 ("load_toc_v4_PIC_1_476"): Likewise.
3821 ("load_toc_v4_PIC_1b"): Likewise.
3822 ("load_toc_v4_PIC_1b_normal"): Likewise.
3823 ("load_toc_v4_PIC_1b_476"): Likewise.
3824 ("load_toc_v4_PIC_2"): Likewise.
3825 ("load_toc_v4_PIC_3b"): Likewise.
3826 ("load_toc_v4_PIC_3c"): Likewise.
3827 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
3828 (RS6000_SAVE_AREA): Likewise.
3829 (FP_ARG_MAX_REG): Likewise.
3830 (RETURN_ADDRESS_OFFSET): Likewise.
3831 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
3833 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
3834 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3836 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3838 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
3839 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
3840 Create call insn directly instead of via various gen_... routines.
3841 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
3842 (rs6000_sibcall_aix): New function.
3843 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
3844 (TOC_SAVE_OFFSET_64BIT): Likewise.
3845 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
3846 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
3847 (AIX_FUNC_DESC_SC_32BIT): Likewise.
3848 (AIX_FUNC_DESC_SC_64BIT): Likewise.
3849 ("call" expander): Call rs6000_call_aix.
3850 ("call_value" expander): Likewise.
3851 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
3852 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3853 ("*call_indirect_aix<mode>"): ... by this insn pattern.
3854 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
3855 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3856 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
3857 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
3858 ("*call_nonlocal_aix<mode>"): ... this pattern.
3859 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
3860 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
3861 ("*call_local_aix<mode>"): New insn pattern.
3862 ("*call_value_local_aix<mode>"): Likewise.
3863 ("sibcall" expander): Call rs6000_sibcall_aix.
3864 ("sibcall_value" expander): Likewise. Move earlier in file.
3865 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
3866 ("*sibcall_aix<mode>"): ... this pattern.
3867 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
3868 ("*sibcall_value_aix<mode>"): ... this pattern.
3869 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
3870 (rs6000_call_aix): Add prototype.
3871 (rs6000_sibcall_aix): Likewise.
3873 2013-11-14 Jakub Jelinek <jakub@redhat.com>
3876 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
3877 isn't confused by the artificial decl.
3879 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3881 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
3882 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
3883 Instead, add USEs of all modified call-saved CR fields to the
3884 insn storing the result to the stack slot, and provide an
3885 appropriate REG_FRAME_RELATED_EXPR for that insn.
3886 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
3887 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
3889 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3890 Alan Modra <amodra@gmail.com>
3892 * function.c (assign_parms): Use all.reg_parm_stack_space instead
3893 of re-evaluating REG_PARM_STACK_SPACE target macro.
3894 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
3895 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
3896 (assign_parm_find_entry_rtl): Update call.
3897 * calls.c (initialize_argument_information): Update call.
3898 (emit_library_call_value_1): Likewise.
3899 * expr.h (locate_and_pad_parm): Update prototype.
3901 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3903 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
3906 2013-11-14 DJ Delorie <dj@redhat.com>
3908 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
3911 2013-11-14 Jeff Law <law@redhat.com>
3913 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
3914 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
3916 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3918 * doc/invoke.texi: Update documentation for AArch64's -mcpu
3921 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3923 * config/aarch64/aarch64-cores.def (example-1): Remove.
3924 (example-2): Likewise.
3925 * config/aarch64/aarch64-tune.md: Regenerate.
3926 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
3927 (generic_sched): Remove "large", "small".
3928 * config/aarch64/large.md: Delete.
3929 * config/aarch64/small.md: Delete.
3931 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3933 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
3934 * config/aarch64/aarch64-tune.md: Regenerate.
3935 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
3936 (generic_sched): "no" if we are tuning for cortexa15.
3937 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
3940 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3942 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
3943 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
3944 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
3945 (all_cores): Use cortexa53 when tuning for "generic".
3946 (aarch64_override_options): Fix comment.
3947 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
3948 * config/aarch64/aarch64-generic.md: Delete.
3950 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3952 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
3954 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3956 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
3957 (generic_rtx_cost_table): Remove.
3958 (aarch64_rtx_costs): Use fields from cpu_cost_table.
3959 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
3961 (cpu_rtx_cost_table): Remove.
3963 2013-11-14 Julian Brown <julian@codesourcery.com>
3964 Joey Ye <joey.ye@arm.com>
3966 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
3967 (arm_v7m_tune): New.
3968 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
3969 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
3970 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
3971 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
3973 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
3976 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
3979 2013-11-14 Jakub Jelinek <jakub@redhat.com>
3980 Uros Bizjak <ubizjak@gmail.com>
3983 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
3984 operands[2] satisfies_constraint_Z that might have bit 31 set.
3986 2013-11-13 Jeff Law <law@redhat.com>
3988 PR tree-optimization/59102
3989 * gimple-ssa-isolate-paths.c
3990 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
3991 gimple assignment before looking at gimple_assign_lhs.
3993 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
3995 * ira.c: Add comment about threads at the top of file.
3997 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
3999 * ira-color.c (coalesce_allocnos): Don't allocate and free
4002 2013-11-14 Tom de Vries <tom@codesourcery.com>
4004 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
4005 equality for GIMPLE_ASSIGN.
4007 2013-11-14 Tom de Vries <tom@codesourcery.com>
4009 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
4011 (gimple_equal_p): ... here.
4013 2013-11-14 Tom de Vries <tom@codesourcery.com>
4015 * trans-mem.c (is_tm_ending): New function.
4016 * gimple.h (is_tm_ending): Declare.
4017 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
4019 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
4021 2013-11-14 Tom de Vries <tom@codesourcery.com>
4023 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
4025 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
4027 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
4028 (struct walk_stmt_info): Relocate here from gimple.h.
4029 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
4030 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
4031 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
4032 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
4033 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
4034 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
4035 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
4036 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
4037 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
4038 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
4039 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
4040 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
4041 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
4042 (struct walk_stmt_info): Move to gimple-walk.h.
4043 (gimple_seq_set_location): Move to gimple.c
4044 * gimple-walk.c: New File.
4045 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
4046 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
4047 walk_stmt_load_store_ops): Relocate here from gimple.c.
4048 * gimple-iterator.c: Include gimple-iterator.h.
4049 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
4050 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
4051 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
4053 (gimple_seq_set_location): Relocate from gimple.h.
4054 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
4055 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
4056 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
4057 * Makefile.in (OBJS): Add gimple-walk.o
4058 * asan.c: Update Include list as required for gimple-iterator.h and
4060 * cfgexpand.c: Likewise.
4061 * cfgloop.c: Likewise.
4062 * cfgloopmanip.c: Likewise.
4063 * cgraph.c: Likewise.
4064 * cgraphbuild.c: Likewise.
4065 * cgraphunit.c: Likewise.
4066 * gimple-fold.c: Likewise.
4067 * gimple-low.c: Likewise.
4068 * gimple-pretty-print.c: Likewise.
4069 * gimple-ssa-isolate-paths.c: Likewise.
4070 * gimple-ssa-strength-reduction.c: Likewise.
4071 * gimple-streamer-in.c: Likewise.
4072 * gimple-streamer-out.c: Likewise.
4073 * gimplify.c: Likewise.
4074 * graphite-blocking.c: Likewise.
4075 * graphite-clast-to-gimple.c: Likewise.
4076 * graphite-dependences.c: Likewise.
4077 * graphite-interchange.c: Likewise.
4078 * graphite-optimize-isl.c: Likewise.
4079 * graphite-poly.c: Likewise.
4080 * graphite-scop-detection.c: Likewise.
4081 * graphite-sese-to-poly.c: Likewise.
4082 * graphite.c: Likewise.
4083 * ipa-inline-analysis.c: Likewise.
4084 * ipa-profile.c: Likewise.
4085 * ipa-prop.c: Likewise.
4086 * ipa-pure-const.c: Likewise.
4087 * ipa-split.c: Likewise.
4088 * lto-streamer-in.c: Likewise.
4089 * lto-streamer-out.c: Likewise.
4090 * omp-low.c: Likewise.
4091 * predict.c: Likewise.
4092 * profile.c: Likewise.
4094 * tracer.c: Likewise.
4095 * trans-mem.c: Likewise.
4096 * tree-call-cdce.c: Likewise.
4097 * tree-cfg.c: Likewise.
4098 * tree-cfgcleanup.c: Likewise.
4099 * tree-complex.c: Likewise.
4100 * tree-data-ref.c: Likewise.
4101 * tree-dfa.c: Likewise.
4102 * tree-eh.c: Likewise.
4103 * tree-emutls.c: Likewise.
4104 * tree-if-conv.c: Likewise.
4105 * tree-inline.c: Likewise.
4106 * tree-into-ssa.c: Likewise.
4107 * tree-loop-distribution.c: Likewise.
4108 * tree-nested.c: Likewise.
4109 * tree-nrv.c: Likewise.
4110 * tree-object-size.c: Likewise.
4111 * tree-outof-ssa.c: Likewise.
4112 * tree-parloops.c: Likewise.
4113 * tree-predcom.c: Likewise.
4114 * tree-profile.c: Likewise.
4115 * tree-scalar-evolution.c: Likewise.
4116 * tree-sra.c: Likewise.
4117 * tree-ssa-ccp.c: Likewise.
4118 * tree-ssa-coalesce.c: Likewise.
4119 * tree-ssa-copy.c: Likewise.
4120 * tree-ssa-copyrename.c: Likewise.
4121 * tree-ssa-dce.c: Likewise.
4122 * tree-ssa-dom.c: Likewise.
4123 * tree-ssa-dse.c: Likewise.
4124 * tree-ssa-forwprop.c: Likewise.
4125 * tree-ssa-ifcombine.c: Likewise.
4126 * tree-ssa-live.c: Likewise.
4127 * tree-ssa-loop-ch.c: Likewise.
4128 * tree-ssa-loop-im.c: Likewise.
4129 * tree-ssa-loop-ivcanon.c: Likewise.
4130 * tree-ssa-loop-ivopts.c: Likewise.
4131 * tree-ssa-loop-manip.c: Likewise.
4132 * tree-ssa-loop-niter.c: Likewise.
4133 * tree-ssa-loop-prefetch.c: Likewise.
4134 * tree-ssa-loop.c: Likewise.
4135 * tree-ssa-math-opts.c: Likewise.
4136 * tree-ssa-phiopt.c: Likewise.
4137 * tree-ssa-phiprop.c: Likewise.
4138 * tree-ssa-pre.c: Likewise.
4139 * tree-ssa-propagate.c: Likewise.
4140 * tree-ssa-reassoc.c: Likewise.
4141 * tree-ssa-sink.c: Likewise.
4142 * tree-ssa-strlen.c: Likewise.
4143 * tree-ssa-structalias.c: Likewise.
4144 * tree-ssa-tail-merge.c: Likewise.
4145 * tree-ssa-ter.c: Likewise.
4146 * tree-ssa-threadedge.c: Likewise.
4147 * tree-ssa-threadupdate.c: Likewise.
4148 * tree-ssa-uncprop.c: Likewise.
4149 * tree-ssa-uninit.c: Likewise.
4150 * tree-ssa.c: Likewise.
4151 * tree-stdarg.c: Likewise.
4152 * tree-switch-conversion.c: Likewise.
4153 * tree-tailcall.c: Likewise.
4154 * tree-vect-data-refs.c: Likewise.
4155 * tree-vect-generic.c: Likewise.
4156 * tree-vect-loop-manip.c: Likewise.
4157 * tree-vect-loop.c: Likewise.
4158 * tree-vect-patterns.c: Likewise.
4159 * tree-vect-slp.c: Likewise.
4160 * tree-vect-stmts.c: Likewise.
4161 * tree-vectorizer.c: Likewise.
4162 * tree-vrp.c: Likewise.
4165 * value-prof.c: Likewise.
4166 * vtable-verify.c: Likewise.
4168 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
4170 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
4173 2013-11-13 Jeff Law <law@redhat.com>
4175 * PR middle-end/59119
4176 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
4177 function, extracted from gimple_ssa_isolate_erroneous_paths.
4178 (find_explicit_erroneous_behaviour): Similarly.
4179 (insert_trap_and_remove_trailing_statements): Remove statements
4182 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
4184 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
4185 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
4186 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
4187 looking at INSN_CODE.
4188 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
4189 active_insn_p object, respect basic block boundaries.
4190 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
4191 follows immediately after the jump table data label.
4192 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
4193 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
4194 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
4196 2013-11-13 Teresa Johnson <tejohnson@google.com>
4199 * predict.c (drop_profile): Error is currently too strict.
4200 (handle_missing_profiles): Pass call_count to drop_profile.
4202 2013-11-13 Teresa Johnson <tejohnson@google.com>
4205 * ipa-inline.c (edge_badness): Fix overflow.
4207 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
4209 PR rtl-optimization/59036
4210 * ira-color.c (struct allocno_color_data): Add new members
4211 first_thread_allocno, next_thread_allocno, thread_freq.
4212 (sorted_copies): New static var.
4213 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
4214 (allocno_thread_conflict_p, merge_threads)
4215 (form_threads_from_copies, form_threads_from_bucket)
4216 (form_threads_from_colorable_allocno, init_allocno_threads): New
4218 (bucket_allocno_compare_func): Add comparison by thread frequency
4220 (add_allocno_to_ordered_bucket): Rename to
4221 add_allocno_to_ordered_colorable_bucket. Remove parameter.
4222 (push_only_colorable): Call form_threads_from_bucket.
4223 (color_pass): Call init_allocno_threads. Use
4224 consideration_allocno_bitmap instead of coloring_allocno_bitmap
4225 for nuillify allocno color data.
4226 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
4227 (coalesce_allocnos): Use static sorted copies.
4229 2013-11-13 Jakub Jelinek <jakub@redhat.com>
4231 * passes.c (execute_todo): Don't call do_per_function if
4233 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
4234 execute_function_dump if dump_file is NULL.
4236 2013-11-13 Martin Jambor <mjambor@suse.cz>
4238 * cgraph.c (cgraph_get_create_node): Do what
4239 cgraph_get_create_real_symbol_node used to do.
4240 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
4241 call cgraph_get_create_node.
4242 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
4243 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
4244 cgraph_get_create_node. Assert we get a node.
4246 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
4248 * config/aarch64/aarch64-simd.md (vec_extract): New.
4250 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
4252 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
4255 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
4257 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
4258 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
4259 or if optimization is enabled.
4260 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
4261 require that all the names based on a PARM_DECL or a RESULT_DECL that
4262 isn't ignored for debug info be coalesced.
4264 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4266 * config/c6x/c6x.c: Include "gimple-expr.h".
4268 2013-11-13 Richard Biener <rguenther@suse.de>
4270 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
4271 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
4272 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
4273 dealing with type mismatches inside component reference chains.
4275 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
4277 PR tree-optimization/59077
4278 * ipa-pure-const.c (better_state): Update *state.
4280 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
4282 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
4283 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
4284 Update offset calculations.
4286 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
4289 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
4290 for fields. Do not add the attribute if the size is negative.
4292 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4294 * config/arm/arm.c: Include aarch-cost-tables.h.
4295 (generic_extra_costs): Move from here...
4296 * config/arm/aarch-cost-tables.h: ... To here. New file.
4298 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
4299 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4300 Sergey Lega <sergey.s.lega@intel.com>
4301 Anna Tikhonova <anna.tikhonova@intel.com>
4302 Ilya Tocar <ilya.tocar@intel.com>
4303 Andrey Turetskiy <andrey.turetskiy@intel.com>
4304 Ilya Verbin <ilya.verbin@intel.com>
4305 Kirill Yukhin <kirill.yukhin@intel.com>
4306 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4308 * config/i386/i386.c (ix86_print_operand): Support z-masking.
4309 * config/i386/predicate.md (const_0_to_4_operand): New.
4310 (const_0_to_5_operand): Ditto.
4311 * config/i386/sse.md (UNSPEC_COMPRESS): New.
4312 (UNSPEC_COMPRESS_STORE): Ditto.
4313 (UNSPEC_EXPAND): Ditto.
4314 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
4315 (define_mode_attr ssescalarsize): Ditto.
4316 (avx512f_load<mode>_mask): Ditto.
4317 (avx512f_store<mode>_mask): Ditto.
4318 (avx512f_storedqu<mode>_mask): Ditto.
4319 (avx512f_vmcmp<mode>3_mask): Ditto.
4320 (avx512f_fmadd_<mode>_mask): Ditto.
4321 (avx512f_fmadd_<mode>_mask3): Ditto.
4322 (avx512f_fmsub_<mode>_mask): Ditto.
4323 (avx512f_fmsub_<mode>_mask3): Ditto.
4324 (avx512f_fnmadd_<mode>_mask): Ditto.
4325 (avx512f_fnmadd_<mode>_mask3): Ditto.
4326 (avx512f_fnmsub_<mode>_mask): Ditto.
4327 (avx512f_fnmsub_<mode>_mask3): Ditto.
4328 (avx512f_fmaddsub_<mode>_mask): Ditto.
4329 (avx512f_fmaddsub_<mode>_mask3): Ditto.
4330 (avx512f_fmsubadd_<mode>_mask): Ditto.
4331 (avx512f_fmsubadd_<mode>_mask3): Ditto.
4332 (vec_unpacku_float_lo_v16si): Ditto.
4333 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
4334 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
4335 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
4336 (vec_extract_lo_<mode>_maskm): Ditto.
4337 (vec_extract_hi_<mode>_maskm): Ditto.
4338 (avx512f_vternlog<mode>_mask): Ditto.
4339 (avx512f_shufps512_mask): Ditto.
4340 (avx512f_fixupimm<mode>_mask): Ditto.
4341 (avx512f_shufpd512_mask): Ditto.
4342 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
4343 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
4344 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
4345 (ashr<mode>3<mask_name>): Ditto.
4346 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
4347 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
4348 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
4349 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
4350 (avx512f_pshufdv3_mask): Ditto.
4351 (avx512f_perm<mode>_mask): Ditto.
4352 (avx512f_vpermi2var<mode>3_mask): Ditto.
4353 (avx512f_vpermt2var<mode>3_mask): Ditto.
4354 (avx512f_compress<mode>_mask): Ditto.
4355 (avx512f_compressstore<mode>_mask): Ditto.
4356 (avx512f_expand<mode>_mask): Ditto.
4357 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
4359 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
4360 (<plusminus_insn><mode>3<mask_name>): Ditto.
4361 (*<plusminus_insn><mode>3<mask_name>): Ditto.
4362 (mul<mode>3<mask_name>): Ditto.
4363 (*mul<mode>3<mask_name>): Ditto.
4364 (<sse>_div<mode>3<mask_name>): Ditto.
4365 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
4366 (<sse>_sqrt<mode>2<mask_name>): Ditto.
4367 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
4368 (<code><mode>3<mask_name>/smaxmin): Ditto.
4369 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
4370 (*<code><mode>3<mask_name>/smaxmin): Ditto.
4371 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
4372 (ufloatv16siv16sf2<mask_name>): Ditto.
4373 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
4374 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
4375 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
4376 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
4377 (ufloatv8siv8df<mask_name>): Ditto.
4378 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
4379 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
4380 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
4381 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
4382 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
4383 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
4384 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
4385 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
4386 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
4387 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4388 (vec_extract_lo_<mode><mask_name>): Ditto.
4389 (vec_extract_hi_<mode><mask_name>): Ditto.
4390 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
4391 (avx512f_movddup512<mask_name>): Ditto.
4392 (avx512f_unpcklpd512<mask_name>): Ditto.
4393 (*avx512f_unpcklpd512<mask_name>): Ditto.
4394 (*avx512f_vmscalef<mode>): Ditto.
4395 (avx512f_scalef<mode><mask_name>): Ditto.
4396 (avx512f_getexp<mode><mask_name>): Ditto.
4397 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
4398 (avx512f_rndscale<mode><mask_name>): Ditto.
4399 (avx512f_shufps512_1<mask_name>): Ditto.
4400 (avx512f_shufpd512_1<mask_name>): Ditto.
4401 (<plusminus_insn><mode>3<mask_name>): Ditto.
4402 (*<plusminus_insn><mode>3<mask_name>): Ditto.
4403 (vec_widen_umult_even_v16si<mask_name>): Ditto.
4404 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
4405 (vec_widen_smult_even_v16si<mask_name>): Ditto.
4406 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
4407 (mul<mode>3<mask_name>): Ditto.
4408 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
4409 (<shift_insn><mode>3<mask_name>): Ditto.
4410 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
4411 (avx512f_<rotate><mode><mask_name>): Ditto.
4412 (<code><mode>3<mask_name>/maxmin): Ditto.
4413 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
4414 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
4415 (*andnot<mode>3<mask_name>): Ditto.
4416 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
4417 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
4418 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
4419 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
4420 (vec_set_lo_<mode><mask_name>): Ditto.
4421 (vec_set_hi_<mode><mask_name>): Ditto.
4422 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
4423 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
4424 (avx512f_pshufd_1<mask_name>): Ditto.
4425 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
4426 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
4427 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
4428 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
4429 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
4430 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
4431 (avx512er_exp2<mode><mask_name>): Ditto.
4432 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
4433 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
4434 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
4435 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
4436 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
4437 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
4438 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
4439 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
4440 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
4441 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
4442 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
4443 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
4444 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
4445 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
4446 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
4447 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
4448 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
4449 (avx512f_getmant<mode><mask_name>): Ditto.
4450 (clz<mode>2<mask_name>): Ditto.
4451 (<mask_codefor>conflict<mode><mask_name>): Ditto.
4452 (*srcp14<mode>): Remove visibility.
4453 (*rsqrt14<mode>): Ditto.
4454 (*fma_fmsub_<mode>): Ditto.
4455 (*fma_fnmadd_<mode>): Ditto.
4456 (*avx512f_rndscale<mode>): Ditto.
4457 * config/i386/subst.md: New file.
4459 2013-11-13 Joseph Myers <joseph@codesourcery.com>
4461 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
4462 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
4463 (atomic_load_explicit, atomic_exchange_explicit)
4464 (atomic_compare_exchange_strong_explicit)
4465 (atomic_compare_exchange_weak_explicit): Use __auto_type to
4466 declare variable initialized with PTR argument.
4468 2013-11-12 Jeff Law <law@redhat.com>
4470 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
4471 backedge_seen_p. Set, use and pass it to children appropriately.
4472 (thread_through_normal_block): Similarly.
4473 (thread_across_edge): Similarly.
4475 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
4476 memory references as volatile.
4477 (insert_trap_and_remove_trailing_statements): Fix comment.
4479 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
4482 * ira-costs.c (record_operand_costs): Check operands number for
4485 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4488 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
4489 constraints that would allow DImode into the traditional Altivec
4490 registers, but cause undesirable code generation when loading 0 as
4492 (movdi_internal64): Likewise.
4493 (cmp<mode>_fpr): Do not use %x for CR register output.
4494 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
4495 -mallow-upper-sf debug switches are used.
4497 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
4499 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
4500 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
4501 Relocate prototypes from gimple.h.
4502 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
4503 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
4505 * gimple.h: Move some prototypes to gimplify.h.
4506 (gimple_predicate, enum fallback, enum gimplify_status): Move to
4508 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
4509 Relocate from gimpify.c.
4510 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
4511 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
4512 is_gimple_reg_rhs) Relocate from gimplify.c.
4513 * gimplify.c (mark_addressable): Move to gimple-expr.c.
4514 (gimple_seq_add_stmt_without_update): Move to gimple.c.
4515 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
4516 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
4517 is_gimple_reg_rhs): Move to gimple-expr.c.
4518 (should_carry_location_p): Move to gimple.c.
4519 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
4521 (annotate_one_with_location, annotate_all_with_location_after,
4522 annotate_all_with_location): Move to gimple.c.
4523 (compare_case_labels, sort_case_labels,
4524 preprocess_case_label_vec_for_gimple): Move to gimple.c.
4525 (rhs_predicate_for): Make static.
4526 (gimplify_assign): Relocate from gimple.c.
4527 * gimple.c (gimplify_assign): Move to gimplify.c.
4528 (gimple_seq_add_stmt_without_update, should_carry_location_p,
4529 annotate_one_with_location, annotate_all_with_location_after,
4530 annotate_all_with_location, compare_case_labels, sort_case_labels,
4531 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
4532 * tree.h (unshare_expr, unshare_expr_without_location,
4533 mark_addressable): Move prototypes to gimplify.h.
4534 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
4536 * asan.c: Include gimplify.h rather than gimple.h.
4537 * cfgloopmanip.c: Likewise.
4538 * cgraphunit.c: Likewise.
4539 * cilk-common.c: Likewise.
4540 * dwarf2out.c: Dont include gimple.h.
4541 * fold-const.c: Include gimplify.h rather than gimple.h.
4542 * function.c: Likewise.
4543 * gimple-fold.c: Likewise.
4544 * gimple-ssa-strength-reduction.c: Likewise.
4545 * graphite-clast-to-gimple.c: Likewise.
4546 * graphite-sese-to-poly.c: Likewise.
4547 * ipa-prop.c: Likewise.
4548 * ipa-split.c: Likewise.
4550 * langhooks.c: Dont include gimple.h.
4551 * loop-init.c: Include gimplify.h rather than gimple.h.
4552 * omp-low.c: Likewise.
4554 * stor-layout.c: Likewise.
4555 * targhooks.c: Likewise.
4556 * trans-mem.c: Likewise.
4557 * tree-affine.c: Likewise.
4558 * tree-cfg.c: Likewise.
4559 * tree-cfgcleanup.c: Likewise.
4560 * tree-complex.c: Likewise.
4561 * tree-if-conv.c: Likewise.
4562 * tree-inline.c: Likewise.
4563 * tree-iterator.c: Likewise.
4564 * tree-loop-distribution.c: Likewise.
4565 * tree-nested.c: Likewise.
4566 * tree-parloops.c: Likewise.
4567 * tree-predcom.c: Likewise.
4568 * tree-profile.c: Likewise.
4569 * tree-scalar-evolution.c: Likewise.
4570 * tree-sra.c: Likewise.
4571 * tree-ssa-address.c: Likewise.
4572 * tree-ssa-ccp.c: Likewise.
4573 * tree-ssa-dce.c: Likewise.
4574 * tree-ssa-forwprop.c: Likewise.
4575 * tree-ssa-ifcombine.c: Likewise.
4576 * tree-ssa-loop-im.c: Likewise.
4577 * tree-ssa-loop-ivopts.c: Likewise.
4578 * tree-ssa-loop-manip.c: Likewise.
4579 * tree-ssa-loop-niter.c: Likewise.
4580 * tree-ssa-loop-prefetch.c: Likewise.
4581 * tree-ssa-loop-unswitch.c: Likewise.
4582 * tree-ssa-math-opts.c: Likewise.
4583 * tree-ssa-phiopt.c: Likewise.
4584 * tree-ssa-phiprop.c: Likewise.
4585 * tree-ssa-pre.c: Likewise.
4586 * tree-ssa-propagate.c: Likewise.
4587 * tree-ssa-reassoc.c: Likewise.
4588 * tree-ssa-sccvn.c: Likewise.
4589 * tree-ssa-strlen.c: Likewise.
4590 * tree-ssa.c: Likewise.
4591 * tree-switch-conversio: Likewise.n.c
4592 * tree-tailcall.c: Likewise.
4593 * tree-vect-data-refs.c: Likewise.
4594 * tree-vect-generic.c: Likewise.
4595 * tree-vect-loop-manip.c: Likewise.
4596 * tree-vect-loop.c: Likewise.
4597 * tree-vect-patterns.c: Likewise.
4598 * tree-vect-stmts.c: Likewise.
4600 * value-prof.c: Likewise.
4601 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
4602 * config/alpha/alpha.c: Likewise.
4603 * config/darwin.c: Likewise.
4604 * config/i386/i386.c: Likewise.
4605 * config/ia64/ia64.c: Likewise.
4606 * config/mep/mep.c: Likewise.
4607 * config/mips/mips.c: Likewise.
4608 * config/rs6000/rs6000.c: Likewise.
4609 * config/s390/s390.c: Likewise.
4610 * config/sh/sh.c: Likewise.
4611 * config/sparc/sparc.c: Likewise.
4612 * config/spu/spu.c: Likewise.
4613 * config/stormy16/stormy16.c: Likewise.
4614 * config/tilegx/tilegx.c: Likewise.
4615 * config/tilepro/tilepro.c: Likewise.
4616 * config/xtensa/xtensa.c: Likewise.
4618 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
4620 * tree.c (grow_tree_vec_stat): New function ...
4621 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
4622 and macro front-end.
4624 2013-11-12 Marek Polacek <polacek@redhat.com>
4626 * final.c (update_alignments): Initialize label to NULL_RTX.
4628 2013-11-12 Jeff Law <law@redhat.com>
4630 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
4631 (insert_trap_and_remove_trailing_statements): New argument OP which
4632 is the NULL pointer. Emit the trap after the load/store through
4633 the NULL pointer. Simplify the RHS of a store through a NULL pointer
4634 when trivial to do so.
4635 (isolate_path): Corresponding changes.
4636 (gimple_ssa_isolate_erroneous_path): Likewise.
4638 2013-11-12 Teresa Johnson <tejohnson@google.com>
4639 Jan Hubicka <jh@suse.cz>
4641 * predict.c (drop_profile): New function.
4642 (handle_missing_profiles): Ditto.
4643 (counts_to_freqs): Don't overwrite estimated frequencies
4644 when function has no profile counts.
4645 * predict.h (handle_missing_profiles): Declare.
4646 * tree-inline.c (freqs_to_counts): New function.
4647 (copy_cfg_body): Invoke freqs_to_counts as needed.
4648 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
4650 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
4653 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
4655 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
4657 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
4660 * config/i386/i386.c (ix86_option_override_internal): Check
4661 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
4662 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
4663 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
4664 MASK_AVX256_SPLIT_UNALIGNED_STORE.
4666 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
4667 Clear m_COREI7_AVX and update comments.
4668 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
4670 2013-11-12 Martin Jambor <mjambor@suse.cz>
4672 PR rtl-optimization/10474
4673 * ira.c (interesting_dest_for_shprep): New function.
4674 (split_live_ranges_for_shrink_wrap): Likewise.
4675 (find_moveable_pseudos): Move calculation of dominance info,
4676 df_analysios and the final anlyses to...
4677 (ira): ...here, call split_live_ranges_for_shrink_wrap.
4679 2013-11-12 Bin Cheng <bin.cheng@arm.com>
4681 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
4682 Handle type conversion.
4684 2013-11-11 Martin Liska <marxin.liska@gmail.com>
4685 Jan Hubicka <jh@suse.cz>
4687 * cgraph.c (dump_cgraph_node): Profile dump added.
4688 * cgraph.h (struct cgraph_node): New time profile variable added.
4689 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
4690 * gcov-io.h (gcov_type): New profiler type introduced.
4691 * ipa-profile.c (lto_output_node): Streaming for time profile added.
4692 (input_node): Time profiler is read from LTO stream.
4693 * predict.c (maybe_hot_count_p): Hot prediction changed.
4694 * profile.c (instrument_values): New case for time profiler added.
4695 (compute_value_histograms): Read of time profile.
4696 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
4697 * tree-profile.c (init_ic_make_global_vars): Time profiler
4699 (gimple_init_edge_profiler): TP function instrumentation.
4700 (gimple_gen_time_profiler): New.
4701 * value-prof.c (gimple_add_histogram_value): Support for time profiler
4703 (dump_histogram_value): TP type added to dumps.
4704 (visit_hist): More sensitive check that takes TP into account.
4705 (gimple_find_values_to_profile): TP instrumentation.
4706 * value-prof.h (hist_type): New histogram type added.
4707 (struct histogram_value_t): Pointer to struct function added.
4708 * libgcc/Makefile.in: New GCOV merge function for TP added.
4709 * libgcov.c: function_counter variable introduced.
4710 (_gcov_merge_time_profile): New.
4711 (_gcov_time_profiler): New.
4713 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
4714 Jeff Law <law@redhat.com>
4716 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
4717 ao_ref_init_from_ptr_and_size for builtins.
4719 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
4720 H.J. Lu <hongjiu.lu@intel.com>
4723 * config/i386/x86-tune.def
4724 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
4725 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
4726 * config/i386/i386.h
4727 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
4728 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
4729 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
4730 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
4731 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
4732 misaligned_prologue_used. Check that
4733 desired_aling <= epilogue_size_needed.
4735 2013-11-11 Cong Hou <congh@google.com>
4737 PR tree-optimization/59050
4738 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
4740 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
4743 * expmed.c (emit_store_flag): Fail for const-const comparison.
4745 2013-11-11 Tristan Gingold <gingold@adacore.com>
4746 Eric Botcazou <ebotcazou@adacore.com>
4748 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
4749 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
4750 * tree.def (CONSTRUCTOR): Likewise.
4751 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
4752 * gimplify.c (gimplify_init_constructor): Do not clear the object when
4753 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
4755 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
4757 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
4760 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4762 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
4765 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
4767 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
4769 2013-11-08 Jeff Law <law@redhat.com>
4771 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
4772 threading paths first, then perform PHI node checks if applicable.
4774 2013-11-10 Karlson2k <k2k@narod.ru>
4775 Kai Tietz <ktietz@redhat.com>
4778 * configure.ac: Adding for exported symbols check
4779 and for rdynamic-check executable-extension.
4780 * configure: Regenerated.
4782 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
4784 * mode-switching.c (optimize_mode_switching): Mark block as
4785 nontransparent, if last_mode at block exit is different from no_mode.
4787 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4789 * function.c (NAME__MAIN): Move to...
4790 * cfgexpand.c (NAME__MAIN): ...here.
4792 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
4794 * target.def (can_use_doloop_p): New hook.
4795 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
4796 * doc/tm.texi: Regenerate.
4797 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
4798 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
4799 * hooks.c (hook_bool_dint_dint_uint_true): New function.
4800 * targhooks.h (can_use_doloop_if_innermost): Declare.
4801 * targhooks.c (can_use_doloop_if_innermost): New function.
4802 * target.h: Include double-int.h.
4803 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
4804 Remove iteration count, maximum iteration count, loop depth and
4805 enter-at-top inputs from doloop_begin and doloop_end.
4806 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
4808 * config/arc/arc.c (arc_can_use_doloop_p): New function.
4809 (TARGET_CAN_USE_DOLOOP_P): Define.
4810 * config/arm/thumb2.md (doloop_end): Update for new interface.
4811 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
4812 * config/bfin/bfin.md (doloop_end): Update for new interface.
4813 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
4814 (TARGET_CAN_USE_DOLOOP_P): Define.
4815 * config/c6x/c6x.md (doloop_end): Update for new interface.
4816 * config/ia64/ia64.md (doloop_end): Update for new interface.
4817 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
4818 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
4820 * config/mep/mep.c (mep_emit_doloop): Likewise.
4821 (TARGET_CAN_USE_DOLOOP_P): Define.
4822 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
4823 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
4824 * config/s390/s390.md (doloop_end): Update for new interface.
4825 * config/sh/sh.md (doloop_end): Likewise.
4826 * config/spu/spu.md (doloop_end): Likewise.
4827 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
4828 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
4829 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
4830 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
4831 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
4832 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
4834 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
4836 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
4839 * doc/extend.texi: Move Cilk Plus Builtins node before Other
4842 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
4843 Joseph Myers <joseph@codesourcery.com>
4845 * ginclude/stdatomic.h: New file.
4846 * Makefile.in (USER_H): Add stdatomic.h.
4848 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4850 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
4853 2013-11-08 Jeff Law <law@redhat.com>
4855 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
4856 * tree-ssa-threadupdate.c (delete_thread_path): New function.
4857 (ssa_redirect_edges, thread_block_1): Use it.
4858 (thread_through_loop_header, mark_threaded_blocks): Likewise.
4859 (thread_through_all_blocks, register_jump_thread): Likewise.
4860 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
4862 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
4864 * config/arm/aarch-common.c
4865 (search_term): New typedef.
4866 (shift_rtx_costs): New array.
4867 (arm_rtx_shift_left_p): New.
4868 (arm_find_sub_rtx_with_search_term): Likewise.
4869 (arm_find_sub_rtx_with_code): Likewise.
4870 (arm_early_load_addr_dep): Add sanity checking.
4871 (arm_no_early_alu_shift_dep): Likewise.
4872 (arm_no_early_alu_shift_value_dep): Likewise.
4873 (arm_no_early_mul_dep): Likewise.
4874 (arm_no_early_store_addr_dep): Likewise.
4876 2013-11-08 Richard Biener <rguenther@suse.de>
4878 PR tree-optimization/59047
4879 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
4881 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
4883 * common.opt (fcheck-pointer-bounds): Move to ...
4884 * c-family/c.opt: ... here.
4885 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
4886 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
4887 * langhooks.h (lang_hooks): Remove chkp_supported field.
4888 * toplev.c (process_options): Remove chkp_supported check.
4890 2013-11-08 Richard Biener <rguenther@suse.de>
4892 PR tree-optimization/59038
4893 PR tree-optimization/58955
4894 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
4895 previous change. Handle known dependences correctly.
4897 2013-11-08 Tom de Vries <tom@codesourcery.com>
4899 * config/rs6000/t-xilinx: Remove duplicate contents.
4901 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
4902 Joseph Myers <joseph@codesourcery.com>
4904 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
4905 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
4906 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
4907 (struct tree_base): Add atomic_flag field.
4908 * tree.h (TYPE_ATOMIC): New accessor macro.
4909 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
4910 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
4911 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
4912 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
4913 * tree.c (set_type_quals): Set TYPE_ATOMIC.
4914 (find_atomic_core_type): New function.
4915 (build_qualified_type): Adjust alignment for qualified types.
4916 (build_atomic_base): New function
4917 (build_common_tree_nodes): Build atomicQI_type_node,
4918 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
4920 * print-tree.c (print_node): Print atomic qualifier.
4921 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
4922 * target.def (atomic_assign_expand_fenv): New hook.
4923 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
4924 * doc/tm.texi: Regenerate.
4925 * targhooks.c (default_atomic_assign_expand_fenv): New function.
4926 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
4927 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
4928 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
4930 * config/i386/i386.c (enum ix86_builtins): Add
4931 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
4932 IX86_BUILTIN_FNCLEX.
4933 (bdesc_special_args): Add __builtin_ia32_fnstenv,
4934 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
4935 (ix86_expand_builtin): Handle the new built-in functions.
4936 (ix86_atomic_assign_expand_fenv): New function.
4937 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
4938 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
4939 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
4940 (fnstenv, fldenv, fnstsw, fnclex): New insns.
4942 2013-11-07 Steve Ellcey <sellcey@mips.com>
4944 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
4945 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
4946 (MULTILIB_DIRNAMES): Add fp64 directory.
4947 (MULTILIB_EXCEPTIONS): Add new exclusions.
4949 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
4951 * gimplify.c (gimple_regimplify_operands): Do not set
4953 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
4954 (rewrite_close_phi_out_of_ssa): Same.
4955 (rewrite_phi_out_of_ssa): Same.
4956 (rewrite_degenerate_phi): Same.
4957 (handle_scalar_deps_crossing_scop_limits): Same.
4958 * tree-if-conv.c (predicate_scalar_phi): Same.
4959 * tree-parloops.c (create_loads_for_reductions): Same.
4960 (create_final_loads_for_reduction): Same.
4961 (create_loads_and_stores_for_name): Same.
4962 (transform_to_exit_first_loop): Same.
4963 (create_parallel_loop): Same.
4964 * tree-ssa-loop-im.c
4965 (move_computations_dom_walker::before_dom_children): Same.
4966 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
4967 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
4968 * tree-ssa-propagate.c (substitute_and_fold): Same.
4969 * tree-vect-loop.c (vect_finalize_reduction): Same.
4970 * tree-vect-stmts.c (vectorizable_call): Same.
4972 2013-11-07 Mike Stump <mikestump@comcast.net>
4974 * config/pdp11/pdp11.c: Include dbxout.h.
4975 * config/picochip/picochip.c: Likewise.
4977 2013-11-07 Cong Hou <congh@google.com>
4979 PR tree-optimization/56764
4980 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4981 Combine alias checks if it is possible to amortize the runtime
4982 overhead. Return the number of alias checks after merging.
4983 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4984 Use the function vect_create_cond_for_alias_checks () to check
4985 the number of alias checks.
4987 2013-11-07 Jeff Law <law@redhat.com>
4989 * varpool.c (ctor_for_folding): Fix typo in comment.
4991 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
4993 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
4994 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
4996 2013-11-07 Jeff Law <law@redhat.com>
4998 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
5000 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
5001 No longer check if we have __builtin_trap, assume it's available.
5003 2013-11-07 Diego Novillo <dnovillo@google.com>
5005 * attribs.c (lookup_scoped_attribute_spec): Make static.
5006 (get_attribute_namespace): Likewise.
5007 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
5008 (validate_arglist): Move earlier in the file. Make static.
5009 (expand_stack_restore): Move from stmt.c
5010 (expand_stack_save): Move from stmt.c
5011 (rewrite_call_expr_array): Move earlier in the file.
5012 (rewrite_call_expr_valist): Likewise.
5013 * cfgexpand.c: Include hard-reg-set.h before tree.h
5016 (expand_asm_loc): Move from stmt.c.
5017 (n_occurrences): Move from stmt.c.
5018 (check_operand_nalternatives): Move from stmt.c.
5019 (tree_conflicts_with_clobbers_p): Move from stmt.c.
5020 (expand_asm_operands): Move from stmt.c
5021 (expand_asm_stmt): Move from stmt.c
5022 (expand_computed_goto): Move from stmt.c
5023 (expand_goto): Move from stmt.c
5024 (expand_null_return_1): Move from stmt.c
5025 (expand_null_return): Move from stmt.c
5026 (expand_value_return): Move from stmt.c
5027 (expand_return): Move from stmt.c
5028 (expand_main_function): Move from function.c
5029 (stack_protect_prologue): Move from function.c
5030 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
5031 (build_function_decl_skip_args): Move from tree.c.
5032 * explow.c (tree_expr_size): Move from tree.c.
5033 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
5034 (fields_length): Move from tree.c.
5035 * fold-const.c (size_low_cst): Move from tree.c.
5036 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
5037 (tree_expr_nonzero_p): Make static. Move earlier in the file.
5038 (fold_build3_initializer_loc): Remove.
5039 (tree_invalid_nonnegative_warnv_p): Make static.
5040 * function.c (expand_main_function): Move to cfgexpand.c.
5041 (stack_protect_prologue): Move to cfgexpand.c.
5042 (set_insn_locations): Move earlier in the file.
5043 * gimple-fold.c: Include langhooks.h.
5044 (truth_type_for): Move from tree.c.
5045 * print-tree.c (print_vec_tree): Remove.
5046 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
5047 (expand_goto): Move to cfgexpand.c.
5048 (n_occurrences): Move to cfgexpand.c.
5049 (expand_asm_loc): Move to cfgexpand.c
5050 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
5051 (expand_asm_operands): Move to cfgexpand.c.
5052 (expand_asm_stmt): Move to cfgexpand.c.
5053 (check_operand_nalternatives): Move to cfgexpand.c
5054 (expand_null_return): Move to cfgexpand.c.
5055 (expand_value_return): Move to cfgexpand.c.
5056 (expand_null_return_1): Move to cfgexpand.c.
5057 (expand_return): Move to cfgexpand.c.
5058 (expand_stack_save): Move to builtins.c.
5059 (expand_stack_restore): Move to builtins.c
5060 * symtab.c: Include output.h.
5061 (decl_assembler_name_hash): Move from tree.c.
5062 (decl_assembler_name_equal): Move from tree.c.
5063 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
5064 * tree-eh.c (in_array_bounds_p): Move from tree.c.
5065 (range_in_array_bounds_p): Move from tree.c.
5066 * tree-object-size.c (fini_object_sizes): Make static.
5067 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
5068 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
5069 * tree.c (decl_assembler_name_equal): Move to symtab.c.
5070 (tree_expr_size): Move to explow.c.
5071 (decl_assembler_name_hash): Move to symtab.c.
5072 (real_twop): Remove.
5073 (tree_expr_size): Move to explow.c.
5074 (stabilize_reference_1): Move earlier in the file. Make static.
5075 (omp_remove_redundant_declare_simd_attrs): Remove.
5076 (simple_cst_list_equal): Move earlier in the file. Make static.
5077 (size_low_cst): Move to fold-const.c.
5078 (build_type_no_quals): Remove.
5079 (build_function_type_skip_args): Move to cgraphclones.c.
5080 (build_function_decl_skip_args): Move to cgraphclones.c.
5081 (in_array_bounds_p): Move to tree-eh.c.
5082 (range_in_array_bounds_p): Move to tree-eh.c.
5083 (truth_type_for): Move to gimple-fold.c.
5084 (list_equal_p): Remove.
5085 * tree.h (decl_assembler_name_equal): Remove.
5086 (decl_assembler_name_hash): Remove.
5087 (truth_type_for): Remove.
5088 (build_type_no_quals): Remove.
5089 (build_function_decl_skip_args): Remove.
5090 (in_array_bounds_p): Remove.
5091 (range_in_array_bounds_p): Remove.
5092 (size_low_cst): Remove.
5093 (omp_remove_redundant_declare_simd_attrs): Remove.
5094 (tree_expr_size): Remove.
5095 (fields_length): Remove.
5096 (stabilize_reference_1): Remove.
5097 (expand_goto): Remove.
5098 (expand_stack_save): Remove.
5099 (expand_stack_restore): Remove.
5100 (expand_return): Remove.
5101 (fold_build3_initializer_loc): Remove.
5102 (tree_expr_nonzero_p): Remove.
5103 (tree_invalid_nonnegative_warnv_p): Remove.
5104 (tree_expr_nonzero_warnv_p): Remove.
5105 (fold_builtin_snprintf_chk): Remove.
5106 (validate_arglist): Remove.
5107 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
5108 (simple_cst_list_equal): Remove.
5109 (real_twop): Remove.
5110 (expand_main_function): Remove.
5111 (stack_protect_prologue): Remove.
5112 (print_vec_tree): Remove.
5113 (lookup_scoped_attribute_spec): Remove.
5114 (get_attribute_namespace): Remove.
5115 (expand_computed_goto): Remove.
5116 (expand_asm_stmt): Remove.
5117 (list_equal_p): Remove.
5118 (ssa_name_nonnegative_p): Remove.
5119 (fini_object_sizes): Remove.
5120 (addr_expr_of_non_mem_decl_p): Remove.
5121 (is_tm_safe_or_pure): Move to trans-mem.c.
5122 (more_const_call_expr_args_p): Remove.
5123 (save_vtable_map_decl): Remove.
5125 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
5127 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
5128 linker plugins, too.
5130 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
5131 link to libgomp and its dependencies.
5132 * config/ia64/hpux.h (LIB_SPEC): Likewise.
5133 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
5134 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
5135 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
5137 2013-11-07 Jakub Jelinek <jakub@redhat.com>
5139 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
5140 (determine_value_range): Add loop argument. Use get_range_info to
5142 (bound_difference): Adjust caller.
5144 2013-11-07 Richard Biener <rguenther@suse.de>
5145 Jakub Jelinek <jakub@redhat.com>
5147 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
5148 latches from header PHI arguments from the latch edge.
5150 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
5153 * varasm.c (output_constant): Handle NULLPTR_TYPE.
5155 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
5157 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
5158 misaligned_prologue_used when it has been set.
5160 2013-11-07 Yury Gribov <y.gribov@samsung.com>
5161 Jakub Jelinek <jakub@redhat.com>
5164 * asan.c (get_mem_refs_of_builtin_call): Allow
5165 integer literals as addresses in instrumented builtins.
5167 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5169 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
5170 Explain why plus_constant is not used.
5172 2013-11-07 Richard Biener <rguenther@suse.de>
5174 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
5175 (canonicalize_value): ... this. Also handle stripping of
5177 (get_value, set_lattice_value, get_value_for_expr): Adjust.
5178 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
5179 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
5181 2013-11-07 Richard Biener <rguenther@suse.de>
5183 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
5185 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
5188 * config/i386/i386.md (push peepholer/splitter): Use Pmode
5189 with stack_pointer_rtx.
5191 2013-11-07 Bin Cheng <bin.cheng@arm.com>
5193 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
5194 using operand_equal_p.
5196 2013-11-07 Bin Cheng <bin.cheng@arm.com>
5198 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
5199 * tree-affine.c (get_inner_reference_aff): Return base.
5200 * tree-affine.h (get_inner_reference_aff): Change prototype.
5202 2013-11-06 Tobias Burnus <burnus@net-b.de>
5204 * doc/invoke.texi (Wdate-time): Fix typo.
5206 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
5208 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
5209 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
5210 fp_arith_reg_operand instead of arith_reg_operand.
5212 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
5214 * config/sh/sh.md (adddi3): Remove empty constraints.
5215 Remove can_create_pseudo_p and arith_reg_operand check.
5216 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
5217 Split before reload.
5219 2013-11-06 Jeff Law <law@redhat.com>
5220 Tom Tromey <tromey@redhat.com>
5222 * gdbinit.in: Disable strict type checking.
5224 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
5226 * tree-pass.h (make_pass_live_range_shrinkage): New external.
5227 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
5228 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
5229 (rest_of_handle_live_range_shrinkage): Ditto
5230 (class pass_live_range_shrinkage): Ditto.
5231 (pass_data_live_range_shrinkage): Ditto.
5232 (make_pass_live_range_shrinkage): Ditto.
5233 * sched-int.h (initialize_live_range_shrinkage): New prototype.
5234 (finish_live_range_shrinkage): Ditto.
5235 * sched-deps.c (create_insn_reg_set): Make void return value.
5236 * passes.def: Add pass_live_range_shrinkage.
5237 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
5238 * haifa-sched.c (live_range_shrinkage_p): New.
5239 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
5241 (rank_for_schedule): Add code for pressure relief through live
5243 (schedule_insn): Print more debug info.
5244 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
5245 through live range shrinkage.
5246 * doc/invoke.texi (-flive-range-shrinkage): New.
5247 * common.opt (flive-range-shrinkage): New.
5249 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
5252 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
5253 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
5254 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
5255 RTXes that return in AVX256 register.
5257 2013-11-06 Richard Biener <rguenther@suse.de>
5259 PR tree-optimization/58653
5260 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
5261 (prepare_initializers_chain): Adjust.
5263 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
5265 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
5266 (gimple_in_transaction): Use bb_in_transaction.
5267 * basic-block.h (bb_in_transaction): Relocate here and rename.
5268 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
5270 2013-11-06 Richard Biener <rguenther@suse.de>
5272 * tree.c (drop_tree_overflow): New function.
5273 * tree.h (drop_tree_overflow): Declare.
5274 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
5275 * tree-vrp.c (range_int_cst_singleton_p): Use
5276 is_overflow_infinity instead of testing TREE_OVERFLOW.
5277 (extract_range_from_assert): Likewise.
5278 (zero_nonzero_bits_from_vr): Likewise.
5279 (extract_range_basic): Likewise.
5280 (register_new_assert_for): Use drop_tree_overflow.
5281 (vrp_visit_phi_node): Likewise.
5283 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
5285 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
5286 checking for leaf functions without dynamic stack allocation.
5287 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
5288 (ia64_expand_prologue): Likewise.
5289 * config/mips/mips.c (mips_expand_prologue): Likewise.
5290 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5291 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5292 (sparc_flat_expand_prologue): Likewise.
5294 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
5296 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
5297 (__ST3_LANE_FUNC): Likewise.
5298 (__ST4_LANE_FUNC): Likewise.
5300 2013-11-06 Nick Clifton <nickc@redhat.com>
5302 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
5303 name returned by msp430_mcu_name.
5304 (LIB_SPEC): If a -T option has not been specified then set a
5305 default, mcu-specific, linker script.
5306 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
5307 * config/msp430/msp430.c (msp430x_names): Likewise.
5308 Alpha sort the names for ease of comparison.
5309 (msp430_mcu_name): New function: Returns a string suitable for
5310 use as a C preprocessor symbol based upon the name of the MCU
5312 (msp430_option_override): Accept msp430x and msp430xv2 as generic
5314 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
5316 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
5317 unless it is the last part of a spec substring.
5318 * doc/invoke.texi (Spec Files): Document space insertion
5321 2013-11-06 Christian Bruel <christian.bruel@st.com>
5323 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
5324 Factorize probabilities, Use adjust_address instead of
5325 adjust_automodify_address when possible. Enable for optimize.
5326 (sh_expand_strlen): New function.
5327 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
5328 * config/sh/sh.md (strlensi): New pattern.
5329 (UNSPEC_BUILTIN_STRLEN): Define.
5331 2013-11-06 Jakub Jelinek <jakub@redhat.com>
5334 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
5335 (expand_assignment): If *bitpos is negative, set *offset
5336 and adjust *bitpos, so that it is not negative.
5338 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5340 * config/i386/bdver3.md : Added two additional decoder units
5341 to support issue rate of 4 and remodeled vector unit.
5342 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
5343 architectures is set to 4.
5344 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
5345 lookahead is set to 4 for BD architectures.
5347 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5349 * config/rs6000/rs6000.c (rs6000_option_override_internal):
5350 Remove restriction against use of VSX instructions when generating
5351 code for little endian mode.
5353 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5355 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
5356 for both big and little endian.
5357 (mulv8hi3): Swap input operands for merge high and merge low
5358 instructions for little endian.
5360 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5362 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
5363 define_insn to define_expand that uses even patterns for big
5364 endian and odd patterns for little endian.
5365 (vec_widen_smult_even_v16qi): Likewise.
5366 (vec_widen_umult_even_v8hi): Likewise.
5367 (vec_widen_smult_even_v8hi): Likewise.
5368 (vec_widen_umult_odd_v16qi): Likewise.
5369 (vec_widen_smult_odd_v16qi): Likewise.
5370 (vec_widen_umult_odd_v8hi): Likewise.
5371 (vec_widen_smult_odd_v8hi): Likewise.
5372 (altivec_vmuleub): New define_insn.
5373 (altivec_vmuloub): Likewise.
5374 (altivec_vmulesb): Likewise.
5375 (altivec_vmulosb): Likewise.
5376 (altivec_vmuleuh): Likewise.
5377 (altivec_vmulouh): Likewise.
5378 (altivec_vmulesh): Likewise.
5379 (altivec_vmulosh): Likewise.
5381 2013-11-05 Mike Stump <mikestump@comcast.net>
5383 * Makefile.in (mostlyclean): Remove c-family objects.
5385 2013-11-05 Ian Lance Taylor <iant@google.com>
5387 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
5388 If possible, add .cfi directives to record change to bx.
5389 * config/i386/i386.c (ix86_emit_cfi): New function.
5390 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
5392 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
5394 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
5395 immediately after a label for a tablejump pattern.
5397 * config/arm/arm.c (is_jump_table): Remove.
5398 (create_fix_barrier): Use tablejump_p instead.
5399 (arm_reorg): Likewise.
5400 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
5401 (thumb2_output_casesi): Likewise.
5402 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
5403 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
5404 casesi_shift_media, casesi_load_media): Likewise.
5405 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
5406 * config/microblaze/microblaze.md: Likewise.
5408 2013-11-05 Tobias Burnus <burnus@net-b.de>
5410 * doc/invoke.texi (-Wdate-time): Document.
5412 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
5414 * double-int.c (lshift_double, rshift_double): Remove
5415 SHIFT_COUNT_TRUNCATED handling.
5417 2013-11-05 Jeff Law <law@redhat.com>
5419 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
5420 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
5421 * gimple-ssa-isolate-paths.c: New file.
5422 * gimple.c (check_loadstore): New function.
5423 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
5424 Verify OP is in the argument list and the argument corresponding
5425 to OP is a pointer type. Use operand_equal_p rather than
5426 pointer equality when testing if OP is on the nonnull list.
5427 Use check_loadstore rather than count_ptr_derefs. Handle
5428 GIMPLE_RETURN statements.
5429 * tree-vrp.c (infer_nonnull_range): Remove.
5430 * gimple.h (infer_nonnull_range): Declare.
5431 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
5432 * passes.def: Add pass_isolate_erroneous_paths.
5433 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
5434 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
5435 * tree-ssa.c (struct count_ptr_d): Remove.
5436 (count_ptr_derefs, count_uses_and_derefs): Remove.
5437 * tree-ssa.h (count_uses_and_derefs): Remove.
5439 2013-11-05 Jakub Jelinek <jakub@redhat.com>
5441 PR rtl-optimization/58997
5442 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
5443 get_iv_value to be in iv->mode rather than iv->extend_mode.
5444 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
5445 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
5446 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
5449 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
5451 * gimple.h: Move some prototypes to gimple-expr.h and add to include
5453 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
5454 Move to gimple-expr.h.
5455 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
5456 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
5457 is_gimple_id, virtual_operand_p, is_gimple_addressable,
5458 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
5460 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
5461 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
5462 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
5463 is_gimple_address, is_gimple_invariant_address,
5464 is_gimple_ip_invariant_address, is_gimple_min_invariant,
5465 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
5466 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
5467 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
5468 gimple_decl_printable_name, useless_type_conversion_p,
5469 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
5471 * gimple-expr.c: New File.
5472 (useless_type_conversion_p, gimple_set_body, gimple_body,
5473 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
5474 gimple_can_coalesce_p, extract_ops_from_tree_1,
5475 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
5476 is_gimple_address, is_gimple_invariant_address,
5477 is_gimple_ip_invariant_address, is_gimple_min_invariant,
5478 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
5479 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
5480 is_gimple_mem_ref_addr): Relocate here.
5481 * Makefile.in (OBJS): Add gimple-expr.o.
5483 2013-11-05 David Malcolm <dmalcolm@redhat.com>
5485 * gengtype-parse.c (struct_field_seq): Support empty structs.
5487 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
5489 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
5491 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
5493 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
5495 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
5497 (LONG_DOUBLE_TYPE_SIZE): New define.
5498 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
5500 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
5503 * doc/extend.texi [visibility ("visibility_type")]: Add example
5504 about visibility attribute on namespace declaration.
5506 2013-11-05 Richard Biener <rguenther@suse.de>
5509 * passes.def (all_passes): Start with pass_fixup_cfg again.
5511 2013-11-05 Richard Biener <rguenther@suse.de>
5513 PR tree-optimization/58955
5514 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
5517 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5519 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
5521 (vec_pack_ufix_trunc_v2df): Likewise.
5523 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
5526 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
5527 pattern, instead of word_mode.
5529 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
5531 (set_storage_via_setmem): Likewise.
5533 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
5535 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
5536 gimple.h and the rest of the condition in eliminate_build.
5537 (eliminate_build): Call new routine.
5538 * gimple.h (phi_ssa_name_p): Delete.
5540 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
5542 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
5543 case of no prefix and reserving zero slots, because when that's the
5544 case we'll never get here.
5545 * vec.h (va_heap::reserve): Don't try and handle
5546 vec_prefix::calculate_allocation returning zero because that should
5549 2013-11-05 Richard Biener <rguenther@suse.de>
5552 * tree-dfa.c (get_ref_base_and_extent): Merge common code
5553 in MEM_REF and TARGET_MEM_REF handling. Make sure to
5554 process trailing array detection before diving into the
5555 view-converted object (and possibly apply some extra offset).
5557 2013-11-05 Joseph Myers <joseph@codesourcery.com>
5559 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
5561 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
5563 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
5565 PR tree-optimization/58958
5566 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
5567 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
5569 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
5571 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
5572 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
5574 2013-11-05 Jakub Jelinek <jakub@redhat.com>
5576 PR tree-optimization/58984
5577 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
5578 set *SIZE_P if non-NULL on success.
5579 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
5581 (ipcp_transform_function): Likewise. Punt if size of access
5582 is different from TYPE_SIZE on v->value's type.
5584 2013-11-05 Tobias Burnus <burnus@net-b.de>
5586 * doc/invoke.texi (-fopenmp-simd): Document new option.
5587 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
5588 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
5589 * tree.c (attribute_value_equal): Ditto.
5591 2013-11-04 Wei Mi <wmi@google.com>
5593 * sched-rgn.c (add_branch_dependences): Keep insns in
5594 a SCHED_GROUP at the end of BB to remain their location.
5596 2013-11-04 Wei Mi <wmi@google.com>
5598 * config/i386/i386.c (memory_address_length): Extract a part
5599 of code to rip_relative_addr_p.
5600 (rip_relative_addr_p): New Function.
5601 (ix86_macro_fusion_p): Ditto.
5602 (ix86_macro_fusion_pair_p): Ditto.
5603 * config/i386/i386.h: Add new tune features about macro-fusion.
5604 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
5605 * doc/tm.texi: Generated.
5606 * doc/tm.texi.in: Ditto.
5607 * haifa-sched.c (try_group_insn): New Function.
5608 (group_insns_for_macro_fusion): Ditto.
5609 (sched_init): Call group_insns_for_macro_fusion.
5610 * target.def: Add two hooks: macro_fusion_p and
5611 macro_fusion_pair_p.
5613 2013-11-04 Kostya Serebryany <kcc@google.com>
5615 Update to match the changed asan API.
5616 * asan.c (asan_function_start): New function.
5617 (asan_emit_stack_protection): Update the string stored in the
5618 stack red zone to match new API. Store the PC of the current
5619 function in the red zone.
5620 (asan_global_struct): Update the __asan_global definition to match
5622 (asan_add_global): Ditto.
5623 * asan.h (asan_function_start): New prototype.
5624 * final.c (final_start_function): Call asan_function_start.
5625 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
5628 2013-11-04 Wei Mi <wmi@google.com>
5630 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
5631 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
5632 * config/i386/i386.c (ix86_option_override_internal): Ditto.
5633 (ix86_issue_rate): Ditto.
5634 (ix86_adjust_cost): Ditto.
5635 (ia32_multipass_dfa_lookahead): Ditto.
5636 (ix86_sched_init_global): Ditto.
5637 (get_builtin_code_for_version): Ditto.
5638 * config/i386/i386.h (enum target_cpu_default): Ditto.
5639 (enum processor_type): Ditto.
5640 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
5642 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
5644 PR rtl-optimization/58967
5645 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
5646 !lra_in_progress for mode sizes bigger word.
5648 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5650 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
5651 arguments to merge instruction for little endian.
5652 (vec_widen_umult_lo_v16qi): Likewise.
5653 (vec_widen_smult_hi_v16qi): Likewise.
5654 (vec_widen_smult_lo_v16qi): Likewise.
5655 (vec_widen_umult_hi_v8hi): Likewise.
5656 (vec_widen_umult_lo_v8hi): Likewise.
5657 (vec_widen_smult_hi_v8hi): Likewise.
5658 (vec_widen_smult_lo_v8hi): Likewise.
5660 2013-11-04 Ian Lance Taylor <iant@google.com>
5662 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
5663 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
5664 builtins that take pointers.
5665 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
5666 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
5667 (run_gcc): Pass -fnon-call-exceptions.
5669 2013-11-04 Jakub Jelinek <jakub@redhat.com>
5671 * optabs.c (expand_vec_perm): Revert one incorrect line from
5674 PR tree-optimization/58978
5675 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
5676 use_stmt by single_imm_use directly. Only call single_imm_use
5679 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
5681 PR rtl-optimization/58968
5682 * lra-spills.c (return_regno_p): New function.
5683 (lra_final_code_change): Use it.
5685 2013-11-04 Joseph Myers <joseph@codesourcery.com>
5687 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
5688 * target.def (float_exceptions_rounding_supported_p): New hook.
5689 * targhooks.c (default_float_exceptions_rounding_supported_p): New
5691 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
5692 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
5694 * doc/tm.texi: Regenerate.
5695 * config.gcc (powerpc*-*-linux*): Set extra_objs.
5696 * config/rs6000/rs6000-linux.c: New file.
5697 * config/rs6000/rs6000-protos.h
5698 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
5699 * config/rs6000/linux.h
5700 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
5701 * config/rs6000/linux64.h
5702 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
5703 * config/rs6000/t-linux (rs6000-linux.o): New rule.
5704 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
5706 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5708 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
5709 Replace the define_insn_and_split with a define_insn and two
5710 define_splits, with the split after reload re-permuting the source
5711 register to its original value.
5712 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
5713 (*vsx_le_perm_store_v8hi): Likewise.
5714 (*vsx_le_perm_store_v16qi): Likewise.
5716 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5718 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
5721 2013-11-04 Jakub Jelinek <jakub@redhat.com>
5723 PR tree-optimization/58946
5724 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
5725 bbs with bbinfo[idx].op != NULL before all blocks with
5726 bbinfo[idx].op == NULL.
5728 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
5730 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
5731 (avr_dump_double_int_hex): Likewise.
5732 (avr_log_vadump): Remove %D and %X handling.
5733 * config/avr/avr.c (avr_double_int_push_digit): Delete.
5734 (avr_map_op_t): Change map from double_int to unsigned int.
5735 (avr_map_op): Update accordingly.
5736 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
5737 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
5738 unsigned ints rather than double_ints.
5740 2013-11-03 Marek Polacek <polacek@redhat.com>
5742 Implement -fsanitize=vla-bound.
5743 * opts.c (common_handle_option): Handle vla-bound.
5744 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
5745 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
5746 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
5748 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
5750 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
5753 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
5755 * config/i386/constraints.md (Ts, Tv): New address constrains.
5756 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
5757 constraint for address_no_seg_operand.
5758 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
5759 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
5760 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
5761 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
5762 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
5763 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
5764 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
5765 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
5766 constraint for vsib_address_operand.
5768 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
5770 * gcse.c (pre_delete): Remove references to regmove from comments.
5771 * recog.c: (validate_replace_rtx_1): Likewise.
5772 * config/rl78/rl78.c: Likewise.
5773 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
5774 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
5775 * common/config/mmix/mmix-common.c: Likewise.
5777 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
5779 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
5780 * gimplify.c (gimplify_compound_lval): Likewise.
5781 * graphite-clast-to-gimple.c (gloog): Likewise.
5782 * graphite-dependences.c (loop_is_parallel_p): Likewise.
5783 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
5784 (limit_scop); Likewise.
5785 (build_scops): Likewise.
5786 (dot_scop): Likewise.
5787 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
5788 (build_scop_drs): Likewise.
5789 (insert_stmts): Likewise.
5790 (insert_out_of_ssa_copy): Likewise.
5791 (remove_phi): Likewise.
5792 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
5793 * hw-doloop.c (discover_loop): Likewise.
5794 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
5795 * tree-dfa.c (dump_enumerated_decls): Likewise.
5796 * tree-if-conv.c (if_convertable_loop_p): Likewise.
5797 * tree-inline.c (tree_function_versioning): Likewise.
5798 * tree-loop-distribution.c (build_rdg): Likewise.
5799 (rdg_flag_vertex_and_dependent): Likewise.
5800 (distribute_loop): Likewise.
5801 * tree-parloops.c (loop_parallel_p): Likewise.
5802 (eliminate_local_variables): Likewise.
5803 (separate_decls_in_region): Likewise.
5804 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
5805 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
5806 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
5807 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
5808 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
5809 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
5810 (vectorizable_condition): Likewise.
5812 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
5814 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
5815 * configure: Regenerate.
5816 * config/i386/i386.md (*movdi_internal): Change
5817 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
5818 (*movdf_internal): Ditto.
5819 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
5820 * config/i386/sse.md (vec_concatv2di): Output interunit movq
5821 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
5823 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
5825 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
5828 2013-10-31 David Malcolm <dmalcolm@redhat.com>
5830 Automated part of renaming of symtab_node_base to symtab_node.
5832 Patch autogenerated by rename_symtab.py from
5833 https://github.com/davidmalcolm/gcc-refactoring-scripts
5834 revision 58bb219cc090b2f4516a9297d868c245495ee622
5835 with ChangeLog entry fixed up by hand.
5837 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
5839 (cgraph_node_for_asm): Likewise.
5840 * cgraph.h (symtab_node_base): Likewise.
5841 (cgraph_node): Likewise.
5842 (varpool_node): Likewise.
5843 (is_a_helper <cgraph_node>::test): Likewise.
5844 (is_a_helper <varpool_node>::test): Likewise.
5845 (symtab_nodes): Likewise.
5846 (symtab_register_node): Likewise.
5847 (symtab_unregister_node): Likewise.
5848 (symtab_remove_node): Likewise.
5849 (symtab_get_node): Likewise.
5850 (symtab_node_for_asm): Likewise.
5851 (symtab_node_asm_name): Likewise.
5852 (symtab_node_name): Likewise.
5853 (symtab_insert_node_to_hashtable): Likewise.
5854 (symtab_add_to_same_comdat_group): Likewise.
5855 (symtab_dissolve_same_comdat_group_list): Likewise.
5856 (dump_symtab_node): Likewise.
5857 (debug_symtab_node): Likewise.
5858 (dump_symtab_base): Likewise.
5859 (verify_symtab_node): Likewise.
5860 (verify_symtab_base): Likewise.
5861 (symtab_used_from_object_file_p): Likewise.
5862 (symtab_alias_ultimate_target): Likewise.
5863 (symtab_resolve_alias): Likewise.
5864 (fixup_same_cpp_alias_visibility): Likewise.
5865 (symtab_for_node_and_aliases): Likewise.
5866 (symtab_nonoverwritable_alias): Likewise.
5867 (availability symtab_node_availability): Likewise.
5868 (symtab_semantically_equivalent_p): Likewise.
5869 (fixup_same_cpp_alias_visibility): Likewise.
5870 (symtab_prevail_in_asm_name_hash): Likewise.
5872 (varpool): Likewise.
5873 (varpool_first_variable): Likewise.
5874 (varpool_next_variable): Likewise.
5875 (varpool_first_static_initializer): Likewise.
5876 (varpool_next_static_initializer): Likewise.
5877 (varpool_first_defined_variable): Likewise.
5878 (varpool_next_defined_variable): Likewise.
5879 (cgraph_first_defined_function): Likewise.
5880 (cgraph_next_defined_function): Likewise.
5881 (cgraph_first_function): Likewise.
5882 (cgraph_next_function): Likewise.
5883 (cgraph_first_function_with_gimple_body): Likewise.
5884 (cgraph_next_function_with_gimple_body): Likewise.
5885 (symtab_alias_target): Likewise.
5886 (symtab_real_symbol_p): Likewise.
5887 (symtab_can_be_discarded): Likewise.
5888 * cgraphbuild.c (mark_address): Likewise.
5889 (mark_load): Likewise.
5890 (mark_store): Likewise.
5891 * cgraphunit.c (decide_is_symbol_needed): Likewise.
5893 (enqueue_node): Likewise.
5894 (referred_to_p): Likewise.
5895 (cgraph_process_same_body_aliases): Likewise.
5896 (analyze_functions): Likewise.
5897 (handle_alias_pairs): Likewise.
5898 (output_weakrefs): Likewise.
5899 (compile): Likewise.
5900 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
5901 * ipa-inline-analysis.c (inline_write_summary): Likewise.
5902 * ipa-prop.c (remove_described_reference): Likewise.
5903 (try_decrement_rdesc_refcount): Likewise.
5904 (ipa_edge_duplication_hook): Likewise.
5905 * ipa-ref.c (ipa_record_reference): Likewise.
5906 (ipa_maybe_record_reference): Likewise.
5907 (ipa_clone_ref): Likewise.
5908 (ipa_clone_references): Likewise.
5909 (ipa_clone_referring): Likewise.
5910 (ipa_find_reference): Likewise.
5911 (ipa_remove_stmt_references): Likewise.
5912 (ipa_clear_stmts_in_references): Likewise.
5913 * ipa-ref.h (symtab_node_base): Likewise.
5914 (ipa_ref): Likewise.
5915 (ipa_record_reference): Likewise.
5916 (ipa_maybe_record_reference): Likewise.
5917 (ipa_clone_references): Likewise.
5918 (ipa_clone_referring): Likewise.
5919 (ipa_clone_ref): Likewise.
5920 (ipa_find_reference): Likewise.
5921 (ipa_remove_stmt_references): Likewise.
5922 (ipa_clear_stmts_in_references): Likewise.
5923 * ipa-reference.c (ipa_reference_write_optimization_summary):
5925 * ipa.c (enqueue_node): Likewise.
5926 (process_references): Likewise.
5927 (walk_polymorphic_call_targets): Likewise.
5928 (symtab_remove_unreachable_nodes): Likewise.
5929 (address_taken_from_non_vtable_p): Likewise.
5930 (comdat_can_be_unshared_p_1): Likewise.
5931 (comdat_can_be_unshared_p): Likewise.
5932 (can_replace_by_local_alias): Likewise.
5933 (function_and_variable_visibility): Likewise.
5934 * is-a.h: Likewise (within example in comment).
5935 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
5936 (lto_symtab_encoder_encode): Likewise.
5937 (lto_symtab_encoder_delete_node): Likewise.
5938 (lto_symtab_encoder_in_partition_p): Likewise.
5939 (lto_set_symtab_encoder_in_partition): Likewise.
5940 (output_refs): Likewise.
5941 (compute_ltrans_boundary): Likewise.
5942 (output_symtab): Likewise.
5943 (input_node): Likewise.
5944 (input_ref): Likewise.
5945 (input_edge): Likewise.
5946 (input_cgraph_1): Likewise.
5947 (input_refs): Likewise.
5948 (output_cgraph_opt_summary): Likewise.
5949 (input_node_opt_summary): Likewise.
5950 (input_cgraph_opt_section): Likewise.
5951 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
5953 * lto-streamer-out.c (lto_output): Likewise.
5954 (output_symbol_p): Likewise.
5955 (produce_symtab): Likewise.
5956 * lto-streamer.h (lto_encoder_entry): Likewise.
5957 (lto_free_function_in_decl_state_for_node): Likewise.
5958 (lto_symtab_encoder_encode): Likewise.
5959 (lto_symtab_encoder_delete_node): Likewise.
5960 (lto_symtab_encoder_in_partition_p): Likewise.
5961 (lto_set_symtab_encoder_in_partition): Likewise.
5962 (lto_symtab_encoder_lookup): Likewise.
5963 (lsei_node): Likewise.
5964 (lto_symtab_encoder_deref): Likewise.
5965 * symtab.c (symtab_hash): Likewise.
5966 (assembler_name_hash): Likewise.
5967 (symtab_nodes): Likewise.
5968 (hash_node): Likewise.
5969 (eq_node): Likewise.
5970 (hash_node_by_assembler_name): Likewise.
5971 (eq_assembler_name): Likewise.
5972 (insert_to_assembler_name_hash): Likewise.
5973 (unlink_from_assembler_name_hash): Likewise.
5974 (symtab_prevail_in_asm_name_hash): Likewise.
5975 (symtab_register_node): Likewise.
5976 (symtab_insert_node_to_hashtable): Likewise.
5977 (symtab_unregister_node): Likewise.
5978 (symtab_get_node): Likewise.
5979 (symtab_remove_node): Likewise.
5980 (symtab_initialize_asm_name_hash): Likewise.
5981 (symtab_node_for_asm): Likewise.
5982 (symtab_add_to_same_comdat_group): Likewise.
5983 (symtab_dissolve_same_comdat_group_list): Likewise.
5984 (symtab_node_asm_name): Likewise.
5985 (symtab_node_name): Likewise.
5986 (dump_symtab_base): Likewise.
5987 (dump_symtab_node): Likewise.
5988 (dump_symtab): Likewise.
5989 (debug_symtab_node): Likewise.
5990 (verify_symtab_base): Likewise.
5991 (verify_symtab_node): Likewise.
5992 (verify_symtab): Likewise.
5993 (symtab_used_from_object_file_p): Likewise.
5994 (symtab_node_availability): Likewise.
5995 (symtab_alias_ultimate_target): Likewise.
5996 (fixup_same_cpp_alias_visibility): Likewise.
5997 (symtab_resolve_alias): Likewise.
5998 (symtab_for_node_and_aliases): Likewise.
5999 (symtab_for_node_and_aliases): Likewise.
6000 (symtab_nonoverwritable_alias_1): Likewise.
6001 (symtab_nonoverwritable_alias): Likewise.
6002 (symtab_semantically_equivalent_p): Likewise.
6003 * value-prof.c (init_node_map): Likewise.
6004 * varasm.c (find_decl): Likewise.
6005 * varpool.c (varpool_node_for_asm): Likewise.
6006 (varpool_remove_unreferenced_decls): Likewise.
6008 2013-10-31 David Malcolm <dmalcolm@redhat.com>
6010 Manual part of renaming of symtab_node_base to symtab_node.
6012 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
6013 clashes with the preferred name for the base class.
6014 (const_symtab_node): Remove redundant typedef.
6016 2013-10-31 Jakub Jelinek <jakub@redhat.com>
6018 * optabs.c (expand_vec_perm): Avoid vector mode punning
6019 SUBREGs in SET_DEST.
6020 * expmed.c (store_bit_field_1): Likewise.
6021 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
6022 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
6023 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
6024 * config/i386/i386.c (ix86_expand_vector_move_misalign,
6025 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
6026 ix86_expand_sse_unpack, ix86_expand_args_builtin,
6027 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
6028 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
6029 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
6030 expand_vec_perm_vpshufb2_vpermq,
6031 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
6032 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
6033 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
6034 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
6037 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
6039 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
6040 Use gcc_unreachable for unhandled modes. Do not check results of
6041 expand_simple_binop. If not expanded to target, move the result.
6043 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
6044 Shiva Chen <shiva0217@gmail.com>
6046 * config.gcc (nds32*-*-*): Add nds32 target.
6047 * config/nds32/nds32.c: New file.
6048 * config/nds32/nds32.h: New file.
6049 * config/nds32/nds32.md: New file.
6050 * config/nds32/constants.md: New file.
6051 * config/nds32/constraints.md: New file.
6052 * config/nds32/iterators.md: New file.
6053 * config/nds32/nds32-doubleword.md: New file.
6054 * config/nds32/nds32-intrinsic.md: New file.
6055 * config/nds32/nds32_intrinsic.h: New file.
6056 * config/nds32/nds32-modes.def: New file.
6057 * config/nds32/nds32-multiple.md: New file.
6058 * config/nds32/nds32.opt: New file.
6059 * config/nds32/nds32-opts.h: New file.
6060 * config/nds32/nds32-protos.h: New file.
6061 * config/nds32/nds32-peephole2.md: New file.
6062 * config/nds32/pipelines.md: New file.
6063 * config/nds32/predicates.md: New file.
6064 * config/nds32/t-mlibs: New file.
6065 * common/config/nds32: New directory and files.
6067 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
6068 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
6069 * doc/install.texi (Cross-Compiler-Specific Options): Document
6070 --with-nds32-lib for nds32 target.
6071 * doc/extend.texi (Function Attributes, Target Builtins): Document
6072 nds32 specific attributes.
6074 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
6076 * lra-constraints (process_alt_operands): Use the result
6077 elimination register for operand when matching constraints.
6079 2013-10-31 Jakub Jelinek <jakub@redhat.com>
6081 * tree-vrp.c (maybe_set_nonzero_bits): New function.
6082 (remove_range_assertions): Call it.
6084 * tree.c (tree_ctz): New function.
6085 * tree.h (tree_ctz): New prototype.
6086 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
6087 first argument from tree to const_tree.
6088 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
6089 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
6090 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
6092 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
6093 * tree-vect-loop.c (vect_analyze_loop_operations,
6094 vect_transform_loop): Don't force scalar loop for bound just because
6095 number of iterations is unknown, only do it if it is not known to be
6096 a multiple of vectorization_factor.
6097 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
6099 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
6100 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
6101 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
6102 (set_nonzero_bits, get_nonzero_bits): New prototypes.
6103 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
6104 a default def isn't partially constant.
6105 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
6106 is known to be partially zero.
6107 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
6108 to see if a default def isn't partially constant.
6109 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
6110 creation of a range, if VR_RANGE, try to improve nonzero_bits from
6112 (set_nonzero_bits, get_nonzero_bits): New functions.
6114 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
6115 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
6116 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
6117 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
6118 uses but in the condition and ASSERT_EXPR and the other successor of
6119 the predecessor bb is __builtin_unreachable (), set_range_info of the
6120 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
6122 2013-10-31 Martin Jambor <mjambor@suse.cz>
6124 PR rtl-optimization/58934
6126 2013-10-30 Martin Jambor <mjambor@suse.cz>
6127 PR rtl-optimization/10474
6128 * ira.c (find_moveable_pseudos): Do not calculate dominance info
6130 (interesting_dest_for_shprep): New function.
6131 (split_live_ranges_for_shrink_wrap): Likewise.
6132 (ira): Calculate dominance info and df analysis. Call
6133 split_live_ranges_for_shrink_wrap.
6135 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6136 Yury Gribov <y.gribov@samsung.com>
6139 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
6140 shadow pointer to avoid clobbering the main one.
6142 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6144 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
6146 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
6149 * ira-color.c (update_costs_from_copies): Add new parameter. Use
6150 it for calling update_costs_from_allocno.
6151 (assign_hard_reg): Call restore_costs_from_copies only for
6152 !retry_p. Pass new argument to update_costs_from_copies.
6153 (color_pass): Pass new argument to update_costs_from_copies.
6154 (ira_mark_allocation_change): Ditto.
6156 2013-10-30 Sharad Singhai <singhai@google.com>
6159 * opts.c (common_handle_option): Remove deprecated option
6160 -ftree-vectorizer-verbose.
6161 * doc/invoke.texi (Debugging Options): Ditto.
6162 * opts-global.c (handle_common_deferred_options): Ditto.
6163 (dump_remap_tree_vectorizer_verbose): Delete.
6164 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
6166 2013-10-30 DJ Delorie <dj@redhat.com>
6168 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
6169 that take no arguments.
6171 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
6174 * reload1.c (update_eliminables_and_spill): New function, broken
6176 (reload): Use it. Check for frame size change after frame size
6177 alignment, and call update_eliminables_and_spill first if continue-ing.
6179 2013-10-30 Cong Hou <congh@google.com>
6182 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
6183 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
6184 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
6186 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
6188 PR rtl-optimization/58369
6189 * reload1.c (compute_reload_subreg_offset): New function.
6190 (choose_reload_regs): Use it to pass endian-correct
6191 offset to subreg_regno_offset.
6193 2013-10-30 Tobias Burnus <burnus@net-b.de>
6196 * tree-cfg.c (replace_loop_annotate): Replace warning by
6199 2013-10-30 Jason Merrill <jason@redhat.com>
6201 * configure.ac (loose_warn): Add -Wno-format if
6202 --disable-build-format-warnings.
6204 2013-10-30 David Malcolm <dmalcolm@redhat.com>
6206 * cgraphunit.c (analyze_functions): Split symtab_node declarations
6207 onto multiple lines to make things easier for rename_symtab.py.
6209 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
6210 (symtab_semantically_equivalent_p): Likewise.
6212 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
6215 * lra.c (check_rtl): Remove address check before LRA work.
6217 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
6219 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
6220 POINTER_PLUS_EXPR in the defining statement.
6222 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
6224 * regmove.c: Remove.
6225 * tree-pass.h (make_pass_regmove): Remove.
6226 * timevar.def (TV_REGMOVE): Remove.
6227 * passes.def (pass_regmove): Remove.
6228 * opts.c (default_options_table): Remove entry for regmove.
6229 * doc/passes.texi: Remove regmove pass description.
6230 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
6232 (-fdump-rtl-regmove): Ditto.
6233 * common.opt (foptimize-register-move, fregmove): Ignore.
6234 * Makefile.in (OBJS): Remove regmove.o.
6235 * regmove.c: Remove.
6236 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
6238 (struct ira_allocno) New member allocno_prefs.
6239 (ALLOCNO_PREFS): New macro.
6240 (ira_prefs, ira_prefs_num): New external vars.
6241 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
6242 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
6243 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
6245 (ira_add_allocno_copy_to_list): Remove prototype.
6246 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
6247 (ira_pref_iterator): New type.
6248 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
6249 (FOR_EACH_PREF): New macro.
6250 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
6251 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
6253 (ira_setup_alts): New function.
6254 (decrease_live_ranges_number): New function.
6255 (ira): Call the above function.
6256 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
6257 (ira_create_allocno): Initialize allocno prefs.
6258 (pref_pool, pref_vec): New static vars.
6259 (initiate_prefs, find_allocno_pref, ira_create_pref): New
6261 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
6262 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
6263 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
6264 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
6265 (ira_add_allocno_copy_to_list): Make static. Rename to
6266 add_allocno_copy_to_list.
6267 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
6268 swap_allocno_copy_ends_if_necessary.
6269 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
6270 ira_remove_allocno_prefs.
6271 (ira_flattening): Ditto.
6272 (ira_build): Call initiate_prefs, print_prefs.
6273 (ira_destroy): Call finish_prefs.
6274 * ira-color.c (struct update_cost_record): New.
6275 (struct allocno_color_data): Add new member update_cost_records.
6276 (update_cost_record_pool): New static var.
6277 (init_update_cost_records, get_update_cost_record): New functions.
6278 (free_update_cost_record_list, finish_update_cost_records): Ditto.
6279 (struct update_cost_queue_elem): Add member from.
6280 (initiate_cost_update): Call init_update_cost_records.
6281 (finish_cost_update): Call finish_update_cost_records.
6282 (queue_update_cost, get_next_update_cost): Add new param from.
6283 (Update_allocno_cost, update_costs_from_allocno): New functions.
6284 (update_costs_from_prefs): Ditto.
6285 (update_copy_costs): Rename to update_costs_from_copies.
6286 (restore_costs_from_copies): New function.
6287 (update_conflict_hard_regno_costs): Don't go back.
6288 (assign_hard_reg): Call restore_costs_from_copies. Add printing
6290 (pop_allocnos): Add priniting more debug info.
6291 (color_allocnos): Remove prefs for conflicting hard regs.
6292 Call update_costs_from_prefs.
6293 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
6294 (get_dup_num): Rename, modify, and move to ira.c
6295 (process_regs_for_copy): Add prefs.
6296 (add_insn_allocno_copies): Put src as first arg of
6297 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
6298 * ira-costs.c (record_reg_classes): Modify and move code into
6299 record_operands_costs.
6300 (find_costs_and_classes): Create prefs for the hard reg of small
6302 (process_bb_node_for_hard_reg_moves): Add prefs.
6304 2013-10-30 Richard Biener <rguenther@suse.de>
6307 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
6308 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
6310 (pre_and_rev_post_order_compute): ... which now wraps it.
6311 * graph.c (draw_cfg_nodes_no_loops): Use
6312 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
6315 2013-10-30 Christian Bruel <christian.bruel@st.com>
6317 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
6318 (sh_expand_cmpstr): Handle known align and schedule improvements.
6319 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
6320 * config/sh/sh.md (cmpstrnsi): New pattern.
6322 2013-10-30 Martin Jambor <mjambor@suse.cz>
6324 PR rtl-optimization/10474
6325 * ira.c (find_moveable_pseudos): Do not calculate dominance info
6327 (interesting_dest_for_shprep): New function.
6328 (split_live_ranges_for_shrink_wrap): Likewise.
6329 (ira): Calculate dominance info and df analysis. Call
6330 split_live_ranges_for_shrink_wrap.
6332 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6335 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
6337 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
6339 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
6340 * tree.h (POINTER_BOUNDS_P): New.
6341 (BOUNDED_TYPE_P): New.
6343 (pointer_bounds_type_node): New.
6344 * tree.c (build_common_tree_nodes): Initialize
6345 pointer_bounds_type_node.
6346 * gimple.h (gimple_call_get_nobnd_arg_index): New.
6347 (gimple_call_num_nobnd_args): New.
6348 (gimple_call_nobnd_arg): New.
6349 (gimple_return_retbnd): New.
6350 (gimple_return_set_retbnd): New
6351 * gimple.c (gimple_build_return): Increase number of ops
6352 for return statement.
6353 (gimple_call_get_nobnd_arg_index): New.
6354 * gimple-pretty-print.c (dump_gimple_return): Print second op.
6356 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
6358 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
6359 with "chkp ctor" and "bnd_legacy" attributes.
6360 * gimplify.c (gimplify_init_constructor): Avoid infinite
6361 loop during gimplification of bounds initializer.
6363 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
6365 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
6366 (handle_bnd_legacy): New.
6367 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
6368 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
6371 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
6373 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
6374 (BT_FN_PTR_CONST_PTR): New.
6375 (BT_FN_CONST_PTR_CONST_PTR): New.
6376 (BT_FN_PTR_CONST_PTR_SIZE): New.
6377 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
6378 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
6379 (BT_FN_VOID_CONST_PTR_SIZE): New.
6380 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
6381 * chkp-builtins.def: New.
6382 * builtins.def: include chkp-builtins.def.
6383 (DEF_CHKP_BUILTIN): New.
6384 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
6385 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
6386 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
6387 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
6388 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
6389 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
6390 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
6391 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
6392 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
6393 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
6394 * common.opt (fcheck-pointer-bounds): New.
6395 * toplev.c (process_options): Check Pointer Bounds Checker is
6397 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
6399 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
6401 * target.def (builtin_chkp_function): New.
6402 (chkp_bound_type): New.
6403 (chkp_bound_mode): New.
6404 (fn_abi_va_list_bounds_size): New.
6405 (load_bounds_for_arg): New.
6406 (store_bounds_for_arg): New.
6407 * targhooks.h (default_load_bounds_for_arg): New.
6408 (default_store_bounds_for_arg): New.
6409 (default_fn_abi_va_list_bounds_size): New.
6410 (default_chkp_bound_type): New.
6411 (default_chkp_bound_mode): New.
6412 (default_builtin_chkp_function): New.
6413 * targhooks.c (default_load_bounds_for_arg): New.
6414 (default_store_bounds_for_arg): New.
6415 (default_fn_abi_va_list_bounds_size): New.
6416 (default_chkp_bound_type): New.
6417 (default_chkp_bound_mode); New.
6418 (default_builtin_chkp_function): New.
6419 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
6420 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
6421 (TARGET_STORE_BOUNDS_FOR_ARG): New.
6422 (TARGET_BUILTIN_CHKP_FUNCTION): New.
6423 (TARGET_CHKP_BOUND_TYPE): New.
6424 (TARGET_CHKP_BOUND_MODE): New.
6425 * doc/tm.texi: Regenerated.
6426 * langhooks.h (lang_hooks): Add chkp_supported field.
6427 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
6428 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
6430 2013-10-29 Andrew Pinski <apinski@cavium.com>
6432 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
6433 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
6434 fails, combining the branches anyways.
6435 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
6436 increases the number of combinings.
6437 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
6439 2013-10-29 Mike Stump <mikestump@comcast.net>
6441 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
6442 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
6443 (make_vector_mode): Increase namebuf to 16.
6444 (emit_insn_modes_h): When processing BImode, don't
6445 also match partial int modes.
6446 (emit_class_narrowest_mode): Likewise.
6448 * config/bfin/bfin-modes.def: Add precision to PDI.
6449 * config/m32c/m32c-modes.def: Add precision to PSI.
6450 * config/msp430/msp430-modes.def: Add precision to PSI.
6451 * config/rs6000/rs6000-modes.def: Add precision to PTI.
6452 * config/sh/sh-modes.def: Add precision to PSI and PDI.
6454 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
6457 * config/sh/sh.md (*addc): Rename existing variations to ...
6458 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
6459 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
6460 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
6461 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
6463 2013-10-29 Teresa Johnson <tejohnson@google.com>
6466 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
6467 insanities when updating probabilities.
6469 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6471 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
6472 prettyprinter for cgraph_node to reflect the conversion of the
6473 symtable types to a C++ class hierarchy: it now *is* a
6474 symtab_node_base, rather than having one (named "symbol").
6476 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
6478 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
6479 __cilkrts_pop_frame. If matched, then return true for built-in
6481 (expand_builtin): Added BUILT_IN_CILK_DETACH and
6482 BUILT_IN_CILK_POP_FRAME case.
6483 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
6484 (lhs_cilk_detect_spawn): Likewise.
6485 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
6486 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
6487 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
6488 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
6489 (LANG_HOOKS_CILKPLUS): Likewise.
6490 * tree.h (CILK_SPAWN_FN): Likewise.
6491 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
6492 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
6493 (OBJS): Added cilk-common.o.
6494 (BUILTINS_DEF): Added cilk-builtins.def.
6495 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
6496 (lhd_cilk_detect_spawn): Likewise.
6497 * langhooks.h (lang_hooks_for_cilkplus): New struct.
6498 (struct lang_hooks): Added new field called "cilkplus."
6499 * cilk-common.c: New file.
6501 * cilk-builtins.def: Likewise.
6502 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
6503 "__cilk" macro and set it to 200.
6504 * function.h (struct function::cilk_frame_decl): New field.
6505 (struct function::is_cilk_function): Likewise.
6506 (struct function::calls_cilk_spawn): Likewise.
6507 * gimplify.c (gimplify_call_expr): Added a check if the function call
6508 being gimplified is a spawn detach point. If so, then add pop_frame
6509 and detach function calls.
6510 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
6511 for gimplifying _Cilk_spawn and _Cilk_sync statements.
6512 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
6513 function. If so, added a _Cilk_sync and gimplified it.
6514 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
6515 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
6516 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
6518 (can_inline_edge_p): Prevent inling of spawnee function.
6519 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
6520 for functions that use Cilk keywords.
6521 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
6522 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
6523 CILK_SYNC_STMT cases.
6524 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
6526 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
6527 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
6528 * passes.texi (Cilk Keywords): New section that describes the compiler
6529 code changes for handling Cilk Keywords.
6531 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6533 Patch autogenerated by refactor_symtab.py from
6534 https://github.com/davidmalcolm/gcc-refactoring-scripts
6535 revision 58bb219cc090b2f4516a9297d868c245495ee622
6537 * asan.c (asan_finish_file): Update for conversion of symtab types to
6538 a true class hierarchy.
6539 * cfgexpand.c (estimated_stack_frame_size): Likewise.
6540 * cgraph.c (cgraph_get_body): Likewise.
6541 (cgraph_get_create_real_symbol_node): Likewise.
6542 (verify_cgraph_node): Likewise.
6543 (verify_edge_corresponds_to_fndecl): Likewise.
6544 (verify_edge_count_and_frequency): Likewise.
6545 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
6546 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
6547 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
6548 (cgraph_node_cannot_return): Likewise.
6549 (cgraph_set_pure_flag_1): Likewise.
6550 (cgraph_set_const_flag_1): Likewise.
6551 (cgraph_set_nothrow_flag_1): Likewise.
6552 (cgraph_make_node_local_1): Likewise.
6553 (cgraph_for_node_and_aliases): Likewise.
6554 (cgraph_for_node_thunks_and_aliases): Likewise.
6555 (cgraph_node_can_be_local_p): Likewise.
6556 (cgraph_node_cannot_be_local_p_1): Likewise.
6557 (cgraph_function_body_availability): Likewise.
6558 (dump_cgraph_node): Likewise.
6559 (cgraph_rtl_info): Likewise.
6560 (cgraph_mark_address_taken_node): Likewise.
6561 (cgraph_remove_node): Likewise.
6562 (cgraph_release_function_body): Likewise.
6563 (cgraph_update_edges_for_call_stmt_node): Likewise.
6564 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
6565 (cgraph_make_edge_direct): Likewise.
6566 (cgraph_resolve_speculation): Likewise.
6567 (cgraph_speculative_call_info): Likewise.
6568 (cgraph_turn_edge_to_speculative): Likewise.
6569 (cgraph_create_edge_1): Likewise.
6570 (cgraph_set_call_stmt): Likewise.
6571 (cgraph_node_for_asm): Likewise.
6572 (cgraph_add_thunk): Likewise.
6573 (cgraph_same_body_alias): Likewise.
6574 (cgraph_create_function_alias): Likewise.
6575 (cgraph_create_node): Likewise.
6576 (cgraph_create_empty_node): Likewise.
6577 (record_function_versions): Likewise.
6578 (used_from_object_file_p): Likewise.
6579 * cgraph.h (symtab_can_be_discarded): Likewise.
6580 (symtab_real_symbol_p): Likewise.
6581 (cgraph_mark_force_output_node): Likewise.
6582 (cgraph_edge_recursive_p): Likewise.
6583 (symtab_alias_target): Likewise.
6584 (varpool_all_refs_explicit_p): Likewise.
6585 (varpool_can_remove_if_no_refs): Likewise.
6586 (cgraph_only_called_directly_or_aliased_p): Likewise.
6587 (cgraph_next_function_with_gimple_body): Likewise.
6588 (cgraph_first_function_with_gimple_body): Likewise.
6589 (cgraph_function_with_gimple_body_p): Likewise.
6590 (cgraph_next_function): Likewise.
6591 (cgraph_first_function): Likewise.
6592 (cgraph_next_defined_function): Likewise.
6593 (cgraph_first_defined_function): Likewise.
6594 (varpool_next_defined_variable): Likewise.
6595 (varpool_first_defined_variable): Likewise.
6596 (varpool_next_static_initializer): Likewise.
6597 (varpool_first_static_initializer): Likewise.
6598 (varpool_next_variable): Likewise.
6599 (varpool_first_variable): Likewise.
6600 (varpool_node_name): Likewise.
6601 (varpool): Likewise.
6603 (is_a_helper <varpool_node>::test): Likewise.
6604 (is_a_helper <cgraph_node>::test): Likewise.
6605 (varpool_variable_node): Likewise.
6606 (cgraph_function_or_thunk_node): Likewise.
6607 (varpool_alias_target): Likewise.
6608 (cgraph_alias_target): Likewise.
6609 (cgraph_node_name): Likewise.
6610 (varpool_node_asm_name): Likewise.
6611 (cgraph_node_asm_name): Likewise.
6612 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
6613 (cgraph_rebuild_references): Likewise.
6614 (rebuild_cgraph_edges): Likewise.
6615 (record_eh_tables): Likewise.
6616 (build_cgraph_edges): Likewise.
6617 (mark_store): Likewise.
6618 (mark_load): Likewise.
6619 (mark_address): Likewise.
6620 (record_type_list): Likewise.
6621 (record_reference): Likewise.
6622 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
6623 (cgraph_materialize_clone): Likewise.
6624 (cgraph_function_versioning): Likewise.
6625 (cgraph_copy_node_for_versioning): Likewise.
6626 (update_call_expr): Likewise.
6627 (cgraph_find_replacement_node): Likewise.
6628 (cgraph_create_virtual_clone): Likewise.
6629 (cgraph_clone_node): Likewise.
6630 * cgraphunit.c (compile): Likewise.
6631 (output_weakrefs): Likewise.
6632 (output_in_order): Likewise.
6633 (expand_function): Likewise.
6634 (assemble_thunks_and_aliases): Likewise.
6635 (expand_thunk): Likewise.
6636 (mark_functions_to_output): Likewise.
6637 (handle_alias_pairs): Likewise.
6638 (analyze_functions): Likewise.
6639 (walk_polymorphic_call_targets): Likewise.
6640 (varpool_finalize_decl): Likewise.
6641 (process_function_and_variable_attributes): Likewise.
6642 (cgraph_process_same_body_aliases): Likewise.
6643 (analyze_function): Likewise.
6644 (cgraph_add_new_function): Likewise.
6645 (cgraph_finalize_function): Likewise.
6646 (referred_to_p): Likewise.
6647 (cgraph_reset_node): Likewise.
6648 (cgraph_process_new_functions): Likewise.
6649 (enqueue_node): Likewise.
6650 (decide_is_symbol_needed): Likewise.
6651 * coverage.c (coverage_compute_profile_id): Likewise.
6652 * dbxout.c (dbxout_expand_expr): Likewise.
6653 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
6654 (reference_to_unused): Likewise.
6655 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
6656 * gimplify.c (unvisit_body): Likewise.
6657 (unshare_body): Likewise.
6658 * ipa-cp.c (ipcp_generate_summary): Likewise.
6659 (ipcp_decision_stage): Likewise.
6660 (identify_dead_nodes): Likewise.
6661 (decide_whether_version_node): Likewise.
6662 (decide_about_value): Likewise.
6663 (perhaps_add_new_callers): Likewise.
6664 (create_specialized_node): Likewise.
6665 (update_profiling_info): Likewise.
6666 (ipcp_propagate_stage): Likewise.
6667 (estimate_local_effects): Likewise.
6668 (good_cloning_opportunity_p): Likewise.
6669 (devirtualization_time_bonus): Likewise.
6670 (propagate_constants_accross_call): Likewise.
6671 (initialize_node_lattices): Likewise.
6672 (ipcp_cloning_candidate_p): Likewise.
6673 (determine_versionability): Likewise.
6674 (print_all_lattices): Likewise.
6675 (print_lattice): Likewise.
6676 (ipcp_discover_new_direct_edges): Likewise.
6677 * ipa-devirt.c (ipa_devirt): Likewise.
6678 (likely_target_p): Likewise.
6679 (update_type_inheritance_graph): Likewise.
6680 (possible_polymorphic_call_target_p): Likewise.
6681 (dump_possible_polymorphic_call_targets): Likewise.
6682 (devirt_variable_node_removal_hook): Likewise.
6683 (record_binfo): Likewise.
6684 (maybe_record_node): Likewise.
6685 (build_type_inheritance_graph): Likewise.
6686 * ipa-inline-analysis.c (inline_write_summary): Likewise.
6687 (inline_generate_summary): Likewise.
6688 (inline_analyze_function): Likewise.
6689 (do_estimate_growth): Likewise.
6690 (simple_edge_hints): Likewise.
6691 (estimate_node_size_and_time): Likewise.
6692 (estimate_edge_devirt_benefit): Likewise.
6693 (compute_inline_parameters): Likewise.
6694 (estimate_function_body_sizes): Likewise.
6695 (compute_bb_predicates): Likewise.
6696 (initialize_inline_failed): Likewise.
6697 (dump_inline_summary): Likewise.
6698 (dump_inline_edge_summary): Likewise.
6699 * ipa-inline-transform.c (inline_transform): Likewise.
6700 (preserve_function_body_p): Likewise.
6701 (save_inline_function_body): Likewise.
6702 (inline_call): Likewise.
6703 (clone_inlined_nodes): Likewise.
6704 (can_remove_node_now_p): Likewise.
6705 (can_remove_node_now_p_1): Likewise.
6706 * ipa-inline.c (early_inliner): Likewise.
6707 (early_inline_small_functions): Likewise.
6708 (inline_always_inline_functions): Likewise.
6709 (ipa_inline): Likewise.
6710 (flatten_function): Likewise.
6711 (inline_small_functions): Likewise.
6712 (speculation_useful_p): Likewise.
6713 (recursive_inlining): Likewise.
6714 (update_caller_keys): Likewise.
6715 (reset_edge_caches): Likewise.
6716 (update_edge_key): Likewise.
6717 (edge_badness): Likewise.
6718 (relative_time_benefit): Likewise.
6719 (want_inline_self_recursive_call_p): Likewise.
6720 (want_inline_small_function_p): Likewise.
6721 (want_early_inline_function_p): Likewise.
6722 (num_calls): Likewise.
6723 (can_early_inline_edge_p): Likewise.
6724 (can_inline_edge_p): Likewise.
6725 (report_inline_failed_reason): Likewise.
6726 * ipa-profile.c (ipa_profile): Likewise.
6727 (ipa_propagate_frequency): Likewise.
6728 (ipa_propagate_frequency_1): Likewise.
6729 (ipa_profile_generate_summary): Likewise.
6730 * ipa-prop.c (ipcp_transform_function): Likewise.
6731 (read_replacements_section): Likewise.
6732 (ipa_prop_read_section): Likewise.
6733 (ipa_modify_call_arguments): Likewise.
6734 (ipa_print_node_params): Likewise.
6735 (propagate_controlled_uses): Likewise.
6736 (update_indirect_edges_after_inlining): Likewise.
6737 (remove_described_reference): Likewise.
6738 (ipa_make_edge_direct_to_target): Likewise.
6739 (ipa_analyze_node): Likewise.
6740 (ipa_analyze_params_uses): Likewise.
6741 (ipa_compute_jump_functions): Likewise.
6742 (ipa_get_callee_param_type): Likewise.
6743 (ipa_print_node_jump_functions): Likewise.
6744 (ipa_initialize_node_params): Likewise.
6745 (ipa_populate_param_decls): Likewise.
6746 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
6747 (write_agg_replacement_chain): Likewise.
6748 (ipa_write_node_info): Likewise.
6749 (ipa_edge_duplication_hook): Likewise.
6750 (try_decrement_rdesc_refcount): Likewise.
6751 * ipa-pure-const.c (propagate_nothrow): Likewise.
6752 (propagate_pure_const): Likewise.
6753 (pure_const_read_summary): Likewise.
6754 (pure_const_write_summary): Likewise.
6755 (analyze_function): Likewise.
6756 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
6757 (ipa_ref_referring_ref_list): Likewise.
6758 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
6759 (ipa_remove_stmt_references): Likewise.
6760 (ipa_find_reference): Likewise.
6761 (ipa_dump_referring): Likewise.
6762 (ipa_dump_references): Likewise.
6763 (ipa_record_reference): Likewise.
6764 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
6765 (ipa_reference_write_optimization_summary): Likewise.
6766 (write_node_summary_p): Likewise.
6767 (propagate): Likewise.
6768 (read_write_all_from_decl): Likewise.
6769 (generate_summary): Likewise.
6770 (analyze_function): Likewise.
6771 (propagate_bits): Likewise.
6772 (ipa_reference_get_not_written_global): Likewise.
6773 (ipa_reference_get_not_read_global): Likewise.
6774 * ipa-split.c (execute_split_functions): Likewise.
6775 (split_function): Likewise.
6776 * ipa-utils.c (ipa_merge_profiles): Likewise.
6777 (dump_cgraph_node_set): Likewise.
6778 (ipa_reverse_postorder): Likewise.
6779 (ipa_edge_within_scc): Likewise.
6780 (ipa_get_nodes_in_cycle): Likewise.
6781 (ipa_free_postorder_info): Likewise.
6782 (ipa_reduced_postorder): Likewise.
6783 (searchc): Likewise.
6784 (recursive_call_p): Likewise.
6785 * ipa.c (ipa_cdtor_merge): Likewise.
6786 (record_cdtor_fn): Likewise.
6787 (function_and_variable_visibility): Likewise.
6788 (varpool_externally_visible_p): Likewise.
6789 (cgraph_externally_visible_p): Likewise.
6790 (comdat_can_be_unshared_p): Likewise.
6791 (comdat_can_be_unshared_p_1): Likewise.
6792 (address_taken_from_non_vtable_p): Likewise.
6793 (ipa_discover_readonly_nonaddressable_vars): Likewise.
6794 (symtab_remove_unreachable_nodes): Likewise.
6795 (walk_polymorphic_call_targets): Likewise.
6796 (process_references): Likewise.
6797 (enqueue_node): Likewise.
6798 (has_addr_references_p): Likewise.
6799 (cgraph_non_local_node_p_1): Likewise.
6800 * is-a.h (varpool_analyze_node): Likewise.
6801 * lto-cgraph.c (input_symtab): Likewise.
6802 (merge_profile_summaries): Likewise.
6803 (input_cgraph_1): Likewise.
6804 (input_edge): Likewise.
6805 (input_varpool_node): Likewise.
6806 (input_node): Likewise.
6807 (input_overwrite_node): Likewise.
6808 (compute_ltrans_boundary): Likewise.
6809 (output_refs): Likewise.
6810 (lto_output_varpool_node): Likewise.
6811 (lto_output_node): Likewise.
6812 (reachable_from_other_partition_p): Likewise.
6813 (referenced_from_other_partition_p): Likewise.
6814 (lto_output_edge): Likewise.
6815 (output_node_opt_summary): Likewise.
6816 (add_node_to): Likewise.
6817 (reachable_from_this_partition_p): Likewise.
6818 (lto_set_symtab_encoder_in_partition): Likewise.
6819 (lto_symtab_encoder_in_partition_p): Likewise.
6820 (lto_set_symtab_encoder_encode_initializer): Likewise.
6821 (lto_symtab_encoder_encode_initializer_p): Likewise.
6822 (lto_set_symtab_encoder_encode_body): Likewise.
6823 (lto_symtab_encoder_encode_body_p): Likewise.
6824 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
6826 * lto-streamer-in.c (lto_read_body): Likewise.
6827 (fixup_call_stmt_edges): Likewise.
6828 (fixup_call_stmt_edges_1): Likewise.
6829 * lto-streamer-out.c (produce_symtab): Likewise.
6830 (output_symbol_p): Likewise.
6831 (write_symbol): Likewise.
6832 (lto_output): Likewise.
6833 (copy_function): Likewise.
6834 (output_function): Likewise.
6835 * passes.c (function_called_by_processed_nodes_p): Likewise.
6836 (ipa_write_optimization_summaries): Likewise.
6837 (ipa_write_summaries): Likewise.
6838 (do_per_function_toporder): Likewise.
6839 (do_per_function): Likewise.
6840 (dump_passes): Likewise.
6841 * symtab.c (symtab_semantically_equivalent_p): Likewise.
6842 (symtab_nonoverwritable_alias): Likewise.
6843 (symtab_nonoverwritable_alias_1): Likewise.
6844 (symtab_for_node_and_aliases): Likewise.
6845 (symtab_resolve_alias): Likewise.
6846 (fixup_same_cpp_alias_visibility): Likewise.
6847 (symtab_alias_ultimate_target): Likewise.
6848 (symtab_used_from_object_file_p): Likewise.
6849 (verify_symtab_base): Likewise.
6850 (dump_symtab_base): Likewise.
6851 (symtab_node_name): Likewise.
6852 (symtab_node_asm_name): Likewise.
6853 (symtab_dissolve_same_comdat_group_list): Likewise.
6854 (symtab_add_to_same_comdat_group): Likewise.
6855 (symtab_unregister_node): Likewise.
6856 (symtab_insert_node_to_hashtable): Likewise.
6857 (symtab_register_node): Likewise.
6858 (unlink_from_assembler_name_hash): Likewise.
6859 (insert_to_assembler_name_hash): Likewise.
6860 (eq_assembler_name): Likewise.
6861 (hash_node_by_assembler_name): Likewise.
6862 (eq_node): Likewise.
6863 (hash_node): Likewise.
6864 * toplev.c (wrapup_global_declaration_2): Likewise.
6865 * trans-mem.c (ipa_tm_execute): Likewise.
6866 (ipa_tm_transform_clone): Likewise.
6867 (ipa_tm_transform_transaction): Likewise.
6868 (ipa_tm_transform_calls_redirect): Likewise.
6869 (ipa_tm_insert_gettmclone_call): Likewise.
6870 (ipa_tm_insert_irr_call): Likewise.
6871 (ipa_tm_create_version): Likewise.
6872 (ipa_tm_create_version_alias): Likewise.
6873 (ipa_tm_mark_forced_by_abi_node): Likewise.
6874 (ipa_tm_mark_force_output_node): Likewise.
6875 (ipa_tm_diagnose_tm_safe): Likewise.
6876 (ipa_tm_mayenterirr_function): Likewise.
6877 (ipa_tm_scan_irr_function): Likewise.
6878 (ipa_tm_note_irrevocable): Likewise.
6879 (ipa_tm_scan_calls_clone): Likewise.
6880 (get_cg_data): Likewise.
6881 * tree-eh.c (tree_could_trap_p): Likewise.
6882 * tree-emutls.c (ipa_lower_emutls): Likewise.
6883 (create_emultls_var): Likewise.
6884 (lower_emutls_function_body): Likewise.
6885 (gen_emutls_addr): Likewise.
6886 (emutls_decl): Likewise.
6887 (new_emutls_decl): Likewise.
6888 * tree-inline.c (tree_function_versioning): Likewise.
6889 (optimize_inline_calls): Likewise.
6890 (expand_call_inline): Likewise.
6891 (estimate_num_insns): Likewise.
6892 (copy_bb): Likewise.
6893 (delete_unreachable_blocks_update_callgraph): Likewise.
6894 * tree-nested.c (gimplify_all_functions): Likewise.
6895 (create_nesting_tree): Likewise.
6896 (check_for_nested_with_variably_modified): Likewise.
6897 * tree-pretty-print.c (dump_function_header): Likewise.
6898 * tree-profile.c (tree_profiling): Likewise.
6899 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6900 (modify_function): Likewise.
6901 (convert_callers): Likewise.
6902 (convert_callers_for_node): Likewise.
6903 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
6904 (associate_varinfo_to_alias): Likewise.
6905 (create_variable_info_for): Likewise.
6906 (get_constraint_for_ssa_var): Likewise.
6907 * tree-vectorizer.c (increase_alignment): Likewise.
6908 * tree.c (find_decls_types_in_var): Likewise.
6909 (find_decls_types_in_node): Likewise.
6910 (free_lang_data_in_decl): Likewise.
6911 * value-prof.c (gimple_ic_transform): Likewise.
6912 (gimple_ic): Likewise.
6913 (check_ic_target): Likewise.
6914 (init_node_map): Likewise.
6915 * varasm.c (decl_binds_to_current_def_p): Likewise.
6916 (default_binds_local_p_1): Likewise.
6917 (dump_tm_clone_pairs): Likewise.
6918 (assemble_alias): Likewise.
6919 (find_decl): Likewise.
6920 (mark_decl_referenced): Likewise.
6921 * varpool.c (varpool_for_node_and_aliases): Likewise.
6922 (varpool_extra_name_alias): Likewise.
6923 (varpool_create_variable_alias): Likewise.
6924 (add_new_static_var): Likewise.
6925 (varpool_finalize_named_section_flags): Likewise.
6926 (varpool_remove_unreferenced_decls): Likewise.
6927 (enqueue_node): Likewise.
6928 (varpool_assemble_decl): Likewise.
6929 (assemble_aliases): Likewise.
6930 (varpool_analyze_node): Likewise.
6931 (cgraph_variable_initializer_availability): Likewise.
6932 (varpool_add_new_variable): Likewise.
6933 (ctor_for_folding): Likewise.
6934 (dump_varpool_node): Likewise.
6935 (varpool_remove_initializer): Likewise.
6936 (varpool_remove_node): Likewise.
6937 (varpool_node_for_decl): Likewise.
6938 (varpool_create_empty_node): Likewise.
6939 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
6940 (ix86_get_function_versions_dispatcher): Likewise.
6942 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6944 * cgraph.h (symtab_node_base): Convert to a class;
6945 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
6946 chain_next/prev from symtab_node_def.
6947 (cgraph_node): Inherit from symtab_node; add GTY option
6948 tag ("SYMTAB_FUNCTION").
6949 (varpool_node): Inherit from symtab_node; add GTY option
6950 tag ("SYMTAB_VARIABLE").
6951 (symtab_node_def): Remove.
6952 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
6953 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
6954 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
6955 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
6957 * ipa-ref.h (symtab_node_def): Drop.
6958 (symtab_node): Change underlying type from symtab_node_def to
6960 (const_symtab_node): Likwise.
6962 * is-a.h: Update examples in comment.
6964 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
6965 (assembler_name_hash): Likewise.
6967 2013-10-29 Martin Liska <marxin.liska@gmail.com>
6969 * doc/tree-ssa.texi (gimple_phi_result): Document.
6970 (gimple_phi_num_args, gimple_phi_arg): Likewise.
6971 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
6972 (PHI_RESULT, PHI_NUM_ARGS): Remove.
6973 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
6975 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
6977 * expr.h: Revert change and include tree-core.h.
6978 * rtl.h: Revert change and don't include tree-core.h.
6980 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
6982 * config/darwin.c: Include gimple.h.
6983 * config/i386/winnt.c: Likewise.
6985 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
6987 PR tree-optimization/19831
6988 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
6990 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
6992 * tree-outof-ssa.h: Remove include files.
6993 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
6995 * tree-ssa-coalesce.c: Likewise.
6996 * cfgexpand.c: Likewise.
6997 * tree-ssa-ter.c: Likewise.
6998 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
6999 * lto-streamer.h: Likewise.
7000 * cgraphbuild.c: Add gimple.h to include list.
7001 * data-streamer-in.c: Likewise.
7002 * ipa-cp.c: Likewise.
7003 * tree-streamer.c: Likewise.
7004 * lto-compress.c: Likewise.
7005 * ipa-reference.c: Likewise.
7006 * data-streamer-out.c: Likewise.
7007 * lto-cgraph.c: Likewise.
7008 * cgraphclones.c: Likewise.
7009 * ipa-utils.c: Likewise.
7010 * data-streamer.c: Likewise.
7011 * ipa-split.c: Likewise.
7012 * lto-section-in.c: Likewise.
7013 * tree-streamer-out.c: Likewise.
7014 * ipa-prop.c: Likewise.
7015 * tree-streamer-in.c: Likewise.
7016 * symtab.c: Likewise.
7017 * opts-global.c: Likewise.
7018 * lto-opts.c: Likewise.
7019 * lto-section-out.c: Likewise.
7020 * lto-streamer.c: Likewise.
7021 * rtl.h: Add tree-core.h to include list.
7022 * expr.h: Remove tree-core.h from include list.
7023 * gimple.h: Likewise.
7024 * ipa-utils.h: Likewise.
7025 * streamer-hooks.h: Likewise.
7026 * streamer-hooks.c: Include input.h.
7028 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7030 * config/arm/arm.c (cortexa7_extra_costs): New table.
7031 (arm_cortex_a7_tune): New.
7032 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
7034 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
7036 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
7038 2013-10-29 David Malcolm <dmalcolm@redhat.com>
7040 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
7041 to use autogenerated markers for a class-hierarchy, every class
7042 must have a GTY marker.
7043 * gengtype.h (struct type): Add linked list of subclasses to
7044 the "s" member of the union.
7045 (add_subclass): New decl.
7046 * gengtype-state.c (read_state_struct_type): Set up subclass
7048 * gengtype.c (get_ultimate_base_class): New.
7049 (add_subclass): New.
7050 (new_structure): Set up subclass linked list.
7051 (set_gc_used_type): Propagate usage information to subclasses.
7052 (output_mangled_typename): Use get_ultimate_base_class.
7053 (walk_subclasses): Use the subclass linked list, avoiding an
7054 O(N^2) when writing out all types.
7055 (walk_type): Issue an error if the base class is missing a tag,
7056 rather than generating bogus C code. Add a gcc_unreachable
7057 default case, in case people omit tags from concrete subclasses,
7058 or get the values wrong.
7059 (write_func_for_structure): Issue an error for subclasses for
7060 which the base doesn't have a "desc", since otherwise the
7061 autogenerated routines for the base would silently fail to visit
7062 any subclass fields.
7063 (write_root): Use get_ultimate_base_class, tweaking constness of
7064 tp to match that function's signature.
7066 2013-10-29 David Malcolm <dmalcolm@redhat.com>
7068 * doc/gty.texi (GTY Options): Add note about inheritance to
7069 description of desc and tag.
7070 (Inheritance and GTY): New.
7072 2013-10-29 David Malcolm <dmalcolm@redhat.com>
7074 * gengtype-parse.c (opts_have): Drop "static" so that
7075 we can use this from gengtype.c.
7076 * gengtype.c (set_gc_used_type): Mark any base class as used;
7077 update field traversal to visit inherited fields.
7078 (output_mangled_typename): Convert references to classes within
7079 an inheritance hierarchy to reference the ultimate base class,
7080 since only it will have gt_ functions.
7081 (get_string_option): New.
7082 (walk_subclasses): New.
7083 (walk_type): Treat GTY structs that have a "desc" as being the
7084 root of an inheritance hierarchy. Generate a switch on it
7085 within the marking function which walks all subclasses, adding
7086 cases for them via walk_subclasses. For subclasses, visit all
7087 fields of the type (including inherited ones).
7088 (write_func_for_structure): Don't write fns for subclasses, only
7089 for the ultimate base class within an inheritance hierarchy.
7090 Subclasses-marking will be handled by the base class marking functions.
7091 (write_types): Likewise.
7092 (write_local_func_for_structure): Likewise.
7093 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
7094 a "tag" option (and are thus concrete subclasses).
7095 (write_root): Use the marker function for the ultimate base class.
7096 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
7097 (opts_have): Add declaration.
7099 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
7101 * lra-spills.c (lra_final_code_change): Remove useless move insns
7102 originated from moves of pseudos.
7104 2013-10-28 Jeff Law <law@redhat.com>
7106 * lower-subreg.c (resolve_simple_move): Fix comment typo.
7108 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
7110 * df-scan.c (df_collection_rec): Adjust.
7111 (copy_defs): New constant.
7112 (copy_uses): Likewise.
7113 (copy_eq_uses): Likewise.
7114 (copy_mw): Likewise.
7115 (copy_all): Likewise.
7116 (df_insn_rescan): Adjust.
7117 (df_notes_rescan): Likewise.
7118 (df_swap_refs): Likewise.
7119 (df_sort_and_compress_refs): Likewise.
7120 (df_sort_and_compress_mws): Likewise.
7121 (df_install_refs): Likewise.
7122 (df_install_mws): Likewise.
7123 (df_refs_add_to_chains): Add flags parameter controlling which vectors
7125 (df_bb_refs_record): Adjust.
7126 (df_record_entry_block_defs): Likewise.
7127 (df_record_exit_block_defs): Likewise.
7128 (df_refs_verify): Likewise.
7129 (df_mws_verify): Likewise.
7130 (df_insn_refs_verify): Likewise.
7131 (df_bb_verify): Likewise.
7132 * ipa-pure-const.c (finish_state): Remove.
7133 (propagate): Adjust.
7134 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
7135 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
7136 var-tracking.c: Adjust.
7137 * vec.c (stack_vecs): Remove.
7138 (register_stack_vec): Likewise.
7139 (stack_vec_register_index): Likewise.
7140 (unregister_stack_vec): Likewise.
7141 * vec.h (struct va_stack): Remove.
7142 (struct vec<T, A, vl_ptr>): Specialize as
7143 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
7144 allocation strategy compatable with the vl_ptr layout.
7145 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
7146 specialization anyway.
7147 (class stack_vec): New class.
7148 (vec_stack_alloc): Remove.
7149 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
7151 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7152 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7153 Sergey Lega <sergey.s.lega@intel.com>
7154 Anna Tikhonova <anna.tikhonova@intel.com>
7155 Ilya Tocar <ilya.tocar@intel.com>
7156 Andrey Turetskiy <andrey.turetskiy@intel.com>
7157 Ilya Verbin <ilya.verbin@intel.com>
7158 Kirill Yukhin <kirill.yukhin@intel.com>
7159 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7161 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
7162 (*prefetch_avx512pf_<mode>): New.
7163 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
7164 (avx512f_maskcmp<mode>3): Ditto.
7165 (vashrv16si3): Ditto.
7167 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7168 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7169 Sergey Lega <sergey.s.lega@intel.com>
7170 Anna Tikhonova <anna.tikhonova@intel.com>
7171 Ilya Tocar <ilya.tocar@intel.com>
7172 Andrey Turetskiy <andrey.turetskiy@intel.com>
7173 Ilya Verbin <ilya.verbin@intel.com>
7174 Kirill Yukhin <kirill.yukhin@intel.com>
7175 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7177 * config/i386/i386.md (any_truncate): New.
7178 (trunsuffix): Ditto.
7179 * config/i386/predicates.md (const_8_to_9_operand): New.
7180 (const_10_to_11_operand): Ditto.
7181 (const_12_to_13_operand): Ditto.
7182 (const_14_to_15_operand): Ditto.
7183 (const_16_to_19_operand): Ditto.
7184 (const_20_to_23_operand): Ditto.
7185 (const_24_to_27_operand): Ditto.
7186 (const_28_to_31_operand): Ditto.
7187 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
7188 (cvtusi2<ssescalarmodesuffix>32): New.
7189 (cvtusi2<ssescalarmodesuffix>64): Ditto.
7190 (ufloatv16siv16sf2): Ditto.
7191 (avx512f_fix_notruncv16sfv16si): Ditto.
7192 (avx512f_ufix_notruncv16sfv16si): Ditto.
7193 (avx512f_vcvtss2usi): Ditto.
7194 (avx512f_vcvtss2usiq): Ditto.
7195 (avx512f_vcvttss2usi): Ditto.
7196 (avx512f_vcvttss2usiq): Ditto.
7197 (avx512f_vcvtsd2usi): Ditto.
7198 (avx512f_vcvtsd2usiq): Ditto.
7199 (avx512f_vcvttsd2usi): Ditto.
7200 (avx512f_vcvttsd2usiq): Ditto.
7201 (ufloatv8siv8df): Ditto.
7202 (avx512f_cvtdq2pd512_2): Ditto.
7203 (avx512f_cvtpd2dq512): Ditto.
7204 (avx512f_ufix_notruncv8dfv8si): Ditto.
7205 (avx512f_cvtpd2ps512): Ditto.
7206 (vec_unpacks_lo_v16sf): Ditto.
7207 (vec_unpacks_hi_v16sf): Ditto.
7208 (vec_unpacks_float_hi_v16si): Ditto.
7209 (vec_unpacks_float_lo_v16si): Ditto.
7210 (avx512f_unpckhps512): Ditto.
7211 (avx512f_unpcklps512): Ditto.
7212 (avx512f_movshdup512): Ditto.
7213 (avx512f_movsldup512): Ditto.
7214 (vec_extract_lo_v32hi): Ditto.
7215 (vec_extract_hi_v32hi): Ditto.
7216 (vec_extract_lo_v64qi): Ditto.
7217 (vec_extract_hi_v64qi): Ditto.
7218 (avx512f_unpckhpd512): Ditto.
7219 (avx512f_movddup512): Ditto.
7220 (avx512f_unpcklpd512): Ditto.
7221 (*avx512f_unpcklpd512): Ditto.
7222 (avx512f_shufps512_1): Ditto.
7223 (avx512f_shufpd512_1): Ditto.
7224 (avx512f_interleave_highv8di): Ditto.
7225 (avx512f_interleave_lowv8di): Ditto.
7226 (PMOV_DST_MODE): Ditto.
7227 (pmov_src_mode): Ditto.
7228 (pmov_src_lower): Ditto.
7230 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
7231 (*avx512f_<code>v8div16qi2): Ditto.
7232 (*avx512f_<code>v8div16qi2_store): Ditto.
7233 (vec_widen_umult_even_v16si): Ditto.
7234 (*vec_widen_umult_even_v16si): Ditto.
7235 (vec_widen_smult_even_v16si): Ditto.
7236 (*vec_widen_smult_even_v16si): Ditto.
7237 (avx512f_interleave_highv16si): Ditto.
7238 (avx512f_interleave_lowv16si): Ditto.
7239 (avx512f_<code>v16qiv16si2): Ditto.
7240 (avx512f_<code>v16hiv16si2): Ditto.
7241 (avx512f_<code>v8qiv8di2): Ditto.
7242 (avx512f_<code>v8hiv8di2): Ditto.
7243 (avx512f_<code>v8siv8di2): Ditto.
7244 (avx512cd_maskb_vec_dupv8di): Ditto.
7245 (avx512cd_maskw_vec_dupv16si): Ditto.
7246 (avx512f_vcvtph2ps512): Ditto.
7247 (avx512f_vcvtps2ph512): Ditto.
7248 (VEC_EXTRACT_MODE): Extened with wider modes.
7249 (VEC_PERM_AVX2): Ditto.
7250 (VEC_PERM_CONST): Ditto.
7252 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
7254 * config/arc/arc.c (arc_ccfsm_post_advance):
7255 Add comment about TYPE_RETURN.
7257 2013-10-28 Bin Cheng <bin.cheng@arm.com>
7259 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
7260 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
7261 (strip_offset): Convert offset to unsigned number.
7263 2013-10-27 Tom de Vries <tom@codesourcery.com>
7265 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
7266 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
7268 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
7270 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
7271 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
7272 (TARGET_BIG_ENDIAN): New macro.
7273 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
7274 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
7275 * config/sh/sh.c: Likewise.
7276 * config/sh/sh.h: Likewise.
7278 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
7280 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
7281 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
7283 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
7285 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
7287 (cmpstr_t, cmpstrsi): Fix formatting.
7289 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
7292 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
7293 addressing, do not use general_operand for memory operands.
7295 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
7298 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
7299 * lra-spills.c (lra_final_code_change): Remove useless move insns.
7301 2013-10-26 Jeff Law <law@redhat.com>
7303 * predict.c (PRED_MUDFLAP): Remove.
7304 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
7306 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
7307 (OBJS): Remove tree-nomudflap.o
7308 (GTFILES): Remove tree-mudflap.c
7309 * builtins.c (expand_builtin_alloc): Remove mudflap support.
7310 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
7311 (mfwrap_spec, mflib_spec): Likewise.
7312 (cpp_unique_options, cc1_options, static_specs): Likewise.
7313 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
7314 * passes.def: Likewise.
7315 * toplev.c (compile_file, process_options): Likewise.
7316 * tree-inline.c (copy_tree_r): Likewise.
7317 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
7318 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
7319 (build_constant_desc, output_constant_def_contents): Likewise.
7320 (categorize_decl_for_section): Likewise.
7321 * tree-mudflap.c: Removed.
7322 * tree-mudflap.h: Removed.
7323 * tree-nomudflap.c: Removed.
7324 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
7325 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
7326 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
7327 * config/sol2.h (MFLIB_SPEC): Likewise.
7328 * doc/install.texi: Remove mudflap references.
7329 * doc/passes.texi: Similarly.
7330 * doc/sourcebuild.texi: Similarly.
7331 * doc/invoke.texi: Remove mudlfap related options.
7333 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
7335 PR rtl-optimization/58759
7336 * lra-constraints.c (lra_constraints): Remove wrong condition to
7337 remove insn setting up an equivalent pseudo.
7339 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
7341 * config/rs6000/rs6000-protos.h
7342 (rs6000_secondary_memory_needed_mode): New prototype.
7343 * config/rs6000/rs6000.c: Include ira.h.
7344 (TARGET_LRA_P): Redefine.
7345 (rs6000_legitimate_offset_address_p): Call
7346 legitimate_constant_pool_address_p in strict mode for LRA.
7347 (rs6000_legitimate_address_p): Ditto.
7348 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
7349 (rs6000_emit_move): Add LRA version of code to generate load/store
7351 (rs6000_secondary_memory_needed_mode): New.
7352 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
7353 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
7354 constants, memory, and FP registers.
7355 (rs6000_lra_p): New.
7356 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
7357 * config/rs6000/rs6000.opt (mlra): New option.
7358 * lra-spills.c (lra_final_code_change): Remove useless move insns.
7360 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
7362 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
7363 has_single_use () and not do the conversion if has_single_use ()
7364 returns false for the multiplication result.
7366 2013-10-25 David Malcolm <dmalcolm@redhat.com>
7368 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
7369 to "NODE", since this works on a "tree", not an
7371 (CONSTANT_CLASS_P): Likewise.
7374 (INDIRECT_REF_P): Likewise.
7375 (REFERENCE_CLASS_P): Likewise.
7376 (COMPARISON_CLASS_P): Likewise.
7377 (UNARY_CLASS_P): Likewise.
7378 (BINARY_CLASS_P): Likewise.
7379 (STATEMENT_CLASS_P): Likewise.
7380 (VL_EXP_CLASS_P): Likewise.
7381 (EXPRESSION_CLASS_P): Likewise.
7382 (IS_TYPE_OR_DECL_P): Likewise.
7384 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
7386 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
7387 ADDR_EXPR in the defining statement.
7389 2013-10-25 Richard Biener <rguenther@suse.de>
7391 PR tree-optimization/58626
7392 * tree-loop-distribution.c (enum rdg_dep_type): Remove
7393 anti_dd, output_dd and input_dd.
7394 (struct rdg_edge): Remove level and relation members.
7395 (RDGE_LEVEL, RDGE_RELATION): Remove.
7396 (dot_rdg_1): Adjust.
7397 (create_rdg_edge_for_ddr): Remove.
7398 (create_rdg_edges_for_scalar): Adjust.
7399 (create_edge_for_control_dependence): Likewise.
7400 (create_rdg_edges): Split into ...
7401 (create_rdg_flow_edges): ... this
7402 (create_rdg_cd_edges): ... and this.
7404 (build_rdg): Likewise, do not compute data dependences or
7406 (pg_add_dependence_edges): New function.
7408 (distribute_loop): First apply all non-dependence based
7409 partition mergings. Then compute dependences between partitions
7410 and merge and order partitions according to them.
7412 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
7414 PR rtl-optimization/58831
7415 * alias.c (init_alias_analysis): At the beginning of each iteration,
7416 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
7418 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
7420 * recog.c (search_ofs): New static variable moved from...
7421 (peep2_find_free_register): ...here.
7422 (peephole2_optimize): Initialize it.
7424 2013-10-25 Tobias Burnus <burnus@net-b.de>
7426 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
7428 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
7430 * config/i386/i386.h (TARGET_MPX): New define.
7431 (TARGET_MPX_P): Ditto.
7433 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
7435 * config/i386/constraints.md (B): New.
7438 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
7439 * config/i386/i386-modes.def (BND32): New.
7441 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
7442 * config/i386/i386.c (isa_opts): Add mmpx.
7443 (regclass_map): Add bound registers.
7444 (dbx_register_map): Likewise.
7445 (dbx64_register_map): Likewise.
7446 (svr4_dbx_register_map): Likewise.
7448 (ix86_option_override_internal): Support MPX ISA.
7449 (ix86_conditional_register_usage): Support bound registers.
7450 (print_reg): Likewise.
7451 (ix86_code_end): Add MPX bnd prefix.
7452 (output_set_got): Likewise.
7453 (ix86_output_call_insn): Likewise.
7454 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
7455 (ix86_print_operand_punct_valid_p): Likewise.
7456 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
7458 (ix86_class_likely_spilled_p): Add bound regs support.
7459 (ix86_hard_regno_mode_ok): Likewise.
7460 (x86_order_regs_for_local_alloc): Likewise.
7461 (ix86_bnd_prefixed_insn_p): New.
7462 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
7463 (FIXED_REGISTERS): Add bound registers.
7464 (CALL_USED_REGISTERS): Likewise.
7465 (REG_ALLOC_ORDER): Likewise.
7466 (HARD_REGNO_NREGS): Likewise.
7468 (VALID_BND_REG_MODE): New.
7469 (FIRST_BND_REG): New.
7470 (LAST_BND_REG): New.
7471 (reg_class): Add BND_REGS.
7472 (REG_CLASS_NAMES): Likewise.
7473 (REG_CLASS_CONTENTS): Likewise.
7475 (ANY_BND_REG_P): New.
7477 (HI_REGISTER_NAMES): Add bound registers.
7478 * config/i386/i386.md (UNSPEC_BNDMK): New.
7479 (UNSPEC_BNDMK_ADDR): New.
7480 (UNSPEC_BNDSTX): New.
7481 (UNSPEC_BNDLDX): New.
7482 (UNSPEC_BNDLDX_ADDR): New.
7483 (UNSPEC_BNDCL): New.
7484 (UNSPEC_BNDCU): New.
7485 (UNSPEC_BNDCN): New.
7486 (UNSPEC_MPX_FENCE): New.
7489 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
7490 (length_immediate): Likewise.
7491 (prefix_0f): Likewise.
7493 (prefix_rep): Check for bnd prefix.
7494 (length_nobnd): New.
7495 (length): Use length_nobnd if specified.
7500 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
7503 (simple_return_internal): Likewise.
7504 (simple_return_pop_internal): Likewise.
7505 (*indirect_jump): Add MPX bnd prefix.
7506 (*tablejump_1): Likewise.
7507 (simple_return_internal_long): Likewise.
7508 (simple_return_indirect_internal): Likewise.
7512 (*mov<mode>_internal_mpx): New.
7513 (<mode>_<bndcheck>): New.
7514 (*<mode>_<bndcheck>): New.
7519 * config/i386/predicates.md (lea_address_operand): Rename to...
7520 (address_no_seg_operand): ... this.
7521 (address_mpx_no_base_operand): New.
7522 (address_mpx_no_index_operand): New.
7523 (bnd_mem_operator): New.
7524 * config/i386/i386.opt (mmpx): New.
7525 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
7526 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
7528 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
7530 * mode-classes.def (MODE_POINTER_BOUNDS): New.
7531 * tree.def (POINTER_BOUNDS_TYPE): New.
7532 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
7533 (POINTER_BOUNDS_MODE): New.
7534 (make_pointer_bounds_mode): New.
7535 * machmode.h (POINTER_BOUNDS_MODE_P): New.
7536 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
7537 (layout_type): Support POINTER_BOUNDS_TYPE.
7538 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
7539 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
7540 (type_contains_placeholder_1): Likewise.
7541 * tree.h (POINTER_BOUNDS_TYPE_P): New.
7542 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
7543 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
7545 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
7547 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
7548 mode of address computation when calling memory_address_addr_space.
7550 2013-08-24 Richard Henderson <rth@twiddle.net>
7553 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
7554 instead of create_convert_operand_to.
7555 (maybe_emit_sync_lock_test_and_set): Likewise.
7556 (expand_atomic_compare_and_swap): Likewise.
7557 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
7559 2013-08-24 Sriraman Tallam <tmsriram@google.com>
7561 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
7562 Change param_is to use the struct and not the pointer to the struct.
7564 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
7566 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
7567 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
7568 Move to targhooks.c.
7569 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
7570 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
7571 Relocate from gimplify.c.
7572 * targhooks.h: Add 2 prototypes.
7573 * tree.h: Delete 2 prototypes.
7575 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
7577 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
7578 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
7580 2013-10-24 Cong Hou <congh@google.com>
7582 * convert.c (convert_to_real): Guard those unsafe math function
7583 convertions with flag_unsafe_math_optimizations. Handle sqrt()
7586 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
7589 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
7591 (cgraph_create_edge): Use the new argument.
7592 (cgraph_create_indirect_edge): Likewise.
7594 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
7596 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
7598 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
7599 changes statep->state.
7601 2013-10-24 Tobias Burnus <burnus@net-b.de>
7604 * tree-cfg.c (replace_loop_annotate): New function.
7605 (execute_build_cfg): Call it.
7606 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
7607 * internal-fn.c (expand_ANNOTATE): New function.
7608 * internal-fn.def (ANNOTATE): Define as new internal function.
7609 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
7610 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
7611 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
7612 * doc/extend.texi (Pragmas): Document #pragma ivdep.
7613 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
7615 2013-10-17 Ian Bolton <ian.bolton@arm.com>
7616 Marcus Shawcroft <marcus.shawcroft@arm.com>
7618 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
7619 Special case reload SP+C into none GENERAL_REGS.
7621 2013-10-24 Michael Matz <matz@suse.de>
7623 * gengtype.c (is_file_equal): Check that files will be same length.
7625 2013-10-25 Christian Bruel <christian.bruel@st.com>
7627 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
7628 * config/sh/t-sh (sh-mem.o): New rule.
7629 * config/sh/sh-mem.cc (expand_block_move): Moved here.
7630 (sh_expand_cmpstr): New function.
7631 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
7632 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
7633 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
7634 (rotlhi3_8): Rename.
7636 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7638 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
7639 * Makefile.in (CXXDEPMODE): Assign and change users.
7640 (CCDEPMODE): Delete.
7641 * configure: Regenerate.
7643 2013-10-23 David Malcolm <dmalcolm@redhat.com>
7645 * gengtype-parse.c (require_without_advance): New.
7646 (type): For GTY-marked types that are not GTY((user)), parse any
7647 base classes, requiring them to be single-inheritance, and not
7648 be templates. For non-GTY-marked types and GTY((user)),
7649 continue to skip over any C++ inheritance specification.
7650 * gengtype-state.c (state_writer::write_state_struct_type):
7651 Write base class of type (if any).
7652 (read_state_struct_type): Read base class of type (if any).
7653 * gengtype.c (new_structure): Add a "base_class" parameter.
7654 (create_optional_field_): Update for new parameter to new_structure.
7655 (adjust_field_rtx_def): Likewise.
7656 (adjust_field_tree_exp): Likewise.
7657 * gengtype.h (struct type): Add "base_class" field to the s
7659 (new_structure): Add "base" parameter.
7661 2013-10-23 Sriraman Tallam <tmsriram@google.com>
7664 * config/i386/i386.c (ix86_option_override_internal):
7665 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
7666 (ix86_valid_target_attribute_tree):
7667 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
7668 Change TARGET_SSE to TARGET_SSE_P (opts->...)
7670 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
7672 * tree-ssa-loop.h: Remove include files.
7673 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7674 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
7675 * graphite-clast-to-gimple.c: Likewise.
7676 * graphite-scop-detection.c: Likewise.
7677 * graphite-sese-to-poly.c: Likewise.
7678 * ipa-inline-analysis.c: Likewise.
7679 * ipa-pure-const.c: Likewise.
7680 * loop-init.c: Likewise.
7681 * passes.c: Likewise.
7682 * predict.c: Likewise.
7683 * tree-cfg.c: Likewise.
7684 * tree-cfgcleanup.c: Likewise.
7685 * tree-chrec.c: Likewise.
7686 * tree-data-ref.c: Likewise.
7687 * tree-loop-distribution.c: Likewise.
7688 * tree-parloops.c: Likewise.
7689 * tree-predcom.c: Likewise.
7690 * tree-scalar-evolution.c: Likewise.
7691 * tree-ssa-address.c: Likewise.
7692 * tree-ssa.c: Likewise.
7693 * tree-ssa-dce.c: Likewise.
7694 * tree-ssa-loop.c: Likewise.
7695 * tree-ssa-loop-im.c: Likewise.
7696 * tree-ssa-loop-ivcanon.c: Likewise.
7697 * tree-ssa-loop-ivopts.c: Likewise.
7698 * tree-ssa-loop-manip.c: Likewise.
7699 * tree-ssa-loop-niter.c: Likewise.
7700 * tree-ssa-loop-prefetch.c: Likewise.
7701 * tree-ssa-loop-unswitch.c: Likewise.
7702 * tree-ssa-reassoc.c: Likewise.
7703 * tree-vect-data-refs.c: Likewise.
7704 * tree-vect-loop.c: Likewise.
7705 * tree-vect-loop-manip.c: Likewise.
7706 * tree-vectorizer.c: Likewise.
7707 * tree-vect-stmts.c: Likewise.
7708 * tree-vrp.c: Likewise.
7710 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7712 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
7714 2013-10-23 Jakub Jelinek <jakub@redhat.com>
7716 PR tree-optimization/58775
7717 PR tree-optimization/58791
7718 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
7719 (insert_stmt_after): Rewritten, don't move the stmt, but really
7721 (get_stmt_uid_with_default): Remove.
7722 (build_and_add_sum): Use insert_stmt_after and
7723 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
7724 (update_range_test): Set uid on stmts added by
7725 force_gimple_operand_gsi. Don't immediately modify statements
7726 in inter-bb optimization, just update oe->op values.
7727 (optimize_range_tests): Return bool whether any changed have been made.
7728 (update_ops): New function.
7729 (struct inter_bb_range_test_entry): New type.
7730 (maybe_optimize_range_tests): Perform statement changes here.
7731 (not_dominated_by, appears_later_in_bb, get_def_stmt,
7732 ensure_ops_are_available): Remove.
7733 (find_insert_point): Rewritten.
7734 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
7735 return LHS of the (new resp. old) stmt. Don't call
7736 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
7737 instead of last, move new stmt at the right place.
7738 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
7739 (negate_value): Likewise. Set uids.
7740 (break_up_subtract_bb): Initialize uids.
7741 (reassociate_bb): Adjust rewrite_expr_tree caller.
7742 (do_reassoc): Don't call renumber_gimple_stmt_uids.
7744 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
7747 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
7748 TARGET_32BIT final condition.
7749 (mulsi3_internal2 and splitter): Same.
7751 2013-10-23 Jeff Law <law@redhat.com>
7753 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
7754 through joiner blocks with abnormal outgoing edges.
7756 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
7757 Add parameter JOINERS, to allow/disallow threading through joiner
7759 (thread_block): New. Call thread_block_1.
7760 (mark_threaded_blocks): Remove code to filter out certain cases
7761 of threading through joiner blocks.
7762 (thread_through_all_blocks): Document how we can have a dangling
7763 edge AUX field and clear it.
7765 2013-10-23 Ian Lance Taylor <iant@google.com>
7767 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
7768 (C++ Dialect Options): Likewise.
7769 (Optimize Options): Likewise.
7771 2013-10-23 Tom de Vries <tom@codesourcery.com>
7773 PR tree-optimization/58805
7774 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
7776 2013-10-23 Jakub Jelinek <jakub@redhat.com>
7778 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
7779 sequence based on get_range_info returned range.
7781 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
7783 * tree-ssa.h: Remove all #include's
7784 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7785 * alias.c: Move required includes from tree-ssa.h.
7787 * builtins.c: Likewise.
7788 * calls.c: Likewise.
7789 * cfgexpand.c: Likewise.
7790 * cfghooks.c: Likewise.
7791 * cfgloop.c: Likewise.
7792 * cfgloopmanip.c: Likewise.
7793 * cgraph.c: Likewise.
7794 * cgraphbuild.c: Likewise.
7795 * cgraphclones.c: Likewise.
7796 * cgraphunit.c: Likewise.
7798 * except.c: Likewise.
7800 * final.c: Likewise.
7801 * fold-const.c: Likewise.
7802 * ggc-page.c: Likewise.
7803 * gimple-builder.c: Likewise.
7804 * gimple-fold.c: Likewise.
7805 * gimple-iterator.c: Likewise.
7806 * gimple-low.c: Likewise.
7807 * gimple-pretty-print.c: Likewise.
7808 * gimple-ssa-strength-reduction.c: Likewise.
7809 * gimple-streamer-in.c: Likewise.
7810 * gimple-streamer-out.c: Likewise.
7811 * gimplify.c: Likewise.
7812 * graphite-blocking.c: Likewise.
7813 * graphite-clast-to-gimple.c: Likewise.
7814 * graphite-dependences.c: Likewise.
7815 * graphite-interchange.c: Likewise.
7816 * graphite-optimize-isl.c: Likewise.
7817 * graphite-poly.c: Likewise.
7818 * graphite-scop-detection.c: Likewise.
7819 * graphite-sese-to-poly.c: Likewise.
7820 * graphite.c: Likewise.
7821 * ipa-cp.c: Likewise.
7822 * ipa-inline-analysis.c: Likewise.
7823 * ipa-inline-transform.c: Likewise.
7824 * ipa-inline.c: Likewise.
7825 * ipa-prop.c: Likewise.
7826 * ipa-pure-const.c: Likewise.
7827 * ipa-reference.c: Likewise.
7828 * ipa-split.c: Likewise.
7829 * ipa-utils.c: Likewise.
7830 * loop-init.c: Likewise.
7831 * lto-cgraph.c: Likewise.
7832 * lto-section-in.c: Likewise.
7833 * lto-section-out.c: Likewise.
7834 * lto-streamer-in.c: Likewise.
7835 * lto-streamer-out.c: Likewise.
7836 * lto-streamer.c: Likewise.
7837 * omp-low.c: Likewise.
7838 * passes.c: Likewise.
7839 * predict.c: Likewise.
7840 * print-tree.c: Likewise.
7841 * profile.c: Likewise.
7843 * targhooks.c: Likewise.
7844 * tracer.c: Likewise.
7845 * trans-mem.c: Likewise.
7846 * tree-call-cdce.c: Likewise.
7847 * tree-cfg.c: Likewise.
7848 * tree-cfgcleanup.c: Likewise.
7849 * tree-chrec.c: Likewise.
7850 * tree-complex.c: Likewise.
7851 * tree-data-ref.c: Likewise.
7852 * tree-dfa.c: Likewise.
7853 * tree-eh.c: Likewise.
7854 * tree-emutls.c: Likewise.
7855 * tree-if-conv.c: Likewise.
7856 * tree-inline.c: Likewise.
7857 * tree-into-ssa.c: Likewise.
7858 * tree-loop-distribution.c: Likewise.
7859 * tree-mudflap.c: Likewise.
7860 * tree-nested.c: Likewise.
7861 * tree-nrv.c: Likewise.
7862 * tree-object-size.c: Likewise.
7863 * tree-outof-ssa.c: Likewise.
7864 * tree-parloops.c: Likewise.
7865 * tree-phinodes.c: Likewise.
7866 * tree-predcom.c: Likewise.
7867 * tree-pretty-print.c: Likewise.
7868 * tree-profile.c: Likewise.
7869 * tree-scalar-evolution.c: Likewise.
7870 * tree-sra.c: Likewise.
7871 * tree-ssa-address.c: Likewise.
7872 * tree-ssa-alias.c: Likewise.
7873 * tree-ssa-ccp.c: Likewise.
7874 * tree-ssa-coalesce.c: Likewise.
7875 * tree-ssa-copy.c: Likewise.
7876 * tree-ssa-copyrename.c: Likewise.
7877 * tree-ssa-dce.c: Likewise.
7878 * tree-ssa-dom.c: Likewise.
7879 * tree-ssa-dse.c: Likewise.
7880 * tree-ssa-forwprop.c: Likewise.
7881 * tree-ssa-ifcombine.c: Likewise.
7882 * tree-ssa-live.c: Likewise.
7883 * tree-ssa-loop-ch.c: Likewise.
7884 * tree-ssa-loop-im.c: Likewise.
7885 * tree-ssa-loop-ivcanon.c: Likewise.
7886 * tree-ssa-loop-ivopts.c: Likewise.
7887 * tree-ssa-loop-manip.c: Likewise.
7888 * tree-ssa-loop-niter.c: Likewise.
7889 * tree-ssa-loop-prefetch.c: Likewise.
7890 * tree-ssa-loop-unswitch.c: Likewise.
7891 * tree-ssa-loop.c: Likewise.
7892 * tree-ssa-math-opts.c: Likewise.
7893 * tree-ssa-operands.c: Likewise.
7894 * tree-ssa-phiopt.c: Likewise.
7895 * tree-ssa-phiprop.c: Likewise.
7896 * tree-ssa-pre.c: Likewise.
7897 * tree-ssa-propagate.c: Likewise.
7898 * tree-ssa-reassoc.c: Likewise.
7899 * tree-ssa-sccvn.c: Likewise.
7900 * tree-ssa-sink.c: Likewise.
7901 * tree-ssa-strlen.c: Likewise.
7902 * tree-ssa-structalias.c: Likewise.
7903 * tree-ssa-tail-merge.c: Likewise.
7904 * tree-ssa-ter.c: Likewise.
7905 * tree-ssa-threadedge.c: Likewise.
7906 * tree-ssa-threadupdate.c: Likewise.
7907 * tree-ssa-uncprop.c: Likewise.
7908 * tree-ssa-uninit.c: Likewise.
7909 * tree-ssa.c: Likewise.
7910 * tree-ssanames.c: Likewise.
7911 * tree-stdarg.c: Likewise.
7912 * tree-streamer-in.c: Likewise.
7913 * tree-switch-conversion.c: Likewise.
7914 * tree-tailcall.c: Likewise.
7915 * tree-vect-data-refs.c: Likewise.
7916 * tree-vect-generic.c: Likewise.
7917 * tree-vect-loop-manip.c: Likewise.
7918 * tree-vect-loop.c: Likewise.
7919 * tree-vect-patterns.c: Likewise.
7920 * tree-vect-slp.c: Likewise.
7921 * tree-vect-stmts.c: Likewise.
7922 * tree-vectorizer.c: Likewise.
7923 * tree-vrp.c: Likewise.
7926 * value-prof.c: Likewise.
7927 * var-tracking.c: Likewise.
7928 * varpool.c: Likewise.
7929 * vtable-verify.c: Likewise.
7931 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7933 * config/tilegx/tilegx.c: Include "tree.h".
7935 2013-10-23 Jakub Jelinek <jakub@redhat.com>
7937 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
7938 the info, not after it.
7939 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
7940 dump_ssaname_info call.
7941 (pp_gimple_stmt_1): Adjust caller.
7942 (dump_phi_nodes): Likewise. Don't print "# " here.
7944 2013-10-22 Jan Hubicka <jh@suse.cz>
7946 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
7948 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
7949 * i386.c (expand_small_movmem_or_setmem): New function.
7950 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
7952 (alg_usable_p): Add support for value ranges; cleanup.
7953 (ix86_expand_set_or_movmem): Add support for misaligned moves.
7955 2013-10-22 Sterling Augustine <saugustine@google.com>
7957 * doc/invoke.texi: Document -ggnu-pubnames.
7958 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
7960 * dwarf2out.c: Include gdb/gdb-index.h.
7961 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
7962 debug_generate_pub_sections.
7963 (is_java, output_pubtables, output_pubname): New functions.
7964 (include_pubname_in_output): Handle debug_generate_pub_sections at
7966 (size_of_pubnames): Use new local space_for_flags based on
7967 debug_generate_pub_sections.
7968 (output_pubnames): Unify pubnames and pubtypes output logic.
7969 Genericize comments. Call output_pubname.
7970 (dwarf2out_finish): Move logic to output_pubnames and call it.
7972 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
7975 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
7976 Remove CCCmode handling.
7977 <case LTU>: Return 'c' suffix for CCCmode.
7978 <case GEU>: Return 'nc' suffix for CCCmode.
7979 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
7980 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
7981 (*sub<mode>3_cc_overflow): Ditto.
7982 (*subsi3_zext_cc_overflow): Ditto.
7984 2013-10-22 Steve Ellcey <sellcey@mips.com>
7986 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
7987 (AND (NOT OP1) (NOT OP2)).
7989 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
7991 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
7992 meaning of merge-high and merge-low masks for little endian; avoid
7993 use of vector-pack masks for little endian for mismatched modes.
7995 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7997 * config/tilepro/tilepro.c: Include "tree.h".
7999 2013-10-22 Andreas Schwab <schwab@suse.de>
8001 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
8004 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
8006 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
8007 [Ed Smith-Rowland]): New entries.
8008 ([Stephen M. Webb]): Update.
8010 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
8012 * tree-ssa-ter.h: Remove duplicate copy of file contents.
8014 2013-10-21 Marek Polacek <polacek@redhat.com>
8017 * fold-const.c (fold_range_test): Return 0 if the type is not
8020 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
8022 * system.h: Move hwint.h include further down.
8023 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
8024 gcc_checking_asserts.
8025 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
8027 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8029 Fix volatile issues in optimize_bit_field_compare.
8030 * fold-const.c (optimize_bit_field_compare): Bail out if
8031 lvolatilep or rvolatilep.
8033 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8035 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
8036 and get_inner_reference returning different pmode for non-volatile
8037 bit-field members dependent on flag_strict_volatile_bitfields.
8038 * stor-layout.c (layout_decl): Remove special handling of
8039 flag_strict_volatile_bitfields.
8040 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
8041 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
8043 2013-10-21 Paulo Matos <pmatos@broadcom.com>
8045 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
8048 2013-10-21 Jeff Law <law@redhat.com>
8050 * tree-ssa-threadedge.c (thread_through_normal_block): New
8051 argument VISITED. Remove VISISTED as a local variable. When we
8052 have a threadable jump, verify the destination of the jump has not
8054 (thread_across_edge): Allocate VISITED bitmap once at function
8055 scope and use it throughout. Make sure to set appropriate bits in
8056 VISITED for E (start of jump thread path).
8057 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
8058 through a joiner if any edge on the path has a recorded jump thread.
8060 2013-10-21 Ian Lance Taylor <iant@google.com>
8062 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
8063 don't imply that attributes can solve all problems.
8064 (Directory Options): Fix typo.
8066 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8068 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
8069 extend and extend_add.
8071 2013-10-21 Richard Biener <rguenther@suse.de>
8073 PR tree-optimization/58794
8074 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
8075 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
8077 2013-10-21 Richard Biener <rguenther@suse.de>
8080 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
8081 to (T) X for sign-changing conversions (or no conversion).
8083 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
8085 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
8087 2013-10-20 Jan Hubicka <jh@suse.cz>
8089 * config/i386/i386-tune.def: Add comment; organize into categories
8091 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
8093 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
8094 argument. Update function comment.
8095 (expand_set_or_movmem_via_rep): New function combining
8096 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
8097 (expand_movmem_via_rep_mov): Remove.
8098 expand_setmem_via_rep_stos): Remove.
8099 (expand_movmem_epilogue): Update calls correspondingly.
8100 (expand_setmem_epilogue_via_loop): Likewise.
8102 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
8103 (expand_set_or_movmem_prologue): New function combining
8104 expand_movmem_prologue and expand_setmem_prologue.
8105 (expand_movmem_prologue): Remove.
8106 (expand_setmem_prologue): Remove.
8107 (expand_set_or_movmem_constant_prologue): New function combining
8108 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
8109 (expand_constant_movmem_prologue): Remove.
8110 (expand_constant_setmem_prologue): Remove.
8111 (promote_duplicated_reg): Allow vector-const0 value.
8112 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
8113 and ix86_expand_setmem.
8114 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
8115 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
8117 2013-10-21 Diego Novillo <dnovillo@google.com>
8119 * asan.c: Include tree.h
8120 * bb-reorder.c: Likewise.
8121 * cfgcleanup.c: Likewise.
8122 * cfgloopmanip.c: Likewise.
8123 * data-streamer-in.c: Likewise.
8124 * data-streamer-out.c: Likewise.
8125 * data-streamer.c: Likewise.
8126 * dwarf2cfi.c: Likewise.
8127 * graphite-blocking.c: Likewise.
8128 * graphite-clast-to-gimple.c: Likewise.
8129 * graphite-dependences.c: Likewise.
8130 * graphite-interchange.c: Likewise.
8131 * graphite-optimize-isl.c: Likewise.
8132 * graphite-poly.c: Likewise.
8133 * graphite-scop-detection.c: Likewise.
8134 * graphite-sese-to-poly.c: Likewise.
8135 * graphite.c: Likewise.
8136 * ipa-devirt.c: Likewise.
8137 * ipa-profile.c: Likewise.
8140 * loop-init.c: Likewise.
8141 * loop-unroll.c: Likewise.
8142 * lower-subreg.c: Likewise.
8143 * lto/lto-object.c: Likewise.
8144 * recog.c: Likewise.
8145 * reginfo.c: Likewise.
8146 * tree-loop-distribution.c: Likewise.
8147 * tree-parloops.c: Likewise.
8148 * tree-ssa-strlen.c: Likewise.
8149 * tree-streamer.c: Likewise.
8150 * value-prof.c: Likewise.
8151 * target-globals.c: Likewise.
8152 * expr.h: Include tree-core.h instead of tree.h.
8153 * gimple.h: Likewise.
8154 * ipa-prop.h: Likewise.
8155 * ipa-utils.h: Likewise.
8156 * lto-streamer.h: Likewise.
8157 * streamer-hooks.h: Likewise.
8158 * ipa-reference.h: Include cgraph.h instead of tree.h.
8159 * cgraph.h: Include basic-block.h instead of tree.h.
8160 * tree-streamer.h: Do not include tree.h.
8161 * genattrtab.c (write_header): Generate inclusion of tree.h.
8162 * genautomata.c (main): Likewise.
8163 * genemit.c: Likewise.
8164 * genopinit.c: Likewise.
8165 * genoutput.c (output_prologue): Likewise.
8166 * genpeep.c: Likewise.
8168 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8170 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
8172 (vec_unpacku_hi_v8hi): Likewise.
8173 (vec_unpacku_lo_v16qi): Likewise.
8174 (vec_unpacku_lo_v8hi): Likewise.
8176 2013-10-20 Jan Hubicka <jh@suse.cz>
8178 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
8179 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
8180 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
8182 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
8184 * config/mips/mips.h (ISA_HAS_WSBH): Define.
8185 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
8187 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
8189 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
8192 * system.h: Undef m_slot.
8194 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8196 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
8197 all elements for both endian flavors.
8199 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
8202 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
8203 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
8204 and SI_REG for 64bit SYSV ABI targets.
8206 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
8208 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
8209 to multi_reg_return. Clarify that we are skipping USEs of multiple
8210 return registers. Use bool type where appropriate.
8212 2013-10-18 Jan Hubicka <jh@suse.cz>
8214 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
8216 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
8217 (X86_TUNE_PUSH_MEMORY): Likewise.
8218 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
8219 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
8220 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
8222 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
8223 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
8225 (ix86_option_override_internal): Update to use tune features instead
8228 2013-10-18 Cong Hou <congh@google.com>
8230 PR tree-optimization/58508
8231 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
8232 statement that contains data refs with zero-step.
8234 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
8236 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
8237 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
8238 * gimple-low.c (gimple_check_call_arg,
8239 gimple_check_call_matching_types): Move to cgraph.c.
8240 * gimple-low.h: Remove prototype.
8241 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
8242 Relocate from gimple-low.c.
8243 * cgraph.h: Add prototype. Don't include basic-block.h.
8244 * gimplify.c: Add gimple-low to include list.
8245 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
8246 * tree-eh.c: Add gimple-low to include list.
8247 * tree-nested.c: Likewise.
8248 * cfgexpand.c: Add tree-ssa-address.h to include list.
8250 * gimple-fold.c: Likewise.
8251 * gimple-ssa-strength-reduction.c: Likewise.
8252 * trans-mem.c: Likewise.
8253 * tree-mudflap.c: Likewise.
8254 * tree-ssa-loop-ivopts.c: Likewise.
8255 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
8256 (degenerate_phi_result): Move to tree-phinodes.c.
8257 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
8258 * tree-ssa-threadedge.c: Likewise.
8259 * tree-vrp.c: Likewise.
8260 * tree-phinodes.c (degenerate_phi_result): Relocate here.
8261 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
8262 * tree-phinodes.h (degenerate_phi_result): Add prototype.
8263 * tree-ssa-copy.c: Include tree-ssa-dom.h.
8264 * tree-ssa-forwprop.c: Likewise.
8265 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
8266 pass_data_cleanup_cfg_post_optimizing,
8267 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
8268 * tree-optimize.c: Delete File.
8269 * graphite.c: Include tree-cfgcleanup.h.
8270 * passes.c: Likewise.
8271 * tree-cfg.c: Likewise.
8272 * tree-profile.c: Likewise.
8273 * tree-ssa-dse.c: Likewise.
8274 * tree-ssa-loop-ivcanon.c: Likewise.
8275 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
8276 * tree-outof-ssa.c: Include sbitmap.h.
8277 * tree-ssa-live.c: Likewise.
8278 * tree-ssa-propagate.c: Likewise.
8279 * tree-ssa-structalias.c: Likewise.
8280 * tree-stdarg.c: Likewise.
8281 * Makefile.in (OBJS): Delete tree-optimize.o.
8282 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
8283 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
8284 * varasm.c: Include basic-block.h.
8285 * cfgloop.h: Include function.h instead of basic-block.h
8286 (bb_loop_depth): Move to cfgloop.c.
8287 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
8289 2013-10-18 Teresa Johnson <tejohnson@google.com>
8291 * predict.c (probably_never_executed): Compare frequency-based
8292 count to number of training runs.
8293 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
8295 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8297 * config/arm/arm.c (cortexa9_extra_costs): New table.
8298 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
8300 2013-10-18 Jeff Law <law@redhat.com>
8302 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
8304 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
8305 (register_jump_thread): Add "registered_jump_thread" debug
8307 * dbgcnt.def (registered_jump_thread): New debug counter.
8309 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
8311 * config/rs6000/rs6000.c: Include cgraph.h.
8313 2013-10-18 Teresa Johnson <tejohnson@google.com>
8315 * tree-ssa-tail-merge.c (replace_block_by): Update edge
8316 weights during merging.
8318 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
8320 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
8321 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
8322 * tree-ssa-operands.h: Remove prototype.
8323 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
8324 * gimple.c (virtual_operand_p): Relocate from gimple.c.
8325 * gimple.h: Add prototype.
8326 * gimple-ssa.h: Include tree-ssa-operands.h.
8327 * tree-dump.c: Add tree-cfg.h to include list.
8328 * tree-ssa-alias.c: Add ipa-reference.h to include list.
8329 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
8330 * config/i386/i386.c: Don't include tree-flow.h.
8331 * config/rs6000/rs6000.c: Likewise.
8333 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8335 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
8337 2013-10-18 Richard Biener <rguenther@suse.de>
8339 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
8340 or TYPE_UNSIGNED of integral types.
8341 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
8342 NULL_TREE for zero-precision integral types.
8344 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
8346 * config/aarch64/arm_neon.h
8347 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
8349 2013-10-17 Sriraman Tallam <tmsriram@google.com>
8352 * opth-gen.awk: Define target_flags_explicit.
8354 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
8356 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
8357 fields to the reg_addr array that describes the valid addressing
8358 mode for any register, general purpose registers, floating point
8359 registers, and Altivec registers.
8360 (FIRST_RELOAD_REG_CLASS): Likewise.
8361 (LAST_RELOAD_REG_CLASS): Likewise.
8362 (struct reload_reg_map_type): Likewise.
8363 (reload_reg_map_type): Likewise.
8364 (RELOAD_REG_VALID): Likewise.
8365 (RELOAD_REG_MULTIPLE): Likewise.
8366 (RELOAD_REG_INDEXED): Likewise.
8367 (RELOAD_REG_OFFSET): Likewise.
8368 (RELOAD_REG_PRE_INCDEC): Likewise.
8369 (RELOAD_REG_PRE_MODIFY): Likewise.
8370 (reg_addr): Likewise.
8371 (mode_supports_pre_incdec_p): New helper functions to say whether
8372 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
8373 (mode_supports_pre_modify_p): Likewise.
8374 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
8375 print the valid address mode bits for each mode.
8376 (rs6000_debug_print_mode): Likewise.
8377 (rs6000_debug_reg_global): Likewise.
8378 (rs6000_setup_reg_addr_masks): New function to set up the address
8379 mask bits for each type.
8380 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
8381 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
8382 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
8383 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
8384 PRE_MODIFY are supported.
8385 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
8386 registers, instead of {src,dest}_av_p.
8387 (rs6000_print_options_internal): Tweak the debug output slightly.
8389 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
8391 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
8394 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
8396 * tree-flow.h (struct omp_region): Move to omp-low.c.
8397 Remove omp_ prototypes and variables.
8398 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
8399 (copy_var_decl): Relocate prototype from tree-flow.h.
8400 * gimple.c (copy_var_decl): Relocate from omp-low.c.
8401 * tree.h: Move prototype to omp-low.h.
8402 * omp-low.h: New File. Relocate prototypes here.
8403 * omp-low.c (struct omp_region): Make local here.
8404 (root_omp_region): Make static.
8405 (copy_var_decl) Move to gimple.c.
8406 (new_omp_region): Make static.
8407 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
8408 * tree-cfg.c: Include omp-low.h.
8409 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
8410 * gimplify.c: Include omp-low.h.
8411 * tree-parloops.c: Likewise.
8413 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
8415 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
8416 operands are in memory, prefer to force non-matched operand 1 to
8419 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
8422 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
8423 restrict TImode addresses to single indirect registers if both
8424 -mquad-memory and -mvsx-timode are used.
8425 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
8426 we should emit load/store quad. Remove using %y for quad memory
8429 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
8430 constraints to allow load/store quad on machines where TImode is
8431 not allowed in VSX registers. Use 'n' instead of 'F' constraint
8432 for TImode to load integer constants.
8434 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8436 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
8438 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
8440 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
8441 handling of STACK_REG.
8443 2013-10-17 Richard Biener <rguenther@suse.de>
8445 PR tree-optimization/58143
8446 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
8448 (rewrite_to_defined_overflow): Likewise.
8449 (move_computations_dom_walker::before_dom): Rewrite stmts
8450 with undefined signed overflow that are not always executed
8451 into unsigned arithmetic.
8453 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
8456 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
8457 explicit isa flag to be an options variable, instead of using
8458 global_options_set. Remove define from rs6000.h.
8459 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
8461 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8462 Initialize rs6000_isa_flags_explicit.
8463 (rs6000_function_specific_save): Add gcc_options* parameter, so
8464 that the powerpc builds after the 2013-10-15 changes.
8465 (rs6000_function_specific_restore): Likewise.
8467 2013-10-16 DJ Delorie <dj@redhat.com>
8469 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
8470 op is a REG before checking REGNO.
8471 (rl78_alloc_physical_registers): Verify pattern is a SET before
8474 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8476 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
8478 (vec_unpacks_lo_v4sf): Likewise.
8479 (vec_unpacks_float_hi_v4si): Likewise.
8480 (vec_unpacks_float_lo_v4si): Likewise.
8481 (vec_unpacku_float_hi_v4si): Likewise.
8482 (vec_unpacku_float_lo_v4si): Likewise.
8484 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8486 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
8487 (vsx_concat_v2sf): Likewise.
8489 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
8491 * config/aarch64/aarch64.md
8492 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
8494 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
8496 PR tree-optimization/58697
8497 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
8498 estimated_loop_iterations_int.
8499 (max_stmt_executions_int): Call get_max_loop_iterations_int.
8500 (get_max_loop_iterations_int): New. HWINT version of
8501 get_max_loop_iterations.
8502 * cfgloop.h: Add prototypes.
8503 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
8504 * loop-unroll.c (decide_peel_once_rolling): Call
8505 get_estimated_loop_iterations_int.
8506 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
8507 * tree-ssa-loop-niter.h: Tweak prototypes.
8509 2013-10-16 David Malcolm <dmalcolm@redhat.com>
8511 * gengtype-parse.c (struct_field_seq): Ignore access-control
8512 keywords ("public:" etc).
8514 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
8516 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
8517 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
8519 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
8521 * config/arm/arm.opt (mlra): New option.
8522 * config/arm/arm.c (arm_lra_p): New function.
8523 (TARGET_LRA_P): Define.
8525 2013-10-16 Paulo Matos <pmatos@broadcom.com>
8527 * tree-core.h (tree_code_name): Remove.
8528 * tree.h (get_tree_code_name): New prototype.
8529 * tree.c (tree_code_name): Make static.
8530 (get_tree_code_name): New function.
8531 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
8532 tree_class_check_failed, tree_range_check_failed,
8533 tree_not_class_check_failed, omp_clause_check_failed,
8534 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
8535 wrapper get_tree_code_name instead of calling tree_code_name directly.
8536 * tree-vrp.c (dump_asserts_for): Likewise.
8537 * tree-dump.c (dequeue_and_dump): Likewise.
8538 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
8539 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
8540 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
8541 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
8542 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
8543 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
8544 dump_gimple_omp_for): Likewise.
8545 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
8546 * tree-ssa-pre.c (print_pre_expr): Likewise.
8547 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
8548 * print-tree.c (print_node_brief, print_node): Likewise.
8549 * gimple.c (gimple_check_failed): Likewise.
8550 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
8551 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
8552 * config/mep/mep.c (mep_validate_vliw): Likewise.
8553 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
8554 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
8556 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8558 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
8561 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
8563 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
8564 (MULTILIB_MATCHES): Add multilib for -march=v8.
8566 2013-10-15 Sriraman Tallam <tmsriram@google.com>
8569 * optc-save-gen.awk: Add extra parameter to the save and restore
8571 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
8572 * tree.c (build_optimization_node): New parameter. Add extra parameter
8573 to call to cl_optimization_save.
8574 (build_target_option_node): New parameter. Add extra parameter
8575 to call to cl_target_option_save.
8576 * tree.h (build_optimization_node): New parameter.
8577 (build_target_option_node): New parameter.
8578 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
8579 build_optimization_node and build_target_option_node.
8580 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
8581 (handle_pragma_push_options): Ditto.
8582 * toplev.c (process_options): Ditto.
8583 * opts.c (init_options_struct): Check for opts_set non-null.
8584 * target.def (target_option.save): New parameter.
8585 (target_option.restore): New parameter.
8586 * tm.texi: Generate.
8587 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
8588 (ix86_pragma_target_parse): Ditto.
8589 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
8591 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
8592 to build_optimization_node and build_target_option_node.
8593 (rs6000_valid_attribute_p): Ditto.
8594 (rs6000_pragma_target_parse): Ditto.
8595 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
8597 * config/i386/i386.h:
8598 TARGET_64BIT_P: New Macro
8599 TARGET_MMX_P: New Macro.
8600 TARGET_3DNOW_P: New Macro.
8601 TARGET_3DNOW_A_P: New Macro.
8602 TARGET_SSE_P: New Macro.
8603 TARGET_SSE2_P: New Macro.
8604 TARGET_SSE3_P: New Macro.
8605 TARGET_SSSE3_P: New Macro.
8606 TARGET_SSE4_1_P: New Macro.
8607 TARGET_SSE4_2_P: New Macro.
8608 TARGET_AVX_P: New Macro.
8609 TARGET_AVX2_P: New Macro.
8610 TARGET_AVX512F_P: New Macro.
8611 TARGET_AVX512PF_P: New Macro.
8612 TARGET_AVX512ER_P: New Macro.
8613 TARGET_AVX512CD_P: New Macro.
8614 TARGET_FMA_P: New Macro.
8615 TARGET_SSE4A_P: New Macro.
8616 TARGET_FMA4_P: New Macro.
8617 TARGET_XOP_P: New Macro.
8618 TARGET_LWP_P: New Macro.
8619 TARGET_ABM_P: New Macro.
8620 TARGET_BMI_P: New Macro.
8621 TARGET_BMI2_P: New Macro.
8622 TARGET_LZCNT_P: New Macro.
8623 TARGET_TBM_P: New Macro.
8624 TARGET_POPCNT_P: New Macro.
8625 TARGET_SAHF_P: New Macro.
8626 TARGET_MOVBE_P: New Macro.
8627 TARGET_CRC32_P: New Macro.
8628 TARGET_AES_P: New Macro.
8629 TARGET_PCLMUL_P: New Macro.
8630 TARGET_CMPXCHG16B_P: New Macro.
8631 TARGET_FSGSBASE_P: New Macro.
8632 TARGET_RDRND_P: New Macro.
8633 TARGET_F16C_P: New Macro.
8634 TARGET_RTM_P: New Macro.
8635 TARGET_HLE_P: New Macro.
8636 TARGET_RDSEED_P: New Macro.
8637 TARGET_PRFCHW_P: New Macro.
8638 TARGET_ADX_P: New Macro.
8639 TARGET_FXSR_P: New Macro.
8640 TARGET_XSAVE_P: New Macro.
8641 TARGET_XSAVEOPT_P: New Macro.
8642 TARGET_LP64_P: New Macro.
8643 TARGET_X32_P: New Macro.
8644 TARGET_FPMATH_DEFAULT_P: New Macro.
8645 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
8646 * config/i386/i386.c (ix86_option_override_internal): New parameters.
8648 Change ix86_tune_string to access opts->x_ix86_tune_string.
8649 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
8650 Change ix86_arch_string to access opts->x_ix86_arch_string.
8651 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
8652 Change ix86_pmode to access opts->x_ix86_pmode.
8653 Change ix86_abi to access opts->x_ix86_abi.
8654 Change ix86_cmodel to access opts->x_ix86_cmodel.
8655 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
8656 Change ix86_isa_flags_explicit to access
8657 opts->x_ix86_isa_flags_explicit.
8658 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
8659 Change ix86_regparm to access opts->x_ix86_regparm.
8660 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
8661 Change ix86_preferred_stack_boundary_arg to access
8662 opts->x_ix86_preferred_stack_boundary_arg.
8663 Change ix86_force_align_arg_pointer to access
8664 opts->x_ix86_force_align_arg_pointer.
8665 Change ix86_incoming_stack_boundar_arg to access
8666 opts->x_ix86_incoming_stack_boundar_arg.
8667 Change ix86_fpmath to access opts->x_ix86_fpmath.
8668 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
8669 Change ix86_recip_name to access opts->x_ix86_recip_name.
8670 Change ix86_stack_protector_guard to access
8671 opts->x_ix86_stack_protector_guard.
8672 Change ix86_tune_memcpy_strategy to access
8673 opts->x_ix86_tune_memcpy_strategy.
8674 Change ix86_tune_memset_strategy to access
8675 opts->x_ix86_tune_memset_strategy.
8676 Change global_options to access opts.
8677 Change global_options_set to access opts_set.
8678 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
8679 Change TARGET_MMX to TARGET_MMX_P (opts->...).
8680 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
8681 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
8682 Change TARGET_SSE to TARGET_SSE_P (opts->...).
8683 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
8684 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
8685 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
8686 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
8687 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
8688 Change TARGET_AVX to TARGET_AVX_P (opts->...).
8689 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
8690 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
8691 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
8692 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
8693 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
8694 Change TARGET_FMA to TARGET_FMA_P (opts->...).
8695 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
8696 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
8697 Change TARGET_XOP to TARGET_XOP_P (opts->...).
8698 Change TARGET_LWP to TARGET_LWP_P (opts->...).
8699 Change TARGET_ABM to TARGET_ABM_P (opts->...).
8700 Change TARGET_BMI to TARGET_BMI_P (opts->...).
8701 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
8702 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
8703 Change TARGET_TBM to TARGET_TBM_P (opts->...).
8704 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
8705 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
8706 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
8707 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
8708 Change TARGET_AES to TARGET_AES_P (opts->...).
8709 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
8710 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
8711 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
8712 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
8713 Change TARGET_F16C to TARGET_F16C_P (opts->...).
8714 Change TARGET_RTM to TARGET_RTM_P (opts->...).
8715 Change TARGET_HLE to TARGET_HLE_P (opts->...).
8716 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
8717 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
8718 Change TARGET_ADX to TARGET_ADX_P (opts->...).
8719 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
8720 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
8721 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
8722 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
8723 Change TARGET_X32 to TARGET_X32_P (opts->...).
8724 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
8725 Change TARGET_FLOAT_RETURNS_IN_80387 to
8726 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
8727 (ix86_function_specific_save): New parameter. Use opts-> fields
8728 to replace global fields.
8729 (ix86_function_specific_restore): Ditto.
8730 (ix86_valid_target_attribute_inner_p): New parameters.
8732 Fix call to ix86_handle_option and set_option.
8733 (ix86_valid_target_attribute_tree): New parameters.
8734 Change global_options to access opts.
8735 Change global_options_set to access opts_set.
8736 Fix call to ix86_valid_target_attribute_inner_p.
8737 Change ix86_tune_string to access opts->x_ix86_tune_string.
8738 Change ix86_arch_string to access opts->x_ix86_arch_string.
8739 Change ix86_fpmath to access opts->x_ix86_fpmath
8740 Fix call to ix86_option_override_internal.
8741 Fix call to ix86_add_new_builtins.
8742 Fix calls to build_optimization_node and build_target_option_node.
8743 (ix86_valid_target_attribute_p): Remove access to global_options.
8744 Use new gcc_options structure func_options.
8745 Fix call to ix86_valid_target_attribute_tree.
8746 Fix call to build_optimization_node.
8747 (get_builtin_code_for_version): Fix call to
8748 ix86_valid_target_attribute_tree.
8750 2013-10-15 David Malcolm <dmalcolm@redhat.com>
8752 * Makefile.in (PICFLAG): New.
8753 (enable_host_shared): New.
8754 (INTERNAL_CFLAGS): Use PICFLAG.
8755 (LIBIBERTY): Use pic build of libiberty.a if configured with
8756 --enable-host-shared.
8757 * configure.ac: Add --enable-host-shared, setting up new
8759 * configure: Regenerate.
8760 * doc/install.texi (--enable-shared): Add note contrasting it with ...
8761 (--enable-host-shared): New option.
8763 2013-10-15 Richard Biener <rguenther@suse.de>
8765 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
8766 for built-in functions.
8768 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
8770 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
8771 (optimize_range_tests_1): New function,
8772 extracted from optimize_range_tests.
8773 (optimize_range_tests_xor): Similarly.
8774 (optimize_range_tests_diff): New function.
8775 (optimize_range_tests): Use optimize_range_tests_1.
8777 2013-10-15 Cong Hou <congh@google.com>
8779 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
8780 requirement of the reduction pattern so that one operand of the
8781 reduction operation can come from outside of the loop.
8783 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8785 * config/arm/neon-schedgen.ml: Remove.
8786 * config/arm/cortex-a9-neon.md: Remove comment regarding
8789 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8791 * config/arm/types: Remove old neon types.
8793 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8795 * config/arm/cortex-a7.md
8796 (cortex_a7_neon_type): New.
8797 (cortex_a7_neon_mul): Update for new types.
8798 (cortex_a7_neon_mla): Likewise.
8799 (cortex_a7_neon): Likewise.
8801 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8803 * config/arm/cortex-a15-neon.md
8804 (cortex_a15_neon_type): New,
8806 (cortex_a15_neon_int_1): Remove.
8807 (cortex_a15_neon_int_2): Likewise.
8808 (cortex_a15_neon_int_3): Likewise.
8809 (cortex_a15_neon_int_4): Likewise.
8810 (cortex_a15_neon_int_5): Likewise.
8811 (cortex_a15_neon_vqneg_vqabs): Likewise.
8812 (cortex_a15_neon_vmov): Likewise.
8813 (cortex_a15_neon_vaba): Likewise.
8814 (cortex_a15_neon_vaba_qqq): Likewise.
8815 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8816 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8817 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8819 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8820 (cortex_a15_neon_mla_qqq_8_16): Likewise.
8821 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
8822 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8823 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8824 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
8825 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8826 (cortex_a15_neon_shift_1): Likewise.
8827 (cortex_a15_neon_shift_2): Likewise.
8828 (cortex_a15_neon_shift_3): Likewise.
8829 (cortex_a15_neon_vshl_ddd): Likewise.
8830 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8831 (cortex_a15_neon_vsra_vrsra): Likewise.
8832 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8833 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8834 (cortex_a15_neon_bp_3cycle): Likewise.
8835 (cortex_a15_neon_ldm_2): Likewise.
8836 (cortex_a15_neon_stm_2): Likewise.
8837 (cortex_a15_neon_mcr): Likewise.
8838 (cortex_a15_neon_mrc): Likewise.
8839 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
8840 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
8841 (cortex_a15_neon_fp_vmul_ddd): Likewise.
8842 (cortex_a15_neon_fp_vmul_qqd): Likewise.
8843 (cortex_a15_neon_fp_vmla_ddd): Likewise.
8844 (cortex_a15_neon_fp_vmla_qqq): Likewise.
8845 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8846 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8847 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8848 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8849 (cortex_a15_neon_bp_simple): Likewise.
8850 (cortex_a15_neon_bp_2cycle): Likewise.
8851 (cortex_a15_neon_bp_3cycle): Likewise.
8852 (cortex_a15_neon_vld1_1_2_regs): Likewise.
8853 (cortex_a15_neon_vld1_3_4_regs): Likewise.
8854 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8855 (cortex_a15_neon_vld2_4_regs): Likewise.
8856 (cortex_a15_neon_vld3_vld4): Likewise.
8857 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8858 (cortex_a15_neon_vst1_3_4_regs): Likewise.
8859 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
8860 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
8861 (cortex_a15_neon_vst3_vst4): Rename to...
8862 (cortex_a15_neon_vst4): This, update for new attributes.
8863 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
8864 (cortex_a15_neon_vld3_vld4_lane): Likewise.
8865 (cortex_a15_neon_vst1_vst2_lane): Likewise.
8866 (cortex_a15_neon_vst3_vst4_lane): Likewise.
8867 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
8868 (cortex_a15_neon_ldm_2): Likewise.
8869 (cortex_a15_neon_stm_2): Likewise.
8870 (cortex_a15_neon_mcr): Likewise.
8871 (cortex_a15_neon_mcr_2_mcrr): Likewise.
8872 (cortex_a15_neon_mrc): Likewise.
8873 (cortex_a15_neon_mrrc): Likewise.
8875 (cortex_a15_neon_abd): New.
8876 (cortex_a15_neon_abd_q): Likewise.
8877 (cortex_a15_neon_aba): Likewise.
8878 (cortex_a15_neon_aba_q): Likewise.
8879 (cortex_a15_neon_acc): Likewise.
8880 (cortex_a15_neon_acc_q): Likewise.
8881 (cortex_a15_neon_arith_basic): Likewise.
8882 (cortex_a15_neon_arith_complex): Likewise.
8883 (cortex_a15_neon_multiply): Likewise.
8884 (cortex_a15_neon_multiply_q): Likewise.
8885 (cortex_a15_neon_mla): Likewise.
8886 (cortex_a15_neon_mla_q): Likewise.
8887 (cortex_a15_neon_sat_mla_long): Likewise.
8888 (cortex_a15_neon_shift_acc): Likewise.
8889 (cortex_a15_neon_shift_imm_basic): Likewise.
8890 (cortex_a15_neon_shift_imm_complex): Likewise.
8891 (cortex_a15_neon_shift_reg_basic): Likewise.
8892 (cortex_a15_neon_shift_reg_basic_q): Likewise.
8893 (cortex_a15_neon_shift_reg_complex): Likewise.
8894 (cortex_a15_neon_shift_reg_complex_q): Likewise.
8895 (cortex_a15_neon_fp_negabs): Likewise
8896 (cortex_a15_neon_fp_arith): Likewise
8897 (cortex_a15_neon_fp_arith_q): Likewise
8898 (cortex_a15_neon_fp_cvt_int): Likewise
8899 (cortex_a15_neon_fp_cvt_int_q): Likewise
8900 (cortex_a15_neon_fp_cvt_16): Likewise
8901 (cortex_a15_neon_fp_mul): Likewise
8902 (cortex_a15_neon_fp_mul_q): Likewise
8903 (cortex_a15_neon_fp_mla): Likewise
8904 (cortex_a15_neon_fp_mla_q): Likewise
8905 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
8906 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
8907 (cortex_a15_neon_bitops): Likewise.
8908 (cortex_a15_neon_bitops_q): Likewise.
8909 (cortex_a15_neon_from_gp): Likewise.
8910 (cortex_a15_neon_from_gp_q): Likewise.
8911 (cortex_a15_neon_tbl3_tbl4): Likewise.
8912 (cortex_a15_neon_zip_q): Likewise.
8913 (cortex_a15_neon_to_gp): Likewise.
8914 (cortex_a15_neon_load_a): Likewise.
8915 (cortex_a15_neon_load_b): Likewise.
8916 (cortex_a15_neon_load_c): Likewise.
8917 (cortex_a15_neon_load_d): Likewise.
8918 (cortex_a15_neon_load_e): Likewise.
8919 (cortex_a15_neon_load_f): Likewise.
8920 (cortex_a15_neon_store_a): Likewise.
8921 (cortex_a15_neon_store_b): Likewise.
8922 (cortex_a15_neon_store_c): Likewise.
8923 (cortex_a15_neon_store_d): Likewise.
8924 (cortex_a15_neon_store_e): Likewise.
8925 (cortex_a15_neon_store_f): Likewise.
8926 (cortex_a15_neon_store_g): Likewise.
8927 (cortex_a15_neon_store_h): Likewise.
8928 (cortex_a15_vfp_to_from_gp): Likewise.
8930 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8932 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
8934 (cortex_a9_neon_vshl_ddd): Remove.
8935 (cortex_a9_neon_vst3_vst4): Likewise.
8936 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8938 (cortex_a9_neon_bit_ops_q): New.
8940 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
8941 (cortex_a9_neon_int_2): Likewise.
8942 (cortex_a9_neon_int_3): Likewise.
8943 (cortex_a9_neon_int_4): Likewise.
8944 (cortex_a9_neon_int_5): Likewise.
8945 (cortex_a9_neon_vqneg_vqabs): Likewise.
8946 (cortex_a9_neon_vmov): Likewise.
8947 (cortex_a9_neon_vaba): Likewise.
8948 (cortex_a9_neon_vaba_qqq): Likewise.
8949 (cortex_a9_neon_shift_1): Likewise.
8950 (cortex_a9_neon_shift_2): Likewise.
8951 (cortex_a9_neon_shift_3): Likewise.
8952 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8953 (cortex_a9_neon_vsra_vrsra): Likewise.
8954 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8955 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8956 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8958 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8959 (cortex_a9_neon_mla_qqq_8_16): Likewise.
8960 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
8962 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8963 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8964 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
8965 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8966 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
8967 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
8968 (cortex_a9_neon_fp_vsum): Likewise.
8969 (cortex_a9_neon_fp_vmul_ddd): Likewise.
8970 (cortex_a9_neon_fp_vmul_qqd): Likewise.
8971 (cortex_a9_neon_fp_vmla_ddd): Likewise.
8972 (cortex_a9_neon_fp_vmla_qqq): Likewise.
8973 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
8974 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
8975 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8976 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8977 (cortex_a9_neon_bp_simple): Likewise.
8978 (cortex_a9_neon_bp_2cycle): Likewise.
8979 (cortex_a9_neon_bp_3cycle): Likewise.
8980 (cortex_a9_neon_ldr): Likewise.
8981 (cortex_a9_neon_str): Likewise.
8982 (cortex_a9_neon_vld1_1_2_regs): Likewise.
8983 (cortex_a9_neon_vld1_3_4_regs): Likewise.
8984 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8985 (cortex_a9_neon_vld2_4_regs): Likewise.
8986 (cortex_a9_neon_vld3_vld4): Likewise.
8987 (cortex_a9_neon_vld1_vld2_lane): Likewise.
8988 (cortex_a9_neon_vld3_vld4_lane): Likewise.
8989 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8990 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8991 (cortex_a9_neon_vst1_3_4_regs): Likewise.
8992 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
8993 (cortex_a9_neon_vst1_vst2_lane): Likewise.
8994 (cortex_a9_neon_vst3_vst4_lane): Likewise.
8995 (cortex_a9_neon_mcr): Likewise.
8996 (cortex_a9_neon_mcr_2_mcrr): Likewise.
8997 (cortex_a9_neon_mrc): Likewise.
8998 (cortex_a9_neon_mrrc): Likewise.
9000 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9002 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
9004 (cortex_a8_neon_vshl_ddd): Remove.
9005 (cortex_a8_neon_vst3_vst4): Likewise.
9006 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
9008 (cortex_a8_neon_bit_ops_q): New.
9010 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
9011 (cortex_a8_neon_int_2): Likewise..
9012 (cortex_a8_neon_int_3): Likewise.
9013 (cortex_a8_neon_int_5): Likewise.
9014 (cortex_a8_neon_vqneg_vqabs): Likewise.
9015 (cortex_a8_neon_int_4): Likewise.
9016 (cortex_a8_neon_vaba): Likewise.
9017 (cortex_a8_neon_vaba_qqq): Likewise.
9018 (cortex_a8_neon_shift_1): Likewise.
9019 (cortex_a8_neon_shift_2): Likewise.
9020 (cortex_a8_neon_shift_3): Likewise.
9021 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9022 (cortex_a8_neon_vsra_vrsra): Likewise.
9023 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9024 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9025 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9027 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9028 (cortex_a8_neon_mla_qqq_8_16): Likewise.
9029 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
9031 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9032 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9033 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
9034 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9035 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
9036 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
9037 (cortex_a8_neon_fp_vsum): Likewise.
9038 (cortex_a8_neon_fp_vmul_ddd): Likewise.
9039 (cortex_a8_neon_fp_vmul_qqd): Likewise.
9040 (cortex_a8_neon_fp_vmla_ddd): Likewise.
9041 (cortex_a8_neon_fp_vmla_qqq): Likewise.
9042 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
9043 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
9044 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9045 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9046 (cortex_a8_neon_bp_simple): Likewise.
9047 (cortex_a8_neon_bp_2cycle): Likewise.
9048 (cortex_a8_neon_bp_3cycle): Likewise.
9049 (cortex_a8_neon_ldr): Likewise.
9050 (cortex_a8_neon_str): Likewise.
9051 (cortex_a8_neon_vld1_1_2_regs): Likewise.
9052 (cortex_a8_neon_vld1_3_4_regs): Likewise.
9053 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9054 (cortex_a8_neon_vld2_4_regs): Likewise.
9055 (cortex_a8_neon_vld3_vld4): Likewise.
9056 (cortex_a8_neon_vld1_vld2_lane): Likewise.
9057 (cortex_a8_neon_vld3_vld4_lane): Likewise.
9058 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9059 (cortex_a8_neon_vst1_3_4_regs): Likewise.
9060 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
9061 (cortex_a8_neon_vst1_vst2_lane): Likewise.
9062 (cortex_a8_neon_vst3_vst4_lane): Likewise.
9063 (cortex_a8_neon_mcr): Likewise.
9064 (cortex_a8_neon_mcr_2_mcrr): Likewise.
9065 (cortex_a8_neon_mrc): Likewise.
9066 (cortex_a8_neon_mrrc): Likewise.
9068 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9070 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
9072 * config/aarch64/aarch64-simd.md (neon_type): Remove.
9073 (aarch64_simd_dup<mode>): Add "type" attribute.
9074 (aarch64_dup_lane<mode>): Likewise.
9075 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
9076 (*aarch64_simd_mov<mode>): Likewise.
9077 (aarch64_simd_mov_from_<mode>low): Likewise.
9078 (aarch64_simd_mov_from_<mode>high): Likewise.
9079 (orn<mode>3): Likewise.
9080 (bic<mode>3): Likewise.
9081 (add<mode>3): Likewise.
9082 (sub<mode>3): Likewise.
9083 (mul<mode>3): Likewise.
9084 (*aarch64_mul3_elt<mode>): Likewise.
9085 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
9086 (*aarch64_mul3_elt_to_128df): Likewise.
9087 (*aarch64_mul3_elt_to_64v2df): Likewise.
9088 (neg<mode>2): Likewise.
9089 (abs<mode>2): Likewise.
9090 (abd<mode>_3): Likewise.
9091 (aba<mode>_3): Likewise.
9092 (fabd<mode>_3): Likewise.
9093 (*fabd_scalar<mode>3): Likewise.
9094 (and<mode>3): Likewise.
9095 (ior<mode>3): Likewise.
9096 (xor<mode>3): Likewise.
9097 (one_cmpl<mode>2): Likewise.
9098 (aarch64_simd_vec_set<mode>): Likewise.
9099 (aarch64_simd_lshr<mode>): Likewise.
9100 (aarch64_simd_ashr<mode>): Likewise.
9101 (aarch64_simd_imm_shl<mode>): Likewise.
9102 (aarch64_simd_reg_sshl<mode): Likewise.
9103 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
9104 (aarch64_simd_reg_shl<mode>_signed): Likewise.
9105 (aarch64_simd_vec_setv2di): Likewise.
9106 (aarch64_simd_vec_set<mode>): Likewise.
9107 (aarch64_mla<mode>): Likewise.
9108 (*aarch64_mla_elt<mode>): Likewise.
9109 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
9110 (aarch64_mls<mode>): Likewise.
9111 (*aarch64_mls_elt<mode>): Likewise.
9112 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
9113 (<su><maxmin><mode>3): Likewise.
9114 (move_lo_quad_<mode>): Likewise.
9115 (aarch64_simd_move_hi_quad_<mode>): Likewise.
9116 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
9117 (vec_pack_trunc_<mode>): Likewise.
9118 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
9119 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
9120 (*aarch64_<su>mlal_lo<mode>): Likewise.
9121 (*aarch64_<su>mlal_hi<mode>): Likewise.
9122 (*aarch64_<su>mlsl_lo<mode>): Likewise.
9123 (*aarch64_<su>mlsl_hi<mode>): Likewise.
9124 (*aarch64_<su>mlal<mode>): Likewise.
9125 (*aarch64_<su>mlsl<mode>): Likewise.
9126 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
9127 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
9128 (add<mode>3): Likewise.
9129 (sub<mode>3): Likewise.
9130 (mul<mode>3): Likewise.
9131 (div<mode>3): Likewise.
9132 (neg<mode>2): Likewise.
9133 (abs<mode>2): Likewise.
9134 (fma<mode>4): Likewise.
9135 (*aarch64_fma4_elt<mode>): Likewise.
9136 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
9137 (*aarch64_fma4_elt_to_128df): Likewise.
9138 (*aarch64_fma4_elt_to_64v2df): Likewise.
9139 (fnma<mode>4): Likewise.
9140 (*aarch64_fnma4_elt<mode>): Likewise.
9141 (*aarch64_fnma4_elt_<vswap_width_name><mode>
9142 (*aarch64_fnma4_elt_to_128df): Likewise.
9143 (*aarch64_fnma4_elt_to_64v2df): Likewise.
9144 (<frint_pattern><mode>2): Likewise.
9145 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
9146 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
9147 (vec_unpacks_lo_v4sf): Likewise.
9148 (aarch64_float_extend_lo_v2df): Likewise.
9149 (vec_unpacks_hi_v4sf): Likewise.
9150 (aarch64_float_truncate_lo_v2sf): Likewise.
9151 (aarch64_float_truncate_hi_v4sf): Likewise.
9152 (aarch64_vmls<mode>): Likewise.
9153 (<su><maxmin><mode>3): Likewise.
9154 (<maxmin_uns><mode>3): Likewise.
9155 (reduc_<sur>plus_<mode>): Likewise.
9156 (reduc_<sur>plus_v2di): Likewise.
9157 (reduc_<sur>plus_v2si): Likewise.
9158 (reduc_<sur>plus_<mode>): Likewise.
9159 (aarch64_addpv4sf): Likewise.
9160 (clz<mode>2): Likewise.
9161 (reduc_<maxmin_uns>_<mode>): Likewise.
9162 (reduc_<maxmin_uns>_v2di): Likewise.
9163 (reduc_<maxmin_uns>_v2si): Likewise.
9164 (reduc_<maxmin_uns>_<mode>): Likewise.
9165 (reduc_<maxmin_uns>_v4sf): Likewise.
9166 (aarch64_simd_bsl<mode>_internal): Likewise.
9167 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
9168 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
9169 (aarch64_get_lane<mode>): Likewise.
9170 (*aarch64_combinez<mode>): Likewise.
9171 (aarch64_combine<mode>): Likewise.
9172 (aarch64_simd_combine<mode>): Likewise.
9173 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
9174 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
9175 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
9176 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
9177 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
9178 (aarch64_<sur>h<addsub><mode>): Likewise.
9179 (aarch64_<sur><addsub>hn<mode>): Likewise.
9180 (aarch64_<sur><addsub>hn2<mode>): Likewise.
9181 (aarch64_pmul<mode>): Likewise.
9182 (aarch64_<su_optab><optab><mode>): Likewise.
9183 (aarch64_<sur>qadd<mode>): Likewise.
9184 (aarch64_sqmovun<mode>): Likewise.
9185 (aarch64_<sur>qmovn<mode>): Likewise.
9186 (aarch64_s<optab><mode>): Likewise.
9187 (aarch64_sq<r>dmulh<mode>): Likewise.
9188 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
9189 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
9190 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
9191 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
9192 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
9193 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
9194 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
9195 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
9196 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
9197 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
9198 (aarch64_sqdmull<mode>): Likewise.
9199 (aarch64_sqdmull_lane<mode>_internal): Likewise.
9200 (aarch64_sqdmull_n<mode>): Likewise.
9201 (aarch64_sqdmull2<mode>_internal): Likewise.
9202 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
9203 (aarch64_sqdmull2_n<mode>_internal): Likewise.
9204 (aarch64_<sur>shl<mode>): Likewise.
9205 (aarch64_<sur>q<r>shl<mode>
9206 (aarch64_<sur>shll_n<mode>): Likewise.
9207 (aarch64_<sur>shll2_n<mode>): Likewise.
9208 (aarch64_<sur>shr_n<mode>): Likewise.
9209 (aarch64_<sur>sra_n<mode>): Likewise.
9210 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
9211 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
9212 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
9213 (aarch64_cm<optab><mode>): Likewise.
9214 (aarch64_cm<optab>di): Likewise.
9215 (aarch64_cm<optab><mode>): Likewise.
9216 (aarch64_cm<optab>di): Likewise.
9217 (aarch64_cmtst<mode>): Likewise.
9218 (aarch64_cmtstdi): Likewise.
9219 (aarch64_cm<optab><mode>): Likewise.
9220 (*aarch64_fac<optab><mode>): Likewise.
9221 (aarch64_addp<mode>): Likewise.
9222 (aarch64_addpdi): Likewise.
9223 (sqrt<mode>2): Likewise.
9224 (vec_load_lanesoi<mode>): Likewise.
9225 (vec_store_lanesoi<mode>): Likewise.
9226 (vec_load_lanesci<mode>): Likewise.
9227 (vec_store_lanesci<mode>): Likewise.
9228 (vec_load_lanesxi<mode>): Likewise.
9229 (vec_store_lanesxi<mode>): Likewise.
9230 (*aarch64_mov<mode>): Likewise.
9231 (aarch64_ld2<mode>_dreg): Likewise.
9232 (aarch64_ld2<mode>_dreg): Likewise.
9233 (aarch64_ld3<mode>_dreg): Likewise.
9234 (aarch64_ld3<mode>_dreg): Likewise.
9235 (aarch64_ld4<mode>_dreg): Likewise.
9236 (aarch64_ld4<mode>_dreg): Likewise.
9237 (aarch64_tbl1<mode>): Likewise.
9238 (aarch64_tbl2v16qi): Likewise.
9239 (aarch64_combinev16qi): Likewise.
9240 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
9241 (aarch64_st2<mode>_dreg): Likewise.
9242 (aarch64_st2<mode>_dreg): Likewise.
9243 (aarch64_st3<mode>_dreg): Likewise.
9244 (aarch64_st3<mode>_dreg): Likewise.
9245 (aarch64_st4<mode>_dreg): Likewise.
9246 (aarch64_st4<mode>_dreg): Likewise.
9247 (*aarch64_simd_ld1r<mode>): Likewise.
9248 (aarch64_frecpe<mode>): Likewise.
9249 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
9250 (aarch64_frecps<mode>): Likewise.
9252 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9254 * config/arm/iterators.md (V_elem_ch): New.
9256 (VQH_type): Likewise.
9257 * config/arm/arm.md (is_neon_type): New.
9258 (conds): Use is_neon_type.
9259 (anddi3_insn): Update type attribute.
9260 (xordi3_insn): Likewise.
9261 (one_cmpldi2): Likewise.
9262 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
9263 * config/arm/neon.md (neon_mov): Update type attribute.
9264 (*movmisalign<mode>_neon_store): Likewise.
9265 (*movmisalign<mode>_neon_load): Likewise.
9266 (vec_set<mode>_internal): Likewise.
9267 (vec_set<mode>_internal): Likewise.
9268 (vec_setv2di_internal): Likewise.
9269 (vec_extract<mode>): Likewise.
9270 (vec_extract<mode>): Likewise.
9271 (vec_extractv2di): Likewise.
9272 (*add<mode>3_neon): Likewise.
9273 (adddi3_neon): Likewise.
9274 (*sub<mode>3_neon): Likewise.
9275 (subdi3_neon): Likewise.
9276 (fma<VCVTF:mode>4): Likewise.
9277 (fma<VCVTF:mode>4_intrinsic): Likewise.
9278 (*fmsub<VCVTF:mode>4): Likewise.
9279 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
9280 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
9281 (ior<mode>3): Likewise.
9282 (and<mode>3): Likewise.
9283 (orn<mode>3_neon): Likewise.
9284 (orndi3_neon): Likewise.
9285 (bic<mode>3_neon): Likewise.
9286 (bicdi3_neon): Likewise.
9287 (xor<mode>3): Likewise.
9288 (one_cmpl<mode>2): Likewise.
9289 (abs<mode>2): Likewise.
9290 (neg<mode>2): Likewise.
9291 (negdi2_neon): Likewise.
9292 (*umin<mode>3_neon): Likewise.
9293 (*umax<mode>3_neon): Likewise.
9294 (*smin<mode>3_neon): Likewise.
9295 (*smax<mode>3_neon): Likewise.
9296 (vashl<mode>3): Likewise.
9297 (vashr<mode>3_imm): Likewise.
9298 (vlshr<mode>3_imm): Likewise.
9299 (ashl<mode>3_signed): Likewise.
9300 (ashl<mode>3_unsigned): Likewise.
9301 (neon_load_count): Likewise.
9302 (ashldi3_neon_noclobber): Likewise.
9303 (ashldi3_neon): Likewise.
9304 (signed_shift_di3_neon): Likewise.
9305 (unsigned_shift_di3_neon): Likewise.
9306 (ashrdi3_neon_imm_noclobber): Likewise.
9307 (lshrdi3_neon_imm_noclobber): Likewise.
9308 (<shift>di3_neon): Likewise.
9309 (widen_ssum<mode>3): Likewise.
9310 (widen_usum<mode>3): Likewise.
9311 (quad_halves_<code>v4si): Likewise.
9312 (quad_halves_<code>v4sf): Likewise.
9313 (quad_halves_<code>v8hi): Likewise.
9314 (quad_halves_<code>v16qi): Likewise.
9315 (reduc_splus_v2di): Likewise.
9316 (neon_vpadd_internal<mode>): Likewise.
9317 (neon_vpsmin<mode>): Likewise.
9318 (neon_vpsmax<mode>): Likewise.
9319 (neon_vpumin<mode>): Likewise.
9320 (neon_vpumax<mode>): Likewise.
9321 (*ss_add<mode>_neon): Likewise.
9322 (*us_add<mode>_neon): Likewise.
9323 (*ss_sub<mode>_neon): Likewise.
9324 (*us_sub<mode>_neon): Likewise.
9325 (neon_vadd<mode>_unspec): Likewise.
9326 (neon_vaddl<mode>): Likewise.
9327 (neon_vaddw<mode>): Likewise.
9328 (neon_vhadd<mode>): Likewise.
9329 (neon_vqadd<mode>): Likewise.
9330 (neon_vaddhn<mode>): Likewise.
9331 (neon_vmul<mode>): Likewise.
9332 (neon_vfms<VCVTF:mode>): Likewise.
9333 (neon_vmlal<mode>): Likewise.
9334 (neon_vmls<mode>): Likewise.
9335 (neon_vmlsl<mode>): Likewise.
9336 (neon_vqdmulh<mode>): Likewise.
9337 (neon_vqdmlal<mode>): Likewise.
9338 (neon_vqdmlsl<mode>): Likewise.
9339 (neon_vmull<mode>): Likewise.
9340 (neon_vqdmull<mode>): Likewise.
9341 (neon_vsub<mode>_unspec): Likewise.
9342 (neon_vsubl<mode>): Likewise.
9343 (neon_vsubw<mode>): Likewise.
9344 (neon_vqsub<mode>): Likewise.
9345 (neon_vhsub<mode>): Likewise.
9346 (neon_vsubhn<mode>): Likewise.
9347 (neon_vceq<mode>): Likewise.
9348 (neon_vcge<mode>): Likewise.
9349 (neon_vcgeu<mode>): Likewise.
9350 (neon_vcgt<mode>): Likewise.
9351 (neon_vcgtu<mode>): Likewise.
9352 (neon_vcle<mode>): Likewise.
9353 (neon_vclt<mode>): Likewise.
9354 (neon_vcage<mode>): Likewise.
9355 (neon_vcagt<mode>): Likewise.
9356 (neon_vtst<mode>): Likewise.
9357 (neon_vabd<mode>): Likewise.
9358 (neon_vabdl<mode>): Likewise.
9359 (neon_vaba<mode>): Likewise.
9360 (neon_vabal<mode>): Likewise.
9361 (neon_vmax<mode>): Likewise.
9362 (neon_vmin<mode>): Likewise.
9363 (neon_vpaddl<mode>): Likewise.
9364 (neon_vpadal<mode>): Likewise.
9365 (neon_vpmax<mode>): Likewise.
9366 (neon_vpmin<mode>): Likewise.
9367 (neon_vrecps<mode>): Likewise.
9368 (neon_vrsqrts<mode>): Likewise.
9369 (neon_vqabs<mode>): Likewise.
9370 (neon_vqneg<mode>): Likewise.
9371 (neon_vcls<mode>): Likewise.
9372 (clz<mode>2): Likewise.
9373 (popcount<mode>2): Likewise.
9374 (neon_vrecpe<mode>): Likewise.
9375 (neon_vrsqrte<mode>): Likewise.
9376 (neon_vget_lane<mode>_sext_internal): Likewise.
9377 (neon_vget_lane<mode>_zext_internal): Likewise.
9378 (neon_vdup_n<mode>): Likewise.
9379 (neon_vdup_n<mode>): Likewise.
9380 (neon_vdup_nv2di): Likewise.
9381 (neon_vdup_lane<mode>_interal): Likewise.
9382 (*neon_vswp<mode>): Likewise.
9383 (neon_vcombine<mode>): Likewise.
9384 (float<mode><V_cvtto>2): Likewise.
9385 (floatuns<mode><V_cvtto>2): Likewise.
9386 (fix_trunc<mode><V_cvtto>2): Likewise.
9387 (fixuns_trunc<mode><V_cvtto>2
9388 (neon_vcvt<mode>): Likewise.
9389 (neon_vcvt<mode>): Likewise.
9390 (neon_vcvtv4sfv4hf): Likewise.
9391 (neon_vcvtv4hfv4sf): Likewise.
9392 (neon_vcvt_n<mode>): Likewise.
9393 (neon_vcvt_n<mode>): Likewise.
9394 (neon_vmovn<mode>): Likewise.
9395 (neon_vqmovn<mode>): Likewise.
9396 (neon_vqmovun<mode>): Likewise.
9397 (neon_vmovl<mode>): Likewise.
9398 (neon_vmul_lane<mode>): Likewise.
9399 (neon_vmul_lane<mode>): Likewise.
9400 (neon_vmull_lane<mode>): Likewise.
9401 (neon_vqdmull_lane<mode>): Likewise.
9402 (neon_vqdmulh_lane<mode>): Likewise.
9403 (neon_vqdmulh_lane<mode>): Likewise.
9404 (neon_vmla_lane<mode>): Likewise.
9405 (neon_vmla_lane<mode>): Likewise.
9406 (neon_vmlal_lane<mode>): Likewise.
9407 (neon_vqdmlal_lane<mode>): Likewise.
9408 (neon_vmls_lane<mode>): Likewise.
9409 (neon_vmls_lane<mode>): Likewise.
9410 (neon_vmlsl_lane<mode>): Likewise.
9411 (neon_vqdmlsl_lane<mode>): Likewise.
9412 (neon_vext<mode>): Likewise.
9413 (neon_vrev64<mode>): Likewise.
9414 (neon_vrev32<mode>): Likewise.
9415 (neon_vrev16<mode>): Likewise.
9416 (neon_vbsl<mode>_internal): Likewise.
9417 (neon_vshl<mode>): Likewise.
9418 (neon_vqshl<mode>): Likewise.
9419 (neon_vshr_n<mode>): Likewise.
9420 (neon_vshrn_n<mode>): Likewise.
9421 (neon_vqshrn_n<mode>): Likewise.
9422 (neon_vqshrun_n<mode>): Likewise.
9423 (neon_vshl_n<mode>): Likewise.
9424 (neon_vqshl_n<mode>): Likewise.
9425 (neon_vqshlu_n<mode>): Likewise.
9426 (neon_vshll_n<mode>): Likewise.
9427 (neon_vsra_n<mode>): Likewise.
9428 (neon_vsri_n<mode>): Likewise.
9429 (neon_vsli_n<mode>): Likewise.
9430 (neon_vtbl1v8qi): Likewise.
9431 (neon_vtbl2v8qi): Likewise.
9432 (neon_vtbl3v8qi): Likewise.
9433 (neon_vtbl4v8qi): Likewise.
9434 (neon_vtbl1v16qi): Likewise.
9435 (neon_vtbl2v16qi): Likewise.
9436 (neon_vcombinev16qi): Likewise.
9437 (neon_vtbx1v8qi): Likewise.
9438 (neon_vtbx2v8qi): Likewise.
9439 (neon_vtbx3v8qi): Likewise.
9440 (neon_vtbx4v8qi): Likewise.
9441 (*neon_vtrn<mode>_insn): Likewise.
9442 (*neon_vzip<mode>_insn): Likewise.
9443 (*neon_vuzp<mode>_insn): Likewise.
9444 (neon_vld1<mode>): Likewise.
9445 (neon_vld1_lane<mode>): Likewise.
9446 (neon_vld1_lane<mode>): Likewise.
9447 (neon_vld1_dup<mode>): Likewise.
9448 (neon_vld1_dup<mode>): Likewise.
9449 (neon_vld1_dupv2di): Likewise.
9450 (neon_vst1<mode>): Likewise.
9451 (neon_vst1_lane<mode>): Likewise.
9452 (neon_vst1_lane<mode>): Likewise.
9453 (neon_vld2<mode>): Likewise.
9454 (neon_vld2<mode>): Likewise.
9455 (neon_vld2_lane<mode>): Likewise.
9456 (neon_vld2_lane<mode>): Likewise.
9457 (neon_vld2_dup<mode>): Likewise.
9458 (neon_vst2<mode>): Likewise.
9459 (neon_vst2<mode>): Likewise.
9460 (neon_vst2_lane<mode>): Likewise.
9461 (neon_vst2_lane<mode>): Likewise.
9462 (neon_vld3<mode>): Likewise.
9463 (neon_vld3qa<mode>): Likewise.
9464 (neon_vld3qb<mode>): Likewise.
9465 (neon_vld3_lane<mode>): Likewise.
9466 (neon_vld3_lane<mode>): Likewise.
9467 (neon_vld3_dup<mode>): Likewise.
9468 (neon_vst3<mode>): Likewise.
9469 (neon_vst3qa<mode>): Likewise.
9470 (neon_vst3qb<mode>): Likewise.
9471 (neon_vst3_lane<mode>): Likewise.
9472 (neon_vst3_lane<mode>): Likewise.
9473 (neon_vld4<mode>): Likewise.
9474 (neon_vld4qa<mode>): Likewise.
9475 (neon_vld4qb<mode>): Likewise.
9476 (neon_vld4_lane<mode>): Likewise.
9477 (neon_vld4_lane<mode>): Likewise.
9478 (neon_vld4_dup<mode>): Likewise.
9479 (neon_vst4<mode>): Likewise.
9480 (neon_vst4qa<mode>): Likewise.
9481 (neon_vst4qb<mode>): Likewise.
9482 (neon_vst4_lane<mode>): Likewise.
9483 (neon_vst4_lane<mode>): Likewise.
9484 (neon_vec_unpack<US>_lo_<mode>): Likewise.
9485 (neon_vec_unpack<US>_hi_<mode>): Likewise.
9486 (neon_vec_<US>mult_lo_<mode>): Likewise.
9487 (neon_vec_<US>mult_hi_<mode>): Likewise.
9488 (neon_vec_<US>shiftl_<mode>): Likewise.
9489 (neon_unpack<US>_<mode>): Likewise.
9490 (neon_vec_<US>mult_<mode>): Likewise.
9491 (vec_pack_trunc_<mode>): Likewise.
9492 (neon_vec_pack_trunc_<mode>): Likewise.
9493 (neon_vabd<mode>_2): Likewise.
9494 (neon_vabd<mode>_3): Likewise.
9496 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9498 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
9499 (load_pair): Update type attribute.
9500 (store_pair): Update type attribute.
9501 * config/aarch64/iterators.md (q): New.
9503 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9505 * config/arm/types.md: Add new types for Neon insns.
9507 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
9508 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9509 Sergey Lega <sergey.s.lega@intel.com>
9510 Anna Tikhonova <anna.tikhonova@intel.com>
9511 Ilya Tocar <ilya.tocar@intel.com>
9512 Andrey Turetskiy <andrey.turetskiy@intel.com>
9513 Ilya Verbin <ilya.verbin@intel.com>
9514 Kirill Yukhin <kirill.yukhin@intel.com>
9515 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9517 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
9518 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
9519 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
9521 (srcp14<mode>): Ditto.
9522 (rsqrt14<mode>): Ditto.
9523 (rsqrt14<mode>): Ditto.
9524 (avx512f_vmscalef<mode>): Ditto.
9525 (avx512f_scalef<mode>): Ditto.
9526 (avx512f_getexp<mode>): Ditto.
9527 (avx512f_sgetexp<mode>): Ditto.
9528 (avx512f_fixupimm<mode>): Ditto.
9529 (avx512f_sfixupimm<mode>): Ditto.
9530 (avx512f_rndscale<mode>): Ditto.
9531 (*avx512er_exp2<mode>): Ditto.
9532 (*avx512er_rcp28<mode>): Ditto.
9533 (avx512er_rsqrt28<mode>): Ditto.
9534 (avx512f_getmant<mode>): Ditto.
9535 (avx512f_getmant<mode>): Ditto.
9536 (avx512f_rndscale<mode>): Fix formatting.
9538 2013-10-15 Martin Jambor <mjambor@suse.cz>
9540 * ipa-utils.h (ipa_edge_within_scc): Declare.
9541 * ipa-cp.c (edge_within_scc): Moved...
9542 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
9544 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
9545 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9546 Sergey Lega <sergey.s.lega@intel.com>
9547 Anna Tikhonova <anna.tikhonova@intel.com>
9548 Ilya Tocar <ilya.tocar@intel.com>
9549 Andrey Turetskiy <andrey.turetskiy@intel.com>
9550 Ilya Verbin <ilya.verbin@intel.com>
9551 Kirill Yukhin <kirill.yukhin@intel.com>
9552 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9554 * config/i386/predicates.md (const_8_to_15_operand): New.
9555 (const_16_to_31_operand): Ditto.
9556 * config/i386/sse.md (V8FI): New.
9558 (reduc_splus_v8df): Ditto.
9559 (reduc_splus_v16sf): Ditto.
9560 (avx512f_vextract<shuffletype>32x4_1): Ditto.
9561 (vec_extract_hi_<mode>): Ditto.
9562 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
9563 (vec_set_lo_<mode>): Ditto.
9564 (vec_set_hi_<mode>): Ditto.
9565 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
9566 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
9567 (avx512f_pshufd_1): Ditto.
9568 (avx512f_broadcast<mode>): Ditto.
9569 (avx512f_broadcast<mode>): Ditto.
9570 (define_split): Split vec_extract_lo into move.
9571 (ssequartermode): Ditto.
9572 (ssedoublemode): Extened with wider modes.
9573 (vec_extract_lo_<mode>): Ditto.
9575 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
9576 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9577 Sergey Lega <sergey.s.lega@intel.com>
9578 Anna Tikhonova <anna.tikhonova@intel.com>
9579 Ilya Tocar <ilya.tocar@intel.com>
9580 Andrey Turetskiy <andrey.turetskiy@intel.com>
9581 Ilya Verbin <ilya.verbin@intel.com>
9582 Kirill Yukhin <kirill.yukhin@intel.com>
9583 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9585 * config/i386/predicates.md (register_or_constm1_operand): New.
9586 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
9587 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
9588 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
9589 UNSPEC_SCATTER_PREFETCH
9591 (avx512f_ucmp<mode>3): Ditto.
9592 (avx512f_vternlog<mode>): Ditto.
9593 (avx512f_align<mode>): Ditto.
9594 (<shift_insn><mode>3): Ditto.
9595 (avx512f_<rotate>v<mode>): Ditto.
9596 (avx512f_<rotate><mode>): Ditto.
9597 (avx512f_eq<mode>3): Ditto.
9598 (avx512f_eq<mode>3_1): Ditto.
9599 (avx512f_gt<mode>3): Ditto.
9600 (avx512f_testm<mode>3): Ditto.
9601 (avx512f_testnm<mode>3): Ditto.
9602 (avx512pf_gatherpf<mode>): Ditto.
9603 (*avx512pf_gatherpf<mode>_mask): Ditto.
9604 (*avx512pf_gatherpf<mode>): Ditto.
9605 (avx512pf_scatterpf<mode>): Ditto.
9606 (*avx512pf_scatterpf<mode>_mask): Ditto.
9607 (*avx512pf_scatterpf<mode>): Ditto.
9608 (avx512f_vec_dup_gpr<mode>): Ditto.
9609 (clz<mode>2): Ditto.
9610 (conflict<mode>): Ditto.
9611 (REDUC_SMINMAX_MODE): Extened with wider modes.
9612 (reduc_<code>_<mode>): Ditto.
9613 (vlshr<mode>3): Ditto.
9614 (vashl<mode>3): Ditto.
9616 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
9617 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9618 Sergey Lega <sergey.s.lega@intel.com>
9619 Anna Tikhonova <anna.tikhonova@intel.com>
9620 Ilya Tocar <ilya.tocar@intel.com>
9621 Andrey Turetskiy <andrey.turetskiy@intel.com>
9622 Ilya Verbin <ilya.verbin@intel.com>
9623 Kirill Yukhin <kirill.yukhin@intel.com>
9624 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9626 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
9629 (avx512fmaskmode): Ditto.
9630 (bcstscalarsuff): Ditto.
9631 (avx512f_blendm<mode>): Ditto.
9632 (cmp_imm_predicate): Ditto.
9633 (avx512f_cmp<mode>3): Ditto.
9634 (avx512f_vec_dup<mode>): Ditto.
9635 (avx512f_vec_dup_mem<mode>): Ditto.
9636 (avx512f_vpermi2var<mode>3): Ditto.
9637 (avx512f_vpermt2var<mode>3): Ditto.
9638 (vec_init<mode>): Ditto.
9639 (avx512f_gathersi<mode>): Ditto.
9640 (*avx512f_gathersi<mode>): Ditto.
9641 (*avx512f_gathersi<mode>_2): Ditto.
9642 (avx512f_gatherdi<mode>): Ditto.
9643 (*avx512f_gatherdi<mode>): Ditto.
9644 (*avx512f_gatherdi<mode>_2): Ditto.
9645 (avx512f_scattersi<mode>): Ditto.
9646 (*avx512f_scattersi<mode>): Ditto.
9647 (avx512f_scatterdi<mode>): Ditto.
9648 (*avx512f_scatterdi<mode>): Ditto.
9649 (sseintprefix): Extened with wider modes.
9650 (VEC_GATHER_IDXSI): Ditto.
9651 (VEC_GATHER_IDXDI): Ditto.
9652 (VEC_GATHER_SRCDI): Ditto.
9654 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9655 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9657 * config/arm/t-aprofile: New file.
9658 * config.gcc: Handle --with-multilib-list option.
9660 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
9662 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
9665 2013-10-15 Richard Biener <rguenther@suse.de>
9667 * tree-loop-distribution.c (build_empty_rdg): Inline into
9669 (rdg_flag_vertex): Inline into single user.
9670 (rdg_flag_vertex_and_dependent): Likewise.
9671 (build_rdg_partition_for_vertex): Remove processed bitmap.
9672 (rdg_build_partitions): Simplify.
9674 2013-10-15 Richard Biener <rguenther@suse.de>
9676 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
9677 Restructure forwarding through conversions and copies to
9678 avoid performing copy-propagation the wrong way. Adjust
9679 recursion invocations.
9680 (forward_propagate_addr_expr): Add argument stating if we
9681 are recursing from a single-use.
9682 (ssa_forward_propagate_and_combine): Adjust.
9684 2013-10-14 David Malcolm <dmalcolm@redhat.com>
9686 * dumpfile.h (gcc::dump_manager): New class, to hold state
9687 relating to dumpfile management.
9688 (get_dump_file_name): Remove in favor of method of dump_manager.
9689 (dump_initialized_p): Likewise.
9690 (dump_start): Likewise.
9691 (dump_finish): Likewise.
9692 (dump_switch_p): Likewise.
9693 (dump_register): Likewise.
9694 (get_dump_file_info): Likewise.
9695 * context.c (gcc::context::context): Construct the dump_manager
9697 * context.h (gcc::context::get_dumps): New.
9698 (gcc::context::m_dumps): New.
9699 * coverage.c (coverage_init): Port to dump_manager API.
9700 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
9701 (extra_dump_files_in_use): Likewise.
9702 (extra_dump_files_alloced): Likewise.
9703 (gcc::dump_manager::dump_manager): New.
9704 (dump_register): Convert to...
9705 (gcc::dump_manager::dump_register): ...method, replacing
9706 function-static next_dump with m_next_dump field.
9707 (get_dump_file_info): Convert to...
9708 (gcc::dump_manager::get_dump_file_info): ...method.
9709 (get_dump_file_name): Convert to...
9710 (gcc::dump_manager::get_dump_file_name): ...method.
9711 (dump_start): Convert to...
9712 (gcc::dump_manager::dump_start): ...method.
9713 (dump_finish): Convert to...
9714 (gcc::dump_manager::dump_finish): ...method.
9715 (dump_begin): Replace body with...
9716 (gcc::dump_manager::dump_begin): ...new method.
9717 (dump_phase_enabled_p): Convert to...
9718 (gcc::dump_manager::dump_phase_enabled_p): ...method.
9719 (dump_phase_enabled_p): Convert to...
9720 (gcc::dump_manager::dump_phase_enabled_p): ...method.
9721 (dump_initialized_p): Convert to...
9722 (gcc::dump_manager::dump_initialized_p): ...method.
9723 (dump_flag_name): Replace body with...
9724 (gcc::dump_manager::dump_flag_name): ...new method.
9725 (dump_enable_all): Convert to...
9726 (gcc::dump_manager::dump_enable_all): ...new method.
9727 (opt_info_enable_passes): Convert to...
9728 (gcc::dump_manager::opt_info_enable_passes): ...new method.
9729 (dump_switch_p_1): Convert to...
9730 (gcc::dump_manager::dump_switch_p_1): ...new method.
9731 (dump_switch_p): Convert to...
9732 (gcc::dump_manager::dump_switch_p): ...new method.
9733 (opt_info_switch_p): Port to dump_manager API.
9734 (enable_rtl_dump_file): Likewise.
9735 * opts-global.c (handle_common_deferred_options): Port to new
9737 * passes.c (pass_manager::finish_optimization_passes): Likewise.
9738 (pass_manager::register_one_dump_file): Likewise.
9739 (pass_manager::register_pass): Likewise.
9740 (pass_init_dump_file): Likewise.
9741 (pass_fini_dump_file): Likewise.
9742 * statistics.c (statistics_early_init): Likewise.
9744 2013-10-14 Richard Biener <rguenther@suse.de>
9746 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
9747 iterative_hash_canonical_type, gimple_canonical_type_hash,
9748 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
9749 gimple_register_canonical_type, print_gimple_types_stats,
9750 free_gimple_type_tables): Move to lto/lto.c
9751 (gt-gimple.h): Do not include.
9752 * gimple.h (gimple_register_canonical_type,
9753 print_gimple_types_stats, free_gimple_type_tables): Remove.
9754 * Makefile.in (GTFILES): Remove gimple.c.
9756 2013-10-14 Travis Snoozy <quandary@remstate.com>
9759 * config/msp430/msp430.c (msp430_option_override): Correct thinko
9760 scanning for msp430x targets.
9762 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
9765 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
9766 (registers_ok_for_ldd_peep): Move around.
9767 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
9768 * config/sparc/sparc.md (widening peepholes): Use it.
9770 2013-10-14 Richard Biener <rguenther@suse.de>
9774 * gimple.c (iterative_hash_canonical_type): Make sure to
9775 record the hash into the correct hashtable slot.
9777 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
9779 PR rtl-optimization/58662
9780 * combine.c (try_combine): Take into account death nodes on I2 when
9781 splitting a PARALLEL of two independent SETs. Fix dump message.
9783 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
9786 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
9787 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
9789 * config/sh/t-sh (sh_treg_combine.o): New entry.
9790 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
9791 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
9792 (register_sh_passes): New function. Register sh_treg_combine pass.
9793 (sh_option_override): Invoke it.
9794 (sh_canonicalize_comparison): Handle op0_preserve_value.
9795 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
9796 opportunities. Canonicalize branch condition.
9797 (nott): Allow only if pseudos can be created for non-SH2A.
9799 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
9802 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
9803 (ix86_expand_movmem): Replace copy_addr_to_reg with
9804 ix86_copy_addr_to_reg.
9805 (ix86_expand_setmem): Likewise.
9807 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
9809 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
9810 provided by ix86_fp_compare_mode instead of CCFPUmode.
9812 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
9814 * config/aarch64/arm_neon.h
9815 (vtbx<1,3>_<psu>8): Fix register constriants.
9817 2013-10-11 Jeff Law <law@redhat.com>
9819 PR tree-optimization/58640
9820 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9821 threading paths that cross over two loop entry points.
9823 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9825 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
9826 handle vector float as well.
9827 (*vsx_le_perm_load_v4si): Likewise.
9828 (*vsx_le_perm_store_v2di): Likewise.
9829 (*vsx_le_perm_store_v4si): Likewise.
9831 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9833 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
9834 directly to circumvent subtract from splat{31} workaround.
9835 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
9837 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
9838 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
9839 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
9840 (altivec_vperm_<mode>): Convert to define_insn_and_split to
9841 separate big and little endian logic.
9842 (*altivec_vperm_<mode>_internal): New define_insn.
9843 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
9844 separate big and little endian logic.
9845 (*altivec_vperm_<mode>_uns_internal): New define_insn.
9846 (vec_permv16qi): Add little endian logic.
9848 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
9850 * doc/extend.texi (returns_nonnull): Remove arguments.
9852 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9853 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9854 Sergey Lega <sergey.s.lega@intel.com>
9855 Anna Tikhonova <anna.tikhonova@intel.com>
9856 Ilya Tocar <ilya.tocar@intel.com>
9857 Andrey Turetskiy <andrey.turetskiy@intel.com>
9858 Ilya Verbin <ilya.verbin@intel.com>
9859 Kirill Yukhin <kirill.yukhin@intel.com>
9860 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9862 * config/i386/sse.md (VI48F_256_512): New.
9863 (avx2_permvar<mode>): Change to ...
9864 (<avx2_avx512f>_permvar<mode>): This.
9866 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9867 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9868 Sergey Lega <sergey.s.lega@intel.com>
9869 Anna Tikhonova <anna.tikhonova@intel.com>
9870 Ilya Tocar <ilya.tocar@intel.com>
9871 Andrey Turetskiy <andrey.turetskiy@intel.com>
9872 Ilya Verbin <ilya.verbin@intel.com>
9873 Kirill Yukhin <kirill.yukhin@intel.com>
9874 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9876 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
9877 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
9878 * config/i386/sse.md (VI4_AVX): New.
9879 (sf2simodelower): Ditto.
9880 (sse2_cvtps2dq): Change to ...
9881 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
9883 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9884 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9885 Sergey Lega <sergey.s.lega@intel.com>
9886 Anna Tikhonova <anna.tikhonova@intel.com>
9887 Ilya Tocar <ilya.tocar@intel.com>
9888 Andrey Turetskiy <andrey.turetskiy@intel.com>
9889 Ilya Verbin <ilya.verbin@intel.com>
9890 Kirill Yukhin <kirill.yukhin@intel.com>
9891 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9893 * config/i386/sse.md (V_512): New.
9895 (vcond<V_512:mode><VF_512:mode>): Ditto.
9896 (vcond<V_512:mode><VI_512:mode>): Ditto.
9897 (vcondu<V_512:mode><VI_512:mode>): Ditto.
9899 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9900 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9901 Sergey Lega <sergey.s.lega@intel.com>
9902 Anna Tikhonova <anna.tikhonova@intel.com>
9903 Ilya Tocar <ilya.tocar@intel.com>
9904 Andrey Turetskiy <andrey.turetskiy@intel.com>
9905 Ilya Verbin <ilya.verbin@intel.com>
9906 Kirill Yukhin <kirill.yukhin@intel.com>
9907 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9909 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
9910 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
9912 (fma<mode>4): Removed condition.
9913 (fms<mode>4): Ditto.
9914 (fnma<mode>4): Ditto.
9915 (fnms<mode>4): Ditto.
9916 (fma4i_fmadd_<mode>): Ditto.
9917 (*fma_fmadd_<mode>): Ditto.
9918 (*fma_fmsub_<mode>): Ditto.
9919 (*fma_fnmadd_<mode>): Ditto.
9920 (*fma_fnmsub_<mode>): Ditto.
9921 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
9922 (*fma_fmaddsub_<mode>): Ditto.
9923 (*fma_fmsubadd_<mode>): Ditto.
9924 (*fmai_fmadd_<mode>): Ditto.
9925 (*fmai_fmsub_<mode>): Ditto.
9926 (*fmai_fnmadd_<mode>): Ditto.
9927 (*fmai_fnmsub_<mode>): Ditto.
9929 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9930 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9931 Sergey Lega <sergey.s.lega@intel.com>
9932 Anna Tikhonova <anna.tikhonova@intel.com>
9933 Ilya Tocar <ilya.tocar@intel.com>
9934 Andrey Turetskiy <andrey.turetskiy@intel.com>
9935 Ilya Verbin <ilya.verbin@intel.com>
9936 Kirill Yukhin <kirill.yukhin@intel.com>
9937 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9939 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
9940 (VI124_256): Changed to ...
9941 (VI124_256_48_512): This.
9942 (ssepackmode): Extended with wider modes.
9943 (<code><mode>3): Changed iterator.
9944 (*avx2_<code><mode>3): Ditto.
9945 (vec_pack_trunc_<mode>): Ditto.
9947 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9948 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9949 Sergey Lega <sergey.s.lega@intel.com>
9950 Anna Tikhonova <anna.tikhonova@intel.com>
9951 Ilya Tocar <ilya.tocar@intel.com>
9952 Andrey Turetskiy <andrey.turetskiy@intel.com>
9953 Ilya Verbin <ilya.verbin@intel.com>
9954 Kirill Yukhin <kirill.yukhin@intel.com>
9955 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9957 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
9958 (VI8F_256_512): Ditto.
9959 (abs<mode>2): Changed iterator.
9960 (avx2_perm<mode>): Changed to ...
9961 (<avx2_avx512f>_perm<mode>): This.
9962 (avx2_perm<mode>_1): Changed to ...
9963 (<avx2_avx512f>_perm<mode>_1): This.
9965 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9966 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9967 Sergey Lega <sergey.s.lega@intel.com>
9968 Anna Tikhonova <anna.tikhonova@intel.com>
9969 Ilya Tocar <ilya.tocar@intel.com>
9970 Andrey Turetskiy <andrey.turetskiy@intel.com>
9971 Ilya Verbin <ilya.verbin@intel.com>
9972 Kirill Yukhin <kirill.yukhin@intel.com>
9973 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9975 * config/i386/sse.md (VI48_AVX512F): New.
9976 (VI48_AVX2): Changed to ...
9977 (VI48_AVX2_48_AVX512F): This.
9978 (avx2_ashrv<mode>): Changed to ...
9979 (<avx2_avx512f>_ashrv<mode>): This.
9980 (avx2_<shift_insn>v<mode>): Changed to ...
9981 (<avx2_avx512f>_<shift_insn>v<mode>): This.
9983 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9984 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9985 Sergey Lega <sergey.s.lega@intel.com>
9986 Anna Tikhonova <anna.tikhonova@intel.com>
9987 Ilya Tocar <ilya.tocar@intel.com>
9988 Andrey Turetskiy <andrey.turetskiy@intel.com>
9989 Ilya Verbin <ilya.verbin@intel.com>
9990 Kirill Yukhin <kirill.yukhin@intel.com>
9991 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9993 * config/i386/sse.md (VI4_AVX512F): New.
9994 (VI8_AVX2_AVX512F): Ditto.
9995 (mul<mode>3): Extended with wider modes.
9996 (*<sse4_1_avx2>_mul<mode>3): Ditto.
9997 (mul<mode>3): Ditto.
9998 (vec_widen_<s>mult_odd_<mode>): Ditto.
10000 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10001 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10002 Sergey Lega <sergey.s.lega@intel.com>
10003 Anna Tikhonova <anna.tikhonova@intel.com>
10004 Ilya Tocar <ilya.tocar@intel.com>
10005 Andrey Turetskiy <andrey.turetskiy@intel.com>
10006 Ilya Verbin <ilya.verbin@intel.com>
10007 Kirill Yukhin <kirill.yukhin@intel.com>
10008 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10010 * config/i386/sse.md (VI2_AVX512F): New.
10011 (VI124_AVX512F): Ditto.
10012 (sseunpackmode): Extended with wider modes.
10013 (sseunpackfltmode): Ditto.
10014 (vec_unpacks_float_hi_<mode>): Ditto.
10015 (vec_unpacks_float_lo_<mode>): Ditto.
10016 (vec_unpacku_float_hi_<mode>): Ditto.
10017 (vec_unpacku_float_lo_<mode>): Ditto.
10018 (vec_unpacks_lo_<mode>): Ditto.
10019 (vec_unpacks_hi_<mode>): Ditto.
10020 (vec_unpacku_lo_<mode>): Ditto.
10021 (vec_unpacku_hi_<mode>): Ditto.
10023 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10024 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10025 Sergey Lega <sergey.s.lega@intel.com>
10026 Anna Tikhonova <anna.tikhonova@intel.com>
10027 Ilya Tocar <ilya.tocar@intel.com>
10028 Andrey Turetskiy <andrey.turetskiy@intel.com>
10029 Ilya Verbin <ilya.verbin@intel.com>
10030 Kirill Yukhin <kirill.yukhin@intel.com>
10031 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10033 * config/i386/i386.md (multdiv): New.
10034 (multdiv_mnemonic): Ditto.
10035 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
10036 (<sse>_vm<multdiv_mnemonic><mode>3): This.
10037 (<sse>_vmdiv<mode>3): Removed.
10039 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10040 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10041 Sergey Lega <sergey.s.lega@intel.com>
10042 Anna Tikhonova <anna.tikhonova@intel.com>
10043 Ilya Tocar <ilya.tocar@intel.com>
10044 Andrey Turetskiy <andrey.turetskiy@intel.com>
10045 Ilya Verbin <ilya.verbin@intel.com>
10046 Kirill Yukhin <kirill.yukhin@intel.com>
10047 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10049 * config/i386/sse.md (V): Extended with wider modes.
10051 (ssehalfvecmode): Ditto.
10053 (ssepackfltmode): Ditto.
10054 (avx_vec_concat<mode>): Ditto.
10055 (V_256_512): New iterator.
10056 (VF2_512_256): Ditto.
10057 (si2dfmode): New attribute.
10058 (si2dfmodelower): Ditto.
10059 (sf2dfmode): Ditto.
10060 (concat_tg_mode): Ditto.
10061 (floatv4siv4df2): Changed to ...
10062 (float<si2dfmodelower><mode>2): This.
10063 (avx_cvtps2pd256): Changed to ...
10064 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
10065 (vec_pack_trunc_v4df): Changed to ...
10066 (vec_pack_trunc_<mode>): This.
10067 (avx_vpermil<mode>): Changed to ...
10068 (<sse2_avx_avx512f>_vpermil<mode>): This.
10069 (<fixsuffix>fix_truncv8dfv8si2): New.
10070 (vec_pack_sfix_trunc_v8df): Ditto.
10071 (avx512f_rndscale<mode>): Ditto.
10072 (avx512f_roundpd512): Ditto.
10073 (vec_pack_ufix_trunc_<mode>): Updated iterator.
10075 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10076 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10077 Sergey Lega <sergey.s.lega@intel.com>
10078 Anna Tikhonova <anna.tikhonova@intel.com>
10079 Ilya Tocar <ilya.tocar@intel.com>
10080 Andrey Turetskiy <andrey.turetskiy@intel.com>
10081 Ilya Verbin <ilya.verbin@intel.com>
10082 Kirill Yukhin <kirill.yukhin@intel.com>
10083 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10085 * config/i386/i386.md (any_fix): New iterator.
10086 (fixsuffix): New attribute.
10087 * config/i386/sse.md (VF1): Extened with wider modes.
10091 (sseintvecmodelower): Ditto.
10092 (ssescalarmode): Ditto.
10093 (ssescalarnum): Ditto.
10094 (VF1_128_256): New.
10095 (ssexmmmode): Ditto.
10096 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
10097 (<sse>_rcp<mode>2): Change iterator.
10098 (rsqrt<mode>2): Ditto.
10099 (<sse>_rsqrt<mode>2): Ditto.
10100 (avx2_vec_dup<mode>): Ditto.
10101 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
10102 (round<mode>2_sfix): Ditto.
10103 (avx2_pbroadcast<mode>): Ditto.
10104 (*andnot<mode>3): Handle XI mode.
10105 (*<code><mode>3): Ditto.
10106 (AVXTOSSEMODE): Removed.
10107 (avx_vpermil<mode>): Changed to ...
10108 (<sse2_avx_avx512f>_vpermil<mode>): This.
10110 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10111 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10112 Sergey Lega <sergey.s.lega@intel.com>
10113 Anna Tikhonova <anna.tikhonova@intel.com>
10114 Ilya Tocar <ilya.tocar@intel.com>
10115 Andrey Turetskiy <andrey.turetskiy@intel.com>
10116 Ilya Verbin <ilya.verbin@intel.com>
10117 Kirill Yukhin <kirill.yukhin@intel.com>
10118 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10120 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
10121 (<sse>_comi): Ditto.
10122 (<sse>_ucomi): Ditto.
10123 (sse_cvtss2siq_2): Ditto.
10124 (sse2_cvtsd2si): Ditto.
10125 (sse2_cvtsd2siq): Ditto.
10126 (sse2_cvttsd2si): Ditto.
10127 (sse2_cvttsd2siq): Ditto.
10128 (<shift_insn><mode>3): Ditto.
10129 (sse2_cvtsi2sdq): Update constraint and prefix.
10130 (sse_cvtsi2ss): Update prefix.
10131 (sse_cvtsi2ssq): Ditto.
10133 2013-10-11 Jakub Jelinek <jakub@redhat.com>
10135 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
10136 ignore internal calls.
10138 2013-10-11 Richard Biener <rguenther@suse.de>
10140 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
10141 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
10142 TREE_OVERFLOW is set.
10144 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
10146 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
10148 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
10149 * gimple.h: Likewise.
10151 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
10153 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
10156 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
10158 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
10159 * configure: Regenerate.
10161 2013-10-11 Jakub Jelinek <jakub@redhat.com>
10163 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
10164 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
10165 formatting fixes, use pp_colon instead of pp_character (..., ':'),
10166 similarly pp_right_paren.
10167 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
10168 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
10169 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
10170 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
10172 (omp_declare_simd_clauses_equal,
10173 omp_remove_redundant_declare_simd_attrs): New functions.
10174 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
10175 (walk_tree_1): Handle new OpenMP 4.0 clauses.
10176 * tree.h (OMP_LOOP_CHECK): Define.
10177 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10178 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
10179 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
10180 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
10181 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
10182 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
10183 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
10184 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
10185 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
10186 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
10187 OMP_CLAUSE_SIMDLEN_EXPR): Define.
10188 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
10189 (omp_remove_redundant_declare_simd_attrs): New prototype.
10190 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
10191 GIMPLE_OMP_TEAMS): New codes.
10192 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
10193 * omp-low.c (struct omp_context): Add cancel_label and cancellable
10195 (target_nesting_level): New variable.
10196 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
10197 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
10198 for collapse > 1 static schedule unless ordered.
10199 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
10200 (determine_parallel_type): Adjust get_ws_args_for caller.
10201 (install_var_field): Handle mask & 4 for double indirection.
10202 (scan_sharing_clauses): Ignore shared clause on teams construct.
10203 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
10204 (create_omp_child_function): If inside target or declare target
10205 constructs, set "omp declare target" attribute on the child function.
10206 (find_combined_for): New function.
10207 (scan_omp_parallel): Handle combined loops.
10208 (scan_omp_target, scan_omp_teams): New functions.
10209 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
10210 restrictions and set ctx->cancellable for cancellable constructs.
10211 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
10212 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
10213 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
10214 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
10215 (omp_clause_aligned_alignment): New function.
10216 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
10217 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
10218 on teams constructs. Handle user defined reductions and new
10219 OpenMP 4.0 clauses.
10220 (lower_reduction_clauses): Don't set placeholder to address of ref
10221 if it has already the right type.
10222 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
10223 (expand_parallel_call): Use the new non-_start suffixed builtins,
10224 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
10225 and GOMP_parallel_end after the call.
10226 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
10227 (expand_omp_for_init_counts): Handle combined loops.
10228 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
10230 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
10231 end of cancellable loops.
10232 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
10233 Likewise. Handle collapse > 1 loops.
10234 (expand_omp_simd): Handle combined loops.
10235 (expand_omp_for): Add inner_stmt argument, adjust callers of
10236 expand_omp_for* functions, use expand_omp_for_static*chunk even
10237 for collapse > 1 unless ordered.
10238 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
10239 of cancellable sections.
10240 (expand_omp_single): Remove need_barrier variable, just rely on
10241 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
10242 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
10243 (expand_omp_atomic_load, expand_omp_atomic_store,
10244 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
10245 (expand_omp_target): New function.
10246 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
10247 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
10248 (build_omp_regions_1): Immediately close region for
10249 GF_OMP_TARGET_KIND_UPDATE.
10250 (maybe_add_implicit_barrier_cancel): New function.
10251 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
10253 (lower_omp_single): Likewise. Add clobber after the barrier.
10254 (lower_omp_taskgroup): New function.
10255 (lower_omp_for): Handle combined loops. Adjust
10256 lower_rec_input_clauses caller. Handle cancellation.
10257 (lower_depend_clauses): New function.
10258 (lower_omp_taskreg): Lower depend clauses. Adjust
10259 lower_rec_input_clauses caller. Add clobber after the call. Handle
10261 (lower_omp_target, lower_omp_teams): New functions.
10262 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
10263 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
10264 and GOMP_cancellation_point calls.
10265 (lower_omp): Fold stmts inside of target region.
10266 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
10267 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
10268 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
10269 (BT_FN_VOID_OMPFN_PTR_UINT,
10270 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
10271 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
10272 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
10273 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
10274 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
10275 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
10276 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
10277 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
10278 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
10279 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
10280 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10281 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
10282 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
10283 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
10284 BUILT_IN_GOMP_PARALLEL_END.
10285 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
10286 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
10287 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
10288 GF_OMP_FOR_KIND_DISTRIBUTE.
10289 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
10290 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
10291 (dump_gimple_omp_return): Print lhs if it has any.
10292 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
10293 gimple_omp_atomic_seq_cst_p.
10294 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
10295 and GIMPLE_OMP_TEAMS.
10296 * langhooks.c (lhd_omp_mappable_type): New function.
10297 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
10298 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
10300 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
10301 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
10302 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
10303 (struct gimplify_omp_ctx): Add combined_loop field.
10304 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
10305 on stmts inside of target region.
10306 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
10307 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
10308 ORT_TARGET and ORT_TARGET_DATA.
10309 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
10311 (omp_notice_threadprivate_variable): Complain about threadprivate
10312 variables in target region.
10313 (omp_notice_variable): Complain about vars with non-mappable type
10314 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
10315 (omp_check_private): Ignore ORT_TARGET* regions.
10316 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
10317 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
10318 (find_combined_omp_for): New function.
10319 (gimplify_omp_for): Handle gimplification of combined loops.
10320 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
10322 (gimplify_omp_target_update): New function.
10323 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
10324 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
10325 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
10326 (gimplify_body): If fndecl has "omp declare target" attribute, add
10327 implicit ORT_TARGET context around it.
10328 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
10329 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
10330 * tree-nested.c (convert_nonlocal_reference_stmt,
10331 convert_local_reference_stmt, convert_gimple_call): Handle
10332 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10333 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
10334 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
10335 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
10336 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
10337 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
10338 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
10339 BUILT_IN_GOMP_LOOP_END_CANCEL,
10340 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
10341 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
10342 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
10343 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
10344 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
10345 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
10346 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
10347 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
10348 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
10349 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
10350 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
10351 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
10352 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
10353 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
10354 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
10355 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10356 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
10357 gimple_build_omp_teams): New functions.
10358 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
10359 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
10360 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
10361 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10362 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
10363 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
10364 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
10365 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
10366 GF_OMP_ATOMIC_SEQ_CST): New.
10367 (gimple_build_omp_taskgroup, gimple_build_omp_target,
10368 gimple_build_omp_teams): New prototypes.
10369 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
10370 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10371 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
10372 GIMPLE_OMP_SINGLE as end of range.
10373 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
10374 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
10375 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
10376 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
10377 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
10378 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
10379 gimple_omp_target_kind, gimple_omp_target_set_kind,
10380 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
10381 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
10382 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
10383 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
10384 gimple_omp_teams_set_clauses): New inlines.
10385 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
10386 and GIMPLE_OMP_TASKGROUP.
10387 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
10388 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
10389 enum omp_clause_proc_bind_kind): New.
10390 (union omp_clause_subcode): Add depend_kind, map_kind and
10391 proc_bind_kind fields.
10392 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
10393 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10394 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
10395 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
10396 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
10398 2013-10-10 Teresa Johnson <tejohnson@google.com>
10400 * predict.c (tree_estimate_probability): Add new parameter
10401 for estimate_bb_frequencies.
10402 (estimate_bb_frequencies): Add new parameter to force estimation.
10403 (rebuild_frequencies): When max frequency in function is small,
10404 recompute counts from frequencies.
10405 * predict.h (estimate_bb_frequencies): New parameter.
10407 2013-10-10 David Malcolm <dmalcolm@redhat.com>
10409 * ipa-inline.c (ipa_inline): Fix leak of "order" when
10410 optimizations are disabled.
10412 2013-10-10 David Malcolm <dmalcolm@redhat.com>
10414 * coverage.c (coverage_finish): Fix leak of da_file_name.
10416 2013-10-10 Jan Hubicka <jh@suse.cz>
10418 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
10419 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
10420 Bobcat and generic.
10422 2013-10-10 Jakub Jelinek <jakub@redhat.com>
10424 PR middle-end/58670
10425 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
10426 if any labels are in FALLTHRU_BB, use a special label emitted
10427 immediately after the asm goto insn rather than label_rtx
10429 (expand_asm_stmt): Adjust caller.
10430 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
10431 edge if the last insn in predecessor is a jump with single successor,
10432 but it isn't simplejump_p.
10434 2013-10-10 Richard Biener <rguenther@suse.de>
10436 PR tree-optimization/58656
10437 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
10439 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
10441 * gimplify.c: Include expr.h and tm_p.h for targets with special
10442 va-arg padding requirements.
10444 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
10446 * tree-flow.h: Move some prototypes to gimple.h.
10447 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
10448 * gimple.h: Relocate some prototypes from tree-flow.h
10449 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
10450 Move to gimplify.c.
10451 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
10452 (build_va_arg_indirect_ref): Relocate and make static.
10453 (std_gimplify_va_arg_expr): Relocate here.
10454 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
10455 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
10457 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10459 * doc/md.texi: Document the mnemonic attribute.
10461 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10464 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
10465 (set_attr_alternative x ...) when searching for user defined
10466 mnemonic attribute.
10468 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
10470 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
10472 2013-10-09 Easwaran Raman <eraman@google.com>
10474 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
10475 * cfgexpand.c (defer_stack_allocation): ...use here
10476 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
10478 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
10480 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
10481 (operand_equal_for_value_replacement): New function, extracted from
10482 value_replacement and enhanced to catch more cases.
10483 (value_replacement): Use operand_equal_for_value_replacement.
10485 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
10487 * loop-doloop.c (doloop_modify, doloop_optimize): Use
10488 get_max_loop_iterations.
10490 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10492 * config/arm/aarch-common.c (arm_early_load_addr_dep):
10493 Place comment above function.
10495 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
10497 * tree-flow.h: Remove all remaining prototypes, enums and structs that
10498 are not related to tree-cfg.c.
10499 * tree-ssa-address.h: New file. Relocate prototypes.
10500 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
10501 (addr_for_mem_ref): New. Combine call to get_address_description and
10502 return addr_for_mem_ref.
10503 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
10504 * tree-ssa-live.h: Adjust prototypes.
10505 * passes.c: Include tree-ssa-live.h.
10506 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
10507 * graphite.c (graphite_transform_loops): Make static.
10508 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
10509 make_pass_graphite, pass_data_graphite_transforms,
10510 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
10511 * ipa-pure-const.c (warn_function_noreturn): Make static.
10512 (execute_warn_function_noreturn, gate_warn_function_noreturn,
10513 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
10514 Relocate from tree-cfg.c
10515 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
10517 (execute_warn_function_noreturn, gate_warn_function_noreturn,
10518 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
10519 Move to ipa-pure-const.c.
10520 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
10521 Relocate from tree-optimize.c.
10522 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
10523 make_pass_fixup_cfg): Move to tree-cfg.c.
10524 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
10525 Relocate some prototypes.
10526 * tree-data-ref.h (tree_check_data_deps) Add prototype.
10527 * tree-dump.c (dump_function_to_file): Remove prototype.
10528 Add tree-flow.h to the include file.
10529 * tree-dump.h: Remove prototype.
10530 * tree-parloops.h: New File. Add prototypes.
10531 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
10532 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
10533 from tree-ssa-loop.c.
10534 * tree-predcom.c (run_tree_predictive_commoning,
10535 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
10536 Relocate here from tree-ssa-loop.c.
10537 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
10538 ssa_name_values.release ().
10539 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
10540 (ssa_name_values): Relocate from tree-flow.h.
10541 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
10542 * tree-ssa-loop.c (run_tree_predictive_commoning,
10543 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
10544 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
10545 make_pass_graphite, pass_data_graphite_transforms,
10546 make_pass_graphite_transforms, gate_tree_parallelize_loops,
10547 tree_parallelize_loops, pass_data_parallelize_loops,
10548 make_pass_parallelize_loops): Move to other files.
10549 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
10551 * tree.h: Remove prototypes from tree-address.c.
10553 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
10555 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
10556 (struct int_tree_map): Move to tree-hasher.h
10557 (SCALE, LABEL, PERCENT): Move to gimple.h
10558 * tree-flow-inline.h: Delete. Move functions to other files.
10559 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
10560 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
10561 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
10562 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
10563 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
10564 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
10565 * tree-hasher.h: Don't include tree-flow.h.
10566 (struct int_tree_map): Relocate from tree-flow.h.
10567 * tree-sra.c (contains_view_convert_expr_p): Relocate from
10568 tree-flow-inline.h and make static.
10569 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
10570 tree-flow-inline.h.
10571 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
10572 tree-flow-inline.h and make static.
10573 * tree.h (is_global_var, may_be_aliased): Relocate from
10574 tree-flow-inline.h.
10575 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
10576 * value-prof.c: No longer include tree-flow-inline.h.
10577 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
10579 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
10581 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
10582 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
10583 (enum move_pos): Move to tree-ssa-loop-im.h
10584 * cfgloop.h: Move some prototypes.
10585 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
10586 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
10587 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
10588 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
10589 (loop_containing_stmt): Relocate from tree-flow-inline.h.
10590 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
10591 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
10592 (enum move_pos): Relocate here.
10593 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
10595 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
10596 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
10597 make_pass_lim): Relocate here from tree-ssa-loop.c.
10598 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
10600 (loop_edge_to_cancel, unloop_loops): Make static.
10601 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
10602 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
10603 (tree_complete_unroll, gate_tree_complete_unroll,
10604 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
10605 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
10606 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
10607 * tree-ssa-loop-ivopts.c: Remove local prototypes.
10608 (stmt_invariant_in_loop_p): Remove unused function.
10609 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
10610 * tree-ssa-loop-manip.h: New file. Add prototypes.
10611 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
10612 (gcov_type_to_double_int): Move to cfgloop.h.
10613 (double_int_cmp, bound_index,
10614 estimate_numbers_of_iterations_loop): Make static.
10615 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
10616 (max_loop_iterations): Factor out get_max_loop_iterations.
10617 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
10619 * tree-ssa-loop-niter.h: New file. Add prototypes.
10620 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
10621 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
10622 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
10623 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
10624 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
10625 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
10626 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
10627 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
10628 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
10629 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
10630 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
10631 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
10632 pass_data_complete_unroll, make_pass_complete_unroll,
10633 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
10634 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
10635 tree-ssa-loop-ivcanon.c.
10636 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
10637 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
10638 tree-ssa-loop-prefetch.c.
10639 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
10640 tree-ssa-loop-im.c.
10641 (get_lsm_tmp_name): Relocate and add suffix parameter.
10642 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
10643 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
10644 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
10645 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
10646 (get_estimated_loop_iterations): Factor out accessor from
10647 estimated_loop_iterations in tree-ssa-loop-niter.c.
10648 (get_max_loop_iterations): Factor out accessor from
10649 _max_loop_iterations in tree-ssa-niter.c.
10650 * loop-unroll.c (decide_unroll_constant_iterations,
10651 decide_unroll_runtime_iterations, decide_peel_simple,
10652 decide_unroll_stupid): Use new get_* accessors.
10654 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
10656 PR tree-optimization/20318
10657 * doc/extend.texi (returns_nonnull): New function attribute.
10658 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
10660 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
10661 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
10663 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
10665 PR middle-end/58570
10666 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
10667 false if both components are bitfields.
10669 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10671 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
10672 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
10673 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
10674 * config/aarch64/aarch64.h
10675 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
10676 * config/aarch64/aarch64-simd-builtins.def
10677 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
10679 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10681 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
10683 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10685 * config/aarch64/arm_neon.h (vdiv_f64): Added.
10687 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10689 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
10690 (vneg_f64): New intrinsic.
10691 (vneg_s8): Asm replaced with C.
10692 (vneg_s16): Likewise.
10693 (vneg_s32): Likewise.
10694 (vneg_s64): New intrinsic.
10695 (vnegq_f32): Asm replaced with C.
10696 (vnegq_f64): Likewise.
10697 (vnegq_s8): Likewise.
10698 (vnegq_s16): Likewise.
10699 (vnegq_s32): Likewise.
10700 (vnegq_s64): Likewise.
10702 2013-10-09 Renlin Li <Renlin.Li@arm.com>
10704 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
10706 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10708 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
10709 packed stack special handling.
10710 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
10711 back to fixed stack slots for FPRs saved due to stdarg.
10713 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10715 * config/s390/s390.c (s390_frame_info): Restructure function.
10717 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10719 * config/s390/s390.c (struct s390_frame_layout): New field
10721 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
10722 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
10723 regs_ever_clobbered to char*.
10724 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
10725 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
10726 (s390_register_info): Enable FPR save slots. Move/Copy some
10727 functionality into ...
10728 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
10729 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
10731 (s390_frame_info): Do gpr slot allocation here now. stdarg does
10732 not imply a stack frame.
10733 (s390_init_frame_layout): Remove variable clobbered_regs.
10734 (s390_update_register_info): Remove function.
10735 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
10736 cannot be used for register renaming.
10737 (s390_hard_regno_scratch_ok): New function.
10738 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
10739 (s390_initial_elimination_offset): Change offset calculation of
10740 the return address pointer.
10741 (save_gprs): Deal with only r6 being saved from the call-saved regs.
10742 (restore_gprs): Set frame related flag.
10743 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
10744 (s390_emit_prologue): Call s390_register_info instead of
10745 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
10746 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
10747 (s390_optimize_prologue): Call s390_optimize_register_info.
10748 Try to remove also FPR slot save/restore INSNs. Remove frame
10749 related flags from restore INSNs.
10751 2013-10-08 DJ Delorie <dj@redhat.com>
10753 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
10756 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
10757 avoid conflict with the MI use of %c.
10758 * config/rl78/rl78-real.md: change %c to %C throughout.
10759 * config/rl78/rl78-virt.md: Likewise.
10761 2013-10-08 Jan Hubicka <jh@suse.cz>
10763 * config/i386/i386.c (ix86_option_override_internal): Switch
10764 to SSE math for -ffast-math when target ISA supports SSE2.
10766 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
10768 * tree-flow.h: Remove some prototypes.
10769 * tree.h: Remove some protypes, add a couple.
10770 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
10771 using_eh_for_cleanups_p): Add interface routines for front ends.
10772 * tree-eh.h: New file. Add protoptyes.
10773 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
10774 (add_stmt_to_eh_lp_fn): Make static.
10775 (lower_try_finally): Use new using_eh_for_cleanups_p.
10776 * emit-rtl.c: Include tree-eh.h.
10777 * gimple.h: Include tree-eh.h.
10779 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
10781 PR tree-optimization/58480
10782 * tree-vrp.c (infer_nonnull_range): New function.
10783 (infer_value_range): Call infer_nonnull_range.
10785 2013-10-08 Dehao Chen <dehao@google.com>
10787 PR tree-optimization/58619
10788 * tree-inline.c (copy_phis_for_bb): Combine location data
10791 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10794 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
10795 RTX_FRAME_RELATED_P on INSN.
10797 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10799 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
10800 (altivec_expand_vec_perm_const): Call it.
10802 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10804 * config/rs6000/vector.md (mov<mode>): Emit permuted move
10805 sequences for LE VSX loads and stores at expand time.
10806 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
10808 * config/rs6000/rs6000.c (rs6000_const_vec): New.
10809 (rs6000_gen_le_vsx_permute): New.
10810 (rs6000_gen_le_vsx_load): New.
10811 (rs6000_gen_le_vsx_store): New.
10812 (rs6000_gen_le_vsx_move): New.
10813 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
10814 (*vsx_le_perm_load_v4si): New.
10815 (*vsx_le_perm_load_v8hi): New.
10816 (*vsx_le_perm_load_v16qi): New.
10817 (*vsx_le_perm_store_v2di): New.
10818 (*vsx_le_perm_store_v4si): New.
10819 (*vsx_le_perm_store_v8hi): New.
10820 (*vsx_le_perm_store_v16qi): New.
10821 (*vsx_xxpermdi2_le_<mode>): New.
10822 (*vsx_xxpermdi4_le_<mode>): New.
10823 (*vsx_xxpermdi8_le_V8HI): New.
10824 (*vsx_xxpermdi16_le_V16QI): New.
10825 (*vsx_lxvd2x2_le_<mode>): New.
10826 (*vsx_lxvd2x4_le_<mode>): New.
10827 (*vsx_lxvd2x8_le_V8HI): New.
10828 (*vsx_lxvd2x16_le_V16QI): New.
10829 (*vsx_stxvd2x2_le_<mode>): New.
10830 (*vsx_stxvd2x4_le_<mode>): New.
10831 (*vsx_stxvd2x8_le_V8HI): New.
10832 (*vsx_stxvd2x16_le_V16QI): New.
10834 2013-10-07 Renlin Li <Renlin.Li@arm.com>
10836 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
10838 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10840 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
10841 loop to work also for 31bit ABI.
10842 Save the stack pointer for frame_size > 0.
10844 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10846 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
10847 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
10848 constraint letters from expanders.
10849 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
10850 retry count to general_operand.
10851 ("tabort"): Give operand 0 a mode.
10852 ("tabort_1"): Add mode and constraint letter for operand 0.
10853 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
10855 2013-10-04 Jeff Law <law@redhat.com>
10857 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
10859 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
10861 (thread_across_edge): Here. Call it.
10863 2013-10-04 Cary Coutant <ccoutant@google.com>
10865 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
10866 discarding a location list expression (or a piece of one).
10868 2013-10-03 Jan Hubicka <jh@suse.cz>
10870 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
10871 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
10872 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
10874 2013-10-03 Jan Hubicka <jh@suse.cz>
10876 * config/i386/i386.c (ix86_option_override_internal): Do not enable
10877 accumulate-outgoing-args when producing unwind info.
10879 2013-10-03 Wei Mi <wmi@google.com>
10881 * lra-constraints.c (insert_move_for_subreg): New function
10882 extracted from simplify_operand_subreg.
10883 (simplify_operand_subreg): Add reload for paradoxical subreg.
10885 2013-10-03 Rong Xu <xur@google.com>
10887 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
10888 the candidate of builtin_expect such that we should fix the
10889 size/time estimation.
10890 (estimate_function_body_sizes): Do the acutally size/time fix-up
10891 for builtin_expect.
10893 2013-10-03 Rong Xu <xur@google.com>
10895 * predict.c (tree_predict_by_opcode): Get the probability
10896 for builtin_expect from param builtin_expect_probability.
10897 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
10898 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
10899 * doc/invoke.texi: Add documentation for builtin-expect-probability.
10901 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
10904 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
10905 * calls.c (alloca_call_p): Use get_callee_fndecl.
10906 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
10907 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
10909 (vrp_visit_stmt): Remove duplicated code.
10911 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10913 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
10914 ceildf2, btruncdf2, instead of vsx_* name.
10916 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
10917 iterators to only do V2DF and V4SF here. Move the DF code to
10918 rs6000.md where it is combined with SF mode. Replace <VSv> with
10919 just 'v' since only vector operations are handled with these insns
10920 after moving the DF support to rs6000.md.
10921 (vsx_sub<mode>3): Likewise.
10922 (vsx_mul<mode>3): Likewise.
10923 (vsx_div<mode>3): Likewise.
10924 (vsx_fre<mode>2): Likewise.
10925 (vsx_neg<mode>2): Likewise.
10926 (vsx_abs<mode>2): Likewise.
10927 (vsx_nabs<mode>2): Likewise.
10928 (vsx_smax<mode>3): Likewise.
10929 (vsx_smin<mode>3): Likewise.
10930 (vsx_sqrt<mode>2): Likewise.
10931 (vsx_rsqrte<mode>2): Likewise.
10932 (vsx_fms<mode>4): Likewise.
10933 (vsx_nfma<mode>4): Likewise.
10934 (vsx_copysign<mode>3): Likewise.
10935 (vsx_btrunc<mode>2): Likewise.
10936 (vsx_floor<mode>2): Likewise.
10937 (vsx_ceil<mode>2): Likewise.
10938 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
10939 (vsx_sminsf3): Likewise.
10940 (vsx_fmadf4): Likewise.
10941 (vsx_fmsdf4): Likewise.
10942 (vsx_nfmadf4): Likewise.
10943 (vsx_nfmsdf4): Likewise.
10944 (vsx_cmpdf_internal1): Likewise.
10946 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
10947 simpler to select whether a target has SPE or traditional floating
10948 point support in iterators.
10949 (TARGET_DF_SPE): Likewise.
10950 (TARGET_SF_FPR): Likewise.
10951 (TARGET_DF_FPR): Likewise.
10952 (TARGET_SF_INSN): Macros to say whether floating point support
10953 exists for a given operation for expanders.
10954 (TARGET_DF_INSN): Likewise.
10956 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
10957 combining of SF/DF mode operations, using both traditional and VSX
10965 (abs<mode>2): Combine SF/DF modes using traditional floating point
10966 instructions. Add support for using the upper DF registers with
10967 VSX support, and SF registers with power8-vector support. Update
10968 expanders for operations supported by both the SPE and traditional
10969 floating point units.
10970 (abs<mode>2_fpr): Likewise.
10971 (nabs<mode>2): Likewise.
10972 (nabs<mode>2_fpr): Likewise.
10973 (neg<mode>2): Likewise.
10974 (neg<mode>2_fpr): Likewise.
10975 (add<mode>3): Likewise.
10976 (add<mode>3_fpr): Likewise.
10977 (sub<mode>3): Likewise.
10978 (sub<mode>3_fpr): Likewise.
10979 (mul<mode>3): Likewise.
10980 (mul<mode>3_fpr): Likewise.
10981 (div<mode>3): Likewise.
10982 (div<mode>3_fpr): Likewise.
10983 (sqrt<mode>3): Likewise.
10984 (sqrt<mode>3_fpr): Likewise.
10985 (fre<Fs>): Likewise.
10986 (rsqrt<mode>2): Likewise.
10987 (cmp<mode>_fpr): Likewise.
10988 (smax<mode>3): Likewise.
10989 (smin<mode>3): Likewise.
10990 (smax<mode>3_vsx): Likewise.
10991 (smin<mode>3_vsx): Likewise.
10992 (negsf2): Delete SF operations that are merged with DF.
10993 (abssf2): Likewise.
10994 (addsf3): Likewise.
10995 (subsf3): Likewise.
10996 (mulsf3): Likewise.
10997 (divsf3): Likewise.
10999 (fmasf4_fpr): Likewise.
11000 (fmssf4_fpr): Likewise.
11001 (nfmasf4_fpr): Likewise.
11002 (nfmssf4_fpr): Likewise.
11003 (sqrtsf2): Likewise.
11004 (rsqrtsf_internal1): Likewise.
11005 (smaxsf3): Likewise.
11006 (sminsf3): Likewise.
11007 (cmpsf_internal1): Likewise.
11008 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
11009 (negdf2): Delete DF operations that are merged with SF.
11010 (absdf2): Likewise.
11011 (nabsdf2): Likewise.
11012 (adddf3): Likewise.
11013 (subdf3): Likewise.
11014 (muldf3): Likewise.
11015 (divdf3): Likewise.
11017 (rsqrtdf_internal1): Likewise.
11018 (fmadf4_fpr): Likewise.
11019 (fmsdf4_fpr): Likewise.
11020 (nfmadf4_fpr): Likewise.
11021 (nfmsdf4_fpr): Likewise.
11022 (sqrtdf2): Likewise.
11023 (smaxdf3): Likewise.
11024 (smindf3): Likewise.
11025 (cmpdf_internal1): Likewise.
11026 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
11027 (btrunc<mode>2): Delete separate expander, and combine with the
11028 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
11029 (btrunc<mode>2_fpr): Likewise.
11030 (ceil<mode>2): Likewise.
11031 (ceil<mode>2_fpr): Likewise.
11032 (floor<mode>2): Likewise.
11033 (floor<mode>2_fpr): Likewise.
11034 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
11035 Add support for using the upper registers with VSX and
11036 power8-vector. Move insns to be closer to the define_expands. On
11037 VSX systems, prefer the traditional form of FMA over the VSX
11038 version, since the traditional form allows the target not to
11039 overlap with the inputs.
11040 (fms<mode>4_fpr): Likewise.
11041 (nfma<mode>4_fpr): Likewise.
11042 (nfms<mode>4_fpr): Likewise.
11044 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11045 Richard Earnshaw <richard.earnshaw@arm.com>
11047 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
11048 (struct mult_cost_table): Likewise.
11049 (struct mem_cost_table): Likewise.
11050 (struct fp_cost_table): Likewise.
11051 (struct vector_cost_table): Likewise.
11052 (cpu_cost_table): Likewise.
11053 * config/arm/arm.opt (mold-rts-costs): New option.
11054 (mnew-generic-costs): Likewise.
11055 * config/arm/arm.c (generic_extra_costs): New table.
11056 (cortexa15_extra_costs): Likewise.
11057 (arm_slowmul_tune): Use NULL as new costs.
11058 (arm_fastmul_tune): Likewise.
11059 (arm_strongarm_tune): Likewise.
11060 (arm_xscale_tune): Likewise.
11061 (arm_9e_tune): Likewise.
11062 (arm_v6t2_tune): Likewise.
11063 (arm_cortex_a5_tune): Likewise.
11064 (arm_cortex_a9_tune): Likewise.
11065 (arm_v6m_tune): Likewise.
11066 (arm_fa726te_tune): Likewise.
11067 (arm_cortex_a15_tune): Use cortex15_extra_costs.
11068 (arm_cortex_tune): Use generict_extra_costs.
11069 (shifter_op_p): New function.
11070 (arm_unspec_cost): Likewise.
11071 (LIBCALL_COST): Define.
11072 (arm_new_rtx_costs): New function.
11073 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
11074 table is available. Use old costs otherwise unless mnew-generic-costs
11076 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
11077 (cpu_cost_table): Declare.
11079 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
11082 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
11083 (*subs_mul_imm_<mode>)
11084 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
11085 (*sub_<shift>_<mode>)
11086 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
11087 Remove k constraint.
11089 2013-10-03 Ian Bolton <ian.bolton@arm.com>
11091 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
11093 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
11095 2013-10-02 Teresa Johnson <tejohnson@google.com>
11097 * predict.c (probably_never_executed): New function.
11098 (probably_never_executed_bb_p): Invoke probably_never_executed.
11099 (probably_never_executed_edge_p): Ditto.
11100 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
11101 Treat profile insanities conservatively.
11103 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
11105 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
11107 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
11109 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
11110 use it. Use smaller increase for scratch. Don't increase reject
11111 for early clobber scratch.
11112 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
11113 setting eliminated regs except setting fp from hfp.
11114 (lra_eliminate): Check lra_insn_recog_data on NULL.
11116 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11119 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
11120 setting -mvsx-timode by default until the underlying problem is fixed.
11121 (RS6000_CPU, power7 defaults): Likewise.
11123 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
11125 * config/x-linux (host-linux.o): Remove header dependencies.
11126 Use $(COMPILE) and $(POSTCOMPILE).
11127 * config/t-linux-android (linux-android.o): Ditto.
11129 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
11131 * Makefile.in (expmed.o-warn): Remove.
11133 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
11135 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
11136 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
11138 2013-10-02 Teresa Johnson <tejohnson@google.com>
11140 * dojump.c (do_jump_1): Divide probability between
11141 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
11143 2013-10-02 Tom Tromey <tromey@redhat.com>
11145 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
11147 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
11149 * tree-flow.h: Remove some prototypes.
11150 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
11151 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
11152 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
11153 mark_virtual_phi_result_for_renaming): Relocate here.
11154 * tree-into-ssa.h: Add prototypes.
11155 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
11156 single_pred_before_succ_order.
11157 (blocks_in_phiopt_order): Rename and move to cfganal.c.
11158 (nonfreeing_call_p) Move to gimple.c.
11159 * cfganal.c (single_pred_before_succ_order): Move and renamed from
11161 * basic-block.h (single_pred_before_succ_order): Add prototype.
11162 * gimple.c (nonfreeing_call_p): Relocate here.
11163 * gimple.h: Add prototype.
11164 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
11165 * tree-ssa-dom.h: New file. Relocate prototypes here.
11166 * tree-ssa.h: Include tree-ssa-dom.h.
11168 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
11170 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
11171 Use $(COMPILE) and $(POSTCOMPILE).
11173 * config/alpha/x-alpha (driver-alpha.o): Ditto.
11175 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
11177 * tree-flow.h: Remove some prototypes.
11178 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
11179 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
11180 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
11181 propagate_tree_value*): Move from here to...
11182 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
11183 propagate_tree_value*): Relocate here.
11184 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
11185 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
11186 * gimple-fold.c: Remove gimple-fold.h from include list.
11187 * tree-vrp.c: Remove gimple-fold.h from include list.
11188 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
11189 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
11190 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
11191 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
11192 * sese.c: Add tree-ssa-propagate.h to include list.
11194 2013-10-02 Richard Biener <rguenther@suse.de>
11196 * tree-loop-distribution.c: Include tree-vectorizer.h for
11197 find_loop_location.
11198 (enum partition_kind): Remove PKIND_REDUCTION.
11199 (struct partition_s): Remove has_writes member, add reduction_p member.
11200 (partition_alloc): Adjust.
11201 (partition_builtin_p): Likewise.
11202 (partition_has_writes): Remove.
11203 (partition_reduction_p): New function.
11204 (partition_merge_into): Likewise.
11205 (generate_code_for_partition): Commonize builtin partition
11207 (rdg_cannot_recompute_vertex_p): Remove.
11208 (already_processed_vertex_p): Likewise.
11209 (rdg_flag_vertex): Do not set has_writes.
11210 (classify_partition): Adjust.
11211 (rdg_build_partitions): Do not set has_writes, treat all
11212 partitions as useful.
11213 (distribute_loop): Record number of library calls generated. Adjust.
11214 (tree_loop_distribution): Report number of loops and library
11215 calls generated as opt-info.
11217 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
11219 * tree-flow.h: Include new .h files. Move prototypes.
11220 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
11221 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
11222 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
11223 * tree-pretty-print.h: Add prototypes from tree-flow.h.
11224 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
11225 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
11226 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
11227 * tree.h (get_ref_base_and_extent): Move prototype out.
11228 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
11230 * gimple-low.h: New File. Add prototypes from tree-flow.h.
11231 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
11232 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
11233 * tree-scalar-evolution.c: Include tree.h.
11234 * sese.c: Include tree.h.
11235 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
11236 * dwarf2out.c: Include tree-dfa.h.
11237 * tree-chrec.c: Include tree.h.
11238 * tree-data-ref.c: Include tree.h.
11240 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
11242 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
11245 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11247 * config/t-sol2 (sol2-c.o): Remove header dependencies.
11248 Use $(COMPILE) and $(POSTCOMPILE).
11249 (sol2-cxx.o): Likewise.
11250 (sol2-stubs.o): Likewise.
11251 (sol2.o): Likewise.
11252 * config/x-solaris (host-solaris.o): Likewise.
11254 * config/sparc/t-sparc (sparc.o): Remove.
11255 (sparc-c.o): Remove header dependencies.
11256 Use $(COMPILE) and $(POSTCOMPILE).
11257 * config/sparc/x-sparc: Likewise.
11259 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
11261 * config/arc/arc-opts.h: Add 2013 to Copyright years.
11262 * config/arc/arc700.md: Likewise.
11263 * config/arc/arc-modes.def: Likewise.
11264 * config/arc/arc-simd.h: Likewise.
11265 * config/arc/t-arc-uClibc: Likewise.
11266 * config/arc/t-arc-newlib: Likewise.
11268 2013-10-02 Renlin Li <renlin.li@arm.com>
11270 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
11272 (aarch64_expand_epilogue): Likewise.
11274 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11275 Yufeng Zhang <yufeng.zhang@arm.com>
11277 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
11279 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
11280 'base_in' represent a conversion and legal_cast_p_1 holds; set
11281 'base_in' with the returned value from get_unwidened.
11283 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11285 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
11286 plus_constant is not used.
11288 2013-10-01 Wei Mi <wmi@google.com>
11290 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
11291 * config/i386/i386.md: Add define_peephole2 to
11292 break partial reg stall for cvtss2sd/cvtsd2ss.
11294 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
11296 * config/arc/arc.c (pass_arc_ifcvt::clone):
11297 Update for ctxt_ -> m_ctxt change.
11299 2013-10-01 Jeff Law <law@redhat.com>
11301 * tree-ssa-threadupdate.c (struct redirection_data): Delete
11302 outgoing_edge and intermediate_edge fields. Instead store the path.
11303 (redirection_data::hash): Hash on the last edge's destination index.
11304 (redirection_data::equal): Check the entire thread path.
11305 (lookup_redirectio_data): Corresponding changes.
11306 (create_edge_and_update_destination_phis): Likewise.
11307 (thread_single_edge): Likewise.
11309 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
11310 Diego Novillo <dnovillo@google.com>
11312 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
11313 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
11314 (vld32wh_insn, vld32wl_insn): Delete commented-out old
11315 versions of these patterns.
11317 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
11318 (__builtin_arc_aligned): Likewise.
11320 * config/arc/arc.md: Expand adc_0 comment stating the intended
11321 purpose and why it isn't ready.
11322 Replace commented out call_value_via_label_mixed with a
11323 plain comment about bl_s.
11325 * config/arc/arc.c (stdio.h): Don't include directly.
11326 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
11327 Remove if (1) condition.
11328 (arc_encode_section_info): Fix comment.
11330 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
11332 * config/arc/arc.c (arc_conditional_register_usage):
11333 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
11334 Also set reg_alloc_order for DMA config regs.
11336 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
11337 Jeremy Bennett <jeremy.bennett@embecosm.com>
11339 * doc/install.texi (--with-cpu): Mention ARC.
11340 (arc-*-elf32): New paragraph.
11341 (arc-linux-uclibc): Likewise.
11342 * doc/md.texi (Machine Constraints): Add ARC part.
11343 * doc/invoke.texi: (menu): Add ARC Options.
11344 (Machine Dependent Options) <ARC Options>: Add synopsis.
11345 (node ARC Options): Add.
11346 * doc/extend.texi (long_call / short_call attribute): Add ARC.
11347 (ARC Built-in Functions): New section defining
11348 generic ARC built-in functions.
11349 (ARC SIMD Built-in Functions): New section defining SIMD specific
11350 built-in functions.
11351 (Declaring Attributes of Functions): Extended
11352 description of short_call and long_call attributes for ARC and
11353 added index entries.
11355 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
11356 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
11357 Joern Rennecke <joern.rennecke@embecosm.com>
11358 Muhammad Khurram Riaz <khurram.riaz@arc.com>
11359 Brendan Kehoe <brendan@zen.org>
11360 Michael Eager <eager@eagercon.com>
11361 Simon Cook <simon.cook@embecosm.com>
11362 Jeremy Bennett <jeremy.bennett@embecosm.com>
11364 * config/arc, common/config/arc: New directories.
11366 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
11367 Brendan Kehoe <brendan@zen.org>
11368 Simon Cook <simon.cook@embecosm.com>
11370 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
11372 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
11374 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
11375 * tree-ssa-coalesce.h: New. Move prototype to here.
11376 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
11377 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
11378 (gimple_can_coalesce_p): Move to...
11379 * gimple.c (gimple_can_coalesce_p): Here.
11381 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
11383 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
11384 (dump_decl_set): Move to gimple.c.
11385 * gimple.h: Don't include tree-ssa-operands.h.
11386 (dump_decl_set): Add prototype.
11387 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
11388 Move to gimple-ssa.h.
11389 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
11390 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
11391 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
11392 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
11393 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
11395 (dump_decl_set): Relocate here.
11396 * gimple-ssa.h: New file.
11397 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
11398 Relocate from gimple.h.
11399 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
11400 * tree-ssa-operands.c (swap_ssa_operands): Rename from
11401 swap_tree_operands and remove non-ssa path.
11402 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
11403 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
11405 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
11406 vect_is_simple_reduction_1): Use swap_ssa_operands.
11407 * tree-flow.h: Move various prototypes to tree-phinodes.h.
11408 (enum need_phi_state): Move to tree-into-ssa.c.
11409 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
11410 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
11411 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
11412 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
11413 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
11414 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
11415 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
11416 num_imm_uses): Move to ssa-iterators.h.
11417 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
11418 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
11420 (op_iter_done, op_iter_next_def, op_iter_next_tree,
11421 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
11422 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
11423 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
11424 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
11425 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
11426 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
11427 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
11428 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
11429 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
11430 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
11431 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
11432 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
11433 (set_phi_nodes): Move to tree-phinodes.h.
11434 * tree-ssa-operands.h (enum ssa_op_iter_type,
11435 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
11436 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
11437 (dump_decl_set): Remove prototype.
11438 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
11439 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
11440 (set_phi_nodes): Relocate from tree-flow-inline.h.
11441 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
11443 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
11444 include list. Temporarily add gimple.h to include list.
11445 * ssa-iterators.h: New file.
11446 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
11447 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
11448 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
11449 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
11450 Relocate from tree-ssa-operands.h.
11451 (delink_imm_use, link_imm_use_to_list, link_imm_use,
11452 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
11453 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
11454 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
11455 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
11456 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
11457 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
11458 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
11459 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
11460 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
11461 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
11462 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
11463 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
11464 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
11465 Relocate from tree-flow-inline.h.
11466 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
11468 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
11471 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
11472 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
11473 Insert '\t' to output template.
11474 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
11475 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
11476 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
11477 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
11479 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
11481 * doc/install.texi (Host/target specific installation notes for GCC):
11482 Put @anchor before @heading.
11483 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
11484 Use @email for email addresses.
11486 2013-10-01 Jeff Law <law@redhat.com>
11488 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
11489 a vec. Only delete the path if we create one without successfully
11490 registering a jump thread.
11491 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
11493 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
11494 (paths): New vector of jump threading paths.
11495 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
11496 (THREAD_PATH): New accessor macro for the entire thread path.
11497 (lookup_redirection_data): Get intermediate and final outgoing edge
11498 from the thread path.
11499 (create_edge_and_update_destination_phis): Copy the threading path.
11500 (ssa_fix_duplicate_block_edges): Get edges and block types from the
11501 jump threading path.
11502 (ssa_redirect_edges): Get edges and block types from the jump threading
11503 path. Free the path vector.
11504 (thread_block): Get edges from the jump threading path. Look at the
11505 entire path to see if we thread to a loop exit. If we cancel a jump
11506 thread request, then free the path vector.
11507 (thread_single_edge): Get edges and block types from the jump threading
11508 path. Free the path vector.
11509 (thread_through_loop_header): Get edges and block types from the jump
11510 threading path. Free the path vector.
11511 (mark_threaded_blocks): Iterate over the vector of paths and store
11512 the path on the appropriate edge. Get edges and block types from the
11513 jump threading path.
11514 (mark_threaded_blocks): Get edges and block types from the jump
11515 threading path. Free the path vector.
11516 (thread_through_all_blocks): Use the vector of paths rather than
11517 a vector of 3-edge sets.
11518 (register_jump_thread): Accept pointer to a path vector rather
11519 than the path vector itself. Store the path vector for later use.
11522 2013-10-01 Jakub Jelinek <jakub@redhat.com>
11523 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11526 * config/s390/s390.c (s390_split_branches): Modify check for table
11528 (s390_chunkify_start): Rearrange table jump insn check in order to
11529 deal with compare and branch insns correctly.
11531 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
11535 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
11536 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
11537 define_insn_and_split.
11538 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
11539 (shiftsi3_compare): New pattern.
11540 (rrx): New pattern.
11541 * config/arm/unspecs.md (UNSPEC_RRX): New.
11543 2013-10-01 Alan Modra <amodra@gmail.com>
11545 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
11546 casing inout operands.
11548 2013-10-01 Richard Biener <rguenther@suse.de>
11550 PR tree-optimization/58553
11551 * tree-loop-distribution.c (struct partition_s): Add niter member.
11552 (classify_partition): Populate niter member for the partition
11553 and properly identify whether the relevant store happens before
11554 or after the loop exit.
11555 (generate_memset_builtin): Use niter member from the partition.
11556 (generate_memcpy_builtin): Likewise.
11558 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
11560 * vec.h (vec_prefix, vec): Prefix member names with "m_".
11561 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
11563 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
11565 * basic-block.h (edge_list): Prefix member names with "m_".
11566 * context.h (context): Likewise.
11567 * domwalk.h (dom_walker): Likewise.
11568 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
11569 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
11570 * hash-table.h (hash_table): Likewise.
11571 * machmode.h (bit_field_mode_iterator): Likewise.
11572 * pass_manager.h (pass_list): Likewise.
11573 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
11574 * tree-pass.h (pass_data): Likewise.
11575 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
11576 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
11577 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
11578 * asan.c (pass_data_asan): Update accordingly.
11579 * cfganal.c (control_dependences::find_control_dependence): Likewise.
11580 (control_dependences::control_dependences): Likewise.
11581 (control_dependences::~control_dependences): Likewise.
11582 (control_dependences::~control_dependences): Likewise.
11583 (control_dependences::get_edges_dependent_on): Likewise.
11584 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
11585 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
11586 * context.c (gcc::context::context): Likewise.
11587 * cprop.c (pass_rtl_cprop::clone): Likewise.
11588 * domwalk.c (dom_walker::walk): Likewise.
11589 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
11590 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
11591 * mode-switching.c (pass_mode_switching::clone): Likewise.
11592 * passes.c (opt_pass::opt_pass): Likewise.
11593 (pass_manager::pass_manager): Likewise.
11594 * predict.c (pass_strip_predict_hints::clone): Likewise.
11595 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
11596 (pass_split_all_insns::clone): Likewise.
11597 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
11599 (bit_field_mode_iterator::next_mode): Likewise.
11600 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
11601 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
11602 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
11603 * tree-complex.c (pass_lower_complex::clone): Likewise.
11604 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
11605 * tree-object-size.c (pass_object_sizes::clone): Likewise.
11606 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
11607 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
11608 (pass_fold_builtins::clone): Likewise.
11609 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
11610 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
11611 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
11612 (pass_cd_dce::clone): Likewise.
11613 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
11614 (pass_phi_only_cprop::clone): Likewise.
11615 * tree-ssa-dse.c (pass_dse::clone): Likewise.
11616 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
11617 * tree-ssa-loop.c (pass_lim::clone): Likewise.
11618 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
11619 * tree-ssa-pre.c (pass_fre::clone): Likewise.
11620 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
11621 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
11622 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
11623 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
11624 * tree-vrp.c (pass_vrp::clone): Likewise.
11625 * tsan.c (pass_tsan::clone): Likewise.
11627 2013-09-30 Jakub Jelinek <jakub@redhat.com>
11629 PR middle-end/58564
11630 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
11631 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
11633 PR middle-end/58564
11634 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
11635 optimization, punt if sign_bit_p looked through any zero extension.
11637 2013-09-30 Teresa Johnson <tejohnson@google.com>
11639 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
11640 Update redirected out edge count in joiner case.
11641 (ssa_redirect_edges): Common the joiner and non-joiner cases
11642 so that joiner case gets profile updates.
11644 2013-09-30 Richard Biener <rguenther@suse.de>
11646 PR tree-optimization/58554
11647 * tree-loop-distribution.c (classify_partition): Require
11648 unconditionally executed stores for memcpy and memset recognition.
11649 (tree_loop_distribution): Calculate dominance info.
11651 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
11653 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
11654 (NO_PROFILE_COUNTERS): Likewise.
11655 (PROFILE_HOOK): Likewise.
11656 (FUNCTION_PROFILER): Likewise.
11657 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
11659 2013-09-30 Iain Sandoe <iain@codesourcery.com>
11661 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
11662 calls and defines in TARGET_MACHO conditional.
11663 (load_macho_picbase_di): Likewise.
11664 (reload_macho_picbase): Likewise.
11665 (reload_macho_picbase_si): Likewise.
11666 (reload_macho_picbase_di): Likewise.
11667 (nonlocal_goto_receiver): Likewise.
11669 2013-09-30 Nick Clifton <nickc@redhat.com>
11671 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
11672 that use the MSP430X ISA.
11673 (msp430_option_override): Scan -mmcu command line option for any
11674 MCU name that supports the MSP430X ISA.
11675 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
11676 -mmcu options which enable the MSP430X ISA.
11678 2013-09-30 Richard Biener <rguenther@suse.de>
11680 PR middle-end/58532
11681 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
11682 before looking for setjmp-like calls.
11684 2013-09-29 Iain Sandoe <iain@codesourcery.com>
11687 * config/darwin-protos.h (machopic_get_function_picbase): New.
11688 * config/darwin.c (machopic_get_function_picbase): New.
11689 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
11690 label for a new func. (load_macho_picbase_di): Likewise.
11691 (reload_macho_picbase): New expand.
11692 (reload_macho_picbase_si): New insn.
11693 (reload_macho_picbase_di): New insn.
11694 (nonlocal_goto_receiver): New define and split.
11695 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
11696 (unspecv enum): Add UNSPECV_NLGR.
11698 2013-09-29 Iain Sandoe <iain@codesourcery.com>
11700 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
11701 that altivec registers are correctly sized on Darwin.
11703 2013-09-29 Iain Sandoe <iain@codesourcery.com>
11705 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
11706 darwin-driver.o): Use COMPILE and POSTCOMPILE.
11707 * config/x-darwin (host-darwin.o): Likewise.
11708 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
11709 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
11710 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
11712 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
11714 * doc/invoke.texi: Fix usage of @tie{} command.
11716 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
11718 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
11720 2013-09-28 Jan Hubicka <jh@suse.cz>
11722 * config/i386/x86-tune.def: Add documentation for each of the options;
11725 2013-09-28 Jan Hubicka <jh@suse.cz>
11727 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
11729 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
11730 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
11731 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
11732 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
11733 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
11735 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
11737 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
11738 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
11739 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
11740 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
11741 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
11742 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
11743 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
11744 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
11745 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
11746 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
11747 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
11748 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
11749 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
11750 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
11751 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
11752 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
11753 gimple.h, godump.c, graphite-clast-to-gimple.c,
11754 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
11755 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
11756 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
11757 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
11758 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
11759 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
11760 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
11761 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
11762 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
11763 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
11764 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
11765 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
11766 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
11767 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
11768 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
11769 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
11770 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
11771 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
11772 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
11773 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
11774 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
11775 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
11776 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
11777 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
11778 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11779 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11780 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
11781 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
11782 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11783 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11784 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11785 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
11786 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
11787 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
11788 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
11789 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
11790 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
11791 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
11792 whitespace before "(".
11794 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
11796 * expr.h (extract_bit_field): Remove packedp parameter.
11797 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
11798 from forward declaration.
11799 (store_split_bit_field): Remove packedp arg from calls to
11800 extract_fixed_bit_field.
11801 (extract_bit_field_1): Remove packedp parameter and packedp
11802 argument from recursive calls and calls to extract_fixed_bit_field.
11803 (extract_bit_field): Remove packedp parameter and corresponding
11804 arg to extract_bit_field_1.
11805 (extract_fixed_bit_field): Remove packedp parameter. Remove code
11807 (extract_split_bit_field): Remove packedp arg from call to
11808 extract_fixed_bit_field.
11809 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
11810 (copy_blkmode_from_reg): Likewise.
11811 (copy_blkmode_to_reg): Likewise.
11812 (read_complex_part): Likewise.
11813 (store_field): Likewise.
11814 (expand_expr_real_1): Likewise.
11815 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
11816 to extract_bit_field.
11817 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
11818 call to extract_bit_field.
11819 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
11820 call to extract_bit_field.
11821 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
11822 and special packedp behavior from -fstrict-volatile-bitfields
11825 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11827 * lra-eliminations.c (init_elim_table): Guard value_p.
11829 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
11831 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
11832 DFmode, DImode, and SFmode in the upper VSX registers based on the
11833 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
11834 if -mpower8-vector. Combine -mvsx-timode handling with the rest
11835 of the VSX register handling.
11837 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
11838 (f32_sv): Likewise.
11839 (zero_extendsidi2_lfiwzx): Add support for loading into the
11840 Altivec registers with -mpower8-vector. Use wu/wv constraints to
11841 only do VSX memory options on Altivec registers.
11842 (extendsidi2_lfiwax): Likewise.
11843 (extendsfdf2_fpr): Likewise.
11844 (mov<mode>_hardfloat, SF/SD modes): Likewise.
11845 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
11846 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
11847 (movdi_internal64): Likewise.
11849 2013-09-27 Xinliang David Li <davidxl@google.com>
11851 * opts.c (finish_options): Adjust parameters
11852 according to vect cost model.
11853 (common_handle_option): Set dynamic vect cost
11855 targhooks.c (default_add_stmt_cost): Compute stmt cost
11857 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
11858 Use helper function.
11859 * tree-vectorizer.h (unlimited_cost_model): New function.
11860 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
11861 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
11863 (vect_enhance_data_refs_alignment): Ditto.
11864 * flag-types.h: New enum.
11865 * common/config/i386/i386-common.c (ix86_option_init_struct):
11866 No need to initialize vect_cost_model flag.
11867 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
11870 2013-09-27 Diego Novillo <dnovillo@google.com>
11872 * gimple.h (enum ssa_mode): Remove.
11874 2013-09-27 Paulo Matos <pmatos@broadcom.com>
11876 * cfgloop.h (number_of_loops): Fix typo in check for null.
11878 2013-09-27 Jakub Jelinek <jakub@redhat.com>
11880 PR middle-end/58551
11881 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
11882 are children of outermost saved_cfun's loop, and set it up to
11883 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
11884 if loop != loop0 and SESE region contains bbs that belong to loop0.
11886 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
11888 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
11889 (binary_scale_code_p, get_base_term, get_index_term): New functions.
11890 (set_address_segment, set_address_base, set_address_index)
11891 (set_address_disp): Accept the argument unconditionally.
11892 (baseness): Remove must_be_base_p and must_be_index_p checks.
11893 (decompose_normal_address): Classify as much as possible in the
11896 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
11898 * cse.c (count_reg_usage): Handle INT_LIST.
11899 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
11900 * reginfo.c (reg_scan_mark_refs): Likewise.
11901 * reload1.c (eliminate_regs_1): Likewise.
11903 2013-09-27 Iain Sandoe <iain@codesourcery.com>
11905 PR middle-end/58547
11906 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
11909 2013-09-27 Richard Biener <rguenther@suse.de>
11911 PR tree-optimization/58459
11912 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
11913 restriction not propagating into loops.
11915 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
11917 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
11918 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
11919 * doc/tree-ssa.texi (Walking use-def chains): Delete.
11921 2013-09-26 Richard Biener <rguenther@suse.de>
11923 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
11925 2013-09-26 Richard Biener <rguenther@suse.de>
11927 * alias.h (component_uses_parent_alias_set): Rename to ...
11928 (component_uses_parent_alias_set_from): ... this.
11929 * alias.c (component_uses_parent_alias_set): Rename to ...
11930 (component_uses_parent_alias_set_from): ... this and return
11931 the desired parent.
11932 (reference_alias_ptr_type_1): Use the result from
11933 component_uses_parent_alias_set_from instead of stripping
11934 components one at a time.
11935 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
11937 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
11939 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
11940 Move prototypes to...
11941 * tree-ssa-ter.h: New File. Move prototypes here.
11942 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
11943 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
11944 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
11945 from is_replaceable_p.
11946 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
11947 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
11948 (process_replaceable): Use ter_is_replaceable_p.
11949 (find_replaceable_in_bb): Use ter_is_replaceable_p.
11950 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
11951 newly refactored ssa_is_replaceable_p.
11952 * cfgexpand.c: Include tree-outof-ssa.h.
11953 * ssaexpand.h: Delete.
11955 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
11957 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
11958 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
11960 (create_gimple_tmp): Delete.
11961 (get_expr_type, build_assign, build_type_cast): Move to...
11962 * gimple-builder.c: New File.
11963 (get_expr_type): Relocate from gimple.c.
11964 (build_assign, build_type_cast): Change to only create ssanames.
11965 * gimple.h: Move prototypes to...
11966 * gimple-builder.h: New File. Here.
11967 * tree-ssa.h: And here.
11968 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
11969 count_uses_and_derefs): Relocate from gimple.c.
11970 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
11971 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
11972 * tree-ssa-math-opts (execute_cse_reciprocals): Use
11973 gimple_replace_ssa_lhs.
11974 * asan.c: Include gimple-builder.h.
11975 * Makefile.in: Add gimple-builder.o.
11977 2013-09-26 Richard Biener <rguenther@suse.de>
11979 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
11980 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
11981 (loe_visit_block): Use gcc_checking_assert.
11982 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
11983 gimple_assign_ssa_name_copy_p.
11984 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
11987 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
11989 * config/rs6000/t-rs6000 (rs6000.o): Remove.
11990 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
11992 2013-09-26 Richard Biener <rguenther@suse.de>
11994 PR tree-optimization/58539
11995 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
11996 the fact that debug statements are not taking part in loop-closed
11999 2013-09-26 Nick Clifton <nickc@redhat.com>
12001 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
12002 time warning message.
12003 (msp430_print_operand_raw): Delete unused letter parameter.
12004 (TARGET_PRINT_OPERAND_ADDRESS): Define.
12005 (msp430_print_operand_address): New function.
12006 (msp430_print_operand): Move address printing code from here to
12008 * config/msp430/msp430.md (movsipsi2): Add comment in generated
12010 (zero_extendpsisi2): Likewise.
12011 (extendpsisi2): New pattern.
12012 (andneghi3): New pattern.
12014 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
12016 * config/aarch64/aarch64.opt (mlra): New option.
12017 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
12018 (TARGET_LRA_P): Define.
12020 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
12022 * expr.c (expand_assignment): Remove obsolete comment.
12024 2013-09-25 Jeff Law <law@redhat.com>
12026 * tree-flow.h (thread_through_all_blocks): Prototype moved into
12027 tree-ssa-threadupdate.h.
12028 (register_jump_thread): Similarly.
12029 * tree-ssa-threadupdate.h: New header file.
12030 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
12031 * tree-vrp.c: Likewise.
12032 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
12033 (thread_around_empty_blocks): Change type of path vector argument to
12034 an edge,type pair from just an edge. Initialize both elements when
12035 appending to a jump threading path. Tweak references to elements
12037 (thread_across_edge): Similarly. Release memory for the elements
12039 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
12040 (dump_jump_thread_path): New function broken out from
12041 register_jump_thread.
12042 (register_jump_thread): Use dump_jump_thread_path. Change type of
12043 path vector entries. Search the path for NULL edges and dump
12044 the path if one is found. Tweak the conversion of path to 3-edge
12045 form to use the block copy type information embedded in the path.
12047 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
12049 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
12051 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
12052 Vladimir Makarov <vmakarov@redhat.com>
12054 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
12055 from the least significant bit.
12056 (strip_address_mutations): Add bitfield operations handling.
12057 (must_be_index_p): Add shifting and rotate operations handling.
12058 (set_address_base): Use must_be_base_p predicate.
12059 (set_address_index): Use must_be_index_p predicate.
12061 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
12062 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12063 Sergey Lega <sergey.s.lega@intel.com>
12064 Anna Tikhonova <anna.tikhonova@intel.com>
12065 Ilya Tocar <ilya.tocar@intel.com>
12066 Andrey Turetskiy <andrey.turetskiy@intel.com>
12067 Ilya Verbin <ilya.verbin@intel.com>
12068 Kirill Yukhin <kirill.yukhin@intel.com>
12069 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12071 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12073 (ix86_expand_vector_move_misalign): Support new unaligned load and
12074 stores and use new names.
12075 (CODE_FOR_sse2_storedqu): Rename to ...
12076 (CODE_FOR_sse2_storedquv16qi): ... this.
12077 (CODE_FOR_sse2_loaddqu): Rename to ...
12078 (CODE_FOR_sse2_loaddquv16qi): ... this.
12079 (CODE_FOR_avx_loaddqu256): Rename to ...
12080 (CODE_FOR_avx_loaddquv32qi): ... this.
12081 (CODE_FOR_avx_storedqu256): Rename to ...
12082 (CODE_FOR_avx_storedquv32qi): ... this.
12083 * config/i386/i386.md (fpint_logic): New.
12084 * config/i386/sse.md (VMOVE): Extend for AVX512.
12088 (VI_UNALIGNED_LOADSTORE): Ditto.
12089 (sse2_avx_avx512f): Ditto.
12090 (sse2_avx2): Extend for AVX512.
12091 (sse4_1_avx2): Ditto.
12092 (avx2_avx512f): New.
12093 (sse): Extend for AVX512.
12096 (avxsizesuffix): Ditto.
12097 (sseintvecmode): Ditto.
12098 (ssePSmode): Ditto.
12099 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
12100 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
12101 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
12102 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
12103 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
12104 (<sse2_avx_avx512f>_storedqu<mode): ... this.
12105 (<sse>_movnt<mode>): Replace constraint "x" with "v".
12106 (STORENT_MODE): Extend for AVX512.
12107 (*absneg<mode>2): Replace constraint "x" with "v".
12108 (*mul<mode>3): Ditto.
12109 (*ieee_smin<mode>3): Ditto.
12110 (*ieee_smax<mode>3): Ditto.
12111 (avx_cmp<mode>3): Replace VF with VF_128_256.
12112 (*<sse>_maskcmp<mode>3_comm): Ditto.
12113 (<sse>_maskcmp<mode>3): Ditto.
12114 (<sse>_andnot<mode>3): Extend for AVX512.
12115 (<code><mode>3, anylogic): Replace VF with VF_128_256.
12116 (<code><mode>3, fpint_logic): New.
12117 (*<code><mode>3): Extend for AVX512.
12118 (avx512flogicsuff): New.
12119 (avx512f_<logic><mode>): Ditto.
12120 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
12122 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
12123 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
12124 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
12125 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
12126 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
12127 (xop_vpermil2<mode>3): Ditto.
12128 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
12129 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
12130 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
12131 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
12133 2013-09-25 Tom Tromey <tromey@redhat.com>
12135 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
12136 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
12137 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
12138 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
12139 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
12140 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
12141 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
12142 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
12143 (GRAPHITE_HTAB_H): Remove.
12145 2013-09-25 Tom Tromey <tromey@redhat.com>
12147 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
12149 2013-09-25 Tom Tromey <tromey@redhat.com>
12151 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
12153 2013-09-25 Tom Tromey <tromey@redhat.com>
12155 * config/i386/t-i386 (i386.o): Remove.
12156 (i386-c.o): Use COMPILE and POSTCOMPILE.
12158 2013-09-25 Tom Tromey <tromey@redhat.com>
12160 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
12162 2013-09-25 Tom Tromey <tromey@redhat.com>
12164 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
12165 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
12166 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
12167 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
12168 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
12169 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
12170 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
12171 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
12172 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
12173 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
12174 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
12175 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
12176 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
12177 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
12178 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
12179 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
12180 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
12181 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
12182 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
12183 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
12184 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
12185 (tree-ssa-pre.o, tree-ssa-sccvn.o)
12186 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
12187 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
12188 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
12189 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
12190 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
12191 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
12192 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
12193 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
12194 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
12195 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
12196 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
12197 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
12198 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
12199 (graphite-clast-to-gimple.o, graphite-dependences.o)
12200 (graphite-interchange.o, graphite-poly.o)
12201 (graphite-scop-detection.o, graphite-sese-to-poly.o)
12202 (graphite-optimize-isl.o, tree-vect-loop.o)
12203 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
12204 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
12205 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
12206 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
12207 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
12208 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
12209 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
12210 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
12211 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
12212 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
12213 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
12214 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
12215 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
12216 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
12217 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
12218 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
12219 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
12220 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
12221 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
12222 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
12223 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
12224 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
12225 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
12226 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
12227 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
12228 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
12229 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
12230 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
12231 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
12232 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
12233 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
12234 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
12235 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
12236 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
12237 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
12238 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
12239 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
12240 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
12241 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
12242 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
12243 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
12244 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
12245 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
12246 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
12247 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
12248 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
12249 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
12250 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
12251 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
12252 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
12253 (gcov-dump.o): Remove.
12254 (default-c.o): Use COMPILE and POSTCOMPILE.
12255 (CFLAGS-gcc.o): New variable.
12256 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
12258 2013-09-25 Tom Tromey <tromey@redhat.com>
12260 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
12261 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
12262 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
12263 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
12264 (c-family/c-pragma.o, c-family/c-pretty-print.o)
12265 (c-family/c-semantics.o, c-family/c-ada-spec.o)
12266 (c-family/array-notation-common.o, c-family/stub-objc.o)
12267 (c-family/c-ubsan.o): Remove.
12269 2013-09-25 Tom Tromey <tromey@redhat.com>
12271 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
12273 2013-09-25 Tom Tromey <tromey@redhat.com>
12275 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
12276 to add -DENABLE_SHARED_LIBGCC.
12277 (gcc.o): Don't use subshell.
12279 2013-09-25 Tom Tromey <tromey@redhat.com>
12281 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
12282 * configure.ac: Don't invoke AM_PROG_CC_C_O.
12283 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
12284 * configure, config.in: Rebuild.
12286 2013-09-25 Tom Tromey <tromey@redhat.com>
12288 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
12289 (COMPILE, POSTCOMPILE): New variables.
12290 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
12291 (DEPFILES): New variable.
12292 Include ".Po" files.
12293 * configure.ac: Add checks for dependency checking.
12294 * configure, aclocal.m4: Regenerate.
12296 2013-09-25 Tom Tromey <tromey@redhat.com>
12298 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
12299 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
12301 2013-09-25 Tom Tromey <tromey@redhat.com>
12303 * Makefile.in (generated_files): Add options.h,
12304 target-hooks-def.h, insn-opinit.h,
12305 common/common-target-hooks-def.h, pass-instances.def,
12306 c-family/c-target-hooks-def.h.
12308 2013-09-25 Jeff Law <law@redhat.com>
12310 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
12311 than foo[foo.length () - 1] to access last member in a vec.
12312 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
12314 2013-09-25 Richard Biener <rguenther@suse.de>
12316 PR middle-end/58521
12317 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
12319 2013-09-25 Jan Hubicka <jh@suse.cz>
12321 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
12324 2013-09-25 Marek Polacek <polacek@redhat.com>
12327 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
12328 when determining the type name.
12330 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
12332 * config/sh/sh.md: Fix formatting.
12334 2013-09-24 Xinliang David Li <davidxl@google.com>
12336 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
12337 max peel iterations parameter.
12338 * param.def: New parameter.
12339 * doc/invoke.texi: Document New parameter.
12341 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
12343 * gimple-pretty-print.c: Various whitespace tweaks.
12344 * tree-core.h: Likewise.
12345 * tree-pretty-print.c: Likewise.
12346 * tree-ssa-alias.c: Likewise.
12347 * tree-ssa-copy.c: Likewise.
12348 * tree-ssanames.c: Likewise.
12349 * tree-ssanames.h: Likewise.
12350 * tree-vrp.c: Likewise.
12352 2013-09-24 Alan Modra <amodra@gmail.com>
12354 PR middle-end/57134
12355 PR middle-end/57586
12356 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
12357 for output operands that disallow regs. Don't use EXPAND_WRITE on
12360 2013-09-24 Richard Biener <rguenther@suse.de>
12362 PR middle-end/58513
12363 * tree.c (reference_alias_ptr_type): Move ...
12364 * alias.c (reference_alias_ptr_type): ... here and implement
12365 in terms of the new reference_alias_ptr_type_1.
12366 (ref_all_alias_ptr_type_p): New helper.
12367 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
12368 use ref_all_alias_ptr_type_p.
12369 (get_deref_alias_set): Add flag_strict_aliasing check here.
12370 (reference_alias_ptr_type_1): New function, split out from ...
12371 (get_alias_set): ... here.
12372 (alias_ptr_types_compatible_p): New function.
12373 * alias.h (reference_alias_ptr_type): Declare.
12374 (alias_ptr_types_compatible_p): Likewise.
12375 * tree.h (reference_alias_ptr_type): Remove.
12376 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
12377 to compare MEM_REF alias types.
12379 2013-09-24 Richard Biener <rguenther@suse.de>
12381 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
12383 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12385 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
12386 reload helper function arrays into a single array reg_addr.
12387 (reload_fpr_gpr): Likewise.
12388 (reload_gpr_vsx): Likewise.
12389 (reload_vsx_gpr): Likewise.
12390 (struct rs6000_reg_addr): Likewise.
12391 (reg_addr): Likewise.
12392 (rs6000_debug_reg_global): Change rs6000_vector_reload,
12393 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
12394 (rs6000_init_hard_regno_mode_ok): Likewise.
12395 (rs6000_secondary_reload_direct_move): Likewise.
12396 (rs6000_secondary_reload): Likewise.
12398 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
12399 constraints: wu, ww, and wy. Repurpose wv constraint added during
12400 power8 changes. Put wg constraint in alphabetical order.
12402 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
12403 for future work to add ISA 2.07 VSX single precision support.
12404 (-mvsx-scalar-double): Change default from -1 to 1, update
12405 documentation comment.
12406 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
12407 (-mupper-regs-df): New debug switch to control whether DF values
12408 can go in the traditional Altivec registers.
12409 (-mupper-regs-sf): New debug switch to control whether SF values
12410 can go in the traditional Altivec registers.
12412 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
12413 and wy constraints.
12414 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
12415 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
12416 Add new constraints, wu/ww/wy. Repurpose wv constraint.
12417 (rs6000_debug_legitimate_address_p): Print if we are running
12418 before, during, or after reload.
12419 (rs6000_secondary_reload): Add a comment.
12420 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
12422 * config/rs6000/constraints.md (wa constraint): Sort w<x>
12423 constraints. Update documentation string.
12424 (wd constraint): Likewise.
12425 (wf constraint): Likewise.
12426 (wg constraint): Likewise.
12427 (wn constraint): Likewise.
12428 (ws constraint): Likewise.
12429 (wt constraint): Likewise.
12430 (wx constraint): Likewise.
12431 (wz constraint): Likewise.
12432 (wu constraint): New constraint for ISA 2.07 SFmode scalar
12434 (ww constraint): Likewise.
12435 (wy constraint): Likewise.
12436 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
12437 in the previous submissions.
12438 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
12440 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
12442 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
12443 (REG_BR_PROB): Say that the probability is stored in an int_list.
12444 * reg-notes.def: Update commentary to mention INT_LIST.
12445 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
12446 (INT_LIST): New rtx.
12447 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
12448 * rtlanal.c (int_reg_note_p): New function.
12449 (alloc_reg_note): Assert that the note does not have an int argument.
12450 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
12451 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
12452 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
12453 rather than an INSN_LIST. Handle INT_LIST.
12454 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
12455 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
12456 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
12457 Manipulate them as ints rather than rtxes.
12458 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
12459 * regmove.c (copy_src_to_dest): Likewise.
12460 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
12462 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
12463 into the cases that need it.
12464 * config/arm/arm.c (arm_unwind_emit): Likewise.
12466 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
12467 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
12468 * loop-doloop.c (add_test, doloop_modify): Likewise.
12469 * loop-unswitch.c (compare_and_jump_seq): Likewise.
12470 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
12471 * predict.c (combine_predictions_for_insn): Likewise.
12472 * print-rtl.c (print_rtx): Handle INT_LIST.
12473 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
12474 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
12475 * config/arm/arm.c (emit_unlikely_jump): Likewise.
12476 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
12477 (ix86_split_fp_branch, predict_jump): Likewise.
12478 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
12479 * config/sh/sh.c (expand_cbranchsi4): Likewise.
12480 * config/spu/spu.c (ea_load_store_inline): Likewise.
12482 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
12483 value of a REG_BR_PROB note.
12484 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
12485 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
12486 * emit-rtl.c (try_split): Likewise.
12487 * predict.c (br_prob_note_reliable_p): Likewise.
12488 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
12489 * reorg.c (mostly_true_jump): Likewise.
12490 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
12491 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
12492 * config/i386/i386.c (ix86_print_operand): Likewise.
12493 * config/ia64/ia64.c (ia64_print_operand): Likewise.
12494 * config/mmix/mmix.c (mmix_print_operand): Likewise.
12495 * config/rs6000/rs6000.c (output_cbranch): Likewise.
12496 * config/s390/s390.c (s390_expand_tbegin): Likewise.
12497 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
12498 * config/sparc/sparc.c (output_cbranch): Likewise.
12499 * config/spu/spu.c (get_branch_target): Likewise.
12500 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
12501 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
12503 2013-09-23 Jan Hubicka <jh@suse.cz>
12505 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
12507 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
12508 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
12510 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
12511 (gimple_fold_call): Dump inconsistent devirtualizations; add
12512 sanity check for type based devirtualizations.
12513 * ipa-prop.c: Include ipa-utils.h
12514 (ipa_intraprocedural_devirtualization): Add sanity check.
12515 (try_make_edge_direct_virtual_call): Likewise.
12517 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
12519 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
12520 assignment statements.
12522 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12524 * gimple-pretty-print.c (dump_ssaname_info): New function.
12525 (dump_gimple_phi): Call it.
12526 (pp_gimple_stmt_1): Likewise.
12527 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
12528 (range_info_def): Declare.
12529 * tree-pretty-print.c (pp_double_int): New function.
12530 (dump_generic_node): Call it.
12531 * tree-pretty-print.h (pp_double_int): Declare.
12532 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
12533 * tree-ssanames.h (range_info_def): New structure.
12534 (value_range_type): Move definition here.
12535 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
12537 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
12539 (set_range_info): New function.
12540 (get_range_info): Likewise.
12541 (duplicate_ssa_name_range_info): Likewise.
12542 (duplicate_ssa_name_fn): Check pointer type and call
12543 duplicate_ssa_name_range_info.
12544 * tree-ssa-copy.c (fini_copy_prop): Likewise.
12545 * tree-vrp.c (value_range_type): Remove definition, now in
12547 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
12548 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
12549 (SSA_NAME_RANGE_INFO): New macro.
12551 2013-09-23 Richard Biener <rguenther@suse.de>
12553 PR tree-optimization/58464
12554 * tree-ssa-pre.c (phi_trans_lookup): Remove.
12555 (phi_trans_add): Change to add conditionally on being not present.
12556 (phi_translate_1): Remove recursion detection here.
12557 (phi_translate): Pre-seed the cache with NULL to catch
12558 recursion here in a more generic way.
12559 (bitmap_find_leader): Adjust comment.
12560 (get_representative_for): Dump value-numbers.
12561 (create_expression_by_pieces): Likewise.
12562 (insert_into_preds_of_block): Likewise.
12564 2013-09-23 Christian Bruel <christian.bruel@st.com>
12567 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
12568 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
12570 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
12573 2013-09-20 Renlin Li <renlin.li@arm.com>
12575 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12577 (aarch64_expand_epilogue): Likewise.
12578 (aarch64_legitimize_reload_address): Likewise.
12580 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
12582 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
12583 NULL_TREE before pushing them onto the vector. Likewise for labels.
12585 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
12587 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
12588 comparison operators when -fno-trapping-math is in effect.
12589 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
12590 comparison operators in TFmode and assert that unsupported operators
12592 (ia64_print_operand): Likewise.
12594 2013-09-21 Jan Hubicka <jh@suse.cz>
12596 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
12597 (sse_typeless_stores): Enable for core
12598 (sse_load0_by_pxor): Likewise.
12599 (four_jump_limit): Disable for core.
12600 (pad_returns): Likewise.
12601 (avoid_vector_decode): Likewise.
12602 (fuse_cmp_and_branch): Enable for cores.
12603 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
12605 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
12607 PR middle-end/56791
12608 * config/pa/pa.c (pa_option_override): Disable auto increment and
12609 decrement instructions until reload is completed.
12611 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
12612 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
12613 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12615 2013-09-20 DJ Delorie <dj@redhat.com>
12616 Nick Clifton <nickc@redhat.com>
12618 * config/rl78/rl78.c: Various whitespace and comment tweaks.
12619 (need_to_save): Save bank 0 on interrupts.
12620 (characterize_address): Strip far address wrappers.
12621 (rl78_as_legitimate_address): Likewise.
12622 (transcode_memory_rtx): Likewise.
12623 (rl78_peep_movhi_p): Disable this peephole after devirt.
12624 (rl78_propogate_register_origins): Forget all origins when a
12626 * config/rl78/rl78-virt.md: Various whitespace tweaks.
12627 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
12629 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
12630 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
12631 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
12633 * config/rl78/constraints.md: Various whitespace and paren tweaks.
12635 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
12637 * config/pa/pa.md: In "scc" insn patterns, change output template to
12638 handle const0_rtx in reg_or_0_operand operands.
12640 2013-09-20 Martin Husemann <martin@NetBSD.org>
12643 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
12644 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
12646 2013-09-20 Richard Biener <rguenther@suse.de>
12648 PR middle-end/58484
12649 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
12650 remembering SSA name version and block index.
12651 (new_scev_info_str): Adjust.
12652 (hash_scev_info): Likewise. Also hash the block index.
12653 (eq_scev_info): Adjust.
12654 (find_var_scev_info): Likewise.
12655 (struct instantiate_cache_entry): Remove.
12656 (struct instantiate_cache_type): Use a htab to map name, block
12658 (instantiate_cache_type::~instantiate_cache_type): Adjust.
12659 (get_instantiated_value_entry): Likewise.
12660 (hash_idx_scev_info, eq_idx_scev_info): New functions.
12661 (instantiate_scev_name): Adjust.
12663 2013-09-20 Jeff Law <law@redhat.com>
12665 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
12667 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
12669 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
12670 Call aarch64_simd_expand_args to update op[argc].
12672 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
12674 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
12677 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
12679 * gengtype.c (file_rules): Added rule for *.cc files.
12680 (get_output_file_with_visibility): Give fatal message when no
12683 2013-09-20 Renlin Li <renlin.li@arm.com>
12685 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
12686 (aarch64_expand_epilogue): Likewise.
12687 (aarch64_legitimize_reload_address): Likewise.
12689 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12691 PR middle-end/57748
12692 * expr.c (expand_assignment): Remove misalignp code path.
12694 2013-09-20 Marek Polacek <polacek@redhat.com>
12697 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
12698 TYPE_PRECISION. Add asserts.
12700 2013-09-20 Richard Biener <rguenther@suse.de>
12702 PR tree-optimization/58453
12703 * tree-loop-distribution.c (distribute_loop): Apply the cost
12704 model for -ftree-loop-distribute-patterns, too.
12706 2013-09-20 Richard Biener <rguenther@suse.de>
12708 PR middle-end/58473
12709 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
12710 make type comparison less strict.
12712 2013-09-20 Alan Modra <amodra@gmail.com>
12714 * configure: Regenerate.
12715 * aclocal.m4: Regenerate.
12717 2013-09-20 Marek Polacek <polacek@redhat.com>
12720 * doc/extend.texi: Document that attribute used is meant to be used
12721 on variables with static storage duration.
12723 2013-09-19 Jakub Jelinek <jakub@redhat.com>
12725 PR tree-optimization/58472
12726 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
12727 simd_lane_access set inv_p = false.
12728 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
12729 the simduid magic VAR_DECL.
12731 2013-09-19 Jan Hubicka <jh@suse.cz>
12733 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
12735 2013-09-17 Jeff Law <law@redhat.com>
12737 * tree-ssa-dom.c (record_temporary_equivalences): New function
12738 split out of dom_opt_dom_walker::after_dom_children.
12739 (dom_opt_dom_walker::thread_across_edge): Move common code
12740 in here from dom_opt_dom_walker::after_dom_children.
12741 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
12743 2013-09-19 Jan Hubicka <jh@suse.cz>
12745 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
12746 (TARGET_GENERIC): Use PROCESOR_GENERIC
12747 (enum processor_type): Unify generic32 and 64.
12748 * i386.md (cpu): Likewise.
12749 * x86-tune.def (use_leave): Enable for generic32.
12750 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
12751 * athlon.md: Change generic64 to generic in all occurences.
12752 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
12753 (ix86_target_macros_internal): Likewise.
12754 * driver-i386.c (host_detect_local_cpu): Likewise.
12755 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
12757 (generic_memcpy, generic_memset, generic_cost): This one.
12758 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
12759 (m_GENERIC32, m_GENERIC64): Remove.
12760 (m_GENERIC): Turn into one flag.
12761 (processor_target): Unify generic tunnings.
12762 (ix86_option_override_internal): Replace generic32/64 by generic.
12763 (ix86_issue_rate): Likewise.
12764 (ix86_adjust_cost): Likewise.
12766 2013-09-19 Jan Hubicka <jh@suse.cz>
12768 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
12769 of speculative flag.
12771 2013-09-19 Jakub Jelinek <jakub@redhat.com>
12773 * omp-low.c (expand_omp_sections): Always pass len - 1 to
12774 GOMP_sections_start, even if !exit_reachable.
12776 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
12778 * lra-constraints.c (need_for_all_save_p): Use macro
12779 HARD_REGNO_CALL_PART_CLOBBERED.
12780 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
12781 set up pseudo conflict hard regs.
12783 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
12786 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
12789 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
12791 PR rtl-optimization/58438
12792 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
12793 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
12794 from previous subpasses.
12796 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
12798 * arm.c (arm_get_frame_offsets): Validate architecture supports
12799 LDRD/STRD before accepting the tuning preference.
12800 (arm_expand_prologue): Likewise.
12801 (arm_expand_epilogue): Likewise.
12803 2013-09-18 Richard Biener <rguenther@suse.de>
12805 PR tree-optimization/58417
12806 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
12807 have chrecs with symbols defined in the loop as operands.
12808 (chrec_fold_multiply): Likewise.
12809 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
12810 parameters before folding binary operations.
12811 (struct instantiate_cache_entry_hasher): Remove.
12812 (struct instantiate_cache_type): Use a pointer-map.
12813 (instantiate_cache_type::instantiate_cache_type): New function.
12814 (instantiate_cache_type::get): Likewise.
12815 (instantiate_cache_type::set): Likewise.
12816 (instantiate_cache_type::~instantiate_cache_type): Adjust.
12817 (get_instantiated_value_entry): Likewise.
12818 (global_cache): New global.
12819 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
12820 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
12821 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
12822 (instantiate_scev_name): Adjust.
12823 (instantiate_scev): Construct global instead of local cache.
12824 (resolve_mixers): Likewise.
12826 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
12827 Paolo Carlini <paolo.carlini@oracle.com>
12830 * doc/implement-cxx.texi: Fix references to the C++ standards.
12832 2013-09-18 Jakub Jelinek <jakub@redhat.com>
12834 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
12835 * tree-vect-data-refs.c (vect_analyze_data_refs): For
12836 simd_lane_access drs, update also DR_ALIGNED_TO.
12838 2013-09-18 Marek Polacek <polacek@redhat.com>
12841 * doc/extend.texi: Document no_sanitize_undefined attribute.
12842 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
12843 no_sanitize_undefined attribute.
12845 2013-09-18 Nick Clifton <nickc@redhat.com>
12847 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
12848 (ASM_DECLARE_FUNCTION_NAME): Define.
12850 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
12852 * compare-elim.c (find_comparison_dom_walker): New class
12853 (find_comparisons_in_bb): Rename to
12854 find_comparison_dom_walker::before_dom_children
12855 (find_comparisons): Adjust
12856 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
12858 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
12859 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
12860 (init_walk_dominator_tree): Remove declaration.
12861 (fini_walk_dominator_tree): Remove declaration.
12862 * fwprop.c (single_def_use_dom_walker): New class
12863 (single_def_use_enter_block): Convert to
12864 single_def_use_dom_walker::before_dom_children.
12865 (single_def_use_leave_block): Convert to
12866 single_def_use_dom_walker::after_dom_children.
12867 (build_single_def_use_links): Adjust.
12868 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
12870 (find_candidates_in_block): Convert to
12871 find_candidates_dom_walker::before_dom_children.
12872 (execute_strength_reduction): Adjust.
12873 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
12874 (sese_dom_walker): New class.
12875 (sese_dom_walker::sese_dom_walker): New constructor.
12876 (sese_dom_walker::~sese_dom_walker): New destructor.
12877 (build_sese_conditions_before): Convert to
12878 sese_dom_walker::before_dom_children.
12879 (build_sese_conditions_after): Convert to
12880 sese_dom_walker::after_dom_children.
12881 (build_poly_scop): Adjust
12882 * tree-into-ssa.c (rewrite_dom_walker): New class
12883 (rewrite_enter_block): Convert to
12884 rewrite_dom_walker::before_dom_children.
12885 (rewrite_leave_block): Convert to
12886 rewrite_dom_walker::after_dom_children.
12887 (rewrite_update_dom_walker): New class.
12888 (rewrite_update_enter_block): Convert to
12889 rewrite_update_dom_walker::before_dom_children.
12890 (rewrite_update_leave_block): Convert to
12891 rewrite_update_dom_walker::after_dom_children.
12892 (rewrite_blocks, rewrite_into_ssa): Adjust.
12893 (mark_def_dom_walker): New class.
12894 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
12895 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
12896 (mark_def_sites_blocks): Convert to
12897 mark_def_dom_walker::before_dom_children.
12898 (mark_def_site_blocks): Remove.
12899 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
12900 (tree_ssa_dominator_optimize): Adjust.
12901 (dom_thread_across_edge): Convert to method
12902 dom_opt_dom_walker::thread_across_edge.
12903 (dom_opt_enter_block): Convert to member function
12904 dom_opt_dom_walker::before_dom_children.
12905 (dom_opt_leave_block): Convert to member function
12906 dom_opt_dom_walker::after_dom_children.
12907 * tree-ssa-dse.c (dse_dom_walker): New class.
12908 (dse_enter_block): Convert to member function
12909 dse_dom_walker::before_dom_children.
12910 (tree_ssa_dse): Adjust.
12911 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
12912 (determine_invariantness_stmt): Convert to method
12913 invariantness_dom_walker::before_dom_children.
12914 (determine_invariantness): Remove
12915 (move_computations_dom_walker): New class.
12916 (move_computations_stmt): Convert to method
12917 move_computations_dom_walker::before_dom_children.
12918 (move_computations, tree_ssa_lim): Adjust.
12919 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
12920 (nt_init_block): Convert to method
12921 notrappping_dom_walker::before_dom_children.
12922 (nt_fini_block): Convert to method
12923 method nontrapping_dom_walker::after_dom_children.
12924 (get_non_trapping): Adjust.
12925 * tree-ssa-pre.c (eliminate_dom_walker): New class.
12926 (eliminate_bb): Convert to method
12927 eliminate_dom_walker::before_dom_children.
12928 (eliminate_leave_block): Convert to method
12929 eliminate_dom_walker::after_dom_children.
12930 (eliminate): Adjust.
12931 * tree-ssa-strlen.c (strlen_dom_walker): New class.
12932 (strlen_enter_block): Convert to method
12933 strlen_dom_walker::before_dom_children.
12934 (strlen_leave_block): Convert to method
12935 method strlen_dom_walker::after_dom_children.
12936 (tree_ssa_strlen): Adjust.
12937 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
12938 (tree_ssa_uncprop): Adjust.
12939 (uncprop_leave_block): Convert to method
12940 uncprop_dom_walker::after_dom_children.
12941 (uncprop_leave_block): Convert to method
12942 uncprop_dom_walker::before_dom_children.
12944 2013-09-18 Bin Cheng <bin.cheng@arm.com>
12946 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
12947 branch in same basic block. Check both src and dest of the move insn.
12949 2013-09-17 Nick Clifton <nickc@redhat.com>
12951 * config/rl78/rl78-real.md (bf): New pattern.
12953 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
12954 (rl78_print_operand): Do not put a # before a %B.
12955 * config/rl78/rl78.opt: Tweak doc strings.
12957 2013-09-17 DJ Delorie <dj@redhat.com>
12959 * config/rl78/constraints.md (Wcv): Allow up to $r31.
12960 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
12961 (rl78_option_override): Likewise, if -mallregs.
12962 (is_virtual_register): Likewise.
12963 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
12964 (REGNO_OK_FOR_BASE_P): Likewise.
12965 * config/rl78/rl78.opt (-mallregs): New.
12967 2013-09-17 Nick Clifton <nickc@redhat.com>
12969 * config/rl78/rl78.c (need_to_save): Change return type to bool.
12970 For interrupt functions: save all call clobbered registers if the
12971 interrupt handler is not a leaf function.
12972 (rl78_expand_prologue): Always recompute the frame information.
12973 For interrupt functions: only select bank 0 if one of the bank 0
12974 registers is going to be psuhed.
12976 2013-09-17 DJ Delorie <dj@redhat.com>
12978 * config/rl78/constraints.md: For each W* constraint, rename to C*
12979 and create a W* constraint that checks for an optional ES: prefix
12981 * config/rl78/rl78.md (UNS_ES_ADDR): New.
12982 (es_addr): New. Used to wrap far addresses.
12983 * config/rl78/rl78-protos.h (rl78_es_addr): New.
12984 (rl78_es_base): New.
12985 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
12986 wrapped far addresses.
12987 (rl78_print_operand_1): Unwrap far addresses before processing.
12988 (rl78_lo16): Wrap far addresses in unspecs.
12989 (rl78_es_addr): New.
12990 (rl78_es_base): New.
12991 (insn_ok_now): Check for not-yet-wrapped far addresses.
12992 (transcode_memory_rtx): Properly re-wrap far addresses.
12994 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
12996 * config/sparc/t-rtems: Add leon3 multilibs.
12998 2013-09-17 Cong Hou <congh@google.com>
13000 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
13001 when checking the dot production pattern. The type of rhs operand
13002 of multiply is now checked correctly.
13004 2013-09-17 Jeff Law <law@redhat.com>
13006 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13007 edge implied equivalences into successor phis.
13008 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
13009 here from tree-ssa-threadedge.c.
13010 (mark_threaded_blocks): When threading through a joiner, if both
13011 successors of the joiner's clone reach the same block, verify the
13012 PHI arguments are equal. If not, cancel the jump threading request.
13013 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
13014 tree-ssa-threadupdate.c
13015 (thread_across_edge): Don't check PHI argument equality when
13016 threading through joiner block here.
13018 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
13020 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
13021 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
13022 (warn_uninit, warn_uninitialized_vars,
13023 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
13024 Move to tree-ssa-uninit.c.
13025 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
13026 (has_undefined_value_p): New. Pass dependant parts of
13027 ssa_undefined_value_p.
13028 (uninit_undefined_value_p): Use has_undefined_value_p.
13029 (warn_uninit, warn_uninitialized_vars,
13030 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
13031 Move from tree-ssa.c.
13032 * tree-ssa.h: Adjust prototypes.
13034 2013-09-17 Jan Hubicka <jh@suse.cz>
13036 PR middle-end/58332
13037 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
13038 * ipa-inline.c (can_inline_edge_p): Do not downgrade
13039 FUNCTION_NOT_OPTIMIZED.
13040 * ipa-inline-analysis.c (compute_inline_parameters): Function
13041 not optimized is not inlinable unless it is alwaysinline.
13042 (inline_analyze_function): Force calls in not optimized
13043 function not inlinable.
13045 2013-09-17 Jan Hubicka <jh@suse.cz>
13047 PR middle-end/58329
13048 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
13050 * ipa.c (function_and_variable_visibility): Likewise.
13051 * ipa-profile.c (ipa_profile): Likewise.
13053 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
13056 * cgraph.c (cgraph_function_body_availability): Check for ifunc
13057 attribute, and don't inline the resolver in this case.
13059 2013-09-17 Teresa Johnson <tejohnson@google.com>
13061 * coverage.c (get_coverage_counts): Add missing newline.
13063 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13065 PR tree-optimization/58088
13066 * fold-const.c (mask_with_trailing_zeros): New function.
13067 (fold_binary_loc): Make sure we don't recurse infinitely
13068 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
13069 Use mask_with_trailing_zeros where appropriate.
13071 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
13073 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
13074 of 'prev' var to get better distance estimation.
13076 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
13078 * tree-inline.h (struct copy_body_data): Add transform_parameter.
13079 * tree-inline.c (is_parameter_of): New predicate.
13080 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
13081 a parameter has been remapped.
13082 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
13083 (optimize_inline_calls): Initialize transform_parameter.
13084 (copy_gimple_seq_and_replace_locals): Likewise.
13085 (tree_function_versioning): Likewise.
13086 (maybe_inline_call_in_expr): Likewise.
13088 2013-09-17 Nick Clifton <nickc@redhat.com>
13090 * config/msp430/msp430-protos.h: Add prototypes for new functions.
13091 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
13092 interrupt handlers.
13093 (is_attr_func): New function.
13094 (msp430_is_interrupt_func): New function.
13095 (is_naked_func): New function.
13096 (is_reentrant_func): New function.
13097 (is_critical_func): New function.
13098 (msp430_start_function): Add annotations for function attributes.
13099 (msp430_attr): New function.
13100 (msp430_attribute_table): New.
13101 (msp430_function_section): New function.
13102 (TARGET_ASM_FUNCTION_SECTION): Define.
13103 (msp430_builtin): New enum.
13104 (msp430_init_builtins): New function.
13105 (msp430_builtin_devl): New function.
13106 (msp430_expand_builtin): New function.
13107 (TARGET_INIT_BUILTINS): Define.
13108 (TARGET_EXPAND_BUILTINS): Define.
13109 (TARGET_BUILTIN_DECL): Define.
13110 (msp430_expand_prologue): Add support for naked, interrupt,
13111 critical and reentrant functions.
13112 (msp430_expand_epilogue): Likewise.
13113 (msp430_print_operand): Handle 'O' character.
13114 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
13116 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
13117 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
13118 (pushm): Use a 'n' rather than an 'i' constraint.
13119 (msp_return): Add generation of the interrupt return instruction.
13120 (disable_interrupts): New pattern.
13121 (enable_interrupts): New pattern.
13122 (push_intr_state): New pattern.
13123 (pop_intr_state): New pattern.
13124 (bic_SR): New pattern.
13125 (bis_SR): New pattern.
13126 * doc/extend.texi: Document MSP430 function attributes and builtin
13129 2013-09-17 Richard Biener <rguenther@suse.de>
13131 PR tree-optimization/58432
13132 * tree-loop-distribution.c (tree_loop_distribution): Also
13133 scan PHIs for outside loop uses and seed a partition from them.
13135 2013-09-17 Bin Cheng <bin.cheng@arm.com>
13137 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
13138 (restructure_reference): Call backtrace_base_for_ref.
13140 2013-09-17 Alan Modra <amodra@gmail.com>
13143 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
13146 2013-09-16 DJ Delorie <dj@redhat.com>
13148 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
13149 vregs location for RL78/G10.
13150 (rl78_expand_prologue): Avoid SEL on G10.
13151 (rl78_expand_epilogue): Likewise.
13152 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
13153 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13154 __RL78_G10__ when appropriate.
13155 (ASM_SPEC): Pass -mg10 along to the assembler.
13156 * config/rl78/rl78.md (sel_rb): Disable for G10.
13157 * config/rl78/rl78.opt: Add -mg10 option.
13158 * config/rl78/t-rl78: Add -mg10 multilib.
13160 2013-09-16 Xinliang David Li <davidxl@google.com>
13162 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
13163 * omp-low.c (omp_max_vf): Ditto.
13164 (expand_omp_simd): Ditto.
13165 * tree-vectorizer.c (vectorize_loops): Ditto.
13166 (gate_vect_slp): Ditto.
13167 (gate_increase_alignment): Ditto.
13168 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
13169 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
13170 (gate_tree_vectorize): Name change.
13171 (tree_vectorize): Ditto.
13172 (pass_vectorize::gate): Call new function.
13173 (pass_vectorize::execute): Ditto.
13174 * opts.c: O3 default setting change.
13175 (finish_options): Check new flag.
13176 * doc/invoke.texi: Document new flags.
13177 * common.opt: New flags.
13179 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
13181 * doc/tm.texi.in (Cond Exec Macros): Remove node.
13182 (Condition Code): Don't reference it.
13183 * doc/tm.texi: Regenerate.
13185 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
13187 PR middle-end/58418
13188 * lra-constraints.c (undo_optional_reloads): Consider all optional
13189 reload even if it did not get a hard reg.
13191 2013-09-16 Teresa Johnson <tejohnson@google.com>
13193 * dumpfile.c (dump_loc): Remove newline emission.
13194 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
13195 emission to dump_printf_loc calls where missing.
13196 (vect_mark_for_runtime_alias_test): Ditto.
13197 (vect_analyze_data_ref_dependence): Ditto.
13198 (vect_analyze_data_ref_dependences): Ditto.
13199 (vect_slp_analyze_data_ref_dependence): Ditto.
13200 (vect_slp_analyze_data_ref_dependences): Ditto.
13201 (vect_compute_data_ref_alignment): Ditto.
13202 (vect_update_misalignment_for_peel): Ditto.
13203 (vect_verify_datarefs_alignment): Ditto.
13204 (vector_alignment_reachable_p): Ditto.
13205 (vect_get_data_access_cost): Ditto.
13206 (vect_enhance_data_refs_alignment): Ditto.
13207 (vect_find_same_alignment_drs): Ditto.
13208 (vect_analyze_data_refs_alignment): Ditto.
13209 (vect_analyze_group_access): Ditto.
13210 (vect_analyze_data_ref_access): Ditto.
13211 (vect_analyze_data_ref_accesses): Ditto.
13212 (vect_prune_runtime_alias_test_list): Ditto.
13213 (vect_analyze_data_refs): Ditto.
13214 (vect_create_addr_base_for_vector_ref): Ditto.
13215 (vect_create_data_ref_ptr): Ditto.
13216 (vect_grouped_store_supported): Ditto.
13217 (vect_grouped_load_supported): Ditto.
13218 * value-prof.c (check_counter): Ditto.
13219 (check_ic_target): Ditto.
13220 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
13221 (vect_recog_widen_mult_pattern): Ditto.
13222 (vect_recog_widen_sum_pattern): Ditto.
13223 (vect_recog_over_widening_pattern): Ditto.
13224 (vect_recog_widen_shift_pattern): Ditto.
13225 (vect_recog_rotate_pattern): Ditto.
13226 (vect_recog_vector_vector_shift_pattern): Ditto.
13227 (vect_recog_divmod_pattern): Ditto.
13228 (vect_recog_mixed_size_cond_pattern): Ditto.
13229 (vect_recog_bool_pattern): Ditto.
13230 (vect_pattern_recog_1): Ditto.
13231 (vect_pattern_recog): Ditto.
13232 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
13233 (vect_is_simple_iv_evolution): Ditto.
13234 (vect_analyze_scalar_cycles_1): Ditto.
13235 (vect_get_loop_niters): Ditto.
13236 (vect_analyze_loop_1): Ditto.
13237 (vect_analyze_loop_form): Ditto.
13238 (vect_analyze_loop_operations): Ditto.
13239 (vect_analyze_loop_2): Ditto.
13240 (vect_analyze_loop): Ditto.
13241 (report_vect_op): Ditto.
13242 (vect_is_slp_reduction): Ditto.
13243 (vect_is_simple_reduction_1): Ditto.
13244 (vect_get_known_peeling_cost): Ditto.
13245 (vect_estimate_min_profitable_iters): Ditto.
13246 (vect_model_reduction_cost): Ditto.
13247 (vect_model_induction_cost): Ditto.
13248 (get_initial_def_for_induction): Ditto.
13249 (vect_create_epilog_for_reduction): Ditto.
13250 (vectorizable_reduction): Ditto.
13251 (vectorizable_induction): Ditto.
13252 (vectorizable_live_operation): Ditto.
13253 (vect_loop_kill_debug_uses): Ditto.
13254 (vect_transform_loop): Ditto.
13255 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
13256 (vect_stmt_relevant_p): Ditto.
13257 (process_use): Ditto.
13258 (vect_mark_stmts_to_be_vectorized): Ditto.
13259 (vect_model_simple_cost): Ditto.
13260 (vect_model_promotion_demotion_cost): Ditto.
13261 (vect_model_store_cost): Ditto.
13262 (vect_get_store_cost): Ditto.
13263 (vect_model_load_cost): Ditto.
13264 (vect_get_load_cost): Ditto.
13265 (vect_init_vector_1): Ditto.
13266 (vect_get_vec_def_for_operand): Ditto.
13267 (vect_finish_stmt_generation): Ditto.
13268 (vectorizable_call): Ditto.
13269 (vectorizable_conversion): Ditto.
13270 (vectorizable_assignment): Ditto.
13271 (vectorizable_shift): Ditto.
13272 (vectorizable_operation): Ditto.
13273 (vectorizable_store): Ditto.
13274 (vectorizable_load): Ditto.
13275 (vectorizable_condition): Ditto.
13276 (vect_analyze_stmt): Ditto.
13277 (vect_transform_stmt): Ditto.
13278 (vect_is_simple_use): Ditto.
13279 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
13280 (vect_can_advance_ivs_p): Ditto.
13281 (vect_update_ivs_after_vectorizer): Ditto.
13282 (vect_do_peeling_for_loop_bound): Ditto.
13283 (vect_gen_niters_for_prolog_loop): Ditto.
13284 (vect_update_inits_of_drs): Ditto.
13285 (vect_create_cond_for_alias_checks): Ditto.
13286 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
13287 (vect_build_slp_tree_1): Ditto.
13288 (vect_supported_load_permutation_p): Ditto.
13289 (vect_analyze_slp_instance): Ditto.
13290 (vect_analyze_slp): Ditto.
13291 (vect_make_slp_decision): Ditto.
13292 (vect_detect_hybrid_slp): Ditto.
13293 (vect_bb_vectorization_profitable_p): Ditto.
13294 (vect_slp_analyze_bb_1): Ditto.
13295 (vect_update_slp_costs_according_to_vf): Ditto.
13296 (vect_get_mask_element): Ditto.
13297 (vect_transform_slp_perm_load): Ditto.
13298 (vect_schedule_slp_instance): Ditto.
13299 (vect_schedule_slp): Ditto.
13300 (vect_slp_transform_bb): Ditto.
13301 * profile.c (read_profile_edge_counts): Ditto.
13302 (compute_branch_probabilities): Ditto.
13303 * coverage.c (get_coverage_counts): Ditto.
13305 2013-09-16 Diego Novillo <dnovillo@google.com>
13307 * tree-core.h: Add missing comment lines from refactoring of tree.h.
13309 2013-09-16 Jan Hubicka <jh@suse.cz>
13311 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
13312 abstract functions; for static functions check the presence of body.
13314 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
13316 * config/aarch64/aarch64-simd-builtins.def (fma): New.
13317 * config/aarch64/aarch64-simd.md
13318 (aarch64_mla_elt<mode>): New.
13319 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
13320 (aarch64_mls_elt<mode>): Likewise.
13321 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
13322 (aarch64_fma4_elt<mode>): Likewise.
13323 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
13324 (aarch64_fma4_elt_to_128v2df): Likewise.
13325 (aarch64_fma4_elt_to_64df): Likewise.
13326 (fnma<mode>4): Likewise.
13327 (aarch64_fnma4_elt<mode>): Likewise.
13328 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
13329 (aarch64_fnma4_elt_to_128v2df): Likewise.
13330 (aarch64_fnma4_elt_to_64df): Likewise.
13331 * config/aarch64/iterators.md (VDQSF): New.
13332 * config/aarch64/arm_neon.h
13333 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
13334 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
13336 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
13338 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
13339 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
13340 (aarch64_mul3_elt_to_128df): Likewise.
13341 (aarch64_mul3_elt_to_64v2df): Likewise.
13342 * config/aarch64/iterators.md (VEL): Also handle DFmode.
13344 (VMUL_CHANGE_NLANES) Likewise.
13347 * config/aarch64/arm_neon.h
13348 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
13350 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
13352 * config/aarch64/arm_neon.h
13353 (vcvtx_high_f32_f64): Fix parameters.
13355 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13356 Uros Bizjak <ubizjak@gmail.com>
13358 * config/alpha.c: Include tree-ssanames.h.
13360 2013-09-16 Richard Biener <rguenther@suse.de>
13362 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
13363 (dot_rdg_1): Handle control_dd.
13364 (create_edge_for_control_dependence): New function.
13365 (create_rdg_edges): Add control dependences if asked for.
13366 (build_rdg): Likewise.
13367 (generate_loops_for_partition): If there are not necessary
13368 control stmts remove all their dependencies.
13369 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
13370 (distribute_loop): Pass on control dependences.
13371 (tree_loop_distribution): Compute control dependences and remove
13372 restriction on number of loop nodes.
13374 2013-09-16 Jakub Jelinek <jakub@redhat.com>
13376 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
13377 for internal calls.
13379 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
13381 * cse.c (try_const_anchors): Punt on CC modes.
13383 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13385 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
13387 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
13390 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
13391 calls to word_mode.
13393 2013-09-14 Iain Sandoe <iain@codesourcery.com>
13396 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
13398 (darwin_objc1_section): Likewise.
13399 (darwin_file_end): Emit Image Info section when required.
13401 2013-09-14 Jan Hubicka <jh@suse.cz>
13403 * tree-into-ssa.c (gate_into_ssa): New.
13404 (pass_data_build_ssa): Use it.
13405 * cgraph.h (expand_thunk): Update prototype.
13406 * cgraphunit.c (analyze_function): Expand thunks early.
13407 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
13408 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
13409 set lowered flag; do not add new function.
13410 (assemble_thunks_and_aliases): Update.
13411 * tree-ssa.c (gate_init_datastructures): New gate.
13412 (pass_data_init_datastructures): Use it.
13414 2013-09-14 Iain Sandoe <iain@codesourcery.com>
13417 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
13418 xmm register set described in the psABI.
13420 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
13422 * dwarf2out.c (should_emit_struct_debug): Add check
13423 for type_decl variable is not NULL.
13425 2013-09-13 Jacek Caban <jacek@codeweavers.com>
13427 * config.gcc: Use new winnt-c.c target hooks
13428 * config/t-winnt: New file
13429 * config/winnt-c.c: New file
13430 * doc/tm.texi.in: Document new hook
13431 * doc/tm.texi: Regenerated
13433 2013-09-13 Jan Hubicka <jh@suse.cz>
13435 PR middle-end/58094
13436 * ipa-inline.c (check_callers): New function.
13437 (check_caller_edge): Remove.
13438 (want_inline_function_to_all_callers_p): Also permit alises that are
13440 (inline_to_all_callers): Terminate the walk when devirtualization
13441 introduce new calls.
13443 2013-09-13 Jan Hubicka <jh@suse.cz>
13445 * ipa-inline-analysis.c (struct growth_data): Add node.
13446 (do_estimate_growth_1): Fix detection of recursion.
13448 2013-09-13 Jakub Jelinek <jakub@redhat.com>
13450 PR tree-optimization/58392
13451 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
13452 to avoid shadowing of outer loop variable. If
13453 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
13454 replace_by_duplicate_decl simduid of loops that have it set and
13455 set dest_cfun->has_simduid_loops and/or
13456 dest_cfun->has_force_vect_loops.
13457 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
13458 instead of maybe_lookup_decl.
13459 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
13460 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
13461 call. Copy over force_vect and copy and remap simduid. Set
13462 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
13463 (copy_cfg_body): Remove blocks_to_copy argument. Use
13464 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
13465 caller. Don't set cfun->has_simduid_loops and/or
13466 cfun->has_force_vect_loops here.
13467 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
13469 (expand_call_inline, tree_function_versioning): Adjust copy_body
13472 2013-09-13 Martin Jambor <mjambor@suse.cz>
13475 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
13476 the assert if the edge was a speculative one.
13478 2013-09-13 Richard Biener <rguenther@suse.de>
13480 * tree-data-ref.h (known_dependences_p): Move here ...
13481 * tree-loop-distribution.c (known_dependences_p): ... from here.
13482 (dump_rdg_component, debug_rdg_component): Remove.
13483 (dump_rdg): Adjust.
13484 (generate_loops_for_partition): Use gimple_uid instead of
13485 relying on matching stmt visit order.
13486 (rdg_build_partitions): Take starting stmt vector.
13487 (ldist_gen): Merge into ...
13488 (distribute_loop): ... this function. Do not compute starting
13490 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
13492 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13494 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
13495 Set type attribute correctly. Set predicable_short_it attribute.
13496 (cmpsi_shiftsi): Remove %? from output template.
13498 2013-09-13 Richard Biener <rguenther@suse.de>
13500 * tree-loop-distribution.c (struct rdg_component,
13501 rdg_defs_used_in_other_loops_p, free_rdg_components,
13502 rdg_build_components): Remove.
13503 (stmts_from_loop): Do not record virtual PHIs.
13504 (generate_loops_for_partition): Skip virtual PHIs.
13505 (build_rdg_partition_for_component): Rename to ...
13506 (build_rdg_partition_for_vertex): ... this and adjust.
13507 (rdg_build_partitions): Take a vector of starting vertices
13508 instead of components. Remove unnecessary leftover handling.
13509 (ldist_gen): Do not build components or record other stores.
13510 (distribute_loop): Do not distribute loops containing stmts
13513 2013-09-13 Christian Bruel <christian.bruel@st.com>
13516 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
13518 2013-09-13 Kai Tietz <ktietz@redhat.com>
13520 * config.gcc: Separate cases for mingw and cygwin targets,
13521 and add 64-bit cygwin target case.
13523 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
13524 dll-export inline-functions.
13525 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
13527 2013-09-13 Jeff Law <law@redhat.com>
13529 PR middle-end/58387
13531 2013-09-06 Jeff Law <law@redhat.com>
13533 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13534 edge implied equivalences into successor phis.
13536 2013-09-12 DJ Delorie <dj@redhat.com>
13538 * config/rl78/rl78-virt.md: Change from | to \; for asm line
13541 2013-09-12 Brooks Moses <bmoses@google.com>
13544 * Makefile.in: Do not install driver binaries in $(target)/bin.
13546 2013-09-12 DJ Delorie <dj@redhat.com>
13548 * config/rl78/rl78.opt (mrelax): New.
13549 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
13550 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
13552 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
13554 (rl78_expand_epilogue): Likewise.
13556 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
13558 PR middle-end/58335
13559 * lra-eliminations.c (remove_reg_equal_offset_note): New.
13560 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
13561 pointer elimination with using remove_reg_equal_offset_note.
13563 2013-09-12 DJ Delorie <dj@redhat.com>
13565 * config/msp430/: New port.
13566 * config.gcc (msp430): Added.
13567 * doc/invoke.texi: Document MSP430 options.
13568 * doc/install.texi: Document msp430-elf
13569 * doc/md.texi: Document msp430-elf
13570 * doc/contrib.texi: Document msp430-elf
13572 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
13575 2013-09-12 Martin Jambor <mjambor@suse.cz>
13578 * ipa-prop.c (remove_described_reference): Give up if the edge in the
13579 reference descriptor is NULL.
13580 (ipa_edge_removal_hook): If owning a reference descriptor, set its
13583 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
13585 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
13586 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
13587 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
13588 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
13589 make_temp_ssa_name): move to tree-ssanames.h
13590 * tree-ssa-alias.h: Move prototype.
13591 * tree-ssa.h: Include tree-ssanames.h.
13592 * tree-ssanames.c (FREE_SSANAMES): Move to here.
13593 * tree-ssanames.h: New. Move items from tree-flow*.h
13594 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
13596 2013-09-12 Richard Biener <rguenther@suse.de>
13598 PR tree-optimization/58404
13599 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
13600 propagate non-invariant addresses into dereferences wrapped
13601 in component references.
13603 2013-09-12 Richard Biener <rguenther@suse.de>
13605 PR tree-optimization/58402
13606 * passes.def: Move pass_late_warn_uninitialized later.
13608 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
13610 * tree-ssa.h: New. Move content from tree-flow.h and
13611 tree-flow-inline.h.
13612 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
13613 Move prototypes belonging to tree-ssa.c.
13614 * tree-flow-inline.h (redirect_edge_var_map_def,
13615 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
13617 * gimple.h: Adjust prototypes.
13618 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
13620 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
13621 * tree.h: Move prototype to tree-ssa.h.
13622 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
13623 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
13624 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
13625 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
13626 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
13627 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
13628 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
13629 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
13630 graphite-blocking.c, graphite-clast-to-gimple.c,
13631 graphite-dependences.c, graphite-interchange.c,
13632 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
13633 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
13634 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
13635 ipa-reference.c, ipa-split.c, ipa-utils.c,
13636 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
13637 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
13638 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
13639 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
13640 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
13641 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
13642 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
13643 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
13644 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
13645 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
13646 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
13647 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13648 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
13649 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
13650 value-prof.c, var-tracking.c,
13651 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
13653 2013-09-12 Richard Biener <rguenther@suse.de>
13655 PR tree-optimization/58396
13656 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
13657 (build_rdg): Take a loop-nest parameter, fix memleaks.
13658 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
13660 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
13662 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
13665 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
13667 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
13668 The FMA instruction names should have a 'v' prefix.
13670 2013-09-12 Richard Biener <rguenther@suse.de>
13672 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
13673 (dot_rdg): Use popen instead of system in optional code.
13674 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
13675 (already_processed_vertex_p): Adjust.
13676 (has_anti_or_output_dependence, predecessor_has_mem_write,
13677 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
13678 rdg_flag_uses): Remove.
13679 (rdg_flag_vertex): Simplify.
13680 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
13682 (build_rdg_partition_for_component): Process the first vertex
13683 of a component only.
13684 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
13686 2013-09-12 Alan Modra <amodra@gmail.com>
13688 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
13690 2013-09-11 DJ Delorie <dj@redhat.com>
13691 Nick Clifton <nickc@redhat.com>
13693 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
13694 (rl78_stack_based_mem): New.
13695 * config/rl78/constraints.md (Iv08): New.
13704 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
13706 (movsi): Change from expand to insn-and-split.
13707 (ashrsi3): Clobber AX.
13711 * config/rl78/rl78.md (CC_REG): Fix.
13712 (addsi3): Allow memory and immediate operands.
13713 (addsi3_internal): Split into...
13714 (addsi3_internal_virt): ...new, and ...
13715 (addsi3_internal_real): ...new.
13717 (subsi3_internal_virt): New.
13718 (subsi3_internal_real): New.
13719 (mulsi3): Add memory operand.
13720 (mulsi3_rl78): Likewise.
13721 (mulsi3_g13): Likewise.
13722 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
13723 (cbranchqi4_real): Add more constraint options.
13724 (cbranchhi4_real): Expand pattern.
13725 (cbranchhi4_real_signed): New.
13726 (cbranchhi4_real_inverted): New.
13727 (cbranchsi4_real_lt): New.
13728 (cbranchsi4_real_ge): New.
13729 (cbranchsi4_real_signed): New.
13730 (cbranchsi4_real): New.
13732 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
13734 (lshrsi3_virt): Likewise.
13735 (ashlsi3_virt): Likewise.
13736 (cbranchqi4_virt_signed): New.
13737 (cbranchhi4_virt_signed): New.
13738 (cbranchsi4_virt): New.
13739 * config/rl78/rl78.c: Whitespace fixes throughout.
13740 (move_elim_pass): New.
13741 (pass_data_rl78_move_elim): New.
13742 (pass_rl78_move_elim): New.
13743 (make_pass_rl78_move_elim): New.
13744 (rl78_devirt_info): Run devirt earlier.
13745 (rl78_move_elim_info): New.
13746 (rl78_asm_file_start): Register it.
13747 (rl78_split_movsi): New.
13748 (rl78_as_legitimate_address): Allow virtual base registers when
13750 (rl78_addr_space_convert): Remove spurious debug stuff.
13751 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
13752 (rl78_print_operand): More cases for not printing '#'.
13753 (rl78_expand_compare): Remove most of the logic.
13754 (content_memory): New.
13755 (clear_content_memory): New.
13756 (get_content_index): New.
13757 (get_content_name): New.
13758 (display_content_memory): New.
13759 (update_content): New.
13760 (record_content): New.
13761 (already_contains): New.
13762 (insn_ok_now): Re-recog insns with virtual registers.
13763 (add_postponed_content_update): New.
13764 (process_postponed_content_update): New.
13765 (gen_and_emit_move): New.
13766 (transcode_memory_rtx): Record new location content.
13767 Use gen_and_emit_move.
13768 (force_into_acc): New.
13769 (move_to_acc): Use gen_and_emit_move.
13770 (move_from_acc): Likewise.
13771 (move_acc_to_reg): Likewise.
13772 (move_to_x): Likewise.
13773 (move_to_hl): Likewise.
13774 (move_to_de): Likewise.
13775 (rl78_alloc_physical_registers_op1): Record location content.
13776 (has_constraint): New.
13777 (rl78_alloc_physical_registers_op2): Record location content.
13778 Optimize use of HL.
13779 (rl78_alloc_physical_registers_ro1): Likewise.
13780 (rl78_alloc_physical_registers_cmp): Likewise.
13781 (rl78_alloc_physical_registers_umul): Likewise.
13782 (rl78_alloc_address_registers_macax): New.
13783 (rl78_alloc_physical_registers): Initialize and set location
13784 content memory as needed.
13785 (rl78_reorg): Make sure split2 is called.
13786 (rl78_rtx_costs): New.
13788 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
13790 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
13791 for (not (neg ...)) and (neg (not ...)) cases.
13793 2013-09-11 Richard Biener <rguenther@suse.de>
13795 PR middle-end/58377
13796 * passes.def: Split critical edges before late uninit warning passes.
13797 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
13799 2013-09-11 Jakub Jelinek <jakub@redhat.com>
13801 PR tree-optimization/58385
13802 * fold-const.c (build_range_check): If both low and high are NULL,
13803 use omit_one_operand_loc to preserve exp side-effects.
13805 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13807 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
13809 2013-09-11 Richard Biener <rguenther@suse.de>
13811 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
13812 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
13813 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
13814 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
13815 stmts_from_loop, known_dependences_p, build_empty_rdg,
13816 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
13817 * tree-loop-distribution.c: ... here.
13818 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
13819 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
13820 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
13821 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
13822 * tree-loop-distribution.c: ... here.
13823 * tree-loop-distribution.c: Include gimple-pretty-print.h.
13824 (struct partition_s): Add loops member.
13825 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
13826 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
13827 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
13829 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13830 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13831 Sergey Lega <sergey.s.lega@intel.com>
13832 Anna Tikhonova <anna.tikhonova@intel.com>
13833 Ilya Tocar <ilya.tocar@intel.com>
13834 Andrey Turetskiy <andrey.turetskiy@intel.com>
13835 Ilya Verbin <ilya.verbin@intel.com>
13836 Kirill Yukhin <kirill.yukhin@intel.com>
13837 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13839 * config/i386/constraints.md (k): New.
13841 * config/i386/i386.c (const regclass_map): Add new mask registers.
13842 (dbx_register_map): Ditto.
13843 (dbx64_register_map): Ditto.
13844 (svr4_dbx_register_map): Ditto.
13845 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
13847 (ix86_preferred_reload_class): Disable constants for mask registers.
13848 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
13849 (ix86_hard_regno_mode_ok): Support new mask registers.
13850 (x86_order_regs_for_local_alloc): Ditto.
13851 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
13852 (FIXED_REGISTERS): Add new mask registers.
13853 (CALL_USED_REGISTERS): Ditto.
13854 (REG_ALLOC_ORDER): Ditto.
13855 (VALID_MASK_REG_MODE): New.
13856 (FIRST_MASK_REG): Ditto.
13857 (LAST_MASK_REG): Ditto.
13858 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
13859 (MAYBE_MASK_CLASS_P): New.
13860 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
13861 (REG_CLASS_CONTENTS): Ditto.
13862 (MASK_REGNO_P): New.
13863 (ANY_MASK_REG_P): Ditto.
13864 (HI_REGISTER_NAMES): Add new mask registers.
13865 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
13866 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
13868 (attribute "type"): Add mskmov, msklog.
13869 (attribute "length_immediate"): Support them.
13870 (attribute "memory"): Ditto.
13871 (attribute "prefix_0f"): Ditto.
13872 (*movhi_internal): Support new mask registers.
13873 (*movqi_internal): Ditto.
13874 (define_split): Split out clobber pattern is a logic
13875 insn on mask registers.
13876 (*k<logic><mode>): New.
13877 (*andhi_1): Extend to support mask regs.
13878 (*andqi_1): Extend to support mask regs.
13879 (kandn<mode>): New.
13880 (define_split): Split and-not to and and not if operands
13882 (*<code><mode>_1): Separate HI mode to new pattern...
13883 (*<code>hi_1): This.
13884 (*<code>qi_1): Extend to support mask regs.
13885 (kxnor<mode>): New.
13886 (kortestzhi): Ditto.
13887 (kortestchi): Ditto.
13889 (*one_cmpl<mode>2_1): Remove HImode and handle it...
13890 (*one_cmplhi2_1): ...Here, now with mask registers support.
13891 (*one_cmplqi2_1): Support new mask registers.
13892 (HI/QImode arithmetics splitter): Don't split if mask registers
13894 (HI/QImode not splitter): Ditto.
13895 * config/i386/predicated.md (mask_reg_operand): New.
13896 (general_reg_operand): Ditto.
13898 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13900 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
13901 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
13903 2013-09-10 Jeff Law <law@redhat.com>
13905 PR tree-optimization/58380
13906 * tree-ssa-threadupdate.c (thread_block): Recognize another case
13907 of threading through a buried loop header.
13909 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
13910 return value for single successor case.
13912 2013-09-10 Jan Hubicka <jh@suse.cz>
13914 * ipa-devirt.c (ipa_devirt): Enable with LTO.
13916 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
13919 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
13920 support conditional execution.
13921 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
13923 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
13925 * lra.c (lra): Clear lra_optional_reload_pseudos before every
13927 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
13928 Check destination too to check move insn.
13929 (undo_optional_reloads): Add check that the original peudo did not
13930 changed its allocation and the optional reload was inherited on last
13931 inheritance pass. Break loop after deciding to keep optional reload.
13932 (lra_undo_inheritance): Add check that inherited pseudo still in
13935 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
13937 * config/aarch64/aarch64.md (generic_sched): New.
13938 * config/aarch64/aarch64-generic.md (load): Make conditional
13939 on generic_sched attribute.
13940 (nonload): Likewise.
13942 2013-09-10 Jan Hubicka <jh@suse.cz>
13944 * lto-cgraph.c: Include ipa-utils.h.
13945 (compute_ltrans_boundary): Also add possible targets into the boundary.
13947 2013-09-10 Jan Hubicka <jh@suse.cz>
13949 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
13950 VAR_DECL of vtable rather than full expression.
13952 2013-09-10 Jan Hubicka <jh@suse.cz>
13953 Paolo Carlini <paolo.carlini@oracle.com>
13955 * cgraphunit.c (analyze_functions): Save input_location, set it
13956 to UNKNOWN_LOCATION and restore it at the end.
13958 2013-09-10 Martin Jambor <mjambor@suse.cz>
13960 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
13961 represented by a thunk.
13963 2013-09-10 Jeff Law <law@redhat.com>
13965 PR tree-optimization/58343
13966 * tree-ssa-threadupdate.c (thread_block): Identify and disable
13967 jump threading requests through loop headers buried in the middle
13968 of a jump threading path.
13970 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
13971 in return value/type.
13973 2013-09-10 Jakub Jelinek <jakub@redhat.com>
13975 PR rtl-optimization/58365
13976 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
13977 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
13980 2013-09-10 Richard Biener <rguenther@suse.de>
13982 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
13983 * tree-data-ref.c (create_rdg_vertices): Collect all data
13984 references, signal failure to the caller, use data-ref API.
13985 (build_rdg): Compute data references only once. Maintain lifetime
13986 of data references and data dependences from within RDG.
13987 (free_rdg): Free dependence relations.
13988 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
13989 inventing extra dependences.
13990 (distribute_loop): Update for RDG API changes.
13992 2013-09-10 Kai Tietz <ktietz@redhat.com>
13994 * doc/invoke.texi (fms-extensions): Document changed
13995 behavior for ms-abi targets.
13996 * config/i386/i386.c (ix86_option_override_internal):
13997 Set default value of option -fms-extension for ms-abi targets.
13999 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
14001 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
14003 2013-09-10 Alan Modra <amodra@gmail.com>
14006 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
14008 2013-09-10 Alan Modra <amodra@gmail.com>
14010 * config/rs6000/predicates.md (add_cint_operand): New.
14011 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
14012 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
14013 using add_cint_operand.
14014 (largetoc_high_plus_aix): Likewise.
14016 2013-09-09 Jakub Jelinek <jakub@redhat.com>
14018 PR tree-optimization/58364
14019 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
14020 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
14021 the current range can't be an unconditional true or false.
14023 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
14025 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
14027 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
14029 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
14031 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
14034 * doc/invoke.texi (-Wdelete-incomplete): Document it.
14036 2013-09-09 Ian Bolton <ian.bolton@arm.com>
14038 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
14039 NO_REGS for immediate that can't be moved directly into FP_REGS.
14041 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14043 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
14044 comparison with negated operand.
14045 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
14048 2013-09-09 Richard Biener <rguenther@suse.de>
14050 PR middle-end/58326
14051 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
14052 of a subloop record all its block as affecting loop-closed SSA form.
14054 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
14056 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
14057 of an rtx/bitpos pair.
14058 (store_fixed_bit_field): Update accordingly.
14060 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
14062 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
14064 * builtins.c (expand_errno_check): Likewise.
14065 * dwarf2cfi.c (init_return_column_size): Likewise.
14066 * except.c (sjlj_mark_call_sites): Likewise.
14067 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
14068 * lra-constraints.c (emit_inc): Likewise.
14069 * ree.c (combine_set_extension): Likewise.
14070 * regmove.c (fixup_match_2): Likewise.
14071 * reload1.c (inc_for_reload): Likewise.
14073 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
14075 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
14076 (force_to_mode, simplify_shift_const_1, simplify_comparison):
14077 Use gen_int_mode with the mode of the associated simplify_* call.
14078 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
14079 * expmed.c (expand_shift_1): Likewise.
14080 * function.c (instantiate_virtual_regs_in_insn): Likewise.
14081 * loop-iv.c (iv_number_of_iterations): Likewise.
14082 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14083 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14085 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
14087 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
14088 of the associated expand_* call.
14089 (asan_emit_stack_protection): Likewise.
14090 * builtins.c (round_trampoline_addr): Likewise.
14091 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
14092 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
14093 (emit_store_flag): Likewise.
14094 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
14095 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
14097 * function.c (instantiate_virtual_regs_in_insn): Likewise.
14098 * ifcvt.c (noce_try_store_flag_constants): Likewise.
14099 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14100 * modulo-sched.c (generate_prolog_epilog): Likewise.
14101 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
14102 (expand_ctz, expand_ffs, expand_unop): Likewise.
14104 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
14106 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
14107 of the associated gen_rtx_* call.
14108 * caller-save.c (init_caller_save): Likewise.
14109 * combine.c (find_split_point, make_extraction): Likewise.
14110 (make_compound_operation): Likewise.
14111 * dwarf2out.c (mem_loc_descriptor): Likewise.
14112 * explow.c (plus_constant, probe_stack_range): Likewise.
14113 * expmed.c (expand_mult_const): Likewise.
14114 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
14115 * reload1.c (init_reload): Likewise.
14116 * valtrack.c (cleanup_auto_inc_dec): Likewise.
14117 * var-tracking.c (adjust_mems): Likewise.
14118 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
14119 rather than gen_rtx_fmt_ee.
14121 2013-09-09 Jan Hubicka <jh@suse.cz>
14123 PR middle-end/58294
14124 * value-prof.c (gimple_ic): Copy also abnormal edges.
14126 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
14128 * asan.c (asan_shadow_cst): Use gen_int_mode.
14130 2013-09-08 Jan Hubicka <jh@suse.cz>
14132 * ipa-profile.c: Add toplevel comment.
14133 (ipa_propagate_frequency_1): Be more conservative when profile is read.
14134 (contains_hot_call_p): New function.
14135 (ipa_propagate_frequency): Set frequencies based on counts when
14137 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
14138 profile; do not tamper with profile after inlining if it is read.
14140 2013-09-08 Jan Hubicka <jh@suse.cz>
14142 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
14145 2013-09-08 Jan Hubicka <jh@suse.cz>
14147 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
14148 summary generation.
14150 2013-09-08 Jeff Law <law@redhat.com>
14153 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
14156 2013-09-08 Andi Kleen <ak@linux.intel.com>
14158 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
14160 2013-09-08 Jan Hubicka <jh@suse.cz>
14162 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
14164 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
14166 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
14167 for non-debug insns.
14168 * lra.c (new_insn_reg): Take the containing insn as a parameter.
14169 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
14170 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
14173 2013-09-08 Jan Hubicka <jh@suse.cz>
14175 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
14176 targets and devirtualize to BUILT_IN_UNREACHABLE.
14177 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
14178 * ipa.c (walk_polymorphic_call_targets): New function.
14179 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
14180 functions; use the new timevar.
14181 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
14182 was removed from the program.
14183 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
14184 not consider it in the walk when its vtable is dead.
14185 (possible_polymorphic_call_targets_1): Pass anonymous flag to
14187 (devirt_variable_node_removal_hook): New function.
14188 (possible_polymorphic_call_targets): Also register
14189 devirt_variable_node_removal_hook.
14190 (ipa_devirt): Do not do non-speculative devirtualization.
14191 (gate_ipa_devirt): One execute if devirtualizing speculatively.
14193 2013-09-08 Jan Hubicka <jh@suse.cz>
14195 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
14196 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
14197 varpool_remove_variable_insertion_hook): Declare.
14198 * varpool.c (varpool_node_hook_list): New structure.
14199 (first_varpool_node_removal_hook,
14200 first_varpool_variable_insertion_hook): New variables.
14201 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
14202 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
14203 varpool_remove_variable_insertion_hook,
14204 varpool_call_variable_insertion_hooks): New functions.
14205 (varpool_remove_node): Use it.
14207 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
14210 * diagnostic.c (diagnostic_build_prefix): When s.file is
14211 "<built-in>" don't output line and column numbers.
14213 2013-09-06 Jan Hubicka <jh@suse.cz>
14215 * cgraphunit.c (expand_thunk): Get body before touching arguments.
14216 * lto-streamer-out.c: Stream thunks, too.
14217 * lto-streamer-in.c (input_function): Pop cfun here
14218 (lto_read_body): Instead of here.
14220 2013-09-06 Caroline Tice <cmtice@google.com>
14222 * doc/install.texi: Add documentation for the --enable-vtable-verify
14223 and the --disable-libvtv configure options.
14225 2013-09-06 Jeff Law <law@redhat.com>
14227 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14228 edge implied equivalences into successor phis.
14230 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
14232 * resource.c (mark_referenced_resources): Handle COND_EXEC.
14234 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
14236 * resource.c (mark_target_live_regs): Compute resources taking
14237 into account if a call is predicated or not.
14239 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
14241 * toplev.c (output_stack_usage): Be prepared for suffixes created by
14242 the compiler in the function names.
14244 2013-09-06 Jan Hubicka <jh@suse.cz>
14246 PR middle-end/58094
14247 * ipa-inline.c (has_caller_p): New function.
14248 (want_inline_function_to_all_callers_p): Use it.
14249 (sum_callers, inline_to_all_callers): Break out from ...
14250 (ipa_inline): ... here.
14252 2013-09-06 Jan Hubicka <jh@suse.cz>
14254 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
14255 only when AVX is enabled.
14257 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14259 * config/aarch64/aarch64.md
14260 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
14261 is fpsimd_<load/store>2.
14262 (load_pair<mode>): Likewise.
14263 (store_pair<mode>): Likewise.
14265 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14267 * config/arm/types.md (type): Add "mrs" type.
14268 * config/aarch64/aarch64.md
14269 (aarch64_load_tp_hard): Make type "mrs".
14270 * config/arm/arm.md
14271 (load_tp_hard): Make type "mrs".
14272 * config/arm/cortex-a15.md: Update with new attributes.
14273 * config/arm/cortex-a5.md: Update with new attributes.
14274 * config/arm/cortex-a53.md: Update with new attributes.
14275 * config/arm/cortex-a7.md: Update with new attributes.
14276 * config/arm/cortex-a8.md: Update with new attributes.
14277 * config/arm/cortex-a9.md: Update with new attributes.
14278 * config/arm/cortex-m4.md: Update with new attributes.
14279 * config/arm/cortex-r4.md: Update with new attributes.
14280 * config/arm/fa526.md: Update with new attributes.
14281 * config/arm/fa606te.md: Update with new attributes.
14282 * config/arm/fa626te.md: Update with new attributes.
14283 * config/arm/fa726te.md: Update with new attributes.
14285 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14287 * config/aarch64/aarch64.md
14288 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
14289 (*movtf_aarch64): Likewise.
14290 * config/arm/arm.md
14291 (thumb1_movdi_insn): Use "multiple" for type where more than one
14292 instruction is used for a move.
14293 (*arm32_movhf): Likewise.
14294 (*thumb_movdf_insn): Likewise.
14296 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14298 * config/arm/types.md (type): Rename fcpys to fmov.
14299 * config/arm/vfp.md
14300 (*arm_movsi_vfp): Rename type fcpys as fmov.
14301 (*thumb2_movsi_vfp): Likewise
14302 (*movhf_vfp_neon): Likewise
14303 (*movhf_vfp): Likewise
14304 (*movsf_vfp): Likewise
14305 (*thumb2_movsf_vfp): Likewise
14306 (*movsfcc_vfp): Likewise
14307 (*thumb2_movsfcc_vfp): Likewise
14308 * config/aarch64/aarch64-simd.md
14309 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
14310 * config/aarch64/aarch64.md
14311 (*movsi_aarch64): Replace type mov_reg with fmovs.
14312 (*movdi_aarch64): Likewise
14313 (*movsf_aarch64): Likewise
14314 (*movdf_aarch64): Likewise
14316 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
14317 * config/arm/iwmmxt.md
14318 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
14319 * config/arm/arm1020e.md: Update with new attributes.
14320 * config/arm/cortex-a15-neon.md: Update with new attributes.
14321 * config/arm/cortex-a5.md: Update with new attributes.
14322 * config/arm/cortex-a53.md: Update with new attributes.
14323 * config/arm/cortex-a7.md: Update with new attributes.
14324 * config/arm/cortex-a8-neon.md: Update with new attributes.
14325 * config/arm/cortex-a9.md: Update with new attributes.
14326 * config/arm/cortex-m4-fpu.md: Update with new attributes.
14327 * config/arm/cortex-r4f.md: Update with new attributes.
14328 * config/arm/marvell-pj4.md: Update with new attributes.
14329 * config/arm/vfp11.md: Update with new attributes.
14331 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14333 * config/aarch64/aarch64.md
14334 (*madd<mode>): Fix type attribute.
14335 (*maddsi_uxtw): Likewise.
14336 (*msub<mode>): Likewise.
14337 (*msubsi_uxtw): Likewise.
14338 (<su_optab>maddsidi4): Likewise.
14339 (<su_optab>msubsidi4): Likewise.
14341 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14343 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
14344 * config/arm/arm.md (core_cycles): Remove fdiv.
14345 * config/arm/vfp.md:
14346 (*sqrtsf2_vfp): Update for attribute changes.
14347 (*sqrtdf2_vfp): Likewise.
14348 * config/aarch64/aarch64.md:
14349 (sqrt<mode>2): Update for attribute changes.
14350 * config/arm/arm1020e.md: Update with new attributes.
14351 * config/arm/cortex-a15-neon.md: Update with new attributes.
14352 * config/arm/cortex-a5.md: Update with new attributes.
14353 * config/arm/cortex-a53.md: Update with new attributes.
14354 * config/arm/cortex-a7.md: Update with new attributes.
14355 * config/arm/cortex-a8-neon.md: Update with new attributes.
14356 * config/arm/cortex-a9.md: Update with new attributes.
14357 * config/arm/cortex-m4-fpu.md: Update with new attributes.
14358 * config/arm/cortex-r4f.md: Update with new attributes.
14359 * config/arm/marvell-pj4.md: Update with new attributes.
14360 * config/arm/vfp11.md: Update with new attributes.
14362 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14364 * config/arm/types.md
14365 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
14366 * config/aarch64/aarch64.md
14367 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
14369 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
14370 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
14371 (float<GPI:mode><GPF:mode>2): Likewise.
14372 * config/arm/vfp.md
14373 (*truncsisf2_vfp): Update with new attributes.
14374 (*truncsidf2_vfp): Likewise.
14375 (fixuns_truncsfsi2): Likewise.
14376 (fixuns_truncdfsi2): Likewise.
14377 (*floatsisf2_vfp): Likewise.
14378 (*floatsidf2_vfp): Likewise.
14379 (floatunssisf2): Likewise.
14380 (floatunssidf2): Likewise.
14381 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
14382 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
14383 * config/arm/arm1020e.md: Update with new attributes.
14384 * config/arm/cortex-a15-neon.md: Update with new attributes.
14385 * config/arm/cortex-a5.md: Update with new attributes.
14386 * config/arm/cortex-a53.md: Update with new attributes.
14387 * config/arm/cortex-a7.md: Update with new attributes.
14388 * config/arm/cortex-a8-neon.md: Update with new attributes.
14389 * config/arm/cortex-a9.md: Update with new attributes.
14390 * config/arm/cortex-m4-fpu.md: Update with new attributes.
14391 * config/arm/cortex-r4f.md: Update with new attributes.
14392 * config/arm/marvell-pj4.md: Update with new attributes.
14393 * config/arm/vfp11.md: Update with new attributes.
14395 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14397 * config/aarch64/arm_neon.h
14398 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
14399 (vqtbx<1,2,3,4><q>_s8): Likewise.
14401 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14403 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
14404 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
14405 (add<mode>3): Add type attribute.
14406 (add<mode>3): Likewise.
14407 (usadd<mode>3): Likewise.
14408 (ssadd<mode>3): Likewise.
14409 (sub<mode>3): Likewise.
14410 (sub<mode>3): Likewise.
14411 (ussub<mode>3): Likewise.
14412 (sssub<mode>3): Likewise.
14413 (ssmulsa3): Likewise.
14414 (usmulusa3): Likewise.
14415 (arm_usatsihi): Likewise.
14416 * config/arm/vfp.md
14417 (*movdi_vfp): Add types for all instructions.
14418 (*movdi_vfp_cortexa8): Likewise.
14419 (*movhf_vfp_neon): Likewise.
14420 (*movhf_vfp): Likewise.
14421 (*movdf_vfp): Likewise.
14422 (*thumb2_movdf_vfp): Likewise.
14423 (*thumb2_movdfcc_vfp): Likewise.
14424 * config/arm/arm.md: Add type attribute to all insn patterns.
14425 (*thumb1_adddi3): Add type attribute.
14426 (*arm_adddi3): Likewise.
14427 (*adddi_sesidi_di): Likewise.
14428 (*adddi_zesidi_di): Likewise.
14429 (*thumb1_addsi3): Likewise.
14430 (addsi3_compare0): Likewise.
14431 (*addsi3_compare0_scratch): Likewise.
14432 (*compare_negsi_si): Likewise.
14433 (cmpsi2_addneg): Likewise.
14434 (*addsi3_carryin_<optab>): Likewise.
14435 (*addsi3_carryin_alt2_<optab>): Likewise.
14436 (*addsi3_carryin_clobercc_<optab>): Likewise.
14437 (*subsi3_carryin): Likewise.
14438 (*subsi3_carryin_const): Likewise.
14439 (*subsi3_carryin_compare): Likewise.
14440 (*subsi3_carryin_compare_const): Likewise.
14441 (*arm_subdi3): Likewise.
14442 (*thumb_subdi3): Likewise.
14443 (*subdi_di_zesidi): Likewise.
14444 (*subdi_di_sesidi): Likewise.
14445 (*subdi_zesidi_di): Likewise.
14446 (*subdi_sesidi_di): Likewise.
14447 (*subdi_zesidi_ze): Likewise.
14448 (thumb1_subsi3_insn): Likewise.
14449 (*arm_subsi3_insn): Likewise.
14450 (*anddi3_insn): Likewise.
14451 (*anddi_zesidi_di): Likewise.
14452 (*anddi_sesdi_di): Likewise.
14453 (*ne_zeroextracts): Likewise.
14454 (*ne_zeroextracts): Likewise.
14455 (*ite_ne_zeroextr): Likewise.
14456 (*ite_ne_zeroextr): Likewise.
14457 (*anddi_notdi_di): Likewise.
14458 (*anddi_notzesidi): Likewise.
14459 (*anddi_notsesidi): Likewise.
14460 (andsi_notsi_si): Likewise.
14461 (thumb1_bicsi3): Likewise.
14462 (*iordi3_insn): Likewise.
14463 (*iordi_zesidi_di): Likewise.
14464 (*iordi_sesidi_di): Likewise.
14465 (*thumb1_iorsi3_insn): Likewise.
14466 (*xordi3_insn): Likewise.
14467 (*xordi_zesidi_di): Likewise.
14468 (*xordi_sesidi_di): Likewise.
14469 (*arm_xorsi3): Likewise.
14470 (*andsi_iorsi3_no): Likewise.
14471 (*smax_0): Likewise.
14472 (*smax_m1): Likewise.
14473 (*arm_smax_insn): Likewise.
14474 (*smin_0): Likewise.
14475 (*arm_smin_insn): Likewise.
14476 (*arm_umaxsi3): Likewise.
14477 (*arm_uminsi3): Likewise.
14478 (*minmax_arithsi): Likewise.
14479 (*minmax_arithsi_): Likewise.
14480 (*satsi_<SAT:code>): Likewise.
14481 (arm_ashldi3_1bit): Likewise.
14482 (arm_ashrdi3_1bit): Likewise.
14483 (arm_lshrdi3_1bit): Likewise.
14484 (*arm_negdi2): Likewise.
14485 (*thumb1_negdi2): Likewise.
14486 (*arm_negsi2): Likewise.
14487 (*thumb1_negsi2): Likewise.
14488 (*negdi_extendsid): Likewise.
14489 (*negdi_zero_extend): Likewise.
14490 (*arm_abssi2): Likewise.
14491 (*thumb1_abssi2): Likewise.
14492 (*arm_neg_abssi2): Likewise.
14493 (*thumb1_neg_abss): Likewise.
14494 (one_cmpldi2): Likewise.
14495 (extend<mode>di2): Likewise.
14496 (*compareqi_eq0): Likewise.
14497 (*arm_extendhisi2addsi): Likewise.
14498 (*arm_movdi): Likewise.
14499 (*thumb1_movdi_insn): Likewise.
14500 (*arm_movt): Likewise.
14501 (*thumb1_movsi_insn): Likewise.
14502 (pic_add_dot_plus_four): Likewise.
14503 (pic_add_dot_plus_eight): Likewise.
14504 (tls_load_dot_plus_eight): Likewise.
14505 (*thumb1_movhi_insn): Likewise.
14506 (*thumb1_movsf_insn): Likewise.
14507 (*movdf_soft_insn): Likewise.
14508 (*thumb_movdf_insn): Likewise.
14509 (cbranchsi4_insn): Likewise.
14510 (cbranchsi4_scratch): Likewise.
14511 (*negated_cbranchsi4): Likewise.
14512 (*tbit_cbranch): Likewise.
14513 (*tlobits_cbranch): Likewise.
14514 (*tstsi3_cbranch): Likewise.
14515 (*cbranchne_decr1): Likewise.
14516 (*addsi3_cbranch): Likewise.
14517 (*addsi3_cbranch_scratch): Likewise.
14518 (*arm_cmpdi_insn): Likewise.
14519 (*arm_cmpdi_unsig): Likewise.
14520 (*arm_cmpdi_zero): Likewise.
14521 (*thumb_cmpdi_zero): Likewise.
14522 (*deleted_compare): Likewise.
14523 (*mov_scc): Likewise.
14524 (*mov_negscc): Likewise.
14525 (*mov_notscc): Likewise.
14526 (*cstoresi_eq0_thumb1_insn): Likewise.
14527 (cstoresi_nltu_thumb1): Likewise.
14528 (cstoresi_ltu_thu): Likewise.
14529 (thumb1_addsi3_addgeu): Likewise.
14530 (*arm_jump): Likewise.
14531 (*thumb_jump): Likewise.
14532 (*check_arch2): Likewise.
14533 (arm_casesi_internal): Likewise.
14534 (thumb1_casesi_dispatch): Likewise.
14535 (*arm_indirect_jump): Likewise.
14536 (*thumb1_indirect_jump): Likewise.
14538 (*and_scc): Likewise.
14539 (*ior_scc): Likewise.
14540 (*compare_scc): Likewise.
14541 (*cond_move): Likewise.
14542 (*cond_arith): Likewise.
14543 (*cond_sub): Likewise.
14544 (*cmp_ite0): Likewise.
14545 (*cmp_ite1): Likewise.
14546 (*cmp_and): Likewise.
14547 (*cmp_ior): Likewise.
14548 (*ior_scc_scc): Likewise.
14549 (*ior_scc_scc_cmp): Likewise.
14550 (*and_scc_scc): Likewise.
14551 (*and_scc_scc_cmp): Likewise.
14552 (*and_scc_scc_nod): Likewise.
14553 (*negscc): Likewise.
14554 (movcond_addsi): Likewise.
14555 (movcond): Likewise.
14556 (*ifcompare_plus_move): Likewise.
14557 (*if_plus_move): Likewise.
14558 (*ifcompare_move_plus): Likewise.
14559 (*if_move_plus): Likewise.
14560 (*ifcompare_arith_arith): Likewise.
14561 (*if_arith_arith): Likewise.
14562 (*ifcompare_arith_move): Likewise.
14563 (*if_arith_move): Likewise.
14564 (*ifcompare_move_arith): Likewise.
14565 (*if_move_arith): Likewise.
14566 (*ifcompare_move_not): Likewise.
14567 (*if_move_not): Likewise.
14568 (*ifcompare_not_move): Likewise.
14569 (*if_not_move): Likewise.
14570 (*ifcompare_shift_move): Likewise.
14571 (*if_shift_move): Likewise.
14572 (*ifcompare_move_shift): Likewise.
14573 (*if_move_shift): Likewise.
14574 (*ifcompare_shift_shift): Likewise.
14575 (*ifcompare_not_arith): Likewise.
14576 (*ifcompare_arith_not): Likewise.
14577 (*if_arith_not): Likewise.
14578 (*ifcompare_neg_move): Likewise.
14579 (*if_neg_move): Likewise.
14580 (*ifcompare_move_neg): Likewise.
14581 (*if_move_neg): Likewise.
14582 (prologue_thumb1_interwork): Likewise.
14583 (*cond_move_not): Likewise.
14584 (*sign_extract_onebit): Likewise.
14585 (*not_signextract_onebit): Likewise.
14586 (stack_tie): Likewise.
14587 (align_4): Likewise.
14588 (align_8): Likewise.
14589 (consttable_end): Likewise.
14590 (consttable_1): Likewise.
14591 (consttable_2): Likewise.
14592 (consttable_4): Likewise.
14593 (consttable_8): Likewise.
14594 (consttable_16): Likewise.
14595 (*thumb1_tablejump): Likewise.
14596 (prefetch): Likewise.
14597 (force_register_use): Likewise.
14598 (thumb_eh_return): Likewise.
14599 (load_tp_hard): Likewise.
14600 (load_tp_soft): Likewise.
14601 (tlscall): Likewise.
14602 (*arm_movtas_ze): Likewise.
14603 (*arm_rev): Likewise.
14604 (*arm_revsh): Likewise.
14605 (*arm_rev16): Likewise.
14606 * config/arm/thumb2.md
14607 (*thumb2_smaxsi3): Likewise.
14608 (*thumb2_sminsi3): Likewise.
14609 (*thumb32_umaxsi3): Likewise.
14610 (*thumb2_uminsi3): Likewise.
14611 (*thumb2_negdi2): Likewise.
14612 (*thumb2_abssi2): Likewise.
14613 (*thumb2_neg_abss): Likewise.
14614 (*thumb2_movsi_insn): Likewise.
14615 (tls_load_dot_plus_four): Likewise.
14616 (*thumb2_movhi_insn): Likewise.
14617 (*thumb2_mov_scc): Likewise.
14618 (*thumb2_mov_negs): Likewise.
14619 (*thumb2_mov_negs): Likewise.
14620 (*thumb2_mov_nots): Likewise.
14621 (*thumb2_mov_nots): Likewise.
14622 (*thumb2_movsicc_): Likewise.
14623 (*thumb2_movsfcc_soft_insn): Likewise.
14624 (*thumb2_indirect_jump): Likewise.
14625 (*thumb2_and_scc): Likewise.
14626 (*thumb2_ior_scc): Likewise.
14627 (*thumb2_ior_scc_strict_it): Likewise.
14628 (*thumb2_cond_move): Likewise.
14629 (*thumb2_cond_arith): Likewise.
14630 (*thumb2_cond_ari): Likewise.
14631 (*thumb2_cond_sub): Likewise.
14632 (*thumb2_negscc): Likewise.
14633 (*thumb2_movcond): Likewise.
14634 (thumb2_casesi_internal): Likewise.
14635 (thumb2_casesi_internal_pic): Likewise.
14636 (*thumb2_alusi3_short): Likewise.
14637 (*thumb2_mov<mode>_shortim): Likewise.
14638 (*thumb2_addsi_short): Likewise.
14639 (*thumb2_subsi_short): Likewise.
14640 (thumb2_addsi3_compare0): Likewise.
14641 (*thumb2_cbz): Likewise.
14642 (*thumb2_cbnz): Likewise.
14643 (*thumb2_one_cmplsi2_short): Likewise.
14644 (*thumb2_negsi2_short): Likewise.
14645 (*orsi_notsi_si): Likewise.
14646 * config/arm/arm1020e.md: Update with new attributes.
14647 * config/arm/arm1026ejs.md: Update with new attributes.
14648 * config/arm/arm1136jfs.md: Update with new attributes.
14649 * config/arm/arm926ejs.md: Update with new attributes.
14650 * config/arm/cortex-a15.md: Update with new attributes.
14651 * config/arm/cortex-a5.md: Update with new attributes.
14652 * config/arm/cortex-a53.md: Update with new attributes.
14653 * config/arm/cortex-a7.md: Update with new attributes.
14654 * config/arm/cortex-a8.md: Update with new attributes.
14655 * config/arm/cortex-a9.md: Update with new attributes.
14656 * config/arm/cortex-m4.md: Update with new attributes.
14657 * config/arm/cortex-r4.md: Update with new attributes.
14658 * config/arm/fa526.md: Update with new attributes.
14659 * config/arm/fa606te.md: Update with new attributes.
14660 * config/arm/fa626te.md: Update with new attributes.
14661 * config/arm/fa726te.md: Update with new attributes.
14663 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14665 * config/aarch64/aarch64-simd.md
14666 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
14667 <vwx> iterator to ensure correct register choice.
14668 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
14669 (aarch64_sqdmull_n<mode>): Likewise.
14670 (aarch64_sqdmull2_n<mode>_internal): Likewise.
14671 * config/aarch64/arm_neon.h
14672 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
14673 (vml<as><q>_n_<su>16): Likewise.
14674 (vml<as>l_high_lane<q>_<su>16): Likewise.
14675 (vml<as>l_high_n_<su>16): Likewise.
14676 (vml<as>l_lane<q>_<su>16): Likewise.
14677 (vml<as>l_n_<su>16): Likewise.
14678 (vmul<q>_lane<q>_<su>16): Likewise.
14679 (vmul<q>_n_<su>16): Likewise.
14680 (vmull_lane<q>_<su>16): Likewise.
14681 (vmull_n_<su>16): Likewise.
14682 (vmull_high_lane<q>_<su>16): Likewise.
14683 (vmull_high_n_<su>16): Likewise.
14684 (vqrdmulh<q>_n_s16): Likewise.
14686 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
14688 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
14689 have the correct lane parameter.
14691 2013-09-06 Richard Biener <rguenther@suse.de>
14693 * cfganal.c (control_dependences::~control_dependences):
14694 Properly free all of the vector.
14696 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
14699 * config/i386/i386.c (ix86_conditional_register_usage):
14700 Proper initialize extended SSE registers.
14702 2013-09-06 Jan Hubicka <jh@suse.cz>
14704 PR tree-optimization/58311
14705 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
14707 2013-09-06 Jan Hubicka <jh@suse.cz>
14709 * Makefile.in (tree-sra.o): Update dependencies.
14710 * tree-sra.c: Include ipa-utils.h
14711 (scan_function): Use recursive_call_p.
14712 (has_caller_p): New function.
14713 (cgraph_for_node_and_aliases): Count also callers of aliases.
14715 2013-09-06 Jan Hubicka <jh@suse.cz>
14717 PR middle-end/58094
14718 * cgraph.h (symtab_semantically_equivalent_p): Declare.
14719 * tree-tailcall.c: Include ipa-utils.h.
14720 (find_tail_calls): Use it.
14721 * ipa-pure-const.c (check_call): Likewise.
14722 * ipa-utils.c (recursive_call_p): New function.
14723 * ipa-utils.h (recursive_call_p): Dclare.
14724 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
14725 (symtab_semantically_equivalent_p): New function.
14726 * Makefile.in (tree-tailcall.o): Update dependencies.
14728 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
14730 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
14731 non-inlinable part.
14733 2013-09-06 Richard Biener <rguenther@suse.de>
14735 * lto-streamer.h (lto_global_var_decls): Remove.
14736 * Makefile.in (OBJS): Remove lto-symtab.o.
14737 (lto-symtab.o): Remove.
14738 (GTFILES): Remove lto-symtab.c
14739 * lto-symtab.c: Move to lto/
14741 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14743 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
14744 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
14745 (UNSPEC_FPINT_RINT): New constant definitions.
14746 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
14747 definition with 2 attributes.
14748 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
14749 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
14752 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14754 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
14755 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
14756 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
14757 attribute to "z196_alone".
14758 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
14761 2013-09-06 Richard Biener <rguenther@suse.de>
14763 * basic-block.h (class control_dependences): New.
14764 * tree-ssa-dce.c (control_dependence_map): Remove.
14766 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
14767 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
14768 find_pdom, find_control_dependence, find_all_control_dependences):
14770 (mark_control_dependent_edges_necessary,
14771 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
14772 tree_dce_done, perform_tree_ssa_dce): Adjust.
14773 * cfganal.c (set_control_dependence_map_bit,
14774 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
14775 find_all_control_dependences): Move from tree-ssa-dce.c and
14776 implement as methods of control_dependences class.
14777 (control_dependences::control_dependences): New.
14778 (control_dependences::~control_dependences): Likewise.
14779 (control_dependences::get_edges_dependent_on): Likewise.
14780 (control_dependences::get_edge): Likewise.
14782 2013-09-04 Jan Hubicka <jh@suse.cz>
14784 * tree.c (types_same_for_odr): Drop overactive check.
14785 * ipa-devirt.c (hash_type_name): Likewise.
14787 2013-09-04 Jan Hubicka <jh@suse.cz>
14789 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
14790 (analyze_functions): ... here.
14792 2013-09-04 Jan Hubicka <jh@suse.cz>
14794 PR middle-end/58201
14795 * cgraphunit.c (analyze_functions): Clear AUX fields
14796 after processing; initialize assembler name has.
14798 2013-09-05 Jeff Law <law@redhat.com>
14800 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
14801 from thread_around_empty_block. Record threading path into PATH.
14802 Recurse if threading through the initial block is successful.
14803 (thread_across_edge): Corresponding changes to slightly simplify.
14805 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14807 * config/aarch64/aarch64.md
14808 (type): Remove frecpe, frecps, frecpx.
14809 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
14810 fix to be a TARGET_SIMD instruction.
14811 (aarch64_frecps): Remove.
14812 * config/aarch64/aarch64-simd.md
14813 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
14814 (aarch64_frecps<mode>): Handle all float/vector of float modes.
14816 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14817 Sofiane Naci <sofiane.naci@arm.com>
14819 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
14820 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
14821 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
14822 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
14823 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
14824 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
14825 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
14826 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
14827 into "clz, "rbit". Rename "shift" to "shift_imm".
14828 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
14829 changes. Update for attribute changes all occurrences of arlo_* and
14831 * config/arm/arm-fixed.md: Update for attribute changes
14832 all occurrences of arlo_* types.
14833 * config/arm/thumb2.md: Update for attribute changes all occurrences
14835 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
14836 (cortexa7_older_only): Likewise.
14837 (cortexa7_younger): Likewise.
14838 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
14839 (1020alu_shift_op): Likewise.
14840 (1020alu_shift_reg_op): Likewise.
14841 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
14842 (alu_shift_op): Likewise.
14843 (alu_shift_reg_op): Likewise.
14844 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
14845 (11_alu_shift_op): Likewise.
14846 (11_alu_shift_reg_op): Likewise.
14847 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
14848 (9_alu_shift_reg_op): Likewise.
14849 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
14851 (cortex_a15_alu_shift): Likewise.
14852 (cortex_a15_alu_shift_reg): Likewise.
14853 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
14855 (cortex_a5_alu_shift): Likewise.
14856 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
14858 (cortex_a53_alu_shift): Likewise.
14859 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
14861 (cortex_a7_alu_reg): Likewise.
14862 (cortex_a7_alu_shift): Likewise.
14863 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
14865 (cortex_a8_alu_shift): Likewise.
14866 (cortex_a8_alu_shift_reg): Likewise.
14867 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
14868 (cortex_a9_dp_shift): Likewise.
14869 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
14871 * config/arm/cortex-r4.md
14872 (cortex_r4_alu): Update for attribute changes.
14873 (cortex_r4_mov): Likewise.
14874 (cortex_r4_alu_shift_reg): Likewise.
14875 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
14876 (526_alu_shift_op): Likewise.
14877 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
14878 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
14879 (626te_alu_shift_op): Likewise.
14880 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
14881 (726te_alu_shift_op): Likewise.
14882 (726te_alu_shift_reg_op): Likewise.
14883 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
14884 (mp626_alu_shift_op): Likewise.
14885 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
14886 (pj4_alu_conds): Likewise.
14887 (pj4_shift): Likewise.
14888 (pj4_shift_conds): Likewise.
14889 (pj4_alu_shift): Likewise.
14890 (pj4_alu_shift_conds): Likewise.
14891 * config/aarch64/aarch64.md: Update for attribute change
14892 all occurrences of arlo_* and shift* types.
14894 2013-09-05 Mike Stump <mikestump@comcast.net>
14896 * tree.h: Move documentation for tree_function_decl to tree-core.h
14897 with the declaration.
14899 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
14902 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
14903 looking for widest mode.
14905 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
14907 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
14909 2013-09-05 Richard Biener <rguenther@suse.de>
14911 PR tree-optimization/58137
14912 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
14913 Do not create vectors of pointers.
14914 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
14915 types for the components of the vector initializer.
14916 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
14917 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
14919 2013-09-05 Martin Jambor <mjambor@suse.cz>
14921 * ipa-prop.c (remove_described_reference): Accept missing references,
14922 return false if that hppens, otherwise return true.
14923 (cgraph_node_for_jfunc): New function.
14924 (try_decrement_rdesc_refcount): Likewise.
14925 (try_make_edge_direct_simple_call): Use them.
14926 (ipa_edge_removal_hook): Remove references from rdescs.
14927 (ipa_edge_duplication_hook): Clone rdescs and their references
14928 when the new edge has the same caller as the old one.
14929 * cgraph.c (cgraph_resolve_speculation): Remove speculative
14930 reference before removing any edges.
14932 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
14934 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
14936 * thumb2.md (thumb2_storewb_parisi): New pattern.
14938 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
14940 * config/aarch64/aarch64-option-extensions.def: Add
14941 AARCH64_OPT_EXTENSION of 'crc'.
14942 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
14943 (AARCH64_ISA_CRC): Ditto.
14944 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
14945 description of the CRC extension.
14947 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
14949 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
14950 * config/rs6000/linux.h: Ditto.
14951 * alpha/linux.h: Ditto.
14952 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
14953 no_c99_libc_has_function.
14954 * config/c6x/uclinux-elf.h: Ditto.
14955 * config/lm32/uclinux-elf.h: Ditto.
14956 * config/m68k/uclinux.h: Ditto.
14957 * config/moxie/uclinux.h: Ditto.
14958 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
14959 (crisv32-*-linux*, cris-*-linux*): Ditto.
14960 * config/bfin/bfin.c: Include "tm_p.h".
14962 2013-09-05 Richard Biener <rguenther@suse.de>
14964 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
14965 check for a definition without a basic-block.
14967 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14968 Sofiane Naci <sofiane.naci@arm.com>
14970 * config/aarch64/aarch64.md
14971 (*movti_aarch64): Rename r_2_f and f_2_r.
14972 (*movsf_aarch64): Likewise.
14973 (*movdf_aarch64): Likewise.
14974 (*movtf_aarch64): Likewise.
14975 (aarch64_movdi_<mode>low): Likewise.
14976 (aarch64_movdi_<mode>high): Likewise.
14977 (aarch64_mov<mode>high_di): Likewise.
14978 (aarch64_mov<mode>low_di): Likewise.
14979 (aarch64_movtilow_tilow): Likewise.
14980 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
14981 values to config/arm/types.md
14982 (attribute "conds"): Update for attribute change.
14983 (anddi3_insn): Likewise.
14984 (iordi3_insn): Likewise.
14985 (xordi3_insn): Likewise.
14986 (one_cmpldi2): Likewise.
14987 * config/arm/types.md (type): Add Neon types.
14988 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
14989 use "type" attribute.
14990 (movmisalign<mode>_neon_store): Likewise.
14991 (movmisalign<mode>_neon_load): Likewise.
14992 (vec_set<mode>_internal): Likewise.
14993 (vec_setv2di_internal): Likewise.
14994 (vec_extract<mode>): Likewise.
14995 (vec_extractv2di): Likewise.
14996 (add<mode>3_neon): Likewise.
14997 (adddi3_neon): Likewise.
14998 (sub<mode>3_neon): Likewise.
14999 (subdi3_neon): Likewise.
15000 (mul<mode>3_neon): Likewise.
15001 (mul<mode>3add<mode>_neon): Likewise.
15002 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
15003 (fma<VCVTF:mode>4)): Likewise.
15004 (fma<VCVTF:mode>4_intrinsic): Likewise.
15005 (fmsub<VCVTF:mode>4)): Likewise.
15006 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
15007 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
15008 (ior<mode>3): Likewise.
15009 (and<mode>3): Likewise.
15010 (anddi3_neon): Likewise.
15011 (orn<mode>3_neon): Likewise.
15012 (orndi3_neon): Likewise.
15013 (bic<mode>3_neon): Likewise.
15014 (bicdi3_neon): Likewise.
15015 (xor<mode>3): Likewise.
15016 (one_cmpl<mode>2): Likewise.
15017 (abs<mode>2): Likewise.
15018 (neg<mode>2): Likewise.
15019 (umin<mode>3_neon): Likewise.
15020 (umax<mode>3_neon): Likewise.
15021 (smin<mode>3_neon): Likewise.
15022 (smax<mode>3_neon): Likewise.
15023 (vashl<mode>3): Likewise.
15024 (vashr<mode>3_imm): Likewise.
15025 (vlshr<mode>3_imm): Likewise.
15026 (ashl<mode>3_signed): Likewise.
15027 (ashl<mode>3_unsigned): Likewise.
15028 (neon_load_count): Likewise.
15029 (ashldi3_neon_noclobber): Likewise.
15030 (signed_shift_di3_neon): Likewise.
15031 (unsigned_shift_di3_neon): Likewise.
15032 (ashrdi3_neon_imm_noclobber): Likewise.
15033 (lshrdi3_neon_imm_noclobber): Likewise.
15034 (widen_ssum<mode>3): Likewise.
15035 (widen_usum<mode>3): Likewise.
15036 (quad_halves_<code>v4si): Likewise.
15037 (quad_halves_<code>v4sf): Likewise.
15038 (quad_halves_<code>v8hi): Likewise.
15039 (quad_halves_<code>v16qi): Likewise.
15040 (reduc_splus_v2di): Likewise.
15041 (neon_vpadd_internal<mode>): Likewise.
15042 (neon_vpsmin<mode>): Likewise.
15043 (neon_vpsmax<mode>): Likewise.
15044 (neon_vpumin<mode>): Likewise.
15045 (neon_vpumax<mode>): Likewise.
15046 (ss_add<mode>_neon): Likewise.
15047 (us_add<mode>_neon): Likewise.
15048 (ss_sub<mode>_neon): Likewise.
15049 (us_sub<mode>_neon): Likewise.
15050 (neon_vadd<mode>_unspec): Likewise.
15051 (neon_vaddl<mode>): Likewise.
15052 (neon_vaddw<mode>): Likewise.
15053 (neon_vhadd<mode>): Likewise.
15054 (neon_vqadd<mode>): Likewise.
15055 (neon_vaddhn<mode>): Likewise.
15056 (neon_vmul<mode>): Likewise.
15057 (neon_vmla<mode>): Likewise.
15058 (neon_vmlal<mode>): Likewise.
15059 (neon_vmls<mode>): Likewise.
15060 (neon_vmlsl<mode>): Likewise.
15061 (neon_vqdmulh<mode>): Likewise.
15062 (neon_vqdmlal<mode>): Likewise.
15063 (neon_vqdmlsl<mode>): Likewise.
15064 (neon_vmull<mode>): Likewise.
15065 (neon_vqdmull<mode>): Likewise.
15066 (neon_vsub<mode>_unspec): Likewise.
15067 (neon_vsubl<mode>): Likewise.
15068 (neon_vsubw<mode>): Likewise.
15069 (neon_vqsub<mode>): Likewise.
15070 (neon_vhsub<mode>): Likewise.
15071 (neon_vsubhn<mode>): Likewise.
15072 (neon_vceq<mode>): Likewise.
15073 (neon_vcge<mode>): Likewise.
15074 (neon_vcgeu<mode>): Likewise.
15075 (neon_vcgt<mode>): Likewise.
15076 (neon_vcgtu<mode>): Likewise.
15077 (neon_vcle<mode>): Likewise.
15078 (neon_vclt<mode>): Likewise.
15079 (neon_vcage<mode>): Likewise.
15080 (neon_vcagt<mode>): Likewise.
15081 (neon_vtst<mode>): Likewise.
15082 (neon_vabd<mode>): Likewise.
15083 (neon_vabdl<mode>): Likewise.
15084 (neon_vaba<mode>): Likewise.
15085 (neon_vabal<mode>): Likewise.
15086 (neon_vmax<mode>): Likewise.
15087 (neon_vmin<mode>): Likewise.
15088 (neon_vpaddl<mode>): Likewise.
15089 (neon_vpadal<mode>): Likewise.
15090 (neon_vpmax<mode>): Likewise.
15091 (neon_vpmin<mode>): Likewise.
15092 (neon_vrecps<mode>): Likewise.
15093 (neon_vrsqrts<mode>): Likewise.
15094 (neon_vqabs<mode>): Likewise.
15095 (neon_vqneg<mode>): Likewise.
15096 (neon_vcls<mode>): Likewise.
15097 (clz<mode>2): Likewise.
15098 (popcount<mode>2): Likewise.
15099 (neon_vrecpe): Likewise.
15100 (neon_vrsqrte): Likewise.
15101 (neon_vget_lane<mode>_sext_internal): Likewise.
15102 (neon_vget_lane<mode>_zext_internal): Likewise.
15103 (neon_vdup_n<mode>): Likewise.
15104 (neon_vdup_nv2di): Likewise.
15105 (neon_vdpu_lane<mode>_internal): Likewise.
15106 (neon_vswp<mode>): Likewise.
15107 (float<mode><V_cvtto>2): Likewise.
15108 (floatuns<mode><V_cvtto>2): Likewise.
15109 (fix_trunc<mode><V_cvtto>)2): Likewise
15110 (fixuns_trunc<mode><V_cvtto)2): Likewise.
15111 (neon_vcvt<mode>): Likewise.
15112 (neon_vcvtv4sfv4hf): Likewise.
15113 (neon_vcvtv4hfv4sf): Likewise.
15114 (neon_vcvt_n<mode>): Likewise.
15115 (neon_vmovn<mode>): Likewise.
15116 (neon_vqmovn<mode>): Likewise.
15117 (neon_vqmovun<mode>): Likewise.
15118 (neon_vmovl<mode>): Likewise.
15119 (neon_vmul_lane<mode>): Likewise.
15120 (neon_vmull_lane<mode>): Likewise.
15121 (neon_vqdmull_lane<mode>): Likewise.
15122 (neon_vqdmulh_lane<mode>): Likewise.
15123 (neon_vmla_lane<mode>): Likewise.
15124 (neon_vmlal_lane<mode>): Likewise.
15125 (neon_vqdmlal_lane<mode>): Likewise.
15126 (neon_vmls_lane<mode>): Likewise.
15127 (neon_vmlsl_lane<mode>): Likewise.
15128 (neon_vqdmlsl_lane<mode>): Likewise.
15129 (neon_vext<mode>): Likewise.
15130 (neon_vrev64<mode>): Likewise.
15131 (neon_vrev32<mode>): Likewise.
15132 (neon_vrev16<mode>): Likewise.
15133 (neon_vbsl<mode>_internal): Likewise.
15134 (neon_vshl<mode>): Likewise.
15135 (neon_vqshl<mode>): Likewise.
15136 (neon_vshr_n<mode>): Likewise.
15137 (neon_vshrn_n<mode>): Likewise.
15138 (neon_vqshrn_n<mode>): Likewise.
15139 (neon_vqshrun_n<mode>): Likewise.
15140 (neon_vshl_n<mode>): Likewise.
15141 (neon_vqshl_n<mode>): Likewise.
15142 (neon_vqshlu_n<mode>): Likewise.
15143 (neon_vshll_n<mode>): Likewise.
15144 (neon_vsra_n<mode>): Likewise.
15145 (neon_vsri_n<mode>): Likewise.
15146 (neon_vsli_n<mode>): Likewise.
15147 (neon_vtbl1v8qi): Likewise.
15148 (neon_vtbl2v8qi): Likewise.
15149 (neon_vtbl3v8qi): Likewise.
15150 (neon_vtbl4v8qi): Likewise.
15151 (neon_vtbx1v8qi): Likewise.
15152 (neon_vtbx2v8qi): Likewise.
15153 (neon_vtbx3v8qi): Likewise.
15154 (neon_vtbx4v8qi): Likewise.
15155 (neon_vtrn<mode>_internal): Likewise.
15156 (neon_vzip<mode>_internal): Likewise.
15157 (neon_vuzp<mode>_internal): Likewise.
15158 (neon_vld1<mode>): Likewise.
15159 (neon_vld1_lane<mode>): Likewise.
15160 (neon_vld1_dup<mode>): Likewise.
15161 (neon_vld1_dupv2di): Likewise.
15162 (neon_vst1<mode>): Likewise.
15163 (neon_vst1_lane<mode>): Likewise.
15164 (neon_vld2<mode>): Likewise.
15165 (neon_vld2_lane<mode>): Likewise.
15166 (neon_vld2_dup<mode>): Likewise.
15167 (neon_vst2<mode>): Likewise.
15168 (neon_vst2_lane<mode>): Likewise.
15169 (neon_vld3<mode>): Likewise.
15170 (neon_vld3qa<mode>): Likewise.
15171 (neon_vld3qb<mode>): Likewise.
15172 (neon_vld3_lane<mode>): Likewise.
15173 (neon_vld3_dup<mode>): Likewise.
15174 (neon_vst3<mode>): Likewise.
15175 (neon_vst3qa<mode>): Likewise.
15176 (neon_vst3qb<mode>): Likewise.
15177 (neon_vst3_lane<mode>): Likewise.
15178 (neon_vld4<mode>): Likewise.
15179 (neon_vld4qa<mode>): Likewise.
15180 (neon_vld4qb<mode>): Likewise.
15181 (neon_vld4_lane<mode>): Likewise.
15182 (neon_vld4_dup<mode>): Likewise.
15183 (neon_vst4<mode>): Likewise.
15184 (neon_vst4qa<mode>): Likewise.
15185 (neon_vst4qb<mode>): Likewise.
15186 (neon_vst4_lane<mode>): Likewise.
15187 (neon_vec_unpack<US>_lo_<mode>): Likewise.
15188 (neon_vec_unpack<US>_hi_<mode>): Likewise.
15189 (neon_vec_<US>mult_lo_<mode>): Likewise.
15190 (neon_vec_<US>mult_hi_<mode>): Likewise.
15191 (neon_vec_<US>shiftl_<mode>): Likewise.
15192 (neon_unpack<US>_<mode>): Likewise.
15193 (neon_vec_<US>mult_<mode>): Likewise.
15194 (vec_pack_trunc_<mode>): Likewise.
15195 (neon_vec_pack_trunk_<mode>): Likewise.
15196 (neon_vabd<mode>_2): Likewise.
15197 (neon_vabd<mode>_3): Likewise.
15198 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
15199 (thumb2_movsi_vfp): Likewise.
15200 (movdi_vfp): Likewise.
15201 (movdi_vfp_cortexa8): Likewise.
15202 (movhf_vfp_neon): Likewise.
15203 (movhf_vfp): Likewiwse.
15204 (movsf_vfp): Likewiwse.
15205 (thumb2_movsf_vfp): Likewiwse.
15206 (movdf_vfp): Likewise.
15207 (thumb2_movdf_vfp): Likewise.
15208 (movsfcc_vfp): Likewise.
15209 (thumb2_movsfcc_vfp): Likewise.
15210 (movdfcc_vfp): Likewise.
15211 (thumb2_movdfcc_vfp): Likewise.
15212 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
15213 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
15214 (v10_v2c): Likewise.
15215 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
15217 (cortex_a15_neon_int_2): Likewise.
15218 (cortex_a15_neon_int_3): Likewise.
15219 (cortex_a15_neon_int_4): Likewise.
15220 (cortex_a15_neon_int_5): Likewise.
15221 (cortex_a15_neon_vqneg_vqabs): Likewise.
15222 (cortex_a15_neon_vmov): Likewise.
15223 (cortex_a15_neon_vaba): Likewise.
15224 (cortex_a15_neon_vaba_qqq): Likewise.
15225 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15226 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
15227 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
15228 scalar_64_32_long_scalar): Likewise.
15229 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15230 (cortex_a15_neon_mla_qqq_8_16): Likewise.
15231 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
15232 lotype_qdd_64_32_long): Likewise.
15233 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
15234 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
15235 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
15236 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
15237 (cortex_a15_neon_shift_1): Likewise.
15238 (cortex_a15_neon_shift_2): Likewise.
15239 (cortex_a15_neon_shift_3): Likewise.
15240 (cortex_a15_neon_vshl_ddd): Likewise.
15241 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
15242 (cortex_a15_neon_vsra_vrsra): Likewise.
15243 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
15244 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
15245 (cortex_a15_neon_fp_vmul_ddd): Likewise.
15246 (cortex_a15_neon_fp_vmul_qqd): Likewise.
15247 (cortex_a15_neon_fp_vmla_ddd): Likewise.
15248 (cortex_a15_neon_fp_vmla_qqq): Likewise.
15249 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
15250 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
15251 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
15252 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
15253 (cortex_a15_neon_bp_simple): Likewise.
15254 (cortex_a15_neon_bp_2cycle): Likewise.
15255 (cortex_a15_neon_bp_3cycle): Likewise.
15256 (cortex_a15_neon_vld1_1_2_regs): Likewise.
15257 (cortex_a15_neon_vld1_3_4_regs): Likewise.
15258 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
15259 (cortex_a15_neon_vld2_4_regs): Likewise.
15260 (cortex_a15_neon_vld3_vld4): Likewise.
15261 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
15262 (cortex_a15_neon_vst1_3_4_regs): Likewise.
15263 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
15264 (cortex_a15_neon_vst3_vst4): Likewise.
15265 (cortex_a15_neon_vld1_vld2_lane): Likewise.
15266 (cortex_a15_neon_vld3_vld4_lane" 10
15267 (cortex_a15_neon_vst1_vst2_lane): Likewise.
15268 (cortex_a15_neon_vst3_vst4_lane): Likewise.
15269 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
15270 (cortex_a15_neon_ldm_2): Likewise.0
15271 (cortex_a15_neon_stm_2): Likewise.
15272 (cortex_a15_neon_mcr): Likewise.
15273 (cortex_a15_neon_mcr_2_mcrr): Likewise.
15274 (cortex_a15_neon_mrc): Likewise.
15275 (cortex_a15_neon_mrrc): Likewise.
15276 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
15278 (cortex_a15_alu_shift): Likewise.
15279 (cortex_a15_alu_shift_reg): Likewise.
15280 (cortex_a15_mult32): Likewise.
15281 (cortex_a15_mult64): Likewise.
15282 (cortex_a15_block): Likewise.
15283 (cortex_a15_branch): Likewise.
15284 (cortex_a15_load1): Likewise.
15285 (cortex_a15_load3): Likewise.
15286 (cortex_a15_store1): Likewise.
15287 (cortex_a15_store3): Likewise.
15288 (cortex_a15_call): Likewise.
15289 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
15290 (cortex_a5_f2r): Likewise.
15291 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
15293 (cortex_a53_f2r): Likewise.
15294 * config/arm/cortex-a7.md
15295 (cortex_a7_branch): Update for attribute change.
15296 (cortex_a7_call): Likewise.
15297 (cortex_a7_alu_imm): Likewise.
15298 (cortex_a7_alu_reg): Likewise.
15299 (cortex_a7_alu_shift): Likewise.
15300 (cortex_a7_mul): Likewise.
15301 (cortex_a7_load1): Likewise.
15302 (cortex_a7_store1): Likewise.
15303 (cortex_a7_load2): Likewise.
15304 (cortex_a7_store2): Likewise.
15305 (cortex_a7_load3): Likewise.
15306 (cortex_a7_store3): Likewise.
15307 (cortex_a7_load4): Likewise.
15308 (cortex_a7_store4): Likewise.
15309 (cortex_a7_fpalu): Likewise.
15310 (cortex_a7_fconst): Likewise.
15311 (cortex_a7_fpmuls): Likewise.
15312 (cortex_a7_neon_mul): Likewise.
15313 (cortex_a7_fpmacs): Likewise.
15314 (cortex_a7_neon_mla: Likewise.
15315 (cortex_a7_fpmuld: Likewise.
15316 (cortex_a7_fpmacd: Likewise.
15317 (cortex_a7_fpfmad: Likewise.
15318 (cortex_a7_fdivs: Likewise.
15319 (cortex_a7_fdivd: Likewise.
15320 (cortex_a7_r2f: Likewise.
15321 (cortex_a7_f2r: Likewise.
15322 (cortex_a7_f_flags: Likewise.
15323 (cortex_a7_f_loads: Likewise.
15324 (cortex_a7_f_loadd: Likewise.
15325 (cortex_a7_f_stores: Likewise.
15326 (cortex_a7_f_stored: Likewise.
15327 (cortex_a7_neon): Likewise.
15328 * config/arm/cortex-a8-neon.md
15329 (cortex_a8_neon_mrc): Update for attribute change.
15330 (cortex_a8_neon_mrrc): Likewise.
15331 (cortex_a8_neon_int_1): Likewise.
15332 (cortex_a8_neon_int_2): Likewise.
15333 (cortex_a8_neon_int_3): Likewise.
15334 (cortex_a8_neon_int_4): Likewise.
15335 (cortex_a8_neon_int_5): Likewise.
15336 (cortex_a8_neon_vqneg_vqabs): Likewise.
15337 (cortex_a8_neon_vmov): Likewise.
15338 (cortex_a8_neon_vaba): Likewise.
15339 (cortex_a8_neon_vaba_qqq): Likewise.
15340 (cortex_a8_neon_vsma): Likewise.
15341 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15342 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
15343 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
15344 long_scalar): Likewise.
15345 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15346 (cortex_a8_neon_mla_qqq_8_16): Likewise.
15347 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
15348 long_scalar_qdd_64_32_long): Likewise.
15349 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
15350 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
15351 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
15352 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
15353 (cortex_a8_neon_shift_1): Likewise.
15354 (cortex_a8_neon_shift_2): Likewise.
15355 (cortex_a8_neon_shift_3): Likewise.
15356 (cortex_a8_neon_vshl_ddd): Likewise.
15357 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
15358 (cortex_a8_neon_vsra_vrsra): Likewise.
15359 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
15360 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
15361 (cortex_a8_neon_fp_vsum): Likewise.
15362 (cortex_a8_neon_fp_vmul_ddd): Likewise.
15363 (cortex_a8_neon_fp_vmul_qqd): Likewise.
15364 (cortex_a8_neon_fp_vmla_ddd): Likewise.
15365 (cortex_a8_neon_fp_vmla_qqq): Likewise.
15366 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
15367 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
15368 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
15369 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
15370 (cortex_a8_neon_bp_simple): Likewise.
15371 (cortex_a8_neon_bp_2cycle): Likewise.
15372 (cortex_a8_neon_bp_3cycle): Likewise.
15373 (cortex_a8_neon_ldr): Likewise.
15374 (cortex_a8_neon_str): Likewise.
15375 (cortex_a8_neon_vld1_1_2_regs): Likewise.
15376 (cortex_a8_neon_vld1_3_4_regs): Likewise.
15377 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
15378 (cortex_a8_neon_vld2_4_regs): Likewise.
15379 (cortex_a8_neon_vld3_vld4): Likewise.
15380 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
15381 (cortex_a8_neon_vst1_3_4_regs): Likewise.
15382 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
15383 (cortex_a8_neon_vst3_vst4): Likewise.
15384 (cortex_a8_neon_vld1_vld2_lane): Likewise.
15385 (cortex_a8_neon_vld3_vld4_lane): Likewise.
15386 (cortex_a8_neon_vst1_vst2_lane): Likewise.
15387 (cortex_a8_neon_vst3_vst4_lane): Likewise.
15388 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
15389 (cortex_a8_neon_mcr): Likewise.
15390 (cortex_a8_neon_mcr_2_mcrr): Likewise.
15391 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
15392 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
15394 (ca9_neon_mrrc): Likewise.
15395 (cortex_a9_neon_int_1): Likewise.
15396 (cortex_a9_neon_int_2): Likewise.
15397 (cortex_a9_neon_int_3): Likewise.
15398 (cortex_a9_neon_int_4): Likewise.
15399 (cortex_a9_neon_int_5): Likewise.
15400 (cortex_a9_neon_vqneg_vqabs): Likewise.
15401 (cortex_a9_neon_vmov): Likewise.
15402 (cortex_a9_neon_vaba): Likewise.
15403 (cortex_a9_neon_vaba_qqq): Likewise.
15404 (cortex_a9_neon_vsma): Likewise.
15405 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15406 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
15407 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
15408 long_scalar): Likewise.
15409 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15410 (cortex_a9_neon_mla_qqq_8_16): Likewise.
15411 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
15412 long_scalar_qdd_64_32_long): Likewise.
15413 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
15414 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
15415 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
15416 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
15417 (cortex_a9_neon_shift_1): Likewise.
15418 (cortex_a9_neon_shift_2): Likewise.
15419 (cortex_a9_neon_shift_3): Likewise.
15420 (cortex_a9_neon_vshl_ddd): Likewise.
15421 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
15422 (cortex_a9_neon_vsra_vrsra): Likewise.
15423 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
15424 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
15425 (cortex_a9_neon_fp_vsum): Likewise.
15426 (cortex_a9_neon_fp_vmul_ddd): Likewise.
15427 (cortex_a9_neon_fp_vmul_qqd): Likewise.
15428 (cortex_a9_neon_fp_vmla_ddd): Likewise.
15429 (cortex_a9_neon_fp_vmla_qqq): Likewise.
15430 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
15431 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
15432 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
15433 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
15434 (cortex_a9_neon_bp_simple): Likewise.
15435 (cortex_a9_neon_bp_2cycle): Likewise.
15436 (cortex_a9_neon_bp_3cycle): Likewise.
15437 (cortex_a9_neon_ldr): Likewise.
15438 (cortex_a9_neon_str): Likewise.
15439 (cortex_a9_neon_vld1_1_2_regs): Likewise.
15440 (cortex_a9_neon_vld1_3_4_regs): Likewise.
15441 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
15442 (cortex_a9_neon_vld2_4_regs): Likewise.
15443 (cortex_a9_neon_vld3_vld4): Likewise.
15444 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
15445 (cortex_a9_neon_vst1_3_4_regs): Likewise.
15446 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
15447 (cortex_a9_neon_vst3_vst4): Likewise.
15448 (cortex_a9_neon_vld1_vld2_lane): Likewise.
15449 (cortex_a9_neon_vld3_vld4_lane): Likewise.
15450 (cortex_a9_neon_vst1_vst2_lane): Likewise.
15451 (cortex_a9_neon_vst3_vst4_lane): Likewise.
15452 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
15453 (cortex_a9_neon_mcr): Likewise.
15454 (cortex_a9_neon_mcr_2_mcrr): Likewise.
15455 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
15456 (cortex_a9_fps): Likewise.
15457 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
15459 (cortex_m4_fmuls): Likewise.
15460 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
15462 (cortex_r4_mrc): Likewise.
15463 * config/arm/iterators.md: Update comment referring to neon_type.
15464 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
15465 (iwmmxt_movsi_insn): Likewise.
15466 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
15468 (pj4_core_to_vfp): Likewise.
15469 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
15471 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
15472 (vfp_fstore): Likewise.
15473 * doc/md.texi: Change references to neon_type to refer to type.
15475 2013-09-04 Dodji Seketeli <dodji@redhat.com>
15477 * tree.h (DECL_BUILT_IN): Fix typo in comment.
15479 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
15481 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
15482 lglobl if not weak.
15484 2013-09-04 Easwaran Raman <eraman@google.com>
15486 PR middle-end/57370
15487 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
15488 (build_and_add_sum): Use it.
15489 (appears_later_in_bb): Simplify code.
15491 2013-09-04 Teresa Johnson <tejohnson@google.com>
15493 * dumpfile.c (dump_finish): Don't close stderr/stdout.
15495 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
15497 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
15499 2013-09-04 Jan Hubicka <jh@suse.cz>
15501 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
15502 * ipa-devirt.c: Include diganostic.h
15503 (odr_type_d): Add types and types_set.
15504 (hash_type_name): Work for types with vtables during LTO.
15505 (odr_hasher::remove): Fix comment; destroy types_set.
15506 (add_type_duplicate): New function,
15507 (get_odr_type): Use it.
15508 (dump_type_inheritance_graph): Dump type duplicates.
15509 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
15511 * tree.c (types_same_for_odr): Give exact answers on types with
15514 2013-09-04 Dodji Seketeli <dodji@redhat.com>
15516 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
15517 explaining their differences.
15519 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
15521 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
15523 2013-09-03 Jeff Law <law@redhat.com>
15525 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
15526 when not threading through a joiner block. Pass joiner/no joiner
15527 state to register_jump_thread.
15528 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
15529 state from argument rather than implying on path length.
15530 Dump the entire jump thread path into debugging dump.
15531 * tree-flow.h (register_jump_thread): Update prototype.
15533 2013-08-29 Xinliang David Li <davidxl@google.com>
15535 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15536 Remove a trivial gcc_assert.
15538 2013-08-29 Xinliang David Li <davidxl@google.com>
15540 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
15541 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
15542 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15543 Delay base decl alignment adjustment.
15544 * tree-vectorizer.c (vect_destroy_datarefs): New function.
15545 * tree-vectorizer.h: New data structure.
15546 (set_dr_misalignment): New function.
15547 (dr_misalignment): Ditto.
15548 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
15549 (vectorizable_load): Ditto.
15550 (ensure_base_align): New function.
15551 (vectorize_loops): Add dbg_cnt support.
15552 (execute_vect_slp): Ditto.
15553 * dbgcnt.def: New debug counter.
15554 * Makefile: New dependency.
15556 2013-09-03 Meador Inge <meadori@codesourcery.com>
15560 2013-08-30 Meador Inge <meadori@codesourcery.com>
15562 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
15564 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
15566 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
15567 function descriptor.
15569 2013-09-03 Richard Biener <rguenther@suse.de>
15571 * tree-affine.c (add_elt_to_tree): Fix association issue,
15572 avoid useless converts and make sure to always return a
15573 properly typed result.
15575 2013-09-03 Richard Biener <rguenther@suse.de>
15577 PR middle-end/57656
15578 * fold-const.c (negate_expr_p): Fix division case.
15579 (negate_expr): Likewise.
15581 2013-09-03 Richard Biener <rguenther@suse.de>
15584 * tree-streamer-out.c: Include tm.h.
15585 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
15587 2013-09-03 Jan Hubicka <jh@suse.cz>
15589 * tree-profile.c (tree_profiling): Cleanup CFG when done.
15591 2013-09-03 Alan Modra <amodra@gmail.com>
15593 * config.gcc (powerpc*-*-linux*): Add support for little-endian
15594 multilibs to big-endian target and vice versa.
15595 * config/rs6000/t-linux64: Use := assignment on all vars.
15596 (MULTILIB_EXTRA_OPTS): Remove fPIC.
15597 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
15598 * config/rs6000/t-linux64le: New file.
15599 * config/rs6000/t-linux64bele: New file.
15600 * config/rs6000/t-linux64lebe: New file.
15602 2013-09-02 Jan Hubicka <jh@suse.cz>
15604 * ipa-inline-transform.c (inline_transform): Do not
15605 optimize_inline_calls when not optimizing.
15607 2013-09-02 Jan Hubicka <jh@suse.cz>
15609 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
15610 duplicated nodes for assembler names.
15611 * symtab.c (symtab_unregister_node): Do not attempt to unlink
15612 hard registers from assembler name hash.
15614 2013-09-02 Jan Hubicka <jh@suse.cz>
15616 * ipa-split.c (execute_split_functions): Split externally visible
15617 functions called once.
15619 2013-09-02 Martin Jambor <mjambor@suse.cz>
15622 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
15623 linked list. When finding the correct duplicate, also consider also
15624 the caller in additon to its inlined_to node.
15626 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
15628 * config/aarch64/aarch64-simd-builtins.def
15629 (dup_lane_scalar): Remove.
15630 * config/aarch64/aarch64-simd.md
15631 (aarch64_simd_dup): Add 'w->w' alternative.
15632 (aarch64_dup_lane<mode>): Allow for VALL.
15633 (aarch64_dup_lane_scalar<mode>): Remove.
15634 (aarch64_dup_lane_<vswap_width_name><mode>): New.
15635 (aarch64_get_lane_signed<mode>): Add w->w altenative.
15636 (aarch64_get_lane_unsigned<mode>): Likewise.
15637 (aarch64_get_lane<mode>): Likewise.
15638 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
15639 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
15640 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
15641 (VCON): Change container of V2SF.
15642 (vswap_width_name): Likewise.
15643 * config/aarch64/arm_neon.h
15644 (__aarch64_vdup_lane_any): New.
15645 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15646 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
15647 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15649 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
15651 PR middle-end/56382
15652 * expr.c (emit_move_complex): Do not move complex FP values as parts if
15653 the source or the destination is a single hard register.
15655 2013-09-02 Richard Biener <rguenther@suse.de>
15657 PR middle-end/57511
15658 * tree-scalar-evolution.c (instantiate_scev_name): Allow
15661 2013-09-02 Richard Biener <rguenther@suse.de>
15663 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
15664 arithmetic to sizetype.
15666 2013-09-02 Bin Cheng <bin.cheng@arm.com>
15668 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
15669 Find auto-increment use both before and after candidate.
15671 2013-09-02 Marek Polacek <polacek@redhat.com>
15673 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
15675 2013-09-01 Jan Hubicka <jh@suse.cz>
15677 * Makefile.in: Add ipa-profile.o
15678 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
15679 * cgraph.c (struct cgraph_propagate_frequency_data,
15680 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
15681 ipa-profile.c; replace cgraph_ by ipa_ prefix.
15682 * cgraph.h (cgraph_propagate_frequency): Remove.
15683 * ipa-inline-analysis.c: Include ipa-utils.h;
15684 drop duplicated cfgloop.h.
15685 (inline_update_callee_summaries): Update.
15686 * ipa-profile.c: New file.
15687 * ipa-utils.h (ipa_propagate_frequency): Declare.
15688 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
15689 data-streamer.h, value-prof.h.
15690 (symtab_remove_unreachable_nodes): Update profile.
15691 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
15692 account_time_size, cmp_counts, dump_histogram,
15693 ipa_profile_generate_summary, ipa_profile_write_summary,
15694 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
15695 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
15696 Move to ipa-profile.c.
15698 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
15700 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
15702 2013-09-01 Jan Hubicka <jh@suse.cz>
15704 * common.opt (fdevirtualize-speculatively): New function.
15705 * invoke.texi (fdevirtualize-speculatively): Document.
15706 * ipa-devirt.c: Include ipa-inline.h
15707 (likely_target_p): New function.
15708 (ipa_devirt): New function.
15709 (gate_ipa_devirt): New function.
15710 (pass_data_ipa_devirt): New static var.
15711 (pass_ipa_devirt): Likewise.
15712 (make_pass_ipa_devirt): New function.
15713 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
15714 (common_handle_option): Disable devirtualization when
15715 value range profiling is available.
15716 * passes.def (pass_ipa_devirt): Add.
15717 * timever.def (TV_IPA_DEVIRT): New timevar.
15718 * tree-pass.h (make_pass_ipa_devirt):
15720 2013-09-01 Iain Sandoe <iain@codesourcery.com>
15722 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
15723 include sanitize(undefined).
15725 2013-08-31 Diego Novillo <dnovillo@google.com>
15727 * Makefile.in (TREE_CORE_H): Define.
15729 (GTFILES): Add tree-core.h.
15730 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
15732 * tree-core.h: New file.
15733 Move all data structures, enum, typedefs, global
15734 declarations and constants from ...
15735 * tree.h: ... here.
15737 2013-08-31 Jan Hubicka <jh@suse.cz>
15739 * bulitins.c (expand_builtin): Do not early exit for gcov
15740 instrumented functions.
15742 2013-08-31 Marek Polacek <polacek@redhat.com>
15744 * ubsan.c: Include tm_p.h.
15746 2013-08-31 Jan Hubicka <jh@suse.cz>
15748 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
15751 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
15752 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
15753 * tree-cfg.c (verify_gimple_label): ... here.
15754 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
15755 (ipa_merge_profiles): New function.
15756 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
15757 (lto_input_function_body): Likewise.
15758 * ipa-utils.h (ipa_merge_profiles): Declare.
15759 * lto-streamer.h (lto_input_function_body): Update prototype.
15760 (emit_label_in_global_context_p): Remove.
15761 * lto-symtab.c: Include ipa-utils.h
15762 (lto_cgraph_replace_node): Use ipa_merge_profiles.
15764 2013-08-31 Jan Hubicka <jh@suse.cz>
15766 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
15768 2013-08-31 Jan Hubicka <jh@suse.cz>
15770 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
15772 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
15774 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
15775 "cmp" RTX before signed_comparison_operator check to account
15776 for "code" changes.
15778 2013-08-30 Jan Hubicka <jh@suse.cz>
15780 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
15781 (detect_type_change_1): Rename to ...
15782 (detect_type_change): ... this one; early return on non-polymorphic
15784 (detect_type_change_ssa): Add comp_type parameter; update
15785 use of detect_type_change.
15786 (compute_complex_assign_jump_func): Add param_type parameter;
15787 update use of detect_type_change_ssa.
15788 (compute_complex_ancestor_jump_func): Likewise.
15789 (ipa_get_callee_param_type): New function.
15790 (ipa_compute_jump_functions_for_edge): Compute parameter type;
15791 update calls to the jump function computation functions.
15793 2013-08-30 Teresa Johnson <tejohnson@google.com>
15794 Steven Bosscher <steven@gcc.gnu.org>
15796 * cfgrtl.c (fixup_new_cold_bb): New routine.
15797 (commit_edge_insertions): Invoke fixup_partitions.
15798 (find_partition_fixes): New routine.
15799 (fixup_partitions): Ditto.
15800 (verify_hot_cold_block_grouping): Update comments.
15801 (rtl_verify_edges): Invoke find_partition_fixes.
15802 (rtl_verify_bb_pointers): Update comments.
15803 (rtl_verify_bb_layout): Ditto.
15804 * basic-block.h (probably_never_executed_edge_p): Declare.
15805 (fixup_partitions): Ditto.
15806 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
15807 * bb-reorder.c (sanitize_hot_paths): New function.
15808 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
15809 sanitize_hot_paths.
15810 * predict.c (probably_never_executed_edge_p): New routine.
15811 * cfg.c (check_bb_profile): Add partition insanity warnings.
15813 2013-08-30 Meador Inge <meadori@codesourcery.com>
15815 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
15817 2013-08-30 Marek Polacek <polacek@redhat.com>
15819 * Makefile.in (ubsan.o): Add.
15820 (c-family/c-ubsan.o): Add.
15821 (builtins.o): Add ubsan.h dependency.
15822 * ubsan.h: New file.
15823 * ubsan.c: New file.
15824 * common.opt: Add -fsanitize=undefined option.
15825 (flag_sanitize): Add variable.
15826 (fsanitize=): Add option. Add Driver.
15827 (fsanitize=thread): Remove option.
15828 (fsanitize=address): Likewise.
15829 (static-libubsan): New option.
15830 * doc/invoke.texi: Document the new flag and -static-libubsan.
15831 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
15832 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
15833 * builtin-attrs.def (ATTR_COLD): Define.
15834 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15835 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
15836 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
15837 * flag-types.h (sanitize_code): New enum.
15838 * opts.c (common_handle_option): Parse command line arguments
15839 of -fsanitize=. Add -fsanitize=unreachable option.
15840 * varasm.c (get_variable_section): Adjust.
15841 (assemble_noswitch_variable): Likewise.
15842 (assemble_variable): Likewise.
15843 (output_constant_def_contents): Likewise.
15844 (categorize_decl_for_section): Likewise.
15845 (place_block_symbol): Likewise.
15846 (output_object_block): Likewise.
15847 * builtins.def: Likewise.
15848 * toplev.c (compile_file): Likewise.
15849 (process_options): Likewise.
15850 * cppbuiltin.c: Likewise.
15851 * tsan.c (tsan_pass): Likewise.
15852 (tsan_gate): Likewise.
15853 (tsan_gate_O0): Likewise.
15854 * cfgexpand.c (partition_stack_vars): Likewise.
15855 (expand_stack_vars): Likewise.
15856 (defer_stack_allocation): Likewise.
15857 (expand_used_vars): Likewise.
15858 * cfgcleanup.c (old_insns_match_p): Likewise.
15859 * asan.c (asan_finish_file): Likewise.
15860 (asan_instrument): Likewise.
15861 (gate_asan): Likewise.
15862 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
15863 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15864 (asan_global_struct): Use pointer_sized_int_node instead
15865 calling build_nonstandard_integer_type.
15866 (initialize_sanitizer_builtins): Likewise.
15867 (asan_finish_file): Likewise.
15868 * gcc.c: Document %{%:function(args):X}.
15869 (static_spec_functions): Add sanitize.
15870 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
15871 store funcval != NULL there.
15872 (do_spec_1): Adjust handle_spec_function caller.
15873 (handle_braces): Allow %:function(args) as condition.
15874 (sanitize_spec_function): New function.
15875 (ADD_STATIC_LIBUBSAN_LIBS): Define.
15876 (LIBUBSAN_SPEC): Likewise.
15877 (LIBUBSAN_EARLY_SPEC): Likewise.
15878 (SANITIZER_SPEC): Handle libubsan.
15879 (SANITIZER_EARLY_SPEC): Likewise.
15880 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
15881 instead of fsanitize=address.
15882 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
15883 instead of fsanitize=address*.
15884 * builtins.c: Include ubsan.h.
15885 (fold_builtin_0): Instrument __builtin_unreachable.
15886 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
15887 instead of flag_asan.
15888 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
15889 (pointer_sized_int_node): Define.
15890 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
15892 2013-08-30 Mike Stump <mikestump@comcast.net>
15894 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
15897 2013-08-29 Jan Hubicka <jh@suse.cz>
15899 * cgraph.c (cgraph_function_body_availability): Handle weakref
15901 * passes.def: Remove pass_fixup_cfg.
15902 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
15903 track when we need to remove functions.
15904 (gate_ipa_inline): Execute inlining always; add comment why.
15905 (pass_data_ipa_inline): Remove TODO_remove_functions.
15906 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
15907 do not produce summaries.
15908 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
15909 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
15910 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
15911 constant pool and vtable.
15913 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
15915 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
15916 New arm_neon.h's internal macros to specify 64-bit constants.
15917 Avoid using stdint.h's macros.
15919 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
15921 * recog.c (verify_changes): Verify that changes[i].old is non-zero
15922 before applying REG_P.
15924 2013-08-30 Jakub Jelinek <jakub@redhat.com>
15926 PR tree-optimization/58277
15927 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
15928 after seeing too many stmts with vdef in between dombb and current
15929 bb, invalidate everything.
15931 2013-08-30 Richard Biener <rguenther@suse.de>
15933 * fold-const.c (fold_single_bit_test): Fix overflow test.
15935 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
15937 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
15938 and which can live in a register, always retrieve the value on entry.
15939 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
15940 passed by invisible reference specially.
15941 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
15942 (vt_add_function_parameter): Correctly deal with a parameter passed by
15943 invisible reference.
15945 2013-08-30 Jan Hubicka <jh@suse.cz>
15947 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
15949 2013-08-30 Richard Biener <rguenther@suse.de>
15951 PR tree-optimization/58228
15952 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
15953 allow invariant loads in nested loop vectorization.
15955 2013-08-30 Richard Biener <rguenther@suse.de>
15957 PR tree-optimization/58223
15958 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
15959 (has_anti_or_output_dependence): ... this and adjust to also
15960 look for output dependences.
15961 (mark_nodes_having_upstream_mem_writes): Adjust.
15962 (rdg_flag_uses): Likewise.
15964 2013-08-30 Richard Biener <rguenther@suse.de>
15966 PR tree-optimization/58010
15967 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15968 assert that we have a loop-closed PHI.
15970 2013-08-29 Jan Hubicka <jh@suse.cz>
15972 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
15973 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
15974 * lto-section-in.c (lto_free_function_in_decl_state): New function.
15975 (lto_free_function_in_decl_state_for_node): New function.
15977 2013-08-29 Xinliang David Li <davidxl@google.com>
15979 * loop-unroll.c (report_unroll_peel): Minor message change.
15980 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
15981 Emit alignment peeling message with default -fopt-info.
15982 (vect_loop_versioning): Emit loop version info message.
15983 * tree-vectorizer.c (vectorize_loops): Minor message change.
15984 (execute_vect_slp): Ditto.
15986 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
15988 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
15989 of the clone from the DECL_NAME of the original function.
15991 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
15993 * passes.c (register_pass): Add overload.
15994 * tree-pass.h (register_pass): Forward declare it. Add comment.
15996 2013-08-29 Jan Hubicka <jh@suse.cz>
15998 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
15999 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
16000 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
16001 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
16002 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
16003 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
16004 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
16005 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
16007 2013-08-29 Teresa Johnson <tejohnson@google.com>
16009 * dumpfile.c (dump_loc): Output column number.
16010 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
16011 * doc/invoke.texi: Document optall -fopt-info flag.
16012 * profile.c (read_profile_edge_counts): Use new dump framework.
16013 (compute_branch_probabilities): Ditto.
16014 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
16015 when pass not in any opt group.
16016 * pass_manager.h (pass_manager::get_pass_profile): New method.
16017 * value-prof.c (check_counter): Use new dump framework.
16018 (check_ic_target): Ditto.
16019 * coverage.c (get_coverage_counts): Ditto.
16020 (coverage_init): Setup new dump framework.
16022 2013-08-29 Richard Biener <rguenther@suse.de>
16024 PR tree-optimization/58246
16025 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
16026 handle the dominance check inside a basic-block.
16028 2013-08-29 Richard Biener <rguenther@suse.de>
16030 PR middle-end/57287
16031 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
16032 of default defs that appear in abnormal PHI nodes.
16034 2013-08-29 Richard Biener <rguenther@suse.de>
16036 PR tree-optimization/57685
16037 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
16038 single-use operands to avoid exponential complexity.
16040 2013-08-28 Dehao Chen <dehao@google.com>
16042 * ipa-inline.c (edge_badness): Fix integer underflow.
16044 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
16046 * gtm-builtins.def (_ITM_free): Declare leaf.
16048 2013-08-28 Jakub Jelinek <jakub@redhat.com>
16051 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
16052 (*tls_local_dynamic_base_64_largepic): Likewise.
16053 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
16054 Remove predicate from call operand.
16055 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
16056 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
16058 2013-08-28 Jeff Law <law@redhat.com>
16060 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
16061 checks for the number of predecessors and successors allowed.
16062 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
16063 which require copying a joiner block if there is a request which
16064 is a subpath that requires no joiner block copying.
16066 2013-08-28 Jan Hubicka <jh@suse.cz>
16068 * lto-streamer-out.c (DFS_write_tree_body): Drop
16069 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
16070 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
16071 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
16072 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
16073 Do not read DECL_ERROR_ISSUED.
16074 (unpack_ts_decl_with_vis_value_fields): Do not read
16076 (lto_input_ts_binfo_tree_pointers): Do not read
16077 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
16078 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
16079 write DECL_ERROR_ISSUED..
16080 (pack_ts_decl_with_vis_value_fields): Do not write
16082 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
16083 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
16084 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
16085 * tree.h (tree_decl_common): Update comment.
16086 (DECL_ERROR_ISSUED): Remove.
16088 2013-08-28 Jakub Jelinek <jakub@redhat.com>
16090 PR middle-end/58257
16091 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
16093 2013-08-28 Jan Hubicka <jh@suse.cz>
16095 * builtins.def (free): Declare leaf.
16097 2013-08-27 David Malcolm <dmalcolm@redhat.com>
16099 * gdbhooks.py: New.
16100 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
16101 * configure: Regenerate.
16103 2013-08-27 Martin Jambor <mjambor@suse.cz>
16105 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
16106 (ipa_ancestor_jf_data): Likewise.
16107 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
16108 (ipa_get_jf_pass_through_type_preserved): New function.
16109 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
16110 (ipa_get_jf_ancestor_type_preserved): New function.
16111 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
16112 (ipa_get_jf_ancestor_result): Likewise.
16113 (propagate_vals_accross_pass_through): Use
16114 ipa_get_jf_pass_through_result to do all the value mappings.
16115 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
16116 type_preserved flag.
16117 (ipa_set_jf_cst_copy): New function.
16118 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
16119 (ipa_set_jf_arith_pass_through): Likewise.
16120 (ipa_set_ancestor_jf): Likewise.
16121 (compute_complex_assign_jump_func): Set type_preserved instead of
16123 (ipa_compute_jump_functions_for_edge): Likewise.
16124 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
16125 (update_jump_functions_after_inlining): Update type_preserved.
16126 Explicitely create jump functions when combining one with pass_through.
16127 (ipa_write_jump_function): Stream the type_preserved flags.
16128 (ipa_read_jump_function): Likewise.
16130 2013-08-27 Jakub Jelinek <jakub@redhat.com>
16131 Aldy Hernandez <aldyh@redhat.com>
16133 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
16134 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
16135 * function.h (struct function): Add has_force_vect_loops and
16137 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
16138 * gimple.c (gimple_build_omp_critical): Add KIND argument and
16140 * gimple.def: Update CLAUSES comments.
16141 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
16142 (gimple_build_omp_for): Add argument to prototype.
16143 (gimple_omp_for_kind): New.
16144 (gimple_omp_for_set_kind): New.
16145 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
16146 GOVD_DATA_SHARE_CLASS.
16147 (enum omp_region_type): Add ORT_SIMD.
16148 (gimple_add_tmp_var): Handle ORT_SIMD.
16149 (gimplify_var_or_parm_decl): Same.
16150 (is_gimple_stmt): Same.
16151 (omp_firstprivatize_variable): Same.
16152 (omp_add_variable): Only use splay_tree_insert if lookup failed.
16153 (omp_notice_variable): Handle ORT_SIMD.
16154 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
16155 (omp_check_private): Handle ORT_SIMD.
16156 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
16157 OMP_CLAUSE_SAFELEN.
16158 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
16159 Handle OMP_CLAUSE_LASTPRIVATE.
16160 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
16161 OMP_CLAUSE_SAFELEN.
16162 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
16163 (gimplify_expr): Handle OMP_SIMD.
16164 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
16165 (expand_GOMP_SIMD_VF): New.
16166 (expand_GOMP_SIMD_LAST_LANE): New.
16167 * internal-fn.def (GOMP_SIMD_LANE): New.
16168 (GOMP_SIMD_VF): New.
16169 (GOMP_SIMD_LAST_LANE): New.
16170 * omp-low.c: Include target.h.
16171 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
16172 OMP_CLAUSE_SAFELEN.
16173 (check_omp_nesting_restrictions): Same.
16175 (lower_rec_simd_input_clauses): New.
16176 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
16178 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
16179 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
16180 (expand_omp_build_assign): New.
16181 (expand_omp_for_init_counts): New.
16182 (expand_omp_for_init_vars): New.
16183 (extract_omp_for_update_vars): New.
16184 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
16185 and rewrite accordingly.
16186 (expand_omp_simd): New.
16187 (expand_omp_for): Use expand_omp_simd.
16188 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
16189 (lower_omp_for): Do not lower the body.
16190 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
16191 in their own loops.
16192 * tree-flow.h (find_omp_clause): Remove prototype.
16193 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
16194 forcing vectorization of the loop, or if flag_tree_vectorize.
16195 (gate_tree_if_conversion): Similarly.
16196 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
16197 gimple_build_omp_for.
16198 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
16199 * tree-parloops (create_parallel_loop): Pass kind argument to
16200 gimple_build_omp_for.
16201 * tree-pretty-print.c (dump_omp_clause): Add cases for
16202 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
16203 OMP_CLAUSE__SIMDUID_.
16204 (dump_generic_node): Handle OMP_SIMD.
16205 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
16206 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
16207 unroll OMP_SIMD loops here.
16208 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
16209 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
16211 (vect_analyze_data_refs): Handle simd loops.
16212 * tree-vect-loop.c (vectorizable_live_operation): Handle
16214 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
16215 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
16216 (vectorizable_load): Same.
16217 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
16218 (struct simduid_to_vf): New.
16219 (simduid_to_vf::hash): New.
16220 (simduid_to-vf::equal): New.
16221 (struct simd_array_to_simduid): New.
16222 (simd_array_to_simduid::hash): New.
16223 (simd_array_to_simduid::equal): New.
16224 (adjust_simduid_builtins): New.
16225 (struct note_simd_array_uses_struct): New.
16226 (note_simd_array_uses_cb): New.
16227 (note_simd_array_uses): New.
16228 (vectorize_loops): Handle simd hints and adjust simd builtins
16230 * tree-vectorizer.h (struct _stmt_vec_info): Add
16231 simd_lane_access_p field.
16232 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
16233 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
16234 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
16235 (omp_clause_code_name): Same.
16236 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
16237 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
16238 * tree.def (OMP_SIMD): New entry.
16239 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
16240 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
16241 (OMP_CLAUSE_DECL): Adjust range for new clauses.
16242 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
16243 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
16244 (OMP_CLAUSE_LINEAR_STEP): New.
16245 (OMP_CLAUSE_SAFELEN_EXPR): New.
16246 (OMP_CLAUSE__SIMDUID__DECL): New.
16247 (find_omp_clause): New prototype.
16249 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
16251 * config/i386/driver-i386.c (host_detect_local_cpu): Update
16252 Haswell processor detection.
16254 2013-08-27 Christian Widmer <shadow@umbrox.de>
16257 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
16258 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
16259 AVX2 capable processors.
16261 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
16263 * config/aarch64/arm_neon.h: Replace all inline asm implementations
16264 of vget_low_* with implementations in terms of other intrinsics.
16266 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
16268 PR middle-end/57219
16269 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
16270 values to -1, 0 and 1.
16272 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
16274 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
16275 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
16276 (<optab><mode>3_insn): Remove.
16277 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
16278 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
16279 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
16280 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
16281 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
16282 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
16283 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
16284 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
16285 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
16286 (ror<mode>3_insn): Likewise.
16287 * config/aarch64/predicates.md (aarch64_simd_register): New.
16289 2013-08-27 Richard Biener <rguenther@suse.de>
16291 PR tree-optimization/57521
16292 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
16293 one edge is non-critical.
16294 (find_phi_replacement_condition): Make sure to use a non-critical
16295 edge. Cleanup and remove old bug workarounds.
16296 (bb_postdominates_preds): Remove.
16297 (if_convertible_loop_p_1): Do not compute post-dominators.
16298 (combine_blocks): Do not free post-dominators.
16299 (main_tree_if_conversion): Likewise.
16300 (pass_data_if_conversion): Add TODO_verify_ssa.
16302 2013-08-27 DJ Delorie <dj@redhat.com>
16304 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
16306 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
16308 * function.c (assign_parm_find_data_types): Set passed_mode and
16309 nominal_mode to the TYPE_MODE of nominal_type for the built
16310 pointer type in case of the struct-pass-by-reference.
16312 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
16314 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
16315 (UINT16_TYPE): Change default to "unsigned int".
16317 * config/avr/avr.opt (mfract-convert-truncate): New option.
16318 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
16319 is set, round negative fractional integers according to n1169
16320 when converting to integer types.
16322 2013-08-26 Jan Hubicka <jh@suse.cz>
16324 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
16325 methods can not be called indirectly when their address is not taken.
16327 2013-08-26 Jan Hubicka <jh@suse.cz>
16329 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
16332 2013-08-26 Jan Hubicka <jh@suse.cz>
16334 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
16337 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
16339 * reload.c (find_valid_class): Allow classes that do not include
16340 FIRST_PSEUDO_REGISTER - 1.
16342 2013-08-26 Jan Hubicka <jh@suse.cz>
16344 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
16345 fix edge count/frequency when speculation failed; fix type check
16346 for the direct call.
16348 2013-08-26 Jan Hubicka <jh@suse.cz>
16350 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
16352 2013-08-26 Jan Hubicka <jh@suse.cz>
16354 * ipa-inline-transform.c (inline_transform): Be ready for basic block
16355 to be changed by edge redirection.
16357 2013-08-26 Jan Hubicka <jh@suse.cz>
16359 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
16360 formating; add sanity check.
16361 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
16362 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
16363 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
16364 (resolve_noninline_speculation): Update callee keys, too.
16366 2013-08-26 Jan Hubicka <jh@suse.cz>
16368 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
16369 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
16371 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
16373 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
16376 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
16378 * config/i386/i386.c (ix86_debug_options): Remove prototype.
16379 (x86_64_elf_select_section): Ditto.
16380 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
16382 (ix86_pass_by_reference): Ditto.
16383 (output_set_got): Ditto.
16384 (ix86_unary_operator_ok): Ditto.
16385 (ix86_expand_builtin): Ditto.
16387 2013-08-23 Jan Hubicka <jh@suse.cz>
16389 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
16391 2013-08-23 Jan Hubicka <jh@suse.cz>
16393 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
16394 (tree_decl_with_vis): Add FINAL field.
16396 2013-08-23 Jeff Law <law@redhat.com>
16398 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
16399 the debugging dump when the expression is fully redundant.
16401 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
16403 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
16404 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
16405 * pretty-print.c (pp_formatted_text_data): Likewise.
16406 (pp_write_text_to_stream): Likewise.
16407 (pp_write_text_as_dot_label_to_stream): Likewise.
16408 (pp_append_r): Likewise.
16409 (pp_format): Likewise.
16410 (pp_flush): Likewise.
16411 (pp_clear_output_area): Likewise.
16412 (pp_append_text): Likewise.
16413 (pp_formatted_text): Likewise.
16414 (pp_remaining_character_count_for_line): Likewise.
16415 (pp_newline): Likewise.
16416 (pp_character): Likewise.
16417 (output_buffer::~output_buffer): Define.
16418 (pretty_printer::~pretty_printer): Destruct output buffer.
16419 * pretty-print.h (output_buffer::~output_buffer): Declare.
16420 (pretty_printer::~pretty_printer): Declare virtual.
16422 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
16425 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
16426 HOST_WIDE_INT_M1U): New macros.
16427 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
16428 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
16429 unsigned -1 for lshift.
16430 * cse.c (cse_insn): Likewise.
16431 * double-int.c (rshift_double, lshift_double): Likewise.
16432 * builtins.c (fold_builtin_bitop): Likewise.
16433 * combine.c (force_to_mode): Likewise.
16434 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
16435 * simplify-rtx.c (simplify_const_unary_operation,
16436 simplify_const_binary_operation): Likewise.
16437 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
16438 check_va_list_escapes): Likewise.
16439 * rtlanal.c (nonzero_bits1): Likewise.
16440 * expmed.c (expand_smod_pow2): Likewise.
16441 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
16443 2013-08-23 Jan Hubicka <jh@suse.cz>
16445 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
16446 as having address taken.
16448 2013-08-23 Jan Hubicka <jh@suse.cz>
16450 * ipa-utils.h (method_class_type): Declare.
16451 * ipa-devirt.c (method_class_type): Export.
16453 * cgraphunit.c (analyze_functions): Do basic devirtualization;
16454 do not walk base classes of anonymous types.
16456 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
16458 PR rtl-optimization/58220
16459 PR regression/58221
16460 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
16461 handle SEQUENCE insns properly.
16463 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
16465 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
16467 (pp_newline_and_indent): Likewise.
16468 (pp_separate_with): Likewise.
16469 * pretty-print.c (pp_newline_and_flush): Define.
16470 (pp_newline_and_indent): Likewise.
16471 (pp_separate_with): Likewise.
16473 2013-08-23 Jakub Jelinek <jakub@redhat.com>
16476 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
16477 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
16479 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
16481 * config/i386/predicates.md (ext_sse_reg_operand): New.
16482 * config/i386/i386.md (*movti_internal): Use
16483 predicate to determine if EVEX is needed.
16484 (*movsi_internal): Ditto.
16485 (*movdf_internal): Ditto.
16486 (*movsf_internal): Ditto.
16487 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
16489 2013-08-23 Jakub Jelinek <jakub@redhat.com>
16491 PR tree-optimization/58209
16492 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
16493 (find_tail_calls): Give up for pointer result types if m is non-NULL.
16494 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
16495 emit POINTER_PLUS_EXPR.
16496 (create_tailcall_accumulator): For pointer result type accumulate in
16499 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
16501 * configure.ac: Add backslashes missing from the last change.
16502 * configure: Regenerate.
16504 2013-08-22 Jan Hubicka <jh@susue.cz>
16506 * ipa.c (function_and_variable_visibility): First remember function
16507 was global and then make it local.
16509 2013-08-22 Julian Brown <julian@codesourcery.com>
16511 * configure.ac: Add aarch64 to list of arches which use "nop" in
16513 * configure: Regenerate.
16515 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16517 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
16518 gnu_libc_has_function.
16519 * config/s390/tpf.h: Likewise.
16521 2013-08-22 Jan Hubicka <jh@susue.cz>
16523 * timevar.c (validate_phases): Add cast.
16525 2013-08-22 Jan Hubicka <jh@susue.cz>
16527 * timevar.c (validate_phases): Use size_t for memory.
16528 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
16530 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
16532 * pretty-print.h (output_buffer::output_buffer): Declare.
16533 (pretty_printer::pretty_printer): Likewise.
16534 (pp_construct): Remove.
16535 * pretty-print.c (output_buffer::output_buffer): Define.
16536 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
16537 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
16538 (print_gimple_expr): Likewise.
16539 (print_gimple_seq): Likewise.
16540 (gimple_dump_bb): Likewise.
16541 * sched-vis.c (dump_value_slim): Likewise.
16542 (dump_insn_slim): Likewise.
16543 (dump_rtl_slim): Likewise.
16544 (str_pattern_slim): Likewise.
16545 * tree-mudflap.c (mf_varname_tree): Likewise.
16546 * graph.c (print_graph_cfg): Likewise.
16547 (start_graph_dump): Likewise.
16548 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
16550 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
16551 pretty printer initialization.
16552 * coretypes.h (diagnostic_context): Remove superflous type alias
16554 (pretty_printer): Likewise. Declare directly as a class.
16555 (pretty_print_info): Remove declaration as class.
16556 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
16557 and pp_clear_output_area.
16558 (asan_add_global): Likewise.
16560 2013-08-22 Jan Hubicka <jh@suse.cz>
16562 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
16563 * ipa-utils.h (update_type_inheritance_graph): Declare.
16564 (possible_polymorphic_call_target_p): Declare.
16565 (possible_polymorphic_call_target_p): New.
16566 * ipa-devirt.c: Update toplevel comments.
16567 (cached_polymorphic_call_targets): Move up.
16568 (odr_type_d): Move ID down.
16569 (polymorphic_type_binfo_p): Update comment.
16570 (odr_hasher::remove): Likewise;
16571 (get_odr_type): Set anonymous_namespace.
16572 (dump_odr_type): Dump it.
16573 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
16574 (maybe_record_node): Record node in cached_polymorphic_call_targets.
16575 (record_binfo): Add comment.
16576 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
16578 (devirt_node_removal_hook): Do not iCE when cache is freed.
16579 (possible_polymorphic_call_target_p): New predicate.
16580 (update_type_inheritance_graph): New function.
16582 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
16583 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16584 Sergey Lega <sergey.s.lega@intel.com>
16585 Anna Tikhonova <anna.tikhonova@intel.com>
16586 Ilya Tocar <ilya.tocar@intel.com>
16587 Andrey Turetskiy <andrey.turetskiy@intel.com>
16588 Ilya Verbin <ilya.verbin@intel.com>
16589 Kirill Yukhin <kirill.yukhin@intel.com>
16590 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16592 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
16593 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
16594 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
16595 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
16596 (OPTION_MASK_ISA_AVX2_UNSET): Update.
16597 (OPTION_MASK_ISA_AVX512F_UNSET): New.
16598 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
16599 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
16600 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
16601 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
16602 OPT_mavx512pf, OPT_mavx512er cases.
16603 * config/i386/constraints.md (v): New constraint.
16604 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
16605 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
16606 (bit_AVX512CD): New.
16607 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16608 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
16609 * config/i386/i386-c.c (ix86_target_macros_internal):
16610 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
16612 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
16613 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
16614 * config/i386/i386.c (regclass_map, dbx_register_map)
16615 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
16616 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
16617 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
16618 -mavx512pf options.
16619 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
16620 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
16621 -mavx512pf options. Fix formatting.
16622 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
16623 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
16624 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
16625 -mavx512cd, -mavx512pf options.
16626 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
16627 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
16628 (ix86_preferred_output_reload_class): Replace SSE_REGS with
16630 (ix86_hard_regno_mode_ok): Support 512-bit registers.
16631 (ix86_set_reg_reg_cost): Ditto.
16632 (x86_order_regs_for_local_alloc): Ditto.
16633 (MAX_VECT_LEN): Extend to 64-byte.
16634 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
16635 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
16636 (TARGET_AVX512ER, TARGET_AVX512CD): New.
16637 (BIGGEST_ALIGNMENT): Extend to 512-bits.
16638 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
16639 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
16640 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
16641 (SSE_REG_MODE_P): Support new modes.
16642 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
16643 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
16644 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
16645 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
16646 (REG_CLASS_CONTENTS): Add new registers.
16647 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
16648 (EXT_REX_SSE_REGNO_P): New.
16649 (HI_REGISTER_NAMES): Add new registers.
16650 * config/i386/i386.md: Define constants for new registers.
16651 (mode): Add new 512-bit modes.
16652 (prefix): Support evex prefix.
16653 (isa): Support avx512f, noavx512f, fma_avx512f.
16654 (ssemodesuffix): Add new 512-bit modes.
16656 (*movxi_internal_avx512f): Ditto.
16657 (*movdi_internal): Replace constraint "x" with the new constraint "v".
16659 (*movsi_internal): Likewise.
16660 (*movdf_internal): Likewise.
16661 (*movsf_internal): Likewise.
16662 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
16663 (<code><mode>3): Likewise.
16664 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
16666 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
16667 with the new constraint "v".
16668 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
16670 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
16671 with the new constraint "v".
16672 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
16673 (<sse2>_storedqu<avxsizesuffix>): Likewise.
16674 (*<plusminus_insn><mode>3): Likewise.
16675 (<sse>_vm<plusminus_insn><mode>3): Likewise.
16676 (*mul<mode>3): Likewise.
16677 (<sse>_vmmul<mode>3): Likewise.
16678 (<sse>_div<mode>3): Likewise.
16679 (<sse>_vmdiv<mode>3): Likewise.
16680 (<sse>_sqrt<mode>2): Likewise.
16681 (<sse>_vmsqrt<mode>2): Likewise.
16682 (*<code><mode>3_finite): Likewise.
16683 (*<code><mode>3) <smaxmin>: Likewise.
16684 (<sse>_vm<code><mode>3): Likewise.
16685 (*<code><mode>3) <any_logic>: Likewise.
16686 (*fma_fmadd_<mode>): Likewise.
16687 (*fma_fmsub_<mode>): Likewise.
16688 (*fma_fnmadd_<mode>): Likewise.
16689 (*fma_fnmsub_<mode>): Likewise.
16690 (*fma_fmaddsub_<mode>): Likewise.
16691 (*fma_fmsubadd_<mode>): Likewise.
16692 (*fmai_fmadd_<mode>): Likewise.
16693 (*fmai_fmsub_<mode>): Likewise.
16694 (*fmai_fnmadd_<mode>): Likewise.
16695 (*fmai_fnmsub_<mode>): Likewise.
16696 (sse_cvtsi2ss): Likewise.
16697 (sse_cvtsi2ssq): Likewise.
16698 (sse_cvtss2si): Likewise.
16699 (sse_cvtss2si_2): Likewise.
16700 (sse_cvtss2siq): Likewise.
16701 (sse_cvtss2siq_2): Likewise.
16702 (sse_cvttss2si): Likewise.
16703 (sse_cvtss2siq_2): Likewise.
16704 (float<sseintvecmodelower><mode>2): Likewise.
16705 (sse2_cvtsd2si_2): Likewise.
16706 (sse2_cvtsd2siq_2): Likewise.
16707 (*<plusminus_insn><mode>3): Likewise.
16708 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
16709 (*<sse4_1_avx2>_mul<mode>3): Likewise.
16710 (ashr<mode>3): Likewise.
16711 (<shift_insn><mode>3): Likewise.
16712 (avx2_<code><mode>3): Likewise.
16713 (*avx2_<code><mode>3): Likewise.
16714 (*andnot<mode>3): Likewise.
16715 (*<code><mode>3) <any_logic>: Likewise.
16716 (abs<mode>2): Likewise.
16717 (avx2_permvar<mode>): Likewise.
16718 (avx2_perm<mode>_1): Likewise.
16719 (*avx_vpermilp<mode>): Likewise.
16720 (avx_vpermilvar<mode>3): Likewise.
16721 (avx2_ashrv<mode>): Likewise.
16722 (avx2_<shift_insn>v<mode>): Likewise.
16723 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
16725 * doc/rtl.texi: Document XImode.
16727 2013-08-21 Jeff Law <law@redhat.com>
16729 * tree-flow.h (register_jump_thread): Pass vector of edges
16730 instead of each important edge.
16731 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
16732 thread path into a vector and pass that to register_jump_thread.
16733 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
16734 passed in edge vector to the current 3-edge form.
16737 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
16739 * dce.c (fini_dce): Call df_analyze again just in case
16740 delete_unmarked_insns removed anything.
16742 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
16744 * reload.h (struct reg_equivs): Rename to ..
16745 (struct reg_equivs_s): .. this.
16747 2013-08-20 Martin Liska <marxin.liska@gmail.com>
16749 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
16751 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16753 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
16755 2013-08-21 Jeff Law <law@redhat.com>
16757 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
16758 simplify assignments too. If the RHS collapses to a singleton
16759 range, then return the value for the range.
16761 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
16763 * config/i386/sse.md (V16): Rename to...
16765 (mov<mode>): Update iterator name.
16766 (*mov<mode>_internal): Ditto.
16767 (push<mode>1): Ditto.
16768 (movmisalign<mode>): Ditto.
16770 2013-08-20 Jan Hubicka <jh@suse.cz>
16773 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
16774 entry for direct edges.
16775 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
16777 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16779 Revert my last two changes, r201865 and r201864:
16782 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16784 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16785 instances can own GC refs.
16787 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16788 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16789 (gcc::context::gt_pch_nx): Likewise.
16790 (gcc::context::gt_pch_nx): Likewise.
16791 * ggc.h (gt_ggc_mx <T>): New.
16792 (gt_pch_nx_with_op <T>): New.
16793 (gt_pch_nx <T>): New.
16794 * passes.c (opt_pass::gt_ggc_mx): New.
16795 (opt_pass::gt_pch_nx): New.
16796 (opt_pass::gt_pch_nx_with_op): New.
16797 (pass_manager::gt_ggc_mx): New.
16798 (pass_manager::gt_pch_nx): New.
16799 (pass_manager::gt_pch_nx_with_op): New.
16800 (pass_manager::operator new): Use
16801 ggc_internal_cleared_alloc_stat rather than xcalloc.
16802 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16803 (pass_manager::gt_ggc_mx): New.
16804 (pass_manager::gt_pch_nx): New.
16805 (pass_manager::gt_pch_nx_with_op): New.
16806 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16807 (opt_pass::operator new): New.
16808 (opt_pass::gt_ggc_mx): New.
16809 (opt_pass::gt_pch_nx): New.
16810 (opt_pass::gt_pch_nx_with_op): New.
16813 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16815 * Makefile.in (GTFILES): Add context.h.
16816 * context.c (gcc::context::operator new): New.
16817 (gcc::context::gt_ggc_mx): New.
16818 (gcc::context::gt_pch_nx): New.
16819 (gcc::context::gt_pch_nx): New.
16820 * context.h (gcc::context): Add GTY((user)) marking.
16821 (gcc::context::operator new): New.
16822 (gcc::context::gt_ggc_mx): New.
16823 (gcc::context::gt_pch_nx): New.
16824 (gcc::context::gt_pch_nx): New.
16825 (g): Add GTY marking.
16826 (gt_ggc_mx (gcc::context *)): New.
16827 (gt_pch_nx (gcc::context *)): New.
16828 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16829 void *cookie)): New.
16830 * gengtype.c (open_base_files) <ifiles>: Add context.h.
16832 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
16834 * dce.c (fini_dce): Call df_analyze again just in case
16835 delete_unmarked_insns removed anything.
16837 2013-08-20 Teresa Johnson <tejohnson@google.com>
16839 PR rtl-optimizations/57451
16840 * final.c (reemit_insn_block_notes): Prevent lexical blocks
16841 from crossing split section boundaries.
16843 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
16845 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
16846 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
16847 with MULTLIB_DEFAULTS.
16849 2013-08-20 Nick Clifton <nickc@redhat.com>
16851 * target.def (narrow_volatile_bitfield): Note that the default
16852 value is false, not !TARGET_STRICT_ALIGN.
16853 * doc/tm.texi: Regenerate.
16855 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
16857 Fix LIB_SPEC for systems without libpthread.
16859 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
16860 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
16862 * config/i386/linux-common.h: Likewise.
16863 * config/mips/linux-common.h: Likewise.
16865 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16867 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
16870 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16872 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16873 instances can own GC refs.
16875 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16876 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16877 (gcc::context::gt_pch_nx): Likewise.
16878 (gcc::context::gt_pch_nx): Likewise.
16879 * ggc.h (gt_ggc_mx <T>): New.
16880 (gt_pch_nx_with_op <T>): New.
16881 (gt_pch_nx <T>): New.
16882 * passes.c (opt_pass::gt_ggc_mx): New.
16883 (opt_pass::gt_pch_nx): New.
16884 (opt_pass::gt_pch_nx_with_op): New.
16885 (pass_manager::gt_ggc_mx): New.
16886 (pass_manager::gt_pch_nx): New.
16887 (pass_manager::gt_pch_nx_with_op): New.
16888 (pass_manager::operator new): Use
16889 ggc_internal_cleared_alloc_stat rather than xcalloc.
16890 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16891 (pass_manager::gt_ggc_mx): New.
16892 (pass_manager::gt_pch_nx): New.
16893 (pass_manager::gt_pch_nx_with_op): New.
16894 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16895 (opt_pass::operator new): New.
16896 (opt_pass::gt_ggc_mx): New.
16897 (opt_pass::gt_pch_nx): New.
16898 (opt_pass::gt_pch_nx_with_op): New.
16900 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16902 * Makefile.in (GTFILES): Add context.h.
16903 * context.c (gcc::context::operator new): New.
16904 (gcc::context::gt_ggc_mx): New.
16905 (gcc::context::gt_pch_nx): New.
16906 (gcc::context::gt_pch_nx): New.
16907 * context.h (gcc::context): Add GTY((user)) marking.
16908 (gcc::context::operator new): New.
16909 (gcc::context::gt_ggc_mx): New.
16910 (gcc::context::gt_pch_nx): New.
16911 (gcc::context::gt_pch_nx): New.
16912 (g): Add GTY marking.
16913 (gt_ggc_mx (gcc::context *)): New.
16914 (gt_pch_nx (gcc::context *)): New.
16915 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16916 void *cookie)): New.
16917 * gengtype.c (open_base_files) <ifiles>: Add context.h.
16919 2013-08-20 Alan Modra <amodra@gmail.com>
16922 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
16923 (rs6000_emit_epilogue): Likewise.
16925 2013-08-19 Dehao Chen <dehao@google.com>
16927 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
16929 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
16930 Jakub Jelinek <jakub@redhat.com>
16932 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
16933 (BUILT_IN_FABSD64): Likewise.
16934 (BUILT_IN_FABSD128): Likewise.
16935 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
16936 (fold_builtin_1): Likewise.
16937 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
16938 destination and source operands.
16939 (*abstd2_fpr): Likewise.
16940 (*nabstd2_fpr): Likewise.
16942 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
16944 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
16947 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
16949 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
16952 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
16954 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
16955 * builtins.c (default_libc_has_function): New.
16956 (gnu_libc_has_function): Ditto.
16957 (no_c99_libc_has_function): Ditto.
16958 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
16959 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
16960 (fold_builtin_sincos): Likewise.
16961 (fold_builtin_cexp): Likewise.
16962 * builtins.def (DEF_C94_BUILTIN): Likewise.
16963 (DEF_C99_BUILTIN): Likewise.
16964 (DEF_C99_C90RES_BUILTIN): Likewise.
16965 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
16966 definitions to using this define.
16967 * config/darwin-protos.h (darwin_libc_has_function): New.
16968 * config/darwin.c (darwin_libc_has_function): Ditto.
16969 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
16970 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
16971 * config/darwin.h: Ditto.
16972 * config/elfos.h: Ditto.
16973 * config/freebsd.h: Ditto.
16974 * config/i386/cygming.h: Ditto.
16975 * config/i386/djgpp.h: Ditto.
16976 * config/i386/i386-interix.h: Ditto.
16977 * config/microblaze/microblaze.h: Ditto.
16978 * config/mmix/mmix.h: Ditto.
16979 * config/gnu-user.h: Ditto.
16980 * config/ia64/hpux.h: Ditto.
16981 * config/pa/pa-hpux.h: Ditto.
16982 * config/pdp11/pdp11.h: Ditto.
16983 * config/picochip/picochip.h: Ditto.
16984 * config/linux.h: Ditto.
16985 * config/netbsd.h: Ditto.
16986 * config/openbsd.h: Ditto.
16987 * config/rs6000/aix43.h: Ditto.
16988 * config/rs6000/aix51.h: Ditto.
16989 * config/rs6000/aix52.h: Ditto.
16990 * config/rs6000/aix53.h: Ditto.
16991 * config/rs6000/aix61.h: Ditto.
16992 * config/rs6000/darwin.h: Ditto.
16993 * config/rs6000/linux.h: Ditto.
16994 * config/rs6000/linux64.h: Ditto.
16995 * config/s390/tpf.h: Ditto.
16996 * config/sol2-10.h: Ditto.
16997 * config/sol2.h: Ditto.
16998 * config/vms/vms.h: Ditto.
16999 * config/vxworks.h: Ditto.
17000 * config/linux-android.c (linux_android_libc_has_function):
17001 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
17002 * config/linux-protos.h (linux_android_libc_has_function):
17004 * config/i386/i386.c (ix86_libc_has_function): New.
17005 * config/i386/i386-protos.h
17006 (ix86_libc_has_function): New declaration.
17007 * config/i386/i386.md
17008 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
17009 ("isinf<mode>2): Likewise.
17010 * convert.c (convert_to_integer): Using new target hook
17011 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
17012 TARGET_C99_FUNCTIONS.
17013 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
17014 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
17015 * coretypes.h (function_class): New enum for different
17016 classes of functions.
17017 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
17018 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
17019 (TARGET_HAS_SINCOS): Likewise.
17020 (TARGET_LIBC_HAS_FUNCTION): New.
17021 * doc/tm.texi: Regenerated.
17022 * targhooks.h (default_libc_has_function): New declaration.
17023 (no_c99_libc_has_function): Ditto.
17024 (gnu_libc_has_function): Ditto.
17025 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
17026 and TARGET_HAS_SINCOS.
17028 2013-08-18 Jan Hubicka <jh@suse.cz>
17030 * Makeifle-in (ipa-devirt.o): New.
17031 (GTFILES): Add ipa-utils.h and ipa-devirt.c
17032 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
17033 (analyze_functions): Look into possible targets of polymorphic call.
17034 * dumpfile.c (dump_files): Add type-inheritance dump.
17035 * dumpfile.h (TDI_inheritance): New.
17036 * ipa-devirt.c: New file.
17037 * ipa-utils.h (odr_type_d): Forward declare.
17038 (odr_type): New type.
17039 (build_type_inheritance_graph): Declare.
17040 (possible_polymorphic_call_targets): Declare and introduce inline
17041 variant when only edge is pased.
17042 (dump_possible_polymorphic_call_targets): Likewise.
17043 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
17044 * tree.c (type_in_anonymous_namespace_p): Break out from ...
17045 (types_same_for_odr): ... here.
17046 * tree.h (type_in_anonymous_namespace_p): Declare.
17048 2013-08-18 Jakub Jelinek <jakub@redhat.com>
17050 PR tree-optimization/58006
17051 * tree-parloops.c (take_address_of): Don't ICE if get_name
17053 (eliminate_local_variables_stmt): Remove clobber stmts.
17055 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
17057 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
17058 error message is issued for an alias to undefined symbol.
17060 2013-08-18 Jan Hubicka <jh@suse.cz>
17062 * cgraph.c (cgraph_create_indirect_edge): Discover
17063 polymorphic calls and record basic info into indirect_info.
17064 * gimple-fold.c (gimple_fold_call): When doing BINFO based
17065 devirtualization, ignore objc function calls.
17066 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
17067 call with no parm index info.
17068 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
17069 * tree.c (virtual_method_call_p): New function.
17070 * tree.h (virtual_method_call_p): Declare.
17072 2013-08-16 Jan Hubicka <jh@suse.cz>
17074 PR middle-end/58179
17075 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
17077 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
17079 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
17082 2013-08-16 David Malcolm <dmalcolm@redhat.com>
17084 * gengtype.c (type_for_name): Add special-case support for
17085 locating types within the "gcc::" namespace.
17086 (open_base_files): Emit a "using namespace gcc" directive.
17088 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
17091 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
17092 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
17094 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
17095 array instead of each individual operand as a separate argument.
17096 (emit_fusion_gpr_load): Likewise.
17097 (expand_fusion_gpr_load): Add new function declaration.
17099 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
17100 signature to have the operands passed as an array, instead of as
17101 separate arguments. Allow ZERO_EXTEND to be in the memory
17102 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
17103 depend on the register live/dead flags when peepholes are run.
17104 (expand_fusion_gpr_load): New function to be called from the
17105 peephole2 pass, to change the register that addis sets to be the
17107 (emit_fusion_gpr_load): Change the calling signature to have the
17108 operands passed as an array, instead of as separate arguments.
17109 Allow ZERO_EXTEND to be in the memory address, and also
17110 SIGN_EXTEND if -mpower8-fusion-sign.
17112 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
17113 unspec enumeration.
17114 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
17115 adjust the register addis loads up in the peephole2 pass. Do not
17116 depend on the register live/dead state when the peephole pass is done.
17118 2013-08-16 David Malcolm <dmalcolm@redhat.com>
17120 * gengtype.c (create_user_defined_type): Ensure that the kind
17121 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
17122 declaration is seen before the GTY((user)) marking.
17124 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
17127 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
17129 2013-08-16 Jan Hubicka <jh@suse.cz>
17131 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
17132 arugment expected_type.
17133 (gimple_fold_call): Use it.
17134 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
17135 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
17136 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
17137 (try_make_edge_direct_virtual_call): Likewise.
17138 * tree.c (obj_type_ref_class): New.
17139 * tree.h (obj_type_ref_class): Use it.
17141 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
17143 * sched-vis.c (rtl_slim_pp_initialized): Remove.
17144 (rtl_slim_pp): Likewise.
17145 (init_rtl_slim_pretty_print): Likewise.
17146 (dump_value_slim): Don't call it. Use local pretty printer.
17147 (dump_insn_slim): Likewise.
17148 (dump_rtl_slim): Likewise.
17149 (str_pattern_slim): Likewise.
17150 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
17153 2013-08-16 Jakub Jelinek <jakub@redhat.com>
17155 PR tree-optimization/58164
17156 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
17157 walk gimple_goto_dest of GIMPLE_GOTO.
17159 PR tree-optimization/58165
17160 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
17161 bi_call must be the last stmt in a bb, don't split_block, instead
17162 use fallthru edge from it and give up if there is none.
17163 Release conds vector when returning early.
17165 2013-08-14 Xinliang David Li <davidxl@google.com>
17167 * config/i386/i386.c (ix86_option_override_internal):
17168 Remove unused variable and field.
17170 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17173 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
17174 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
17175 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
17176 and Linux, correct BLKmode alignment when 128-bit alignment is
17177 required and compatibility flag is not set.
17178 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
17179 for zero-size arguments when compatibility flag is not set.
17181 2013-08-14 Jakub Jelinek <jakub@redhat.com>
17183 PR tree-optimization/58145
17184 * tree-sra.c (build_ref_for_offset): If prev_base has
17185 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
17187 2013-08-14 Xinliang David Li <davidxl@google.com>
17189 * config/i386/i386.c (ix86_option_override_internal):
17190 Fix uninitialized variable error.
17192 2013-08-14 Xinliang David Li <davidxl@google.com>
17194 * config/i386/i386.opt: Define two new options.
17195 * config/i386/x86-tune.def: Add arch selector field in macros.
17196 * config/i386/i386.h: Adjust macro definition.
17197 * config/i386/i386.c (ix86_option_override_internal):
17199 (parse_mtune_ctrl_str): New function.
17200 (set_ix86_tune_features): New function.
17201 (ix86_function_specific_restore): Call the new helper function.
17203 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
17205 PR rtl-optimization/57662
17206 * sel-sched.c (code_motion_process_successors): When the current insn
17207 is removed after the recursive traversal, break from the loop.
17208 Add comments and debug printouts.
17210 2013-08-14 Jakub Jelinek <jakub@redhat.com>
17211 Alexandre Oliva <aoliva@redhat.com>
17214 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
17215 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
17216 there also UNSPEC_PLTOFF.
17218 2013-08-14 Marek Polacek <polacek@redhat.com>
17220 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
17221 NUM_CONDITIONS bit positions.
17223 2013-08-13 Cary Coutant <ccoutant@google.com>
17225 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
17226 (attr_checksum): Hash vector contents instead of pointer.
17227 (attr_checksum_ordered): Likewise.
17229 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
17231 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
17232 when Pmode != word_mode. Add length_address attribute.
17233 (sse3_monitor_<mode>): Merge from sse3_monitor and
17234 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
17235 Pmode != word_mode. Update insn length attribute.
17236 * config/i386/i386.c (ix86_option_override_internal): Update
17237 ix86_gen_monitor selection for merged sse3_monitor insn.
17239 2013-08-13 Julian Brown <julian@codesourcery.com>
17241 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
17242 perform invalid legitimization on greater-than-word-size modes for
17243 TARGET_E500_DOUBLE.
17245 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
17247 * ira.c (setup_class_translate_array): Use aclass instead of cl
17248 for classes not fully covered by allocno classes.
17250 2013-08-13 Jakub Jelinek <jakub@redhat.com>
17252 PR tree-optimization/57661
17253 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
17254 * tree-inline.c (tree_function_versioning): Initialize it.
17255 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
17256 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
17257 that is not being copied.
17260 * asan.c (instrument_strlen_call): Fix typo in comment.
17261 Use char * type even for the lhs of POINTER_PLUS_EXPR.
17263 2013-08-13 Steve Ellcey <sellcey@mips.com>
17265 * config/mips/mips.md (prefetch): Use lw instead of ld on
17266 loongson in 32bit mode.
17268 2013-08-13 Nick Clifton <nickc@redhat.com>
17270 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
17272 2013-08-13 Jan Hubicka <jh@suse.cz>
17274 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
17275 introduced edge; fix typo in sanity check.
17276 (cgraph_resolve_speculation): Export; improve diagnostic.
17277 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
17278 speculation at type mismatch.
17279 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
17280 (cgraph_resolve_speculation): Declare.
17281 (symtab_can_be_discarded): New function.
17282 * value-prof.c (gimple_ic_transform): Remove actual transform code.
17283 * ipa-inline-transform.c (speculation_removed): New global var.
17284 (clone_inlined_nodes): See if speculation can be removed.
17285 (inline_call): If speculations was removed, we growths may not match.
17286 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
17287 (speculation_useful_p): New function.
17288 (resolve_noninline_speculation): New function.
17289 (inline_small_functions): Resolve useless speculations.
17290 * ipa-inline.h (speculation_useful_p): Declare
17291 * ipa.c (can_replace_by_local_alias): Simplify.
17292 (ipa_profile): Produce speculative calls in non-lto, too;
17293 add simple cost model; produce local aliases.
17295 2013-08-13 David Malcolm <dmalcolm@redhat.com>
17297 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
17300 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
17302 * config/i386/i386.c (ix86_function_versions): Use error + inform.
17304 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
17306 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
17307 iterator instead of X87MODEF.
17309 2013-08-12 Perez Read <netfirewall@gmail.com>
17312 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
17313 operand 0 for intel asm alternative.
17314 (*movabs<mode>_2): Ditto for operand 1.
17316 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
17318 * config/aarch64/arm_none.h
17319 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
17321 2013-08-12 Nick Clifton <nickc@redhat.com>
17323 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
17325 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
17327 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
17328 expand for QI/HImode operand to produce more effictive code for
17329 unsigned char(short) --> float(double) conversion.
17331 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
17333 * doc/invoke.texi: Mention that -ftls-model does not force the final
17336 2013-08-12 Marek Polacek <polacek@redhat.com>
17337 Marc Glisse <marc.glisse@inria.fr>
17339 PR tree-optimization/57980
17340 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
17341 when creating -1 constant.
17343 2013-08-10 Jan Hubicka <jh@suse.cz>
17345 Workaround binutils PR14342.
17346 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
17347 (gimple_init_edge_profiler): Likewise.
17348 (gimple_gen_ic_func_profiler): Likewise.
17350 2013-08-09 Jan Hubicka <jh@suse.cz>
17352 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
17354 2013-08-09 Xinliang David Li <davidxl@google.com>
17356 * config/i386/stringop.def: New file.
17357 * config/i386/stringop.opt: New file.
17358 * config/i386/i386-opts.h: Include stringopt.def.
17359 * config/i386/i386.opt: Include stringopt.opt.
17360 * config/i386/i386.c (ix86_option_override_internal):
17361 Override default size based stringop inline strategies with options.
17362 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
17365 2013-08-09 Jan Hubicka <jh@suse.cz>
17367 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
17369 2013-08-09 Jan Hubicka <jh@suse.cz>
17371 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
17373 (dump_cgraph_node): Dump profile-id.
17374 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
17375 and common_target_probability.
17376 * lto-cgraph.c (lto_output_edge): Stream common targets.
17377 (lto_output_node): Stream profile ids.
17378 (input_node): Stream profile ids.
17379 (input_edge): Stream common targets.
17380 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
17381 * ipa.c: Include value-prof.h
17382 (ipa_profile_generate_summary): Turn indirect call statement histograms
17383 into common targets.
17384 (ipa_profile): Turn common targets into speculative edges.
17386 2013-08-09 Jan Hubicka <jh@suse.cz>
17388 * cgraph.h (cgraph_node): Add profile_id.
17389 * value-prof.c (cgraph_node_map): Turn into pointer_map.
17390 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
17391 (del_node_map): Update.
17392 (find_func_by_funcdef_no): Replace by ...
17393 (find_func_by_profile_id): ... this one.
17394 (gimple_ic_transform): Do not remove useful histograms when
17395 speculation is not done; dump info when indirect call removal
17397 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
17398 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
17399 (__gcov_indirect_call_profiler_v2): .. this one.
17400 * profile.h (init_node_map): Update.
17401 * coverage.c (coverage_compute_profile_id): New function.
17402 * coverage.h (coverage_compute_profile_id): Declare.
17403 * tree-profile.c (init_ic_make_global_vars): Make
17404 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
17405 (gimple_init_edge_profiler): Update prototype of
17406 __gcov_indirect_call_profiler.
17407 (gimple_gen_ic_func_profiler): Simplify.
17408 (tree_profiling): Use init_node_map
17410 2013-08-09 Jan Hubicka <jh@suse.cz>
17412 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
17413 non-speculative refs.
17414 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
17415 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
17416 (cgraph_set_call_stmt): Likewise.
17417 (cgraph_create_edge_1): Fix release checking compilatoin;
17418 clear lto_stmt_uid.
17419 (cgraph_free_edge): Free indirect info.
17420 (cgraph_turn_edge_to_speculative): New function.
17421 (cgraph_speculative_call_info): New function.
17422 (cgraph_make_edge_direct): Return direct edge; handle speculation.
17423 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
17424 (dump_cgraph_node): Dump speculation.
17425 (verify_edge_count_and_frequency): Accept speculative edges.
17426 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
17427 (verify_cgraph_node): Handle speculation.
17428 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
17429 (cgraph_set_call_stmt): Update prototype.
17430 (cgraph_make_edge_direct): Update prototype.
17431 (cgraph_speculative_call_info): Declare.
17432 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
17433 to change; update call of ipa_find_references.
17434 * ipa-ref.c (ipa_record_reference): Fix return value; clear
17435 lto_stmt_uid and speculative flags.
17436 (ipa_dump_references): Dump speculation.
17437 (ipa_clone_references): Clone speculative flag.
17438 (ipa_clone_referring): Likewise.
17439 (ipa_clone_ref): New function.
17440 (ipa_find_reference): Look into lto_stmt_uids
17441 (ipa_clear_stmts_in_references): Do not clear speculative calls.
17442 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
17443 (ipa_find_reference): Update declaration.
17444 (ipa_clone_ref): Declare.
17445 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
17446 stream speculative flag.
17447 (lto_output_ref): Stream statements uids and speculation.
17448 (input_ref): Likewise.
17449 (input_edge): Stream speuclation.
17450 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
17451 (cgraph_set_call_stmt_including_clones): Handle speculation.
17452 * ipa-inline.c (heap_edge_removal_hook): New function.
17453 (inline_small_functions): Register it.
17454 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
17455 also initialize refs.
17456 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
17458 (try_make_edge_direct_simple_call): Likewise.
17459 (try_make_edge_direct_simple_call): Likewise.
17460 (update_indirect_edges_after_inlining): Likewise.
17461 (remove_described_reference): Look proper lto_stmt_uid.
17462 (propagate_controlled_uses): Likewise.
17463 (propagate_controlled_uses): Liekwise.
17464 * tree-inline.c (copy_bb): Copy speculative edges.
17465 (redirect_all_calls): New function.
17466 (copy_cfg_body): Do redirection after loop info is updated.
17467 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
17469 2013-08-09 Jan Hubicka <jh@suse.cz>
17471 * lto-streamer-out.c (output_function): Renumber PHIs.
17472 * lto-streamer-in.c (input_function): Likewise.
17474 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
17476 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
17477 (get_lane_unsigned): Likewise.
17478 (dup_lane_scalar): Likewise.
17479 (get_lane): enable for VALL.
17480 * config/aarch64/aarch64-simd.md
17481 (aarch64_dup_lane_scalar<mode>): Remove.
17482 (aarch64_get_lane_signed<mode>): Likewise.
17483 (aarch64_get_lane_unsigned<mode>): Likewise.
17484 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
17485 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
17486 (aarch64_get_lane<mode>): Enable for all vector modes.
17487 (aarch64_get_lanedi): Remove misleading constraints.
17488 * config/aarch64/arm_neon.h
17489 (__aarch64_vget_lane_any): Define.
17490 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
17491 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
17492 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
17493 * config/aarch64/iterators.md (VDQQH): New.
17494 (VDQQHS): Likewise.
17495 (vwcore): Likewise.
17497 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
17499 * configure.ac: Add GAS check for LEON instructions on SPARC.
17500 * configure: Regenerate.
17501 * config.in: Likewise.
17502 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
17504 * config/sparc/sparc.opt (LEON, LEON3): New masks.
17505 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
17507 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
17508 (AS_LEON_FLAG): New macro.
17509 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
17510 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
17511 Deal with LEON and LEON3 for the memory model.
17512 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
17513 (atomic_compare_and_swap<mode>_1): Likewise.
17514 (*atomic_compare_and_swap<mode>_1): Likewise.
17516 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17518 * config/arm/neon.md (vcond): Fix floating-point vector
17519 comparisons against 0.
17521 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
17523 * lra-constraints.c (emit_spill_move): Remove assert.
17524 (process_alt_operands): Add more debugging
17525 output. Increase reject for spilling into memory. Decrease
17526 reject for reloading scratch.
17527 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
17529 2013-08-08 Steve Ellcey <sellcey@mips.com>
17531 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
17532 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
17533 micromips incompatible. Add nan2008.
17534 (MULTILIB_DIRNAMES): Add nan2008.
17535 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
17536 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
17537 and micromips incompatible. Add nan2008.
17538 (MULTILIB_DIRNAMES): Add nan2008.
17539 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
17541 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
17543 PR rtl-optimization/58079
17544 * combine.c (combine_simplify_rtx): Avoid using SUBST if
17545 simplify_comparison has widened a comparison with an integer.
17547 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17549 * config/arm/neon.md (movmisalign<mode>): Disable when we
17550 don't allow unaligned accesses.
17551 (*movmisalign<mode>_neon_store): Likewise.
17552 (*movmisalign<mode>_neon_load): Likewise.
17553 (*movmisalign<mode>_neon_store): Likewise.
17554 (*movmisalign<mode>_neon_load): Likewise.
17556 2013-08-08 Jan Hubicka <jh@suse.cz>
17558 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
17559 (make_pass_rebuild_cgraph_edges): Also clear references.
17560 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
17561 * ipa-inline-transform.c (inline_transform): Remove all references
17563 * cgraphunit.c (expand_function): Remove all references after
17565 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
17566 (ipa_find_reference): Rewrite to iterator.
17567 (remove_stmt_references): Likewise.
17568 (ipa_clear_stmts_in_references): New function.
17569 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
17570 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
17572 * ipa-split.c (split_function): Remove references in split function.
17574 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
17577 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
17578 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
17580 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
17583 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
17584 suggested mode for the assignment isn't compatible with the
17585 registers required.
17587 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
17590 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
17592 2013-08-07 Xinliang David Li <davidxl@google.com>
17594 * config/i386/i386.opt: New option -mtune-ctrl=.
17595 * config/i386/x86-tune.def: New file.
17596 * config/i386/i386.h: include x86-tune.def.
17597 * config/i386/i386.c (ix86_option_override_internal):
17598 Parsing -mtune-ctrl= option and set tune features.
17600 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
17603 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
17604 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
17607 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
17609 * rtl.h (update_alignments): Declare.
17610 * final.c (grow_label_align): New function extracted from...
17611 (shorten_branches): ...here. Call it.
17612 (update_alignments): New function.
17613 * reorg.c (sibling_labels): New variable.
17614 (get_label_before): Add SIBLING parameter. If it is non-zero, push
17615 the new label along with it onto the sibling_labels vector.
17616 (fill_simple_delay_slots): Adjust call to get_label_before.
17617 (fill_slots_from_thread): Likewise.
17618 (relax_delay_slots): Likewise.
17619 (make_return_insns): Likewise.
17620 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
17622 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
17624 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
17625 document its semantics.
17626 (diagnostic_report_diagnostic): Adjust accordingly.
17628 2013-08-07 David Malcolm <dmalcolm@redhat.com>
17630 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
17631 (sparc_option_override): ...and port to new C++ pass API.
17632 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
17634 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
17636 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
17638 2013-08-06 Caroline Tice <cmtice@google.com>
17640 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
17641 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
17642 * tree-pass.h: Add pass_vtable_verify.
17643 * varasm.c (assemble_variable): Add code to properly set the comdat
17644 section and name for the .vtable_map_vars section.
17645 (assemble_vtyv_preinit_initializer): New function.
17646 (default_sectin_type_flags): Make sure .vtable_map_vars section has
17648 * output.h: Add function decl for assemble_vtv_preinit_initializer.
17649 * vtable-verify.c: New file.
17650 * vtable-verify.h: New file.
17651 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
17652 initialiation levels.
17653 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
17654 * passes.def: Insert pass_vtable_verify.
17655 * aclocal.m4: Reorder includes.
17656 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
17657 -fvtv-counts options.
17658 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
17659 as appropriate, if -fvtable-verify=... is used.
17660 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
17661 -fvtable-verify=... is used.
17662 * Makefile.in (OBJS): Add vtable-verify.o to list.
17663 (vtable-verify.o): Add new build rule.
17664 (GTFILES): Add vtable-verify.c to list.
17665 * common.opt (fvtable-verify=): New flag.
17666 (vtv_priority): Values for fvtable-verify= flag.
17667 (fvtv-counts): New flag.
17668 (fvtv-debug): New flag.
17669 * tree.h (save_vtable_map_decl): New extern function decl.
17671 2013-08-07 David Malcolm <dmalcolm@redhat.com>
17673 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
17674 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
17675 (pass_data_rl78_devirt): ...new pass_data instance and...
17676 (make_pass_rl78_devirt): ...new function.
17677 (rl78_asm_file_start): Port pass registration to new C++ API.
17679 2013-08-07 David Malcolm <dmalcolm@redhat.com>
17681 * coretypes.h (rtl_opt_pass): Add.
17682 (gcc::context): Add.
17683 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
17684 (epiphany_init): Port to new C++ pass API.
17685 (epiphany_optimize_mode_switching): Likewise.
17686 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
17687 (pass_manager::get_pass_mode_switching): New.
17688 (pass_manager::get_pass_peephole2): New.
17689 * mode-switching.c (pass_mode_switching): Add clone method.
17690 * recog.c (pass_peephole2): Add clone method.
17691 (pass_split_all_insns): Add clone method.
17693 2013-08-06 David Malcolm <dmalcolm@redhat.com>
17695 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
17696 (mips_option_override): ...here, porting to new C++ API for passes.
17698 2013-08-06 Jan Hubicka <jh@suse.cz>
17700 * cgraph.c (cgraph_get_body): New function based on lto.c
17702 * cgraph.h (cgraph_get_body): Declare.
17703 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
17705 * cgraphunit.c (expand_function): Get body prior expanding.
17706 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
17707 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
17709 * passes.c (do_per_function_toporder): Get body.
17710 * tree-inline.c (expand_call_inline): Get body prior inlining it.
17711 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
17713 2013-08-06 Martin Jambor <mjambor@suse.cz>
17716 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
17717 is not re-finalized. Rename second parameter to no_collect.
17719 2013-08-06 Martin Jambor <mjambor@suse.cz>
17721 PR middle-end/58041
17722 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
17723 MEM_REF has proper alignment information.
17725 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
17728 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
17730 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
17731 rtx (*) (rtx, ...) with insn_gen_fn.
17732 * genoutput.c (output_insn_data): Cast gen_? function pointers to
17733 insn_gen_fn::stored_funcptr. Add initializer braces.
17735 2013-08-05 David Malcolm <dmalcolm@redhat.com>
17737 Rewrite how instances of passes are cloned to remove assumptions
17738 about their sizes (thus allowing pass subclasses to have
17739 additional data fields, albeit non-GC-managed ones at this point).
17741 * passes.c (make_pass_instance): Now that passes have clone
17742 methods, rewrite this function to eliminate XNEW and memcpy
17743 calls that used hardcoded sizes. Since this function no longer
17744 creates pass instances, rename it to...
17745 (add_pass_instance): ...this. Document the old way that passes were
17746 numbered and flagged, and rework this function to continue using it.
17747 (next_pass_1): Add an initial_pass argument for use by
17749 (position_pass): When adding multiple instances of a pass, use
17750 the pass's clone method, rather than relying on the XNEW/memcpy
17751 within the former make_pass_instance (now add_pass_instance).
17752 (pass_manager::pass_manager): When invoking next_pass_1, also supply
17753 the initial instance of the current pass within the pass manager.
17755 2013-08-05 David Malcolm <dmalcolm@redhat.com>
17757 This is the automated part of the conversion of passes from C
17758 structs to C++ classes.
17760 Patch autogenerated by refactor_passes.py from
17761 https://github.com/davidmalcolm/gcc-refactoring-scripts
17762 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
17764 * asan.c (pass_asan): Convert from a global struct to a subclass of
17765 gimple_opt_pass along with...
17766 (pass_data_asan): ...new pass_data instance and...
17767 (make_pass_asan): ...new function.
17768 (pass_asan_O0): Convert from a global struct to a subclass of
17769 gimple_opt_pass along with...
17770 (pass_data_asan_O0): ...new pass_data instance and...
17771 (make_pass_asan_O0): ...new function.
17772 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
17773 subclass of rtl_opt_pass along with...
17774 (pass_data_inc_dec): ...new pass_data instance and...
17775 (make_pass_inc_dec): ...new function.
17776 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
17777 a subclass of rtl_opt_pass along with...
17778 (pass_data_reorder_blocks): ...new pass_data instance and...
17779 (make_pass_reorder_blocks): ...new function.
17780 (pass_duplicate_computed_gotos): Convert from a global struct to a
17781 subclass of rtl_opt_pass along with...
17782 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
17783 (make_pass_duplicate_computed_gotos): ...new function.
17784 (pass_partition_blocks): Convert from a global struct to a subclass of
17785 rtl_opt_pass along with...
17786 (pass_data_partition_blocks): ...new pass_data instance and...
17787 (make_pass_partition_blocks): ...new function.
17788 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
17789 struct to a subclass of rtl_opt_pass along with...
17790 (pass_data_branch_target_load_optimize1): ...new pass_data instance
17792 (make_pass_branch_target_load_optimize1): ...new function.
17793 (pass_branch_target_load_optimize2): Convert from a global struct to a
17794 subclass of rtl_opt_pass along with...
17795 (pass_data_branch_target_load_optimize2): ...new pass_data instance
17797 (make_pass_branch_target_load_optimize2): ...new function.
17798 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
17799 of rtl_opt_pass along with...
17800 (pass_data_jump): ...new pass_data instance and...
17801 (make_pass_jump): ...new function.
17802 (pass_jump2): Convert from a global struct to a subclass of
17803 rtl_opt_pass along with...
17804 (pass_data_jump2): ...new pass_data instance and...
17805 (make_pass_jump2): ...new function.
17806 * cfgexpand.c (pass_expand): Convert from a global struct to a
17807 subclass of rtl_opt_pass along with...
17808 (pass_data_expand): ...new pass_data instance and...
17809 (make_pass_expand): ...new function.
17810 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
17811 of rtl_opt_pass along with...
17812 (pass_data_free_cfg): ...new pass_data instance and...
17813 (make_pass_free_cfg): ...new function.
17814 (pass_into_cfg_layout_mode): Convert from a global struct to a
17815 subclass of rtl_opt_pass along with...
17816 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
17817 (make_pass_into_cfg_layout_mode): ...new function.
17818 (pass_outof_cfg_layout_mode): Convert from a global struct to a
17819 subclass of rtl_opt_pass along with...
17820 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
17821 (make_pass_outof_cfg_layout_mode): ...new function.
17822 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
17823 struct to a subclass of gimple_opt_pass along with...
17824 (pass_data_build_cgraph_edges): ...new pass_data instance and...
17825 (make_pass_build_cgraph_edges): ...new function.
17826 (pass_rebuild_cgraph_edges): Convert from a global struct to a
17827 subclass of gimple_opt_pass along with...
17828 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
17829 (make_pass_rebuild_cgraph_edges): ...new function.
17830 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
17831 subclass of gimple_opt_pass along with...
17832 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
17834 (make_pass_remove_cgraph_callee_edges): ...new function.
17835 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
17836 struct to a subclass of rtl_opt_pass along with...
17837 (pass_data_stack_adjustments): ...new pass_data instance and...
17838 (make_pass_stack_adjustments): ...new function.
17839 * combine.c (pass_combine): Convert from a global struct to a subclass
17840 of rtl_opt_pass along with...
17841 (pass_data_combine): ...new pass_data instance and...
17842 (make_pass_combine): ...new function.
17843 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
17844 global struct to a subclass of rtl_opt_pass along with...
17845 (pass_data_compare_elim_after_reload): ...new pass_data instance
17847 (make_pass_compare_elim_after_reload): ...new function.
17848 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
17849 of rtl_opt_pass along with...
17850 (pass_data_rtl_cprop): ...new pass_data instance and...
17851 (make_pass_rtl_cprop): ...new function.
17852 * cse.c (pass_cse): Convert from a global struct to a subclass of
17853 rtl_opt_pass along with...
17854 (pass_data_cse): ...new pass_data instance and...
17855 (make_pass_cse): ...new function.
17856 (pass_cse2): Convert from a global struct to a subclass of
17857 rtl_opt_pass along with...
17858 (pass_data_cse2): ...new pass_data instance and...
17859 (make_pass_cse2): ...new function.
17860 (pass_cse_after_global_opts): Convert from a global struct to a
17861 subclass of rtl_opt_pass along with...
17862 (pass_data_cse_after_global_opts): ...new pass_data instance and...
17863 (make_pass_cse_after_global_opts): ...new function.
17864 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
17865 of rtl_opt_pass along with...
17866 (pass_data_ud_rtl_dce): ...new pass_data instance and...
17867 (make_pass_ud_rtl_dce): ...new function.
17868 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
17869 rtl_opt_pass along with...
17870 (pass_data_fast_rtl_dce): ...new pass_data instance and...
17871 (make_pass_fast_rtl_dce): ...new function.
17872 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
17873 a subclass of rtl_opt_pass along with...
17874 (pass_data_df_initialize_opt): ...new pass_data instance and...
17875 (make_pass_df_initialize_opt): ...new function.
17876 (pass_df_initialize_no_opt): Convert from a global struct to a
17877 subclass of rtl_opt_pass along with...
17878 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
17879 (make_pass_df_initialize_no_opt): ...new function.
17880 (pass_df_finish): Convert from a global struct to a subclass of
17881 rtl_opt_pass along with...
17882 (pass_data_df_finish): ...new pass_data instance and...
17883 (make_pass_df_finish): ...new function.
17884 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
17885 rtl_opt_pass along with...
17886 (pass_data_rtl_dse1): ...new pass_data instance and...
17887 (make_pass_rtl_dse1): ...new function.
17888 (pass_rtl_dse2): Convert from a global struct to a subclass of
17889 rtl_opt_pass along with...
17890 (pass_data_rtl_dse2): ...new pass_data instance and...
17891 (make_pass_rtl_dse2): ...new function.
17892 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
17893 subclass of rtl_opt_pass along with...
17894 (pass_data_dwarf2_frame): ...new pass_data instance and...
17895 (make_pass_dwarf2_frame): ...new function.
17896 * except.c (pass_set_nothrow_function_flags): Convert from a global
17897 struct to a subclass of rtl_opt_pass along with...
17898 (pass_data_set_nothrow_function_flags): ...new pass_data instance
17900 (make_pass_set_nothrow_function_flags): ...new function.
17901 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
17902 subclass of rtl_opt_pass along with...
17903 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
17905 (make_pass_convert_to_eh_region_ranges): ...new function.
17906 * final.c (pass_compute_alignments): Convert from a global struct to a
17907 subclass of rtl_opt_pass along with...
17908 (pass_data_compute_alignments): ...new pass_data instance and...
17909 (make_pass_compute_alignments): ...new function.
17910 (pass_final): Convert from a global struct to a subclass of
17911 rtl_opt_pass along with...
17912 (pass_data_final): ...new pass_data instance and...
17913 (make_pass_final): ...new function.
17914 (pass_shorten_branches): Convert from a global struct to a subclass of
17915 rtl_opt_pass along with...
17916 (pass_data_shorten_branches): ...new pass_data instance and...
17917 (make_pass_shorten_branches): ...new function.
17918 (pass_clean_state): Convert from a global struct to a subclass of
17919 rtl_opt_pass along with...
17920 (pass_data_clean_state): ...new pass_data instance and...
17921 (make_pass_clean_state): ...new function.
17922 * function.c (pass_instantiate_virtual_regs): Convert from a global
17923 struct to a subclass of rtl_opt_pass along with...
17924 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
17925 (make_pass_instantiate_virtual_regs): ...new function.
17926 (pass_leaf_regs): Convert from a global struct to a subclass of
17927 rtl_opt_pass along with...
17928 (pass_data_leaf_regs): ...new pass_data instance and...
17929 (make_pass_leaf_regs): ...new function.
17930 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
17931 subclass of rtl_opt_pass along with...
17932 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
17934 (make_pass_thread_prologue_and_epilogue): ...new function.
17935 (pass_match_asm_constraints): Convert from a global struct to a
17936 subclass of rtl_opt_pass along with...
17937 (pass_data_match_asm_constraints): ...new pass_data instance and...
17938 (make_pass_match_asm_constraints): ...new function.
17939 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
17940 subclass of rtl_opt_pass along with...
17941 (pass_data_rtl_fwprop): ...new pass_data instance and...
17942 (make_pass_rtl_fwprop): ...new function.
17943 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
17944 rtl_opt_pass along with...
17945 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
17946 (make_pass_rtl_fwprop_addr): ...new function.
17947 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
17948 rtl_opt_pass along with...
17949 (pass_data_rtl_pre): ...new pass_data instance and...
17950 (make_pass_rtl_pre): ...new function.
17951 (pass_rtl_hoist): Convert from a global struct to a subclass of
17952 rtl_opt_pass along with...
17953 (pass_data_rtl_hoist): ...new pass_data instance and...
17954 (make_pass_rtl_hoist): ...new function.
17955 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
17956 subclass of gimple_opt_pass along with...
17957 (pass_data_lower_cf): ...new pass_data instance and...
17958 (make_pass_lower_cf): ...new function.
17959 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
17960 from a global struct to a subclass of gimple_opt_pass along with...
17961 (pass_data_strength_reduction): ...new pass_data instance and...
17962 (make_pass_strength_reduction): ...new function.
17963 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
17964 of rtl_opt_pass along with...
17965 (pass_data_rtl_ifcvt): ...new pass_data instance and...
17966 (make_pass_rtl_ifcvt): ...new function.
17967 (pass_if_after_combine): Convert from a global struct to a subclass of
17968 rtl_opt_pass along with...
17969 (pass_data_if_after_combine): ...new pass_data instance and...
17970 (make_pass_if_after_combine): ...new function.
17971 (pass_if_after_reload): Convert from a global struct to a subclass of
17972 rtl_opt_pass along with...
17973 (pass_data_if_after_reload): ...new pass_data instance and...
17974 (make_pass_if_after_reload): ...new function.
17975 * init-regs.c (pass_initialize_regs): Convert from a global struct to
17976 a subclass of rtl_opt_pass along with...
17977 (pass_data_initialize_regs): ...new pass_data instance and...
17978 (make_pass_initialize_regs): ...new function.
17979 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
17980 of ipa_opt_pass_d along with...
17981 (pass_data_ipa_cp): ...new pass_data instance and...
17982 (make_pass_ipa_cp): ...new function.
17983 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
17984 global struct to a subclass of gimple_opt_pass along with...
17985 (pass_data_inline_parameters): ...new pass_data instance and...
17986 (make_pass_inline_parameters): ...new function.
17987 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
17988 subclass of gimple_opt_pass along with...
17989 (pass_data_early_inline): ...new pass_data instance and...
17990 (make_pass_early_inline): ...new function.
17991 (pass_ipa_inline): Convert from a global struct to a subclass of
17992 ipa_opt_pass_d along with...
17993 (pass_data_ipa_inline): ...new pass_data instance and...
17994 (make_pass_ipa_inline): ...new function.
17995 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
17996 struct to a subclass of gimple_opt_pass along with...
17997 (pass_data_local_pure_const): ...new pass_data instance and...
17998 (make_pass_local_pure_const): ...new function.
17999 (pass_ipa_pure_const): Convert from a global struct to a subclass of
18000 ipa_opt_pass_d along with...
18001 (pass_data_ipa_pure_const): ...new pass_data instance and...
18002 (make_pass_ipa_pure_const): ...new function.
18003 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
18004 to a subclass of ipa_opt_pass_d along with...
18005 (pass_data_ipa_reference): ...new pass_data instance and...
18006 (make_pass_ipa_reference): ...new function.
18007 * ipa-split.c (pass_split_functions): Convert from a global struct to
18008 a subclass of gimple_opt_pass along with...
18009 (pass_data_split_functions): ...new pass_data instance and...
18010 (make_pass_split_functions): ...new function.
18011 (pass_feedback_split_functions): Convert from a global struct to a
18012 subclass of gimple_opt_pass along with...
18013 (pass_data_feedback_split_functions): ...new pass_data instance and...
18014 (make_pass_feedback_split_functions): ...new function.
18015 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
18016 global struct to a subclass of simple_ipa_opt_pass along with...
18017 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
18019 (make_pass_ipa_function_and_variable_visibility): ...new function.
18020 (pass_ipa_free_inline_summary): Convert from a global struct to a
18021 subclass of simple_ipa_opt_pass along with...
18022 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
18023 (make_pass_ipa_free_inline_summary): ...new function.
18024 (pass_ipa_whole_program_visibility): Convert from a global struct to a
18025 subclass of ipa_opt_pass_d along with...
18026 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
18028 (make_pass_ipa_whole_program_visibility): ...new function.
18029 (pass_ipa_profile): Convert from a global struct to a subclass of
18030 ipa_opt_pass_d along with...
18031 (pass_data_ipa_profile): ...new pass_data instance and...
18032 (make_pass_ipa_profile): ...new function.
18033 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
18034 ipa_opt_pass_d along with...
18035 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
18036 (make_pass_ipa_cdtor_merge): ...new function.
18037 * ira.c (pass_ira): Convert from a global struct to a subclass of
18038 rtl_opt_pass along with...
18039 (pass_data_ira): ...new pass_data instance and...
18040 (make_pass_ira): ...new function.
18041 (pass_reload): Convert from a global struct to a subclass of
18042 rtl_opt_pass along with...
18043 (pass_data_reload): ...new pass_data instance and...
18044 (make_pass_reload): ...new function.
18045 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
18046 subclass of rtl_opt_pass along with...
18047 (pass_data_cleanup_barriers): ...new pass_data instance and...
18048 (make_pass_cleanup_barriers): ...new function.
18049 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
18050 of rtl_opt_pass along with...
18051 (pass_data_loop2): ...new pass_data instance and...
18052 (make_pass_loop2): ...new function.
18053 (pass_rtl_loop_init): Convert from a global struct to a subclass of
18054 rtl_opt_pass along with...
18055 (pass_data_rtl_loop_init): ...new pass_data instance and...
18056 (make_pass_rtl_loop_init): ...new function.
18057 (pass_rtl_loop_done): Convert from a global struct to a subclass of
18058 rtl_opt_pass along with...
18059 (pass_data_rtl_loop_done): ...new pass_data instance and...
18060 (make_pass_rtl_loop_done): ...new function.
18061 (pass_rtl_move_loop_invariants): Convert from a global struct to a
18062 subclass of rtl_opt_pass along with...
18063 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
18064 (make_pass_rtl_move_loop_invariants): ...new function.
18065 (pass_rtl_unswitch): Convert from a global struct to a subclass of
18066 rtl_opt_pass along with...
18067 (pass_data_rtl_unswitch): ...new pass_data instance and...
18068 (make_pass_rtl_unswitch): ...new function.
18069 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
18070 subclass of rtl_opt_pass along with...
18071 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
18073 (make_pass_rtl_unroll_and_peel_loops): ...new function.
18074 (pass_rtl_doloop): Convert from a global struct to a subclass of
18075 rtl_opt_pass along with...
18076 (pass_data_rtl_doloop): ...new pass_data instance and...
18077 (make_pass_rtl_doloop): ...new function.
18078 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
18079 a subclass of rtl_opt_pass along with...
18080 (pass_data_lower_subreg): ...new pass_data instance and...
18081 (make_pass_lower_subreg): ...new function.
18082 (pass_lower_subreg2): Convert from a global struct to a subclass of
18083 rtl_opt_pass along with...
18084 (pass_data_lower_subreg2): ...new pass_data instance and...
18085 (make_pass_lower_subreg2): ...new function.
18086 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
18087 struct to a subclass of ipa_opt_pass_d along with...
18088 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
18089 (make_pass_ipa_lto_gimple_out): ...new function.
18090 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
18091 of ipa_opt_pass_d along with...
18092 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
18093 (make_pass_ipa_lto_finish_out): ...new function.
18094 * mode-switching.c (pass_mode_switching): Convert from a global struct
18095 to a subclass of rtl_opt_pass along with...
18096 (pass_data_mode_switching): ...new pass_data instance and...
18097 (make_pass_mode_switching): ...new function.
18098 * modulo-sched.c (pass_sms): Convert from a global struct to a
18099 subclass of rtl_opt_pass along with...
18100 (pass_data_sms): ...new pass_data instance and...
18101 (make_pass_sms): ...new function.
18102 * omp-low.c (pass_expand_omp): Convert from a global struct to a
18103 subclass of gimple_opt_pass along with...
18104 (pass_data_expand_omp): ...new pass_data instance and...
18105 (make_pass_expand_omp): ...new function.
18106 (pass_lower_omp): Convert from a global struct to a subclass of
18107 gimple_opt_pass along with...
18108 (pass_data_lower_omp): ...new pass_data instance and...
18109 (make_pass_lower_omp): ...new function.
18110 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
18111 of gimple_opt_pass along with...
18112 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
18113 (make_pass_diagnose_omp_blocks): ...new function.
18114 * passes.c (pass_early_local_passes): Convert from a global struct to
18115 a subclass of simple_ipa_opt_pass along with...
18116 (pass_data_early_local_passes): ...new pass_data instance and...
18117 (make_pass_early_local_passes): ...new function.
18118 (pass_all_early_optimizations): Convert from a global struct to a
18119 subclass of gimple_opt_pass along with...
18120 (pass_data_all_early_optimizations): ...new pass_data instance and...
18121 (make_pass_all_early_optimizations): ...new function.
18122 (pass_all_optimizations): Convert from a global struct to a subclass
18123 of gimple_opt_pass along with...
18124 (pass_data_all_optimizations): ...new pass_data instance and...
18125 (make_pass_all_optimizations): ...new function.
18126 (pass_all_optimizations_g): Convert from a global struct to a subclass
18127 of gimple_opt_pass along with...
18128 (pass_data_all_optimizations_g): ...new pass_data instance and...
18129 (make_pass_all_optimizations_g): ...new function.
18130 (pass_rest_of_compilation): Convert from a global struct to a subclass
18131 of rtl_opt_pass along with...
18132 (pass_data_rest_of_compilation): ...new pass_data instance and...
18133 (make_pass_rest_of_compilation): ...new function.
18134 (pass_postreload): Convert from a global struct to a subclass of
18135 rtl_opt_pass along with...
18136 (pass_data_postreload): ...new pass_data instance and...
18137 (make_pass_postreload): ...new function.
18138 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
18139 subclass of rtl_opt_pass along with...
18140 (pass_data_gcse2): ...new pass_data instance and...
18141 (make_pass_gcse2): ...new function.
18142 * postreload.c (pass_postreload_cse): Convert from a global struct to
18143 a subclass of rtl_opt_pass along with...
18144 (pass_data_postreload_cse): ...new pass_data instance and...
18145 (make_pass_postreload_cse): ...new function.
18146 * predict.c (pass_profile): Convert from a global struct to a subclass
18147 of gimple_opt_pass along with...
18148 (pass_data_profile): ...new pass_data instance and...
18149 (make_pass_profile): ...new function.
18150 (pass_strip_predict_hints): Convert from a global struct to a subclass
18151 of gimple_opt_pass along with...
18152 (pass_data_strip_predict_hints): ...new pass_data instance and...
18153 (make_pass_strip_predict_hints): ...new function.
18154 * recog.c (pass_peephole2): Convert from a global struct to a subclass
18155 of rtl_opt_pass along with...
18156 (pass_data_peephole2): ...new pass_data instance and...
18157 (make_pass_peephole2): ...new function.
18158 (pass_split_all_insns): Convert from a global struct to a subclass of
18159 rtl_opt_pass along with...
18160 (pass_data_split_all_insns): ...new pass_data instance and...
18161 (make_pass_split_all_insns): ...new function.
18162 (pass_split_after_reload): Convert from a global struct to a subclass
18163 of rtl_opt_pass along with...
18164 (pass_data_split_after_reload): ...new pass_data instance and...
18165 (make_pass_split_after_reload): ...new function.
18166 (pass_split_before_regstack): Convert from a global struct to a
18167 subclass of rtl_opt_pass along with...
18168 (pass_data_split_before_regstack): ...new pass_data instance and...
18169 (make_pass_split_before_regstack): ...new function.
18170 (pass_split_before_sched2): Convert from a global struct to a subclass
18171 of rtl_opt_pass along with...
18172 (pass_data_split_before_sched2): ...new pass_data instance and...
18173 (make_pass_split_before_sched2): ...new function.
18174 (pass_split_for_shorten_branches): Convert from a global struct to a
18175 subclass of rtl_opt_pass along with...
18176 (pass_data_split_for_shorten_branches): ...new pass_data instance
18178 (make_pass_split_for_shorten_branches): ...new function.
18179 * ree.c (pass_ree): Convert from a global struct to a subclass of
18180 rtl_opt_pass along with...
18181 (pass_data_ree): ...new pass_data instance and...
18182 (make_pass_ree): ...new function.
18183 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
18184 subclass of rtl_opt_pass along with...
18185 (pass_data_stack_regs): ...new pass_data instance and...
18186 (make_pass_stack_regs): ...new function.
18187 (pass_stack_regs_run): Convert from a global struct to a subclass of
18188 rtl_opt_pass along with...
18189 (pass_data_stack_regs_run): ...new pass_data instance and...
18190 (make_pass_stack_regs_run): ...new function.
18191 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
18192 subclass of rtl_opt_pass along with...
18193 (pass_data_cprop_hardreg): ...new pass_data instance and...
18194 (make_pass_cprop_hardreg): ...new function.
18195 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
18196 subclass of rtl_opt_pass along with...
18197 (pass_data_reginfo_init): ...new pass_data instance and...
18198 (make_pass_reginfo_init): ...new function.
18199 * regmove.c (pass_regmove): Convert from a global struct to a subclass
18200 of rtl_opt_pass along with...
18201 (pass_data_regmove): ...new pass_data instance and...
18202 (make_pass_regmove): ...new function.
18203 * regrename.c (pass_regrename): Convert from a global struct to a
18204 subclass of rtl_opt_pass along with...
18205 (pass_data_regrename): ...new pass_data instance and...
18206 (make_pass_regrename): ...new function.
18207 * reorg.c (pass_delay_slots): Convert from a global struct to a
18208 subclass of rtl_opt_pass along with...
18209 (pass_data_delay_slots): ...new pass_data instance and...
18210 (make_pass_delay_slots): ...new function.
18211 (pass_machine_reorg): Convert from a global struct to a subclass of
18212 rtl_opt_pass along with...
18213 (pass_data_machine_reorg): ...new pass_data instance and...
18214 (make_pass_machine_reorg): ...new function.
18215 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
18216 of rtl_opt_pass along with...
18217 (pass_data_sched): ...new pass_data instance and...
18218 (make_pass_sched): ...new function.
18219 (pass_sched2): Convert from a global struct to a subclass of
18220 rtl_opt_pass along with...
18221 (pass_data_sched2): ...new pass_data instance and...
18222 (make_pass_sched2): ...new function.
18223 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
18224 to a subclass of rtl_opt_pass along with...
18225 (pass_data_stack_ptr_mod): ...new pass_data instance and...
18226 (make_pass_stack_ptr_mod): ...new function.
18227 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
18228 to a subclass of rtl_opt_pass along with...
18229 (pass_data_rtl_store_motion): ...new pass_data instance and...
18230 (make_pass_rtl_store_motion): ...new function.
18231 * tracer.c (pass_tracer): Convert from a global struct to a subclass
18232 of gimple_opt_pass along with...
18233 (pass_data_tracer): ...new pass_data instance and...
18234 (make_pass_tracer): ...new function.
18235 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
18236 to a subclass of gimple_opt_pass along with...
18237 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
18238 (make_pass_diagnose_tm_blocks): ...new function.
18239 (pass_lower_tm): Convert from a global struct to a subclass of
18240 gimple_opt_pass along with...
18241 (pass_data_lower_tm): ...new pass_data instance and...
18242 (make_pass_lower_tm): ...new function.
18243 (pass_tm_init): Convert from a global struct to a subclass of
18244 gimple_opt_pass along with...
18245 (pass_data_tm_init): ...new pass_data instance and...
18246 (make_pass_tm_init): ...new function.
18247 (pass_tm_mark): Convert from a global struct to a subclass of
18248 gimple_opt_pass along with...
18249 (pass_data_tm_mark): ...new pass_data instance and...
18250 (make_pass_tm_mark): ...new function.
18251 (pass_tm_edges): Convert from a global struct to a subclass of
18252 gimple_opt_pass along with...
18253 (pass_data_tm_edges): ...new pass_data instance and...
18254 (make_pass_tm_edges): ...new function.
18255 (pass_tm_memopt): Convert from a global struct to a subclass of
18256 gimple_opt_pass along with...
18257 (pass_data_tm_memopt): ...new pass_data instance and...
18258 (make_pass_tm_memopt): ...new function.
18259 (pass_ipa_tm): Convert from a global struct to a subclass of
18260 simple_ipa_opt_pass along with...
18261 (pass_data_ipa_tm): ...new pass_data instance and...
18262 (make_pass_ipa_tm): ...new function.
18263 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
18264 subclass of gimple_opt_pass along with...
18265 (pass_data_call_cdce): ...new pass_data instance and...
18266 (make_pass_call_cdce): ...new function.
18267 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
18268 subclass of gimple_opt_pass along with...
18269 (pass_data_build_cfg): ...new pass_data instance and...
18270 (make_pass_build_cfg): ...new function.
18271 (pass_split_crit_edges): Convert from a global struct to a subclass of
18272 gimple_opt_pass along with...
18273 (pass_data_split_crit_edges): ...new pass_data instance and...
18274 (make_pass_split_crit_edges): ...new function.
18275 (pass_warn_function_return): Convert from a global struct to a
18276 subclass of gimple_opt_pass along with...
18277 (pass_data_warn_function_return): ...new pass_data instance and...
18278 (make_pass_warn_function_return): ...new function.
18279 (pass_warn_function_noreturn): Convert from a global struct to a
18280 subclass of gimple_opt_pass along with...
18281 (pass_data_warn_function_noreturn): ...new pass_data instance and...
18282 (make_pass_warn_function_noreturn): ...new function.
18283 (pass_warn_unused_result): Convert from a global struct to a subclass
18284 of gimple_opt_pass along with...
18285 (pass_data_warn_unused_result): ...new pass_data instance and...
18286 (make_pass_warn_unused_result): ...new function.
18287 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
18288 a subclass of gimple_opt_pass along with...
18289 (pass_data_merge_phi): ...new pass_data instance and...
18290 (make_pass_merge_phi): ...new function.
18291 * tree-complex.c (pass_lower_complex): Convert from a global struct to
18292 a subclass of gimple_opt_pass along with...
18293 (pass_data_lower_complex): ...new pass_data instance and...
18294 (make_pass_lower_complex): ...new function.
18295 (pass_lower_complex_O0): Convert from a global struct to a subclass of
18296 gimple_opt_pass along with...
18297 (pass_data_lower_complex_O0): ...new pass_data instance and...
18298 (make_pass_lower_complex_O0): ...new function.
18299 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
18300 subclass of gimple_opt_pass along with...
18301 (pass_data_lower_eh): ...new pass_data instance and...
18302 (make_pass_lower_eh): ...new function.
18303 (pass_refactor_eh): Convert from a global struct to a subclass of
18304 gimple_opt_pass along with...
18305 (pass_data_refactor_eh): ...new pass_data instance and...
18306 (make_pass_refactor_eh): ...new function.
18307 (pass_lower_resx): Convert from a global struct to a subclass of
18308 gimple_opt_pass along with...
18309 (pass_data_lower_resx): ...new pass_data instance and...
18310 (make_pass_lower_resx): ...new function.
18311 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
18312 of gimple_opt_pass along with...
18313 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
18314 (make_pass_lower_eh_dispatch): ...new function.
18315 (pass_cleanup_eh): Convert from a global struct to a subclass of
18316 gimple_opt_pass along with...
18317 (pass_data_cleanup_eh): ...new pass_data instance and...
18318 (make_pass_cleanup_eh): ...new function.
18319 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
18320 to a subclass of simple_ipa_opt_pass along with...
18321 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
18322 (make_pass_ipa_lower_emutls): ...new function.
18323 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
18324 a subclass of gimple_opt_pass along with...
18325 (pass_data_if_conversion): ...new pass_data instance and...
18326 (make_pass_if_conversion): ...new function.
18327 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
18328 subclass of gimple_opt_pass along with...
18329 (pass_data_build_ssa): ...new pass_data instance and...
18330 (make_pass_build_ssa): ...new function.
18331 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
18332 global struct to a subclass of gimple_opt_pass along with...
18333 (pass_data_loop_distribution): ...new pass_data instance and...
18334 (make_pass_loop_distribution): ...new function.
18335 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
18336 subclass of gimple_opt_pass along with...
18337 (pass_data_mudflap_1): ...new pass_data instance and...
18338 (make_pass_mudflap_1): ...new function.
18339 (pass_mudflap_2): Convert from a global struct to a subclass of
18340 gimple_opt_pass along with...
18341 (pass_data_mudflap_2): ...new pass_data instance and...
18342 (make_pass_mudflap_2): ...new function.
18343 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
18344 subclass of gimple_opt_pass along with...
18345 (pass_data_mudflap_1): ...new pass_data instance and...
18346 (make_pass_mudflap_1): ...new function.
18347 (pass_mudflap_2): Convert from a global struct to a subclass of
18348 gimple_opt_pass along with...
18349 (pass_data_mudflap_2): ...new pass_data instance and...
18350 (make_pass_mudflap_2): ...new function.
18351 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
18352 gimple_opt_pass along with...
18353 (pass_data_nrv): ...new pass_data instance and...
18354 (make_pass_nrv): ...new function.
18355 (pass_return_slot): Convert from a global struct to a subclass of
18356 gimple_opt_pass along with...
18357 (pass_data_return_slot): ...new pass_data instance and...
18358 (make_pass_return_slot): ...new function.
18359 * tree-object-size.c (pass_object_sizes): Convert from a global struct
18360 to a subclass of gimple_opt_pass along with...
18361 (pass_data_object_sizes): ...new pass_data instance and...
18362 (make_pass_object_sizes): ...new function.
18363 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
18364 global struct to a subclass of gimple_opt_pass along with...
18365 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
18367 (make_pass_cleanup_cfg_post_optimizing): ...new function.
18368 (pass_fixup_cfg): Convert from a global struct to a subclass of
18369 gimple_opt_pass along with...
18370 (pass_data_fixup_cfg): ...new pass_data instance and...
18371 (make_pass_fixup_cfg): ...new function.
18372 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
18373 (make_pass_mudflap_1): ...new function.
18374 (pass_mudflap_2): Replace declaration with that of...
18375 (make_pass_mudflap_2): ...new function.
18376 (pass_asan): Replace declaration with that of...
18377 (make_pass_asan): ...new function.
18378 (pass_asan_O0): Replace declaration with that of...
18379 (make_pass_asan_O0): ...new function.
18380 (pass_tsan): Replace declaration with that of...
18381 (make_pass_tsan): ...new function.
18382 (pass_tsan_O0): Replace declaration with that of...
18383 (make_pass_tsan_O0): ...new function.
18384 (pass_lower_cf): Replace declaration with that of...
18385 (make_pass_lower_cf): ...new function.
18386 (pass_refactor_eh): Replace declaration with that of...
18387 (make_pass_refactor_eh): ...new function.
18388 (pass_lower_eh): Replace declaration with that of...
18389 (make_pass_lower_eh): ...new function.
18390 (pass_lower_eh_dispatch): Replace declaration with that of...
18391 (make_pass_lower_eh_dispatch): ...new function.
18392 (pass_lower_resx): Replace declaration with that of...
18393 (make_pass_lower_resx): ...new function.
18394 (pass_build_cfg): Replace declaration with that of...
18395 (make_pass_build_cfg): ...new function.
18396 (pass_early_tree_profile): Replace declaration with that of...
18397 (make_pass_early_tree_profile): ...new function.
18398 (pass_cleanup_eh): Replace declaration with that of...
18399 (make_pass_cleanup_eh): ...new function.
18400 (pass_sra): Replace declaration with that of...
18401 (make_pass_sra): ...new function.
18402 (pass_sra_early): Replace declaration with that of...
18403 (make_pass_sra_early): ...new function.
18404 (pass_early_ipa_sra): Replace declaration with that of...
18405 (make_pass_early_ipa_sra): ...new function.
18406 (pass_tail_recursion): Replace declaration with that of...
18407 (make_pass_tail_recursion): ...new function.
18408 (pass_tail_calls): Replace declaration with that of...
18409 (make_pass_tail_calls): ...new function.
18410 (pass_tree_loop): Replace declaration with that of...
18411 (make_pass_tree_loop): ...new function.
18412 (pass_tree_loop_init): Replace declaration with that of...
18413 (make_pass_tree_loop_init): ...new function.
18414 (pass_lim): Replace declaration with that of...
18415 (make_pass_lim): ...new function.
18416 (pass_tree_unswitch): Replace declaration with that of...
18417 (make_pass_tree_unswitch): ...new function.
18418 (pass_predcom): Replace declaration with that of...
18419 (make_pass_predcom): ...new function.
18420 (pass_iv_canon): Replace declaration with that of...
18421 (make_pass_iv_canon): ...new function.
18422 (pass_scev_cprop): Replace declaration with that of...
18423 (make_pass_scev_cprop): ...new function.
18424 (pass_empty_loop): Replace declaration with that of...
18425 (make_pass_empty_loop): ...new function.
18426 (pass_record_bounds): Replace declaration with that of...
18427 (make_pass_record_bounds): ...new function.
18428 (pass_graphite): Replace declaration with that of...
18429 (make_pass_graphite): ...new function.
18430 (pass_graphite_transforms): Replace declaration with that of...
18431 (make_pass_graphite_transforms): ...new function.
18432 (pass_if_conversion): Replace declaration with that of...
18433 (make_pass_if_conversion): ...new function.
18434 (pass_loop_distribution): Replace declaration with that of...
18435 (make_pass_loop_distribution): ...new function.
18436 (pass_vectorize): Replace declaration with that of...
18437 (make_pass_vectorize): ...new function.
18438 (pass_slp_vectorize): Replace declaration with that of...
18439 (make_pass_slp_vectorize): ...new function.
18440 (pass_complete_unroll): Replace declaration with that of...
18441 (make_pass_complete_unroll): ...new function.
18442 (pass_complete_unrolli): Replace declaration with that of...
18443 (make_pass_complete_unrolli): ...new function.
18444 (pass_parallelize_loops): Replace declaration with that of...
18445 (make_pass_parallelize_loops): ...new function.
18446 (pass_loop_prefetch): Replace declaration with that of...
18447 (make_pass_loop_prefetch): ...new function.
18448 (pass_iv_optimize): Replace declaration with that of...
18449 (make_pass_iv_optimize): ...new function.
18450 (pass_tree_loop_done): Replace declaration with that of...
18451 (make_pass_tree_loop_done): ...new function.
18452 (pass_ch): Replace declaration with that of...
18453 (make_pass_ch): ...new function.
18454 (pass_ccp): Replace declaration with that of...
18455 (make_pass_ccp): ...new function.
18456 (pass_phi_only_cprop): Replace declaration with that of...
18457 (make_pass_phi_only_cprop): ...new function.
18458 (pass_build_ssa): Replace declaration with that of...
18459 (make_pass_build_ssa): ...new function.
18460 (pass_build_alias): Replace declaration with that of...
18461 (make_pass_build_alias): ...new function.
18462 (pass_build_ealias): Replace declaration with that of...
18463 (make_pass_build_ealias): ...new function.
18464 (pass_dominator): Replace declaration with that of...
18465 (make_pass_dominator): ...new function.
18466 (pass_dce): Replace declaration with that of...
18467 (make_pass_dce): ...new function.
18468 (pass_dce_loop): Replace declaration with that of...
18469 (make_pass_dce_loop): ...new function.
18470 (pass_cd_dce): Replace declaration with that of...
18471 (make_pass_cd_dce): ...new function.
18472 (pass_call_cdce): Replace declaration with that of...
18473 (make_pass_call_cdce): ...new function.
18474 (pass_merge_phi): Replace declaration with that of...
18475 (make_pass_merge_phi): ...new function.
18476 (pass_split_crit_edges): Replace declaration with that of...
18477 (make_pass_split_crit_edges): ...new function.
18478 (pass_pre): Replace declaration with that of...
18479 (make_pass_pre): ...new function.
18480 (pass_profile): Replace declaration with that of...
18481 (make_pass_profile): ...new function.
18482 (pass_strip_predict_hints): Replace declaration with that of...
18483 (make_pass_strip_predict_hints): ...new function.
18484 (pass_lower_complex_O0): Replace declaration with that of...
18485 (make_pass_lower_complex_O0): ...new function.
18486 (pass_lower_complex): Replace declaration with that of...
18487 (make_pass_lower_complex): ...new function.
18488 (pass_lower_vector): Replace declaration with that of...
18489 (make_pass_lower_vector): ...new function.
18490 (pass_lower_vector_ssa): Replace declaration with that of...
18491 (make_pass_lower_vector_ssa): ...new function.
18492 (pass_lower_omp): Replace declaration with that of...
18493 (make_pass_lower_omp): ...new function.
18494 (pass_diagnose_omp_blocks): Replace declaration with that of...
18495 (make_pass_diagnose_omp_blocks): ...new function.
18496 (pass_expand_omp): Replace declaration with that of...
18497 (make_pass_expand_omp): ...new function.
18498 (pass_expand_omp_ssa): Replace declaration with that of...
18499 (make_pass_expand_omp_ssa): ...new function.
18500 (pass_object_sizes): Replace declaration with that of...
18501 (make_pass_object_sizes): ...new function.
18502 (pass_strlen): Replace declaration with that of...
18503 (make_pass_strlen): ...new function.
18504 (pass_fold_builtins): Replace declaration with that of...
18505 (make_pass_fold_builtins): ...new function.
18506 (pass_stdarg): Replace declaration with that of...
18507 (make_pass_stdarg): ...new function.
18508 (pass_early_warn_uninitialized): Replace declaration with that of...
18509 (make_pass_early_warn_uninitialized): ...new function.
18510 (pass_late_warn_uninitialized): Replace declaration with that of...
18511 (make_pass_late_warn_uninitialized): ...new function.
18512 (pass_cse_reciprocals): Replace declaration with that of...
18513 (make_pass_cse_reciprocals): ...new function.
18514 (pass_cse_sincos): Replace declaration with that of...
18515 (make_pass_cse_sincos): ...new function.
18516 (pass_optimize_bswap): Replace declaration with that of...
18517 (make_pass_optimize_bswap): ...new function.
18518 (pass_optimize_widening_mul): Replace declaration with that of...
18519 (make_pass_optimize_widening_mul): ...new function.
18520 (pass_warn_function_return): Replace declaration with that of...
18521 (make_pass_warn_function_return): ...new function.
18522 (pass_warn_function_noreturn): Replace declaration with that of...
18523 (make_pass_warn_function_noreturn): ...new function.
18524 (pass_cselim): Replace declaration with that of...
18525 (make_pass_cselim): ...new function.
18526 (pass_phiopt): Replace declaration with that of...
18527 (make_pass_phiopt): ...new function.
18528 (pass_forwprop): Replace declaration with that of...
18529 (make_pass_forwprop): ...new function.
18530 (pass_phiprop): Replace declaration with that of...
18531 (make_pass_phiprop): ...new function.
18532 (pass_tree_ifcombine): Replace declaration with that of...
18533 (make_pass_tree_ifcombine): ...new function.
18534 (pass_dse): Replace declaration with that of...
18535 (make_pass_dse): ...new function.
18536 (pass_nrv): Replace declaration with that of...
18537 (make_pass_nrv): ...new function.
18538 (pass_rename_ssa_copies): Replace declaration with that of...
18539 (make_pass_rename_ssa_copies): ...new function.
18540 (pass_sink_code): Replace declaration with that of...
18541 (make_pass_sink_code): ...new function.
18542 (pass_fre): Replace declaration with that of...
18543 (make_pass_fre): ...new function.
18544 (pass_check_data_deps): Replace declaration with that of...
18545 (make_pass_check_data_deps): ...new function.
18546 (pass_copy_prop): Replace declaration with that of...
18547 (make_pass_copy_prop): ...new function.
18548 (pass_vrp): Replace declaration with that of...
18549 (make_pass_vrp): ...new function.
18550 (pass_uncprop): Replace declaration with that of...
18551 (make_pass_uncprop): ...new function.
18552 (pass_return_slot): Replace declaration with that of...
18553 (make_pass_return_slot): ...new function.
18554 (pass_reassoc): Replace declaration with that of...
18555 (make_pass_reassoc): ...new function.
18556 (pass_rebuild_cgraph_edges): Replace declaration with that of...
18557 (make_pass_rebuild_cgraph_edges): ...new function.
18558 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
18559 (make_pass_remove_cgraph_callee_edges): ...new function.
18560 (pass_build_cgraph_edges): Replace declaration with that of...
18561 (make_pass_build_cgraph_edges): ...new function.
18562 (pass_local_pure_const): Replace declaration with that of...
18563 (make_pass_local_pure_const): ...new function.
18564 (pass_tracer): Replace declaration with that of...
18565 (make_pass_tracer): ...new function.
18566 (pass_warn_unused_result): Replace declaration with that of...
18567 (make_pass_warn_unused_result): ...new function.
18568 (pass_diagnose_tm_blocks): Replace declaration with that of...
18569 (make_pass_diagnose_tm_blocks): ...new function.
18570 (pass_lower_tm): Replace declaration with that of...
18571 (make_pass_lower_tm): ...new function.
18572 (pass_tm_init): Replace declaration with that of...
18573 (make_pass_tm_init): ...new function.
18574 (pass_tm_mark): Replace declaration with that of...
18575 (make_pass_tm_mark): ...new function.
18576 (pass_tm_memopt): Replace declaration with that of...
18577 (make_pass_tm_memopt): ...new function.
18578 (pass_tm_edges): Replace declaration with that of...
18579 (make_pass_tm_edges): ...new function.
18580 (pass_split_functions): Replace declaration with that of...
18581 (make_pass_split_functions): ...new function.
18582 (pass_feedback_split_functions): Replace declaration with that of...
18583 (make_pass_feedback_split_functions): ...new function.
18584 (pass_strength_reduction): Replace declaration with that of...
18585 (make_pass_strength_reduction): ...new function.
18586 (pass_ipa_lower_emutls): Replace declaration with that of...
18587 (make_pass_ipa_lower_emutls): ...new function.
18588 (pass_ipa_function_and_variable_visibility): Replace declaration with
18590 (make_pass_ipa_function_and_variable_visibility): ...new function.
18591 (pass_ipa_tree_profile): Replace declaration with that of...
18592 (make_pass_ipa_tree_profile): ...new function.
18593 (pass_early_local_passes): Replace declaration with that of...
18594 (make_pass_early_local_passes): ...new function.
18595 (pass_ipa_whole_program_visibility): Replace declaration with that
18597 (make_pass_ipa_whole_program_visibility): ...new function.
18598 (pass_ipa_lto_gimple_out): Replace declaration with that of...
18599 (make_pass_ipa_lto_gimple_out): ...new function.
18600 (pass_ipa_increase_alignment): Replace declaration with that of...
18601 (make_pass_ipa_increase_alignment): ...new function.
18602 (pass_ipa_inline): Replace declaration with that of...
18603 (make_pass_ipa_inline): ...new function.
18604 (pass_ipa_free_lang_data): Replace declaration with that of...
18605 (make_pass_ipa_free_lang_data): ...new function.
18606 (pass_ipa_free_inline_summary): Replace declaration with that of...
18607 (make_pass_ipa_free_inline_summary): ...new function.
18608 (pass_ipa_cp): Replace declaration with that of...
18609 (make_pass_ipa_cp): ...new function.
18610 (pass_ipa_reference): Replace declaration with that of...
18611 (make_pass_ipa_reference): ...new function.
18612 (pass_ipa_pure_const): Replace declaration with that of...
18613 (make_pass_ipa_pure_const): ...new function.
18614 (pass_ipa_pta): Replace declaration with that of...
18615 (make_pass_ipa_pta): ...new function.
18616 (pass_ipa_lto_finish_out): Replace declaration with that of...
18617 (make_pass_ipa_lto_finish_out): ...new function.
18618 (pass_ipa_tm): Replace declaration with that of...
18619 (make_pass_ipa_tm): ...new function.
18620 (pass_ipa_profile): Replace declaration with that of...
18621 (make_pass_ipa_profile): ...new function.
18622 (pass_ipa_cdtor_merge): Replace declaration with that of...
18623 (make_pass_ipa_cdtor_merge): ...new function.
18624 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
18626 (make_pass_cleanup_cfg_post_optimizing): ...new function.
18627 (pass_init_datastructures): Replace declaration with that of...
18628 (make_pass_init_datastructures): ...new function.
18629 (pass_fixup_cfg): Replace declaration with that of...
18630 (make_pass_fixup_cfg): ...new function.
18631 (pass_expand): Replace declaration with that of...
18632 (make_pass_expand): ...new function.
18633 (pass_instantiate_virtual_regs): Replace declaration with that of...
18634 (make_pass_instantiate_virtual_regs): ...new function.
18635 (pass_rtl_fwprop): Replace declaration with that of...
18636 (make_pass_rtl_fwprop): ...new function.
18637 (pass_rtl_fwprop_addr): Replace declaration with that of...
18638 (make_pass_rtl_fwprop_addr): ...new function.
18639 (pass_jump): Replace declaration with that of...
18640 (make_pass_jump): ...new function.
18641 (pass_jump2): Replace declaration with that of...
18642 (make_pass_jump2): ...new function.
18643 (pass_lower_subreg): Replace declaration with that of...
18644 (make_pass_lower_subreg): ...new function.
18645 (pass_cse): Replace declaration with that of...
18646 (make_pass_cse): ...new function.
18647 (pass_fast_rtl_dce): Replace declaration with that of...
18648 (make_pass_fast_rtl_dce): ...new function.
18649 (pass_ud_rtl_dce): Replace declaration with that of...
18650 (make_pass_ud_rtl_dce): ...new function.
18651 (pass_rtl_dce): Replace declaration with that of...
18652 (make_pass_rtl_dce): ...new function.
18653 (pass_rtl_dse1): Replace declaration with that of...
18654 (make_pass_rtl_dse1): ...new function.
18655 (pass_rtl_dse2): Replace declaration with that of...
18656 (make_pass_rtl_dse2): ...new function.
18657 (pass_rtl_dse3): Replace declaration with that of...
18658 (make_pass_rtl_dse3): ...new function.
18659 (pass_rtl_cprop): Replace declaration with that of...
18660 (make_pass_rtl_cprop): ...new function.
18661 (pass_rtl_pre): Replace declaration with that of...
18662 (make_pass_rtl_pre): ...new function.
18663 (pass_rtl_hoist): Replace declaration with that of...
18664 (make_pass_rtl_hoist): ...new function.
18665 (pass_rtl_store_motion): Replace declaration with that of...
18666 (make_pass_rtl_store_motion): ...new function.
18667 (pass_cse_after_global_opts): Replace declaration with that of...
18668 (make_pass_cse_after_global_opts): ...new function.
18669 (pass_rtl_ifcvt): Replace declaration with that of...
18670 (make_pass_rtl_ifcvt): ...new function.
18671 (pass_into_cfg_layout_mode): Replace declaration with that of...
18672 (make_pass_into_cfg_layout_mode): ...new function.
18673 (pass_outof_cfg_layout_mode): Replace declaration with that of...
18674 (make_pass_outof_cfg_layout_mode): ...new function.
18675 (pass_loop2): Replace declaration with that of...
18676 (make_pass_loop2): ...new function.
18677 (pass_rtl_loop_init): Replace declaration with that of...
18678 (make_pass_rtl_loop_init): ...new function.
18679 (pass_rtl_move_loop_invariants): Replace declaration with that of...
18680 (make_pass_rtl_move_loop_invariants): ...new function.
18681 (pass_rtl_unswitch): Replace declaration with that of...
18682 (make_pass_rtl_unswitch): ...new function.
18683 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
18684 (make_pass_rtl_unroll_and_peel_loops): ...new function.
18685 (pass_rtl_doloop): Replace declaration with that of...
18686 (make_pass_rtl_doloop): ...new function.
18687 (pass_rtl_loop_done): Replace declaration with that of...
18688 (make_pass_rtl_loop_done): ...new function.
18689 (pass_web): Replace declaration with that of...
18690 (make_pass_web): ...new function.
18691 (pass_cse2): Replace declaration with that of...
18692 (make_pass_cse2): ...new function.
18693 (pass_df_initialize_opt): Replace declaration with that of...
18694 (make_pass_df_initialize_opt): ...new function.
18695 (pass_df_initialize_no_opt): Replace declaration with that of...
18696 (make_pass_df_initialize_no_opt): ...new function.
18697 (pass_reginfo_init): Replace declaration with that of...
18698 (make_pass_reginfo_init): ...new function.
18699 (pass_inc_dec): Replace declaration with that of...
18700 (make_pass_inc_dec): ...new function.
18701 (pass_stack_ptr_mod): Replace declaration with that of...
18702 (make_pass_stack_ptr_mod): ...new function.
18703 (pass_initialize_regs): Replace declaration with that of...
18704 (make_pass_initialize_regs): ...new function.
18705 (pass_combine): Replace declaration with that of...
18706 (make_pass_combine): ...new function.
18707 (pass_if_after_combine): Replace declaration with that of...
18708 (make_pass_if_after_combine): ...new function.
18709 (pass_ree): Replace declaration with that of...
18710 (make_pass_ree): ...new function.
18711 (pass_partition_blocks): Replace declaration with that of...
18712 (make_pass_partition_blocks): ...new function.
18713 (pass_match_asm_constraints): Replace declaration with that of...
18714 (make_pass_match_asm_constraints): ...new function.
18715 (pass_regmove): Replace declaration with that of...
18716 (make_pass_regmove): ...new function.
18717 (pass_split_all_insns): Replace declaration with that of...
18718 (make_pass_split_all_insns): ...new function.
18719 (pass_fast_rtl_byte_dce): Replace declaration with that of...
18720 (make_pass_fast_rtl_byte_dce): ...new function.
18721 (pass_lower_subreg2): Replace declaration with that of...
18722 (make_pass_lower_subreg2): ...new function.
18723 (pass_mode_switching): Replace declaration with that of...
18724 (make_pass_mode_switching): ...new function.
18725 (pass_sms): Replace declaration with that of...
18726 (make_pass_sms): ...new function.
18727 (pass_sched): Replace declaration with that of...
18728 (make_pass_sched): ...new function.
18729 (pass_ira): Replace declaration with that of...
18730 (make_pass_ira): ...new function.
18731 (pass_reload): Replace declaration with that of...
18732 (make_pass_reload): ...new function.
18733 (pass_clean_state): Replace declaration with that of...
18734 (make_pass_clean_state): ...new function.
18735 (pass_branch_prob): Replace declaration with that of...
18736 (make_pass_branch_prob): ...new function.
18737 (pass_value_profile_transformations): Replace declaration with that
18739 (make_pass_value_profile_transformations): ...new function.
18740 (pass_postreload_cse): Replace declaration with that of...
18741 (make_pass_postreload_cse): ...new function.
18742 (pass_gcse2): Replace declaration with that of...
18743 (make_pass_gcse2): ...new function.
18744 (pass_split_after_reload): Replace declaration with that of...
18745 (make_pass_split_after_reload): ...new function.
18746 (pass_branch_target_load_optimize1): Replace declaration with that
18748 (make_pass_branch_target_load_optimize1): ...new function.
18749 (pass_thread_prologue_and_epilogue): Replace declaration with that
18751 (make_pass_thread_prologue_and_epilogue): ...new function.
18752 (pass_stack_adjustments): Replace declaration with that of...
18753 (make_pass_stack_adjustments): ...new function.
18754 (pass_peephole2): Replace declaration with that of...
18755 (make_pass_peephole2): ...new function.
18756 (pass_if_after_reload): Replace declaration with that of...
18757 (make_pass_if_after_reload): ...new function.
18758 (pass_regrename): Replace declaration with that of...
18759 (make_pass_regrename): ...new function.
18760 (pass_cprop_hardreg): Replace declaration with that of...
18761 (make_pass_cprop_hardreg): ...new function.
18762 (pass_reorder_blocks): Replace declaration with that of...
18763 (make_pass_reorder_blocks): ...new function.
18764 (pass_branch_target_load_optimize2): Replace declaration with that
18766 (make_pass_branch_target_load_optimize2): ...new function.
18767 (pass_leaf_regs): Replace declaration with that of...
18768 (make_pass_leaf_regs): ...new function.
18769 (pass_split_before_sched2): Replace declaration with that of...
18770 (make_pass_split_before_sched2): ...new function.
18771 (pass_compare_elim_after_reload): Replace declaration with that of...
18772 (make_pass_compare_elim_after_reload): ...new function.
18773 (pass_sched2): Replace declaration with that of...
18774 (make_pass_sched2): ...new function.
18775 (pass_stack_regs): Replace declaration with that of...
18776 (make_pass_stack_regs): ...new function.
18777 (pass_stack_regs_run): Replace declaration with that of...
18778 (make_pass_stack_regs_run): ...new function.
18779 (pass_df_finish): Replace declaration with that of...
18780 (make_pass_df_finish): ...new function.
18781 (pass_compute_alignments): Replace declaration with that of...
18782 (make_pass_compute_alignments): ...new function.
18783 (pass_duplicate_computed_gotos): Replace declaration with that of...
18784 (make_pass_duplicate_computed_gotos): ...new function.
18785 (pass_variable_tracking): Replace declaration with that of...
18786 (make_pass_variable_tracking): ...new function.
18787 (pass_free_cfg): Replace declaration with that of...
18788 (make_pass_free_cfg): ...new function.
18789 (pass_machine_reorg): Replace declaration with that of...
18790 (make_pass_machine_reorg): ...new function.
18791 (pass_cleanup_barriers): Replace declaration with that of...
18792 (make_pass_cleanup_barriers): ...new function.
18793 (pass_delay_slots): Replace declaration with that of...
18794 (make_pass_delay_slots): ...new function.
18795 (pass_split_for_shorten_branches): Replace declaration with that of...
18796 (make_pass_split_for_shorten_branches): ...new function.
18797 (pass_split_before_regstack): Replace declaration with that of...
18798 (make_pass_split_before_regstack): ...new function.
18799 (pass_convert_to_eh_region_ranges): Replace declaration with that
18801 (make_pass_convert_to_eh_region_ranges): ...new function.
18802 (pass_shorten_branches): Replace declaration with that of...
18803 (make_pass_shorten_branches): ...new function.
18804 (pass_set_nothrow_function_flags): Replace declaration with that of...
18805 (make_pass_set_nothrow_function_flags): ...new function.
18806 (pass_dwarf2_frame): Replace declaration with that of...
18807 (make_pass_dwarf2_frame): ...new function.
18808 (pass_final): Replace declaration with that of...
18809 (make_pass_final): ...new function.
18810 (pass_rtl_seqabstr): Replace declaration with that of...
18811 (make_pass_rtl_seqabstr): ...new function.
18812 (pass_release_ssa_names): Replace declaration with that of...
18813 (make_pass_release_ssa_names): ...new function.
18814 (pass_early_inline): Replace declaration with that of...
18815 (make_pass_early_inline): ...new function.
18816 (pass_inline_parameters): Replace declaration with that of...
18817 (make_pass_inline_parameters): ...new function.
18818 (pass_update_address_taken): Replace declaration with that of...
18819 (make_pass_update_address_taken): ...new function.
18820 (pass_convert_switch): Replace declaration with that of...
18821 (make_pass_convert_switch): ...new function.
18822 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
18823 to a subclass of simple_ipa_opt_pass along with...
18824 (pass_data_ipa_tree_profile): ...new pass_data instance and...
18825 (make_pass_ipa_tree_profile): ...new function.
18826 * tree-sra.c (pass_sra_early): Convert from a global struct to a
18827 subclass of gimple_opt_pass along with...
18828 (pass_data_sra_early): ...new pass_data instance and...
18829 (make_pass_sra_early): ...new function.
18830 (pass_sra): Convert from a global struct to a subclass of
18831 gimple_opt_pass along with...
18832 (pass_data_sra): ...new pass_data instance and...
18833 (make_pass_sra): ...new function.
18834 (pass_early_ipa_sra): Convert from a global struct to a subclass of
18835 gimple_opt_pass along with...
18836 (pass_data_early_ipa_sra): ...new pass_data instance and...
18837 (make_pass_early_ipa_sra): ...new function.
18838 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
18839 subclass of gimple_opt_pass along with...
18840 (pass_data_ccp): ...new pass_data instance and...
18841 (make_pass_ccp): ...new function.
18842 (pass_fold_builtins): Convert from a global struct to a subclass of
18843 gimple_opt_pass along with...
18844 (pass_data_fold_builtins): ...new pass_data instance and...
18845 (make_pass_fold_builtins): ...new function.
18846 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
18847 subclass of gimple_opt_pass along with...
18848 (pass_data_copy_prop): ...new pass_data instance and...
18849 (make_pass_copy_prop): ...new function.
18850 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
18851 global struct to a subclass of gimple_opt_pass along with...
18852 (pass_data_rename_ssa_copies): ...new pass_data instance and...
18853 (make_pass_rename_ssa_copies): ...new function.
18854 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
18855 subclass of gimple_opt_pass along with...
18856 (pass_data_dce): ...new pass_data instance and...
18857 (make_pass_dce): ...new function.
18858 (pass_dce_loop): Convert from a global struct to a subclass of
18859 gimple_opt_pass along with...
18860 (pass_data_dce_loop): ...new pass_data instance and...
18861 (make_pass_dce_loop): ...new function.
18862 (pass_cd_dce): Convert from a global struct to a subclass of
18863 gimple_opt_pass along with...
18864 (pass_data_cd_dce): ...new pass_data instance and...
18865 (make_pass_cd_dce): ...new function.
18866 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
18867 subclass of gimple_opt_pass along with...
18868 (pass_data_dominator): ...new pass_data instance and...
18869 (make_pass_dominator): ...new function.
18870 (pass_phi_only_cprop): Convert from a global struct to a subclass of
18871 gimple_opt_pass along with...
18872 (pass_data_phi_only_cprop): ...new pass_data instance and...
18873 (make_pass_phi_only_cprop): ...new function.
18874 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
18875 subclass of gimple_opt_pass along with...
18876 (pass_data_dse): ...new pass_data instance and...
18877 (make_pass_dse): ...new function.
18878 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
18879 a subclass of gimple_opt_pass along with...
18880 (pass_data_forwprop): ...new pass_data instance and...
18881 (make_pass_forwprop): ...new function.
18882 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
18883 struct to a subclass of gimple_opt_pass along with...
18884 (pass_data_tree_ifcombine): ...new pass_data instance and...
18885 (make_pass_tree_ifcombine): ...new function.
18886 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
18887 subclass of gimple_opt_pass along with...
18888 (pass_data_ch): ...new pass_data instance and...
18889 (make_pass_ch): ...new function.
18890 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
18891 subclass of gimple_opt_pass along with...
18892 (pass_data_tree_loop): ...new pass_data instance and...
18893 (make_pass_tree_loop): ...new function.
18894 (pass_tree_loop_init): Convert from a global struct to a subclass of
18895 gimple_opt_pass along with...
18896 (pass_data_tree_loop_init): ...new pass_data instance and...
18897 (make_pass_tree_loop_init): ...new function.
18898 (pass_lim): Convert from a global struct to a subclass of
18899 gimple_opt_pass along with...
18900 (pass_data_lim): ...new pass_data instance and...
18901 (make_pass_lim): ...new function.
18902 (pass_tree_unswitch): Convert from a global struct to a subclass of
18903 gimple_opt_pass along with...
18904 (pass_data_tree_unswitch): ...new pass_data instance and...
18905 (make_pass_tree_unswitch): ...new function.
18906 (pass_predcom): Convert from a global struct to a subclass of
18907 gimple_opt_pass along with...
18908 (pass_data_predcom): ...new pass_data instance and...
18909 (make_pass_predcom): ...new function.
18910 (pass_vectorize): Convert from a global struct to a subclass of
18911 gimple_opt_pass along with...
18912 (pass_data_vectorize): ...new pass_data instance and...
18913 (make_pass_vectorize): ...new function.
18914 (pass_graphite): Convert from a global struct to a subclass of
18915 gimple_opt_pass along with...
18916 (pass_data_graphite): ...new pass_data instance and...
18917 (make_pass_graphite): ...new function.
18918 (pass_graphite_transforms): Convert from a global struct to a subclass
18919 of gimple_opt_pass along with...
18920 (pass_data_graphite_transforms): ...new pass_data instance and...
18921 (make_pass_graphite_transforms): ...new function.
18922 (pass_check_data_deps): Convert from a global struct to a subclass of
18923 gimple_opt_pass along with...
18924 (pass_data_check_data_deps): ...new pass_data instance and...
18925 (make_pass_check_data_deps): ...new function.
18926 (pass_iv_canon): Convert from a global struct to a subclass of
18927 gimple_opt_pass along with...
18928 (pass_data_iv_canon): ...new pass_data instance and...
18929 (make_pass_iv_canon): ...new function.
18930 (pass_scev_cprop): Convert from a global struct to a subclass of
18931 gimple_opt_pass along with...
18932 (pass_data_scev_cprop): ...new pass_data instance and...
18933 (make_pass_scev_cprop): ...new function.
18934 (pass_record_bounds): Convert from a global struct to a subclass of
18935 gimple_opt_pass along with...
18936 (pass_data_record_bounds): ...new pass_data instance and...
18937 (make_pass_record_bounds): ...new function.
18938 (pass_complete_unroll): Convert from a global struct to a subclass of
18939 gimple_opt_pass along with...
18940 (pass_data_complete_unroll): ...new pass_data instance and...
18941 (make_pass_complete_unroll): ...new function.
18942 (pass_complete_unrolli): Convert from a global struct to a subclass of
18943 gimple_opt_pass along with...
18944 (pass_data_complete_unrolli): ...new pass_data instance and...
18945 (make_pass_complete_unrolli): ...new function.
18946 (pass_parallelize_loops): Convert from a global struct to a subclass
18947 of gimple_opt_pass along with...
18948 (pass_data_parallelize_loops): ...new pass_data instance and...
18949 (make_pass_parallelize_loops): ...new function.
18950 (pass_loop_prefetch): Convert from a global struct to a subclass of
18951 gimple_opt_pass along with...
18952 (pass_data_loop_prefetch): ...new pass_data instance and...
18953 (make_pass_loop_prefetch): ...new function.
18954 (pass_iv_optimize): Convert from a global struct to a subclass of
18955 gimple_opt_pass along with...
18956 (pass_data_iv_optimize): ...new pass_data instance and...
18957 (make_pass_iv_optimize): ...new function.
18958 (pass_tree_loop_done): Convert from a global struct to a subclass of
18959 gimple_opt_pass along with...
18960 (pass_data_tree_loop_done): ...new pass_data instance and...
18961 (make_pass_tree_loop_done): ...new function.
18962 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
18963 struct to a subclass of gimple_opt_pass along with...
18964 (pass_data_cse_reciprocals): ...new pass_data instance and...
18965 (make_pass_cse_reciprocals): ...new function.
18966 (pass_cse_sincos): Convert from a global struct to a subclass of
18967 gimple_opt_pass along with...
18968 (pass_data_cse_sincos): ...new pass_data instance and...
18969 (make_pass_cse_sincos): ...new function.
18970 (pass_optimize_bswap): Convert from a global struct to a subclass of
18971 gimple_opt_pass along with...
18972 (pass_data_optimize_bswap): ...new pass_data instance and...
18973 (make_pass_optimize_bswap): ...new function.
18974 (pass_optimize_widening_mul): Convert from a global struct to a
18975 subclass of gimple_opt_pass along with...
18976 (pass_data_optimize_widening_mul): ...new pass_data instance and...
18977 (make_pass_optimize_widening_mul): ...new function.
18978 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
18979 subclass of gimple_opt_pass along with...
18980 (pass_data_phiopt): ...new pass_data instance and...
18981 (make_pass_phiopt): ...new function.
18982 (pass_cselim): Convert from a global struct to a subclass of
18983 gimple_opt_pass along with...
18984 (pass_data_cselim): ...new pass_data instance and...
18985 (make_pass_cselim): ...new function.
18986 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
18987 subclass of gimple_opt_pass along with...
18988 (pass_data_phiprop): ...new pass_data instance and...
18989 (make_pass_phiprop): ...new function.
18990 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
18991 subclass of gimple_opt_pass along with...
18992 (pass_data_pre): ...new pass_data instance and...
18993 (make_pass_pre): ...new function.
18994 (pass_fre): Convert from a global struct to a subclass of
18995 gimple_opt_pass along with...
18996 (pass_data_fre): ...new pass_data instance and...
18997 (make_pass_fre): ...new function.
18998 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
18999 subclass of gimple_opt_pass along with...
19000 (pass_data_reassoc): ...new pass_data instance and...
19001 (make_pass_reassoc): ...new function.
19002 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
19003 subclass of gimple_opt_pass along with...
19004 (pass_data_sink_code): ...new pass_data instance and...
19005 (make_pass_sink_code): ...new function.
19006 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
19007 subclass of gimple_opt_pass along with...
19008 (pass_data_strlen): ...new pass_data instance and...
19009 (make_pass_strlen): ...new function.
19010 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
19011 struct to a subclass of gimple_opt_pass along with...
19012 (pass_data_build_alias): ...new pass_data instance and...
19013 (make_pass_build_alias): ...new function.
19014 (pass_build_ealias): Convert from a global struct to a subclass of
19015 gimple_opt_pass along with...
19016 (pass_data_build_ealias): ...new pass_data instance and...
19017 (make_pass_build_ealias): ...new function.
19018 (pass_ipa_pta): Convert from a global struct to a subclass of
19019 simple_ipa_opt_pass along with...
19020 (pass_data_ipa_pta): ...new pass_data instance and...
19021 (make_pass_ipa_pta): ...new function.
19022 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
19023 subclass of gimple_opt_pass along with...
19024 (pass_data_uncprop): ...new pass_data instance and...
19025 (make_pass_uncprop): ...new function.
19026 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
19027 global struct to a subclass of gimple_opt_pass along with...
19028 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
19029 (make_pass_late_warn_uninitialized): ...new function.
19030 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
19031 to a subclass of gimple_opt_pass along with...
19032 (pass_data_init_datastructures): ...new pass_data instance and...
19033 (make_pass_init_datastructures): ...new function.
19034 (pass_early_warn_uninitialized): Convert from a global struct to a
19035 subclass of gimple_opt_pass along with...
19036 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
19037 (make_pass_early_warn_uninitialized): ...new function.
19038 (pass_update_address_taken): Convert from a global struct to a
19039 subclass of gimple_opt_pass along with...
19040 (pass_data_update_address_taken): ...new pass_data instance and...
19041 (make_pass_update_address_taken): ...new function.
19042 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
19043 struct to a subclass of gimple_opt_pass along with...
19044 (pass_data_release_ssa_names): ...new pass_data instance and...
19045 (make_pass_release_ssa_names): ...new function.
19046 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
19047 subclass of gimple_opt_pass along with...
19048 (pass_data_stdarg): ...new pass_data instance and...
19049 (make_pass_stdarg): ...new function.
19050 * tree-switch-conversion.c (pass_convert_switch): Convert from a
19051 global struct to a subclass of gimple_opt_pass along with...
19052 (pass_data_convert_switch): ...new pass_data instance and...
19053 (make_pass_convert_switch): ...new function.
19054 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
19055 to a subclass of gimple_opt_pass along with...
19056 (pass_data_tail_recursion): ...new pass_data instance and...
19057 (make_pass_tail_recursion): ...new function.
19058 (pass_tail_calls): Convert from a global struct to a subclass of
19059 gimple_opt_pass along with...
19060 (pass_data_tail_calls): ...new pass_data instance and...
19061 (make_pass_tail_calls): ...new function.
19062 * tree-vect-generic.c (pass_lower_vector): Convert from a global
19063 struct to a subclass of gimple_opt_pass along with...
19064 (pass_data_lower_vector): ...new pass_data instance and...
19065 (make_pass_lower_vector): ...new function.
19066 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
19067 gimple_opt_pass along with...
19068 (pass_data_lower_vector_ssa): ...new pass_data instance and...
19069 (make_pass_lower_vector_ssa): ...new function.
19070 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
19071 to a subclass of gimple_opt_pass along with...
19072 (pass_data_slp_vectorize): ...new pass_data instance and...
19073 (make_pass_slp_vectorize): ...new function.
19074 (pass_ipa_increase_alignment): Convert from a global struct to a
19075 subclass of simple_ipa_opt_pass along with...
19076 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
19077 (make_pass_ipa_increase_alignment): ...new function.
19078 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
19079 gimple_opt_pass along with...
19080 (pass_data_vrp): ...new pass_data instance and...
19081 (make_pass_vrp): ...new function.
19082 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
19083 subclass of simple_ipa_opt_pass along with...
19084 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
19085 (make_pass_ipa_free_lang_data): ...new function.
19086 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
19087 gimple_opt_pass along with...
19088 (pass_data_tsan): ...new pass_data instance and...
19089 (make_pass_tsan): ...new function.
19090 (pass_tsan_O0): Convert from a global struct to a subclass of
19091 gimple_opt_pass along with...
19092 (pass_data_tsan_O0): ...new pass_data instance and...
19093 (make_pass_tsan_O0): ...new function.
19094 * var-tracking.c (pass_variable_tracking): Convert from a global
19095 struct to a subclass of rtl_opt_pass along with...
19096 (pass_data_variable_tracking): ...new pass_data instance and...
19097 (make_pass_variable_tracking): ...new function.
19098 * web.c (pass_web): Convert from a global struct to a subclass of
19099 rtl_opt_pass along with...
19100 (pass_data_web): ...new pass_data instance and...
19101 (make_pass_web): ...new function.
19102 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
19103 declaration with that of...
19104 (make_pass_mode_switch_use): ...new function.
19105 (pass_resolve_sw_modes): Replace declaration with that of...
19106 (make_pass_resolve_sw_modes): ...new function.
19107 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
19108 from a global struct to a subclass of rtl_opt_pass along with...
19109 (pass_data_mode_switch_use): ...new pass_data instance and...
19110 (make_pass_mode_switch_use): ...new function.
19111 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
19112 from a global struct to a subclass of rtl_opt_pass along with...
19113 (pass_data_resolve_sw_modes): ...new pass_data instance and...
19114 (make_pass_resolve_sw_modes): ...new function.
19115 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
19116 struct to a subclass of rtl_opt_pass along with...
19117 (pass_data_insert_vzeroupper): ...new pass_data instance and...
19118 (make_pass_insert_vzeroupper): ...new function.
19119 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
19120 global struct to a subclass of rtl_opt_pass along with...
19121 (pass_data_work_around_errata): ...new pass_data instance and...
19122 (make_pass_work_around_errata): ...new function.
19123 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
19124 struct to a subclass of rtl_opt_pass along with...
19125 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
19126 (make_pass_mips_machine_reorg2): ...new function.
19128 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19130 * passes.c (pass_manager::operator new): New.
19132 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19134 Handwritten part of conversion of passes to C++ classes.
19136 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
19137 (toplev.o): Add dep on PASS_MANAGER_H.
19138 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
19139 of early local pases to reflect this moving from a global to a
19140 member of gcc::pass_manager.
19141 (cgraph_add_new_function): Likewise.
19142 * lto-cgraph.c (lto_output_node): Update for conversion of
19143 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
19144 * passes.c (opt_pass::clone): New.
19145 (opt_pass::gate): New.
19146 (opt_pass::execute): New.
19147 (opt_pass::opt_pass): New.
19148 (pass_manager::execute_early_local_passes): New.
19149 (pass_manager::execute_pass_mode_switching): new.
19150 (finish_optimization_passes): Convert to...
19151 (pass_manager::finish_optimization_passes): ...this.
19152 (finish_optimization_passes): Update for conversion of passes to
19154 (register_dump_files_1): Use has_gate since we cannot portably
19155 check a vtable entry against NULL.
19156 (dump_one_pass): Likewise.
19157 (ipa_write_summaries_2): Likewise.
19158 (ipa_write_optimization_summaries_1): Likewise.
19159 (ipa_read_summaries_1): Likewise.
19160 (ipa_read_optimization_summaries_1): Likewise.
19161 (execute_ipa_stmt_fixups): Likewise.
19162 (pass_manager::pass_manager): Rewrite pass-creation, invoking
19163 pass-creation functions rather than wiring up globals, and
19164 storing the results in fields of pass_manager generated using
19165 pass-instances.def.
19166 (pass_manager::dump_profile_report): Update for conversion of
19167 passes to C++ classes.
19168 (pass_manager::execute_ipa_summary_passes): Likewise.
19169 (execute_one_ipa_transform_pass): Likewise.
19170 (execute_one_pass): Use has_gate and has_execute since we cannot
19171 portably check a vtable entry against NULL.
19172 * pass_manager.h (pass_manager::finish_optimization_passes): New.
19173 (pass_manager): Use pass-instances.def to add fields for the
19174 various pass instances.
19175 * toplev.c (finalize): Update for move of
19176 finish_optimization_passes to a method of gcc::pass_manager.
19177 * toplev.h (finish_optimization_passes): Move to method of class
19179 * tree-pass.h (struct pass_data): New.
19180 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
19181 (opt_pass::gate): Convert to virtual function.
19182 (opt_pass::~opt_pass): New.
19183 (opt_pass::clone): New.
19184 (opt_pass::execute): Convert to virtual function.
19185 (opt_pass::opt_pass): New.
19186 (opt_pass::ctxt_): new.
19187 (gimple_opt_pass): Convert to subclass of opt_pass.
19188 (gimple_opt_pass::gimple_opt_pass): New.
19189 (rtl_opt_pass): Convert to subclass of opt_pass.
19190 (rtl_opt_pass::rtl_opt_pass): New.
19191 (ipa_opt_pass_d): Convert to subclass of opt_pass.
19192 (ipa_opt_pass_d::ipa_opt_pass_d): New.
19193 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
19194 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
19195 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
19196 invocation of pass_mode_switching to reflect this moving from a
19197 global to a member of gcc::pass_manager.
19198 (ix86_option_override): Rework how pass_insert_vzeroupper is
19199 added to the pass_manager to reflect autogenerated changes.
19200 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
19202 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
19204 PR rtl-optimization/57708
19205 * recog.c (peep2_find_free_register): Validate all regs in a
19208 2013-08-05 Jan Hubicka <jh@suse.cz>
19211 * cgraph.c (verify_cgraph_node): Accept local flags from other
19213 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
19214 (function_and_variable_visibility): Likewise.
19215 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
19217 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
19219 * graph.c (init_graph_slim_pretty_print): Remove.
19220 (print_graph_cfg): Do not call it. Use local pretty printer.
19221 (start_graph_dump): Likewise.
19223 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
19225 * gimple-pretty-print.c (buffer): Remove.
19226 (initialized): Likewise.
19227 (maybe_init_pretty_print): Likewise.
19228 (print_gimple_stmt): Do not call it. Use non-static local
19229 pretty_printer variable.
19230 (print_gimple_expr): Likewise.
19231 (print_gimple_seq): Likewise.
19232 (gimple_dump_bb): Likewise.
19234 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
19236 * asan.c (asan_pp): Remove.
19237 (asan_pp_initialized): Likewise.
19238 (asan_pp_initialize): Likewise.
19239 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
19240 (asan_emit_stack_protection): Tidy. Use local pretty printer.
19241 (asan_add_global): Likewise.
19243 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
19245 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
19246 * diagnostic.h (diagnostic_flush_buffer): Adjust.
19247 * pretty-print.c (pp_formatted_text_data): Likewise.
19248 (pp_indent): Rename from pp_base_indent.
19249 (pp_format): Rename from pp_base_format.
19250 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
19251 (pp_format_verbatim): Rename from pp_base_format_verbatim.
19252 (pp_flush): Rename from pp_base_flush.
19253 (pp_set_line_maximum_length): Rename from
19254 pp_base_set_line_maximum_length.
19255 (pp_clear_output_area): Rename from pp_base_clear_output_area.
19256 (pp_set_prefix): Rename from pp_base_set_prefix.
19257 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
19258 (pp_emit_prefix): Rename from pp_base_emit_prefix.
19259 (pp_append_text): Rename from pp_base_append_text.
19260 (pp_formatted_text): Rename from pp_base_formatted_text.
19261 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
19262 (pp_remaining_character_count_for_line): Rename from
19263 pp_base_remaining_character_count_for_line.
19264 (pp_newline): Rename from pp_base_newline.
19265 (pp_character): Rename from pp_base_character.
19266 (pp_string): Rename from pp_base_string.
19267 (pp_maybe_space): Rename from pp_base_maybe_space.
19268 * asan.c (asan_pp_string): Adjust.
19269 (asan_emit_stack_protection): Likewise.
19270 (asan_add_global): Likewise.
19271 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
19272 * tree-mudflap.c (mf_varname_tree): Likewise.
19273 * tree-pretty-print.c (pp_tree_identifier): Rename from
19274 pp_base_tree_identifier.
19275 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
19276 Declare as function.
19278 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
19280 * pretty-print.h (pp_bar_bar): New.
19281 (pp_ampersand_ampersand): Likewise.
19282 (pp_less_equal): Likewise.
19283 (pp_greater_equal): Likewise.
19284 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
19285 printer functions instead of pp_string or operators and punctuators.
19286 (dump_gimple_call): Likewise.
19287 (dump_gimple_omp_for): Likewise.
19288 (dump_gimple_transaction): Likewise.
19289 (dump_gimple_phi): Likewise.
19290 (pp_gimple_stmt_1): Likewise.
19291 * sched-vis.c (print_insn): Likewise.
19292 * tree-mudflap.c (mf_varname_tree): Likewise.
19293 * tree-pretty-print.c (dump_block_node): Likewise.
19294 (dump_generic_node): Likewise.
19296 2013-08-02 Jan Hubicka <jh@suse.cz>
19298 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
19300 * lto-streamer-out.c (tree_is_indexable): Results decls and
19301 parm decls are not indexable.
19302 (DFS_write_tree_body): Do not follow args and results.
19303 (hash_tree): Likewise.
19304 (output_functions): Rearrange so struct function is needed
19305 only when real body is output; be able to also ouptut abstract
19306 functions; output DECL_ARGUMENTS and DECL_RESULT.
19307 (lto_output): When not in WPA, ale store abstract functions.
19308 (write_symbol): Do not care about RESULT_DECL.
19309 (output_symbol_p): Handle correctly sbtract decls.
19310 * lto-streamer-in.c (input_function): Rearrange so struct
19311 function can be NULL at entry; allow streaming of
19312 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
19313 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
19314 sanity check during LTO.
19315 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
19316 RESULT_DECl and DECL_ARGUMENTS.
19317 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19320 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
19322 * pretty-print.h (pp_underscore): New.
19324 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
19325 printer functions instead of pp_character.
19326 (dump_binary_rhs): Likewise.
19327 (dump_ternary_rhs): Likewise.
19328 (dump_gimple_call_args): Likewise.
19329 (pp_points_to_solution): Likewise.
19330 (dump_gimple_call): Likewise.
19331 (dump_gimple_switch): Likewise.
19332 (dump_gimple_cond): Likewise.
19333 (dump_gimple_bind): Likewise.
19334 (dump_gimple_try): Likewise.
19335 (dump_gimple_omp_for): Likewise.
19336 (dump_gimple_omp_continue): Likewise.
19337 (dump_gimple_omp_single): Likewise.
19338 (dump_gimple_omp_sections): Likewise.
19339 (dump_gimple_omp_block): Likewise.
19340 (dump_gimple_omp_critical): Likewise.
19341 (dump_gimple_transaction): Likewise.
19342 (dump_gimple_asm): Likewise.
19343 (dump_gimple_phi): Likewise.
19344 (dump_gimple_omp_parallel): Likewise.
19345 (dump_gimple_omp_task): Likewise.
19346 (dump_gimple_omp_atomic_load): Likewise.
19347 (dump_gimple_omp_atomic_store): Likewise.
19348 (dump_gimple_mem_ops): Likewise.
19349 (pp_gimple_stmt_1): Likewise.
19350 (pp_cfg_jump): Likewise.
19351 (dump_implicit_edges): Likewise.
19352 (gimple_dump_bb_for_graph): Likewise.
19353 * graph.c (draw_cfg_node): Likewise.
19354 * langhooks.c (lhd_print_error_function): Likewise.
19355 * sched-vis.c (print_exp): Likewise.
19356 (print_value): Likewise.
19357 (print_pattern): Likewise.
19358 (print_insn): Likewise.
19359 (rtl_dump_bb_for_graph): Likewise.
19360 * tree-pretty-print.c (dump_function_declaration): Likewise.
19361 (dump_array_domain): Likewise.
19362 (dump_omp_clause): Likewise.
19363 (dump_location): Likewise.
19364 (dump_generic_node): Likewise.
19365 (print_struct_decl): Likewise.
19366 * diagnostic.c (diagnostic_show_locus): Use pp_space.
19368 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19370 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
19371 candidate table when replacing a candidate statement.
19372 (replace_rhs_if_not_dup): Likewise.
19373 (replace_one_candidate): Likewise.
19375 2013-08-02 Jan Hubicka <jh@suse.cz>
19376 Martin Liska <marxin.liska@gmail.com>
19378 * cgraphunit.c (add_new_function): Fix logic when adding from
19380 (assemble_thunk): Rename to ...
19381 (expand_thunk); .. this one; export; get it working with
19382 general functions; make produced gimple valid.
19383 * cgraph.h (expand_thunk): Declare.
19385 2013-08-02 Jan Hubicka <jh@suse.cz>
19387 * ipa-cp.c (gather_context_independent_values): Use
19388 ipa_get_param_move_cost.
19389 (get_replacement_map): Remove PARAM; move parameter folding
19391 (create_specialized_node): Update.
19392 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
19393 assert that we have gimple body; update move_cost.
19394 (count_formal_params): Assert that we have gimple body.
19395 (ipa_dump_param): New function.
19396 (ipa_alloc_node_params): Break out from ...
19397 (ipa_initialize_node_params): ... here.
19398 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
19399 (ipa_write_node_info): Stream move costs.
19400 (ipa_read_node_info): Read move costs.
19401 (ipa_update_after_lto_read): Do not recompute node params.
19402 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
19403 (ipa_get_param): Check we are not in WPA.
19404 (ipa_get_param_move_cost): New.
19405 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
19406 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
19407 parm numbers to be present.
19409 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
19411 PR rtl-optimization/58048
19412 * lra-constraints.c (process_alt_operands): Don't check asm
19413 operand on register.
19415 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
19417 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
19418 the implied StoreLoad barrier for atomic operations if before.
19420 2013-08-02 Jan Hubicka <jh@suse.cz>
19421 Martin Liska <marxin.liska@gmail.com>
19423 * cgraph.c (cgraph_function_body_availability): Do not check
19425 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
19426 symtab_node_availability): Declare.
19427 * ipa.c (can_replace_by_local_alias): New.
19428 (function_and_variable_visibility): Use it.
19429 * symtab.c (symtab_for_node_and_aliases,
19430 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
19432 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
19434 PR rtl-optimization/57963
19435 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
19436 (lra_constraints): Use them.
19438 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
19440 * config/arm/types.md (define_attr "type"): Add "load_acq"
19442 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
19444 (cortex_a53_store1): Likewise.
19446 2013-08-01 Jan Hubicka <jh@suse.cz>
19448 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
19449 partitions are not needed.
19451 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
19453 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
19454 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
19455 MAYBE_NON_Q_CLASS_P where appropriate.
19457 2013-08-01 Jan Hubicka <jh@suse.cz>
19459 * cgraph.h (release_function_body): Declare.
19460 * tree.c (free_lang_data_in_decl): Free, parameters and return values
19461 of unused delcarations.
19463 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19465 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
19466 RTL form when subtracting a constant.
19468 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19470 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
19471 Generate canonical plus rtx with negated immediate instead of minus
19473 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
19475 2013-08-01 Jan Hubicka <jh@suse.cz>
19477 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
19478 (cgraph_release_function_body): Likewise.
19479 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
19480 * cgraph.h (cgrpah_node): Rename abstract_and_needed
19481 to used_as_abstract_origin.
19482 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
19483 symbols used as abstract origins.
19484 * cgraphunit.c (analyze_functions): Update.
19485 * ipa.c (symtab_remove_unreachable_nodes): Recompute
19486 used_as_abstract_origin.
19487 * tree-inline.c (tree_function_versioning): Update
19488 used_as_abstract_origin; be ready for DECL_RESULT and
19489 DECL_ARGUMENTS to be NULL.
19491 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
19492 for abstract functions.
19493 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
19496 2013-08-01 Jan Hubicka <jh@suse.cz>
19498 * profile.c (compute_value_histograms): Fix thinko.
19500 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
19502 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
19503 aarch-common-protos.h to extra_headers.
19504 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
19505 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
19506 * config/aarch64/t-aarch64 (aarch-common.o): Define.
19508 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
19510 * config/aarch64/aarch64.md (define_attr "type"): Delete.
19511 Include "../arm/types.md". Define "type" attribute for all patterns.
19512 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
19515 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
19517 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
19518 to support power8 load fusion.
19519 (fusion_gpr_mem_load): Likewise.
19521 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
19523 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
19524 declarations for power8 load fusion.
19525 (emit_fusion_gpr_load): Likewise.
19527 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
19528 tuning for power8, turn on fusion mode by default. Turn on sign
19529 extending fusion mode if normal fusion mode is on, and we are at
19531 (fusion_gpr_load_p): New function, return true if we can fuse an
19532 addis instruction with a dependent load to a GPR.
19533 (emit_fusion_gpr_load): Emit the instructions for power8 load
19536 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
19537 (VSX load fusion peepholes): New peepholes to fuse together an
19538 addi instruction with a VSX load instruction.
19540 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
19541 peepholes to fuse an addis instruction with a load to a GPR base
19542 register. If we are supporting sign extending fusions, convert
19543 sign extending loads to zero extending loads and add an explicit
19546 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
19548 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
19549 aarch-common-protos.h to extra_headers.
19550 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
19551 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
19552 (arm_early_store_addr_dep): Likewise.
19553 (arm_no_early_alu_shift_dep): Likewise.
19554 (arm_no_early_alu_shift_value_dep): Likewise.
19555 (arm_no_early_mul_dep): Likewise.
19556 (arm_no_early_store_addr_dep): Likewise.
19557 (arm_mac_accumulator_is_mul_result): Likewise.
19558 (arm_mac_accumulator_is_result): Likewise.
19559 * config/arm/aarch-common.c: ... here. New file.
19560 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
19562 (arm_early_store_addr_dep): Likewise.
19563 (arm_no_early_alu_shift_dep): Likewise.
19564 (arm_no_early_alu_shift_value_dep): Likewise.
19565 (arm_no_early_mul_dep): Likewise.
19566 (arm_no_early_store_addr_dep): Likewise.
19567 (arm_mac_accumulator_is_mul_result): Likewise.
19568 (arm_mac_accumulator_is_result): Likewise.
19569 * config/arm/aarch-common-protos.h: ... here. New file.
19570 * config/arm/t-arm (aarch-common.o): Define.
19572 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
19574 * config/arm/arm.md: Include new file "types.md".
19575 (define_attr "type"): Move from here to ...
19576 (define_attr "mul32"): Likewise.
19577 (define_attr "mul64"): Likewise.
19578 * config/arm/types.md: ... here. New file.
19580 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
19582 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
19583 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
19585 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19587 * gen-pass-instances.awk: Fix offset of substr().
19589 2013-07-31 David Malcolm <dmalcolm@redhat.com>
19591 * Makefile.in (pass-instances.def): New.
19592 (passes.o): Replace dependency on passes.def with one on
19595 * gen-pass-instances.awk: New.
19597 * passes.c (pass_manager::pass_manager): Use pass-instances.def
19598 rather than passes.def, updating local definition of NEXT_PASS
19599 macro to add an extra NUM parameter (currently unused).
19601 2013-07-30 David Malcolm <dmalcolm@redhat.com>
19603 * Makefile.in (PASS_MANAGER_H): New.
19604 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
19605 (passes.o): Likewise.
19606 (statistics.o): Likewise.
19607 (cgraphunit.o): Likewise.
19608 (context.o): Depend on PASS_MANAGER_H.
19610 * pass_manager.h: New.
19612 * cgraphunit.c (cgraph_add_new_function): Update for moves
19613 of globals to fields of pass_manager.
19614 (analyze_function): Likewise.
19615 (expand_function): Likewise.
19616 (ipa_passes): Likewise.
19617 (compile): Likewise.
19619 * context.c (context::context): New.
19620 * context.h (context::context): New.
19621 (context::get_passes): New.
19622 (context::passes_): New.
19624 * lto-cgraph.c (input_node): Update for moves of globals to
19625 fields of pass_manager.
19627 * passes.c (all_passes): Remove, in favor of a field of the
19628 same name within the new class pass_manager.
19629 (all_small_ipa_passes): Likewise.
19630 (all_lowering_passes): Likewise.
19631 (all_regular_ipa_passes): Likewise.
19632 (all_late_ipa_passes): Likewise.
19633 (all_lto_gen_passes): Likewise.
19634 (passes_by_id): Likewise.
19635 (passes_by_id_size): Likewise.
19636 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19637 the new class pass_manager.
19638 (set_pass_for_id): Convert to...
19639 (pass_manager::set_pass_for_id): ...method.
19640 (get_pass_for_id): Convert to...
19641 (pass_manager::get_pass_for_id): ...method.
19642 (register_one_dump_file): Move body of implementation into...
19643 (pass_manager::register_one_dump_file): ...here.
19644 (register_dump_files_1): Convert to...
19645 (pass_manager::register_dump_files_1): ...method.
19646 (register_dump_files): Convert to...
19647 (pass_manager::register_dump_files): ...method.
19648 (create_pass_tab): Update for moves of globals to fields of
19650 (dump_passes): Move body of implementation into...
19651 (pass_manager::dump_passes): ...here.
19652 (register_pass): Move body of implementation into...
19653 (pass_manager::register_pass): ...here.
19654 (init_optimization_passes): Convert into...
19655 (pass_manager::pass_manager): ...constructor for new
19656 pass_manager class, and initialize the pass_lists array.
19657 (check_profile_consistency): Update for moves of globals to
19658 fields of pass_manager.
19659 (dump_profile_report): Move body of implementation into...
19660 (pass_manager::dump_profile_report): ...here.
19661 (ipa_write_summaries_1): Update for moves of pass lists from
19662 being globals to fields of pass_manager.
19663 (ipa_write_optimization_summaries): Likewise.
19664 (ipa_read_summaries): Likewise.
19665 (ipa_read_optimization_summaries): Likewise.
19666 (execute_all_ipa_stmt_fixups): Likewise.
19668 * statistics.c (statistics_fini): Update for moves of globals to
19669 fields of pass_manager.
19671 * toplev.c (general_init): Replace call to
19672 init_optimization_passes with construction of the pass_manager
19675 * tree-pass.h (all_passes): Remove, in favor of a field of the
19676 same name within the new class pass_manager.
19677 (all_small_ipa_passes): Likewise.
19678 (all_lowering_passes): Likewise.
19679 (all_regular_ipa_passes): Likewise.
19680 (all_lto_gen_passes): Likewise.
19681 (all_late_ipa_passes): Likewise.
19682 (passes_by_id): Likewise.
19683 (passes_by_id_size): Likewise.
19684 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19685 the new class pass_manager.
19686 (get_pass_for_id): Remove.
19688 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
19690 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
19693 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
19695 * arm.md (mulhi3): New expand pattern.
19697 2013-07-30 Jan Hubicka <jh@suse.cz>
19698 Martin Liska <marxin.liska@gmail.com>
19700 * profile.c (compute_value_histograms): Do not ICE when
19701 there is mismatch only on some counters.
19703 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19705 PR rtl-optimization/57637
19706 * function.c (move_insn_for_shrink_wrap): Also check the
19707 GEN set of the LIVE problem for the liveness analysis
19708 if it exists, otherwise give up.
19710 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19712 PR tree-optimization/57993
19713 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
19714 replaced statement in the candidate table.
19715 (phi_add_costs): Return infinite cost when the hidden basis does
19716 not dominate all phis on which the candidate is dependent.
19717 (replace_one_candidate): Record replaced statement in the
19720 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
19722 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
19723 (ashlv2si3): New expander.
19724 (*ashlv2si3_i): New define_insn_and_split.
19725 * predicates.md (float_operation): Allow patterns with three
19726 basic sub-patterns.
19728 PR rtl-optimization/58021
19729 * mode-switching.c (create_pre_exit): Always split off preceding
19730 insns if we are not at the basic block head.
19732 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
19734 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
19735 (UCLIBC_DYNAMIC_LINKER): New macro.
19736 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
19738 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
19739 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
19741 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
19742 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
19743 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
19744 for SF and DF modes. Use ieee_quad_format for TF mode.
19745 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
19746 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
19747 (mips_option_override): Handle `-mnan=legacy'.
19748 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
19749 `-mabs=2008' and `-mnan=2008'.
19750 (OPTION_DEFAULT_SPECS): Add "nan" default.
19751 (ASM_SPEC): Handle `-mnan='.
19752 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
19753 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
19754 comment accordingly.
19755 (neg<mode>2): Likewise.
19756 * config/mips/mips.opt (mabs, mnan): New options.
19757 * doc/install.texi (Configuration): Document `--with-nan=' option.
19758 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
19760 (MIPS Options): Document them.
19761 * config.gcc <mips*-*-*>: Handle `--with-nan='.
19762 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
19763 * configure: Regenerate.
19764 * config.in: Regenerate.
19766 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
19768 * config/i386/i386.md (float post-reload splitters): Do not check
19769 for subregs of SSE registers.
19771 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
19772 H.J. Lu <hongjiu.lu@intel.com>
19776 * config/i386/i386.md (post-reload splitter
19777 to avoid partial SSE reg dependency stalls): New pattern.
19779 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
19781 * config/s390/s390.md ("movcc"): Swap load and store instructions.
19783 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
19785 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
19786 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
19788 2013-07-26 Cary Coutant <ccoutant@google.com>
19790 * dwarf2out.c (die_checksum_ordered): Don't include template
19791 instantiations in signature.
19792 (is_template_parameter): New function.
19793 (is_template_instantiation): New function.
19794 (generate_skeleton_bottom_up): Don't include template instantiations
19796 (generate_skeleton): Likewise.
19797 (break_out_comdat_types): Move recursive call to break out nested
19799 (prune_unused_types_mark_generic_parms_dies): Call
19800 is_template_parameter.
19802 2013-07-26 Ian Bolton <ian.bolton@arm.com>
19804 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
19805 uses vector registers.
19806 * config/aarch64/iterators.md: Add attributes rtn and vas.
19808 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19809 Richard Earnshaw <richard.earnshaw@arm.com>
19811 * combine.c (simplify_comparison): Re-canonicalize operands
19813 * config/arm/arm.md (movcond_addsi): New splitter.
19815 2013-07-25 Sterling Augustine <saugustine@google.com>
19817 * dwarf2out.c (size_of_pubnames): Move code to...
19818 (include_pubname_in_output): ...here. New.
19819 (want_pubnames): Rearrange.
19820 (output_pubnames): Call include_pubname_in_output. Move assertion.
19822 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
19824 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
19826 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
19829 * doc/extend.texi: Remove obsolete builtins. Fix
19830 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
19832 2013-07-25 Jan Hubicka <jh@suse.cz>
19834 * cgraph.c (release_function_body): Break out from ...
19835 (cgraph_release_function_body): ... this one; also release DECL_RESULT
19836 and DECL_ARGUMENTS.
19837 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
19838 old_tree in the map.
19839 (create_specialized_node): Update.
19840 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
19842 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
19843 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
19844 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
19845 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
19848 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19850 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
19851 addsi3_carryin_alt2_<optab>): Correct output template.
19853 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19855 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
19856 Adjust for arm_restrict_it.
19857 Remove trailing whitespace.
19859 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
19861 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
19862 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
19864 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
19866 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
19868 PR rtl-optimization/57960
19869 * lra-constraints.c (process_alt_operands): Use the right mode
19870 when checking strict_low.
19872 2013-07-25 Jan Hubicka <jh@suse.cz>
19874 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
19875 * cgraph.c (cgraph_remove_node): Do not release function body
19876 when in cgraph streaming.
19877 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
19878 in other partitions are not considered reachable; fix handling of
19881 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19883 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
19885 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19890 * config/arm/arm.md ("*sibcall_insn): Replace use of
19891 Ss with US. Adjust output for v5 and v4t.
19892 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
19894 * config/arm/constraints.md ("Ss"): Rename to US.
19896 2013-07-25 Terry Guo <terry.guo@arm.com>
19898 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
19899 shift_add/shift_sub0/shift_sub1 RTXs.
19901 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
19902 Anton Blanchard <anton@au1.ibm.com>
19904 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
19905 (altivec_vpks<VI_char>ss): Likewise.
19906 (altivec_vpks<VI_char>us): Likewise.
19907 (altivec_vpku<VI_char>us): Likewise.
19908 (altivec_vpku<VI_char>um): Likewise.
19910 2013-07-24 David Malcolm <dmalcolm@redhat.com>
19912 Introduce context class.
19914 * Makefile.in (CONTEXT_H): New.
19915 (OBJS): Add context.o.
19916 (toplev.o): Add CONTEXT_H to dependencies.
19919 * toplev.c (general_init): Create the singleton gcc::context instance.
19925 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
19927 PR rtl-optimization/57968
19928 * mode-switching.c (create_pre_exit): Allow instructions that
19929 don't set a return register to need a non-exit mode.
19931 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19932 Anton Blanchard <anton@au1.ibm.com>
19934 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
19935 operands to vperm for little endian.
19936 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
19937 of lvsl to create the control mask for a vperm for little endian.
19939 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19940 Anton Blanchard <anton@au1.ibm.com>
19942 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
19943 two operands for little-endian.
19945 2013-07-23 Steve Ellcey <sellcey@mips.com>
19947 * config/mips/mips.c (mips_case_values_threshold): New.
19948 (TARGET_CASE_VALUES_THRESHOLD): Define.
19950 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19951 Anton Blanchard <anton@au1.ibm.com>
19953 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
19954 selection of field for vector splat in little endian mode.
19956 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19958 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
19959 expanders to rs6000.md.
19960 (ior<mode>3): Likewise.
19961 (and<mode>3): Likewise.
19962 (one_cmpl<mode>2): Likewise.
19963 (nor<mode>3): Likewise.
19964 (andc<mode>3): Likewise.
19965 (eqv<mode>3): Likewise.
19966 (nand<mode>3): Likewise.
19967 (orc<mode>3): Likewise.
19969 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
19972 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
19973 to split multi-word logical operations.
19974 (rs6000_split_logical_di): Likewise.
19975 (rs6000_split_logical): Likewise.
19977 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
19978 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
19979 and allow TImode operations in 32-bit.
19980 (vsx_and<mode>3_64bit): Likewise.
19981 (vsx_ior<mode>3_32bit): Likewise.
19982 (vsx_ior<mode>3_64bit): Likewise.
19983 (vsx_xor<mode>3_32bit): Likewise.
19984 (vsx_xor<mode>3_64bit): Likewise.
19985 (vsx_one_cmpl<mode>2_32bit): Likewise.
19986 (vsx_one_cmpl<mode>2_64bit): Likewise.
19987 (vsx_nor<mode>3_32bit): Likewise.
19988 (vsx_nor<mode>3_64bit): Likewise.
19989 (vsx_andc<mode>3_32bit): Likewise.
19990 (vsx_andc<mode>3_64bit): Likewise.
19991 (vsx_eqv<mode>3_32bit): Likewise.
19992 (vsx_eqv<mode>3_64bit): Likewise.
19993 (vsx_nand<mode>3_32bit): Likewise.
19994 (vsx_nand<mode>3_64bit): Likewise.
19995 (vsx_orc<mode>3_32bit): Likewise.
19996 (vsx_orc<mode>3_64bit): Likewise.
19998 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
19999 logical types in GPRs.
20001 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
20002 logical insns to rs6000.md, and allow TImode operations in
20004 (altivec_ior<mode>3): Likewise.
20005 (altivec_xor<mode>3): Likewise.
20006 (altivec_one_cmpl<mode>2): Likewise.
20007 (altivec_nor<mode>3): Likewise.
20008 (altivec_andc<mode>3): Likewise.
20010 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
20011 attributes for moving the 128-bit logical operations into
20013 (BOOL_REGS_OUTPUT): Likewise.
20014 (BOOL_REGS_OP1): Likewise.
20015 (BOOL_REGS_OP2): Likewise.
20016 (BOOL_REGS_UNARY): Likewise.
20017 (BOOL_REGS_AND_CR0): Likewise.
20018 (one_cmpl<mode>2): Add support for DI logical operations on
20019 32-bit, splitting the operations to 32-bit.
20020 (anddi3): Likewise.
20021 (iordi3): Likewise.
20022 (xordi3): Likewise.
20023 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
20024 changes to combine the 32/64-bit code, allow logical operations on
20025 TI mode in 32-bit, and to use similar match_operator patterns like
20026 scalar mode uses. Combine the Altivec and VSX code for logical
20027 operations, and move it here.
20028 (ior<mode>3, 128-bit types): Likewise.
20029 (xor<mode>3, 128-bit types): Likewise.
20030 (one_cmpl<mode>3, 128-bit types): Likewise.
20031 (nor<mode>3, 128-bit types): Likewise.
20032 (andc<mode>3, 128-bit types): Likewise.
20033 (eqv<mode>3, 128-bit types): Likewise.
20034 (nand<mode>3, 128-bit types): Likewise.
20035 (orc<mode>3, 128-bit types): Likewise.
20036 (and<mode>3_internal): Likewise.
20037 (bool<mode>3_internal): Likewise.
20038 (boolc<mode>3_internal1): Likewise.
20039 (boolc<mode>3_internal2): Likewise.
20040 (boolcc<mode>3_internal1): Likewise.
20041 (boolcc<mode>3_internal2): Likewise.
20042 (eqv<mode>3_internal1): Likewise.
20043 (eqv<mode>3_internal2): Likewise.
20044 (one_cmpl1<mode>3_internal): Likewise.
20046 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
20048 * config/microblaze/microblaze.c (microblaze_expand_prologue):
20049 Rename flag_stack_usage to flag_stack_usage_info.
20051 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
20053 * config/microblaze/sync.md: New file.
20054 * config/microblaze/microblaze.md: Include sync.md
20055 * config/microblaze/microblaze.c: Add print_operand 'y'.
20056 * config/microblaze/constraints.md: Add memory_contraint
20057 'Q' which is a single register.
20059 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
20061 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
20063 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
20065 * reload.c (find_reloads): Exit loop once we find this operand
20066 cannot be reloaded somehow for this alternative.
20068 * reload.c (find_reloads): Exit loop once we find a hard register.
20070 * rtlanal.c (computed_jump_p): Exit loop once we find label
20073 * i386.c (ix86_pad_returns): Exit loop after setting replace.
20075 * cfgloopmanip.c (remove_path): Exit loop after setting
20078 * gensupport.c (subst_dup): Avoid loop if code is not
20079 MATCH_DUP nor MATCH_OP_DUP.
20081 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
20083 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
20085 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
20087 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
20088 true for SP_REGNUM if mode == ptr_mode.
20089 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
20090 with value R0_REGNUM + 31.
20092 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
20094 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
20095 pad pointer-typed argument downward.
20097 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
20099 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
20100 and __ILP32__ when the ILP32 model is in use.
20102 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
20104 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
20105 (aarch64_load_symref_appropriately): In the case of
20106 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
20107 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
20108 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
20109 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
20110 if 'mode' doesn't equal to 'ptr_mode'.
20111 (aarch64_output_mi_thunk): Add an assertion on the alignment of
20112 'vcall_offset'; change to call aarch64_emit_move differently depending
20113 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
20114 to calculate the upper bound of 'vcall_offset'.
20115 (aarch64_cannot_force_const_mem): Change to also return true if
20117 (aarch64_legitimize_reload_address): In the case of large
20118 displacements, add new local variable 'xmode' and an assertion
20119 based on it; change to use 'xmode' to generate the new rtx and
20121 (aarch64_asm_trampoline_template): Change to generate the template
20122 differently depending on TARGET_ILP32 or not; change to use
20123 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
20124 (aarch64_trampoline_size): Removed.
20125 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
20126 and replace immediate literals with it. Change to use 'ptr_mode'
20127 instead of 'DImode' and call convert_memory_address if the mode
20128 of 'fnaddr' doesn't equal to 'ptr_mode'.
20129 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
20131 (aarch64_elf_asm_destructor): Likewise.
20132 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
20133 on TARGET_ILP32 instead of aarch64_trampoline_size.
20134 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
20135 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
20136 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
20137 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
20138 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
20139 (storewb_pair<GPI:mode>_<P:mode>): ... this.
20140 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
20141 depending on the value of 'mode'.
20142 (add_losym_<mode>): New.
20143 (ldr_got_small_<mode>): New, based on ldr_got_small.
20144 (ldr_got_small): Remove.
20145 (ldr_got_small_sidi): New.
20146 * config/aarch64/iterators.md (P): New.
20147 (PTR): Change to 'ptr_mode' in the condition.
20149 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
20151 * config.gcc (aarch64*-*-*): Support --with-abi.
20152 (aarch64*-*-elf): Support --with-multilib-list.
20153 (aarch64*-*-linux*): Likewise.
20154 (supported_defaults): Add abi to aarch64*-*-*.
20155 * configure.ac: Mention AArch64 for --with-multilib-list.
20156 * configure: Re-generated.
20157 * config/aarch64/biarchilp32.h: New file.
20158 * config/aarch64/biarchlp64.h: New file.
20159 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
20161 (MULTILIB_DEFAULTS): Ditto.
20162 (DRIVER_SELF_SPECS): Ditto.
20163 (ASM_SPEC): Update to also substitute -mabi.
20164 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
20165 file whose name depends on -mabi= and -mbig-endian.
20166 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
20168 (POINTER_SIZE): New define.
20169 (POINTERS_EXTEND_UNSIGNED): Ditto.
20170 (enum aarch64_abi_type): New enumeration tag.
20171 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
20172 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
20173 (TARGET_ILP32): New define.
20174 * config/aarch64/aarch64.opt (mabi): New.
20175 (aarch64_abi): New.
20176 (ilp32, lp64): New values for -mabi.
20177 * config/aarch64/t-aarch64 (comma): New define.
20178 (MULTILIB_OPTIONS): Ditto.
20179 (MULTILIB_DIRNAMES): Ditto.
20180 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
20181 * doc/invoke.texi: Document -mabi for AArch64.
20183 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
20185 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
20187 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
20188 Anton Blanchard <anton@au1.ibm.com>
20190 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
20191 endianness when selecting field to splat.
20193 2013-07-22 Eric Christopher <echristo@gmail.com>
20195 * dwarf2out.c (die_odr_checksum): New function to use
20196 CHECKSUM_ macros and ULEB128 for DIE tag.
20197 (generate_type_signature): Use.
20199 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
20201 * config.gcc (sparc*-*-*): Accept leon3 processor.
20202 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
20203 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
20204 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
20205 * config/sparc/sparc.opt (enum processor_type): Add leon3.
20206 (mfix-ut699): Adjust comment.
20207 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
20208 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
20209 (CPP_CPU_SPEC): Likewise.
20210 (ASM_CPU_SPEC): Likewise.
20211 * config/sparc/sparc.c (leon3_cost): New constant.
20212 (sparc_option_override): Add leon3 support.
20213 (mem_ref): New function.
20214 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
20215 (sparc_do_work_around_errata): Look into the instruction in the delay
20216 slot and adjust accordingly. Add fix for the data cache nullify issues
20217 of the UT699. Change insertion position for the NOP.
20218 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
20219 (leon3_load): New reservation.
20220 (leon_store): Bump latency to 2.
20221 (grfpu): New automaton.
20222 (grfpu_alu): New unit.
20223 (grfpu_ds): Likewise.
20224 (leon_fp_alu): Adjust.
20225 (leon_fp_mult): Delete.
20226 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
20227 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
20228 * config/sparc/sparc.md (cpu): Add leon3.
20229 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
20230 (swapsi): Likewise.
20231 (atomic_test_and_set): Likewise.
20232 (ldstub): Likewise.
20234 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
20236 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
20237 default for R5900 targets.
20238 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
20239 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
20240 * config/mips/mips.c (mips_option_override): Report an error for
20241 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
20242 for -march=r5900 -mhard-float.
20244 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
20246 * df-problems.c (can_move_insns_across): Exit loop once we
20247 find a non-fixed, non-global register.
20249 * ipa-pure-const.c (propagate_nothrow): Exit loop after
20252 * omega.c (omega_eliminate_red): Break after setting red_found.
20253 (omega_problem_has_red_equations): Similarly after setting found.
20254 (omega_query_variable): Similarly after setting coupled.
20256 2013-07-22 Marek Polacek <polacek@redhat.com>
20258 * gimplify.c: Don't include gimple.h twice.
20260 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20262 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
20263 instead of TARGET_THUMB1.
20264 (Pz): New constraint.
20265 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
20267 (compare_negsi_si): Likewise.
20268 (compare_addsi2_op0): Likewise.
20269 (compare_addsi2_op1): Likewise.
20270 (addsi3_carryin_<optab>): Likewise.
20271 (addsi3_carryin_alt2_<optab>): Likewise.
20272 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
20273 for arm_restrict_it.
20274 (subsi3_carryin): Likewise.
20275 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
20276 (minmax_arithsi): Disable for arm_restrict_it.
20277 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
20278 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
20279 (satsi_<SAT:code>_shift): Likewise.
20280 (arm_shiftsi3): Add alternative for 16-bit encoding.
20281 (arm32_movhf): Disable for arm_restrict_it.
20282 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
20283 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
20285 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
20287 * config/arm/arm.md (attribute "insn"): Delete.
20288 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
20289 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
20290 (not_shiftsi): Update for attribute change.
20291 (not_shiftsi_compare0): Likewise.
20292 (not_shiftsi_compare0_scratch): Likewise.
20293 (arm_one_cmplsi2): Likewise.
20294 (thumb1_one_cmplsi2): Likewise.
20295 (notsi_compare0): Likewise.
20296 (notsi_compare0_scratch): Likewise.
20297 (thumb1_movdi_insn): Likewise.
20298 (arm_movsi_insn): Likewise.
20299 (movhi_insn_arch4): Likewise.
20300 (movhi_bytes): Likewise.
20301 (arm_movqi_insn): Likewise.
20302 (thumb1_movqi_insn): Likewise.
20303 (arm32_movhf): Likewise.
20304 (thumb1_movhf): Likewise.
20305 (arm_movsf_soft_insn): Likewise.
20306 (thumb1_movsf_insn): Likewise.
20307 (thumb_movdf_insn): Likewise.
20308 (movsicc_insn): Likewise.
20309 (movsfcc_soft_insn): Likewise.
20310 (and_scc): Likewise.
20311 (cond_move): Likewise.
20312 (if_move_not): Likewise.
20313 (if_not_move): Likewise.
20314 (if_shift_move): Likewise.
20315 (if_move_shift): Likewise.
20316 (if_shift_shift): Likewise.
20317 (if_not_arith): Likewise.
20318 (if_arith_not): Likewise.
20319 (cond_move_not): Likewise.
20320 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
20321 (neon_mov<mode>): Likewise.
20322 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
20323 (thumb2_movsi_vfp): Likewise.
20324 (movsf_vfp): Likewise.
20325 (thumb2_movsf_vfp): Likewise.
20326 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
20328 (cortexa7_older_only): Likewise.
20329 (cortexa7_younger): Likewise.
20330 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
20331 (1020alu_shift_op): Likewise.
20332 (1020alu_shift_reg_op): Likewise.
20333 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
20334 (alu_shift_op): Likewise.
20335 (alu_shift_reg_op): Likewise.
20336 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
20337 (11_alu_shift_op): Likewise.
20338 (11_alu_shift_reg_op): Likewise.
20339 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
20340 (9_alu_shift_reg_op): Likewise.
20341 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
20343 (cortex_a15_alu_shift): Likewise.
20344 (cortex_a15_alu_shift_reg): Likewise.
20345 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
20346 (cortex_a5_alu_shift): Likewise.
20347 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
20349 (cortex_a53_alu_shift): Likewise.
20350 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
20352 (cortex_a7_alu_reg): Likewise.
20353 (cortex_a7_alu_shift): Likewise.
20354 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
20355 (cortex_a8_alu_shift): Likewise.
20356 (cortex_a8_alu_shift_reg): Likewise.
20357 (cortex_a8_mov): Likewise.
20358 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
20359 (cortex_a9_dp_shift): Likewise.
20360 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
20361 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
20362 (cortex_r4_mov): Likewise.
20363 (cortex_r4_alu_shift): Likewise.
20364 (cortex_r4_alu_shift_reg): Likewise.
20365 * config/arm/fa526.md (526_alu_op): Update for attribute change.
20366 (526_alu_shift_op): Likewise.
20367 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
20368 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
20369 (626te_alu_shift_op): Likewise.
20370 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
20371 (726te_alu_op): Likewise.
20372 (726te_alu_shift_op): Likewise.
20373 (726te_alu_shift_reg_op): Likewise.
20374 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
20375 (mp626_alu_shift_op): Likewise.
20376 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
20377 (pj4_alu_e1_conds): Likewise.
20378 (pj4_alu): Likewise.
20379 (pj4_alu_conds): Likewise.
20380 (pj4_shift): Likewise.
20381 (pj4_shift_conds): Likewise.
20382 (pj4_alu_shift): Likewise.
20383 (pj4_alu_shift_conds): Likewise.
20385 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20387 * config/arm/predicates.md (shiftable_operator_strict_it):
20389 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
20390 Disable cond_exec version for arm_restrict_it.
20391 (thumb2_smaxsi3): Convert to generate cond_exec.
20392 (thumb2_sminsi3): Likewise.
20393 (thumb32_umaxsi3): Likewise.
20394 (thumb2_uminsi3): Likewise.
20395 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
20396 (thumb2_neg_abssi2): Likewise.
20397 (thumb2_mov_scc): Add alternative for 16-bit encoding.
20398 (thumb2_movsicc_insn): Adjust alternatives.
20399 (thumb2_mov_negscc): Disable for arm_restrict_it.
20400 (thumb2_mov_negscc_strict_it): New pattern.
20401 (thumb2_mov_notscc_strict_it): New pattern.
20402 (thumb2_mov_notscc): Disable for arm_restrict_it.
20403 (thumb2_ior_scc): Likewise.
20404 (thumb2_ior_scc_strict_it): New pattern.
20405 (thumb2_cond_move): Adjust for arm_restrict_it.
20406 (thumb2_cond_arith): Disable for arm_restrict_it.
20407 (thumb2_cond_arith_strict_it): New pattern.
20408 (thumb2_cond_sub): Adjust for arm_restrict_it.
20409 (thumb2_movcond): Likewise.
20410 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
20411 (thumb2_zero_extendhisi2_v6): Likewise.
20412 (thumb2_zero_extendqisi2_v6): Likewise.
20413 (orsi_notsi_si): Likewise.
20414 (orsi_not_shiftsi_si): Likewise.
20416 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
20418 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
20419 instruction sequence is 1 byte shorter.
20421 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
20423 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
20424 it is not needed after split.
20426 2013-07-20 Iain Sandoe <iain@codesourcery.com>
20429 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
20430 second label for nonlocal goto receivers. Don't output pic base labels
20431 unless we're producing PIC; mark that action unreachable().
20432 (ix86_save_reg): If the function contains a nonlocal label, save the
20434 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
20435 * config/darwin.c (emitted_pic_label_num): New GTY.
20436 (update_pic_label_number_if_needed): New.
20437 (machopic_output_function_base_name): Adjust for nonlocal receiver
20439 (machopic_should_output_picbase_label): New.
20440 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
20441 (nonlocal_goto_receiver): New insn and split.
20443 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
20445 * config/aarch64/aarch64-builtins.c
20446 (aarch64_fold_builtin): Fold abs in all modes.
20447 * config/aarch64/aarch64-simd-builtins.def
20448 (abs): Enable for all modes.
20449 * config/aarch64/arm_neon.h
20450 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
20451 (vabs_f64): Add missing intrinsic.
20453 2013-07-19 Ian Bolton <ian.bolton@arm.com>
20455 * config/aarch64/arm_neon.h (vabs_s64): New function
20457 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
20460 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
20461 * config/avr/avr.md (adjust_len): Add `round'.
20462 * config/avr/avr-protos.h (avr_out_round): New prototype.
20463 (avr_out_plus): Add `out_label' argument.
20464 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
20465 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
20466 Handle the case where `insn' is just a pattern.
20467 (avr_out_bitop): Handle the case where `insn' is just a pattern.
20468 (avr_out_round): New function.
20469 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
20471 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
20473 * config/microblaze/microblaze.c (microblaze_expand_prologue):
20474 Add check for flag_stack_usage to handle -fstack-usage support
20476 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
20478 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
20479 interaction for new Power8 flags and VSX.
20481 2013-07-18 Sriraman Tallam <tmsriram@google.com>
20483 PR middle-end/57698
20484 * tree-inline.c (expand_call_inline): Emit errors during
20485 early_inlining only if optimization is not turned on.
20487 2013-07-18 David Malcolm <dmalcolm@redhat.com>
20491 * passes.c (init_optimization_passes): Move the construction of
20492 the pass hierarchy into a new passes.def file.
20494 * Makefile.in (passes.o): Add dependency on passes.def.
20496 2013-07-18 David Malcolm <dmalcolm@redhat.com>
20498 * passes.c (init_optimization_passes): Introduce macros for
20499 constructing the tree of passes (INSERT_PASSES_AFTER,
20500 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
20501 TERMINATE_PASS_LIST).
20503 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
20504 Wei Mi <wmi@google.com>
20506 PR rtl-optimization/57878
20507 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
20509 (reload_pseudo_compare_func): Check nregs first for reload
20512 2013-07-18 David Malcolm <dmalcolm@redhat.com>
20514 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
20516 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
20518 * read-rtl.c (validate_const_int): Once an invalid character is
20519 seen, quit the loop.
20521 * gengtype.c (write_roots): Similarly once we find the "deletable"
20522 or "if_marked" option.
20524 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
20526 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
20527 "xtab" and "sat". Move value "clz" from here to ...
20528 (attriubte "type"): ... here.
20529 (satsi_<SAT:code>): Delete "insn" attribute.
20530 (satsi_<SAT:code>_shift): Likewise.
20531 (arm_zero_extendqisi2addsi): Likewise.
20532 (arm_extendqisi2addsi): Likewise.
20533 (clzsi2): Update for attribute changes.
20534 (rbitsi2): Likewise.
20535 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
20537 (arm_usatsihi): Likewise.
20538 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
20540 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
20542 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
20543 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
20544 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
20545 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
20546 in alphabetical order.
20547 (attribute "core_cycles"): Update for attribute changes.
20548 (arm_addsi3): Likewise.
20549 (addsi3_compare0): Likewise.
20550 (addsi3_compare0_scratch): Likewise.
20551 (addsi3_compare_op1): Likewise.
20552 (addsi3_compare_op2): Likewise.
20553 (compare_addsi2_op0): Likewise.
20554 (compare_addsi2_op1): Likewise.
20555 (addsi3_carryin_shift_<optab>): Likewise.
20556 (subsi3_carryin_shift): Likewise.
20557 (rsbsi3_carryin_shift): Likewise.
20558 (arm_subsi3_insn): Likewise.
20559 (subsi3_compare0): Likewise.
20560 (subsi3_compare): Likewise.
20561 (arm_andsi3_insn): Likewise.
20562 (thumb1_andsi3_insn): Likewise.
20563 (andsi3_compare0): Likewise.
20564 (andsi3_compare0_scratch): Likewise.
20565 (zeroextractsi_compare0_scratch
20566 (andsi_not_shiftsi_si): Likewise.
20567 (iorsi3_insn): Likewise.
20568 (iorsi3_compare0): Likewise.
20569 (iorsi3_compare0_scratch): Likewise.
20570 (arm_xorsi3): Likewise.
20571 (thumb1_xorsi3_insn): Likewise.
20572 (xorsi3_compare0): Likewise.
20573 (xorsi3_compare0_scratch): Likewise.
20574 (satsi_<SAT:code>_shift): Likewise.
20576 (arm_shiftsi3): Likewise.
20577 (shiftsi3_compare0): Likewise.
20578 (not_shiftsi): Likewise.
20579 (not_shiftsi_compare0): Likewise.
20580 (not_shiftsi_compare0_scratch): Likewise.
20581 (arm_one_cmplsi2): Likewise.
20582 (thumb_one_complsi2): Likewise.
20583 (notsi_compare0): Likewise.
20584 (notsi_compare0_scratch): Likewise.
20585 (thumb1_zero_extendhisi2): Likewise.
20586 (arm_zero_extendhisi2): Likewise.
20587 (arm_zero_extendhisi2_v6): Likewise.
20588 (arm_zero_extendhisi2addsi): Likewise.
20589 (thumb1_zero_extendqisi2): Likewise.
20590 (thumb1_zero_extendqisi2_v6): Likewise.
20591 (arm_zero_extendqisi2): Likewise.
20592 (arm_zero_extendqisi2_v6): Likewise.
20593 (arm_zero_extendqisi2addsi): Likewise.
20594 (thumb1_extendhisi2): Likewise.
20595 (arm_extendhisi2): Likewise.
20596 (arm_extendhisi2_v6): Likewise.
20597 (arm_extendqisi): Likewise.
20598 (arm_extendqisi_v6): Likewise.
20599 (arm_extendqisi2addsi): Likewise.
20600 (thumb1_extendqisi2): Likewise.
20601 (thumb1_movdi_insn): Likewise.
20602 (arm_movsi_insn): Likewise.
20603 (movsi_compare0): Likewise.
20604 (movhi_insn_arch4): Likewise.
20605 (movhi_bytes): Likewise.
20606 (arm_movqi_insn): Likewise.
20607 (thumb1_movqi_insn): Likewise.
20608 (arm32_movhf): Likewise.
20609 (thumb1_movhf): Likewise.
20610 (arm_movsf_soft_insn): Likewise.
20611 (thumb1_movsf_insn): Likewise.
20612 (movdf_soft_insn): Likewise.
20613 (thumb_movdf_insn): Likewise.
20614 (arm_cmpsi_insn): Likewise.
20615 (cmpsi_shiftsi): Likewise.
20616 (cmpsi_shiftsi_swp): Likewise.
20617 (arm_cmpsi_negshiftsi_si): Likewise.
20618 (movsicc_insn): Likewise.
20619 (movsfcc_soft_insn): Likewise.
20620 (arith_shiftsi): Likewise.
20621 (arith_shiftsi_compare0
20622 (arith_shiftsi_compare0_scratch
20623 (sub_shiftsi): Likewise.
20624 (sub_shiftsi_compare0
20625 (sub_shiftsi_compare0_scratch
20626 (and_scc): Likewise.
20627 (cond_move): Likewise.
20628 (if_plus_move): Likewise.
20629 (if_move_plus): Likewise.
20630 (if_move_not): Likewise.
20631 (if_not_move): Likewise.
20632 (if_shift_move): Likewise.
20633 (if_move_shift): Likewise.
20634 (if_shift_shift): Likewise.
20635 (if_not_arith): Likewise.
20636 (if_arith_not): Likewise.
20637 (cond_move_not): Likewise.
20638 (thumb1_ashlsi3): Set type attribute.
20639 (thumb1_ashrsi3): Likewise.
20640 (thumb1_lshrsi3): Likewise.
20641 (thumb1_rotrsi3): Likewise.
20642 (shiftsi3_compare0_scratch): Likewise.
20643 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
20644 (neon_mov<mode>): Likewise.
20645 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
20647 (thumb2_movsi_insn): Likewise.
20648 (thumb2_cmpsi_neg_shiftsi): Likewise.
20649 (thumb2_extendqisi_v6): Likewise.
20650 (thumb2_zero_extendhisi2_v6): Likewise.
20651 (thumb2_zero_extendqisi2_v6): Likewise.
20652 (thumb2_shiftsi3_short): Likewise.
20653 (thumb2_addsi3_compare0_scratch): Likewise.
20654 (orsi_not_shiftsi_si): Likewise.
20655 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
20656 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
20658 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
20659 (1020alu_shift_op): Likewise.
20660 (1020alu_shift_reg_op): Likewise.
20661 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
20662 (alu_shift_op): Likewise.
20663 (alu_shift_reg_op): Likewise.
20664 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
20665 (11_alu_shift_op): Likewise.
20666 (11_alu_shift_reg_op): Likewise.
20667 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
20668 (9_alu_shift_reg_op): Likewise.
20669 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
20671 (cortex_a15_alu_shift): Likewise.
20672 (cortex_a15_alu_shift_reg): Likewise.
20673 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
20675 (cortex_a5_alu_shift): Likewise.
20676 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
20678 (cortex_a53_alu_shift): Likewise.
20679 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
20681 (cortex_a7_alu_reg): Likewise.
20682 (cortex_a7_alu_shift): Likewise.
20683 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
20685 (cortex_a8_alu_shift): Likewise.
20686 (cortex_a8_alu_shift_reg): Likewise.
20687 (cortex_a8_mov): Likewise.
20688 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
20689 (cortex_a9_dp_shift): Likewise.
20690 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
20692 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
20694 (cortex_r4_mov): Likewise.
20695 (cortex_r4_alu_shift): Likewise.
20696 (cortex_r4_alu_shift_reg): Likewise.
20697 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
20698 (526_alu_shift_op): Likewise.
20699 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
20700 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
20701 (626te_alu_shift_op): Likewise.
20702 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
20703 (726te_alu_op): Likewise.
20704 (726te_alu_shift_op): Likewise.
20705 (726te_alu_shift_reg_op): Likewise.
20706 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
20707 (mp626_alu_shift_op): Likewise.
20708 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
20709 (pj4_alu_e1_conds): Likewise.
20710 (pj4_alu): Likewise.
20711 (pj4_alu_conds): Likewise.
20712 (pj4_shift): Likewise.
20713 (pj4_shift_conds): Likewise.
20714 (pj4_alu_shift): Likewise.
20715 (pj4_alu_shift_conds): Likewise.
20716 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
20718 (cortexa7_older_only): Likewise.
20719 (cortexa7_younger): Likewise.
20721 2013-07-18 David Malcolm <dmalcolm@redhat.com>
20723 * ipa-pure-const.c (generate_summary): Rename to...
20724 (pure_const_generate_summary): ... this.
20726 2013-07-17 Iain Sandoe <iain@codesourcery.com>
20728 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
20730 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
20733 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
20736 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20738 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
20739 enabled without -march=zEC12.
20740 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
20743 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
20745 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
20746 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
20747 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
20748 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
20749 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
20750 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
20751 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
20753 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
20754 and ISA_HAS_NMADD3_NMSUB3.
20755 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
20756 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
20757 (nmsub4<mode>, nmsub3<mode>): Likewise.
20758 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
20760 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
20762 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
20763 TARGET_MIPS5400 checking.
20765 2013-07-16 Jakub Jelinek <jakub@redhat.com>
20766 Peter Bergner <bergner@vnet.ibm.com>
20768 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
20769 registers in the comment.
20770 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
20771 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
20772 rather than FIRST_PSEUDO_REGISTERS.
20774 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
20776 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
20777 enable extra ISA flags with TARGET_HTM.
20779 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
20781 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
20784 2013-07-15 Cong Hou <congh@google.com>
20786 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
20787 in compare function for sorting.
20789 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
20791 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
20792 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
20793 * config/rs6000/rs6000.opt: Add -mhtm option.
20794 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
20795 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
20796 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
20797 __HTM__ if the HTM instructions are available.
20798 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
20799 htm_spr_reg_operand): New define_predicates.
20800 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
20801 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
20803 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
20804 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
20805 HTM builtin functions.
20806 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
20807 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
20808 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
20809 (rs6000_builtin_mask_calculate): Likewise.
20810 (rs6000_option_override_internal): Likewise.
20811 (bdesc_htm): Add new HTM builtin support.
20812 (htm_spr_num): New function.
20813 (htm_spr_regno): Likewise.
20814 (rs6000_htm_spr_icode): Likewise.
20815 (htm_expand_builtin): Likewise.
20816 (htm_init_builtins): Likewise.
20817 (rs6000_expand_builtin): Add support for HTM builtin functions.
20818 (rs6000_init_builtins): Likewise.
20819 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
20821 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
20822 (TARGET_HTM, MASK_HTM): Define macros.
20823 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
20824 (FIXED_REGISTERS): Likewise.
20825 (CALL_USED_REGISTERS): Likewise.
20826 (CALL_REALLY_USED_REGISTERS): Likewise.
20827 (REG_ALLOC_ORDER): Likewise.
20828 (enum reg_class): Likewise.
20829 (REG_CLASS_NAMES): Likewise.
20830 (REG_CLASS_CONTENTS): Likewise.
20831 (REGISTER_NAMES): Likewise.
20832 (ADDITIONAL_REGISTER_NAMES): Likewise.
20833 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
20834 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
20835 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
20836 * config/rs6000/htm.md: New file.
20837 * config/rs6000/htmintrin.h: New file.
20838 * config/rs6000/htmxlintrin.h: New file.
20840 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
20842 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
20843 Define SYMBOL_TINY_GOT, update comment.
20844 * config/aarch64/aarch64.c
20845 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
20846 (aarch64_expand_mov_immediate): Likewise.
20847 (aarch64_print_operand): Likewise.
20848 (aarch64_classify_symbol): Likewise.
20849 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
20850 (ldr_got_tiny): Define.
20852 2013-07-13 Tobias Grosser <tobias@grosser.es>
20854 PR tree-optimization/54094
20855 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
20856 scheduling dimension for the parallelism check from the polyhedral
20857 information in the AST.
20858 * graphite-dependences.c (carries_deps): Do not assume the schedule is
20861 2013-07-13 Jason Merrill <jason@redhat.com>
20863 * print-tree.c (debug_vec_tree): Use debug_raw.
20864 (debug_raw (vec<tree, va_gc> &)): New.
20865 (debug_raw (vec<tree, va_gc> *)): New.
20866 * tree.h: Declare them.
20868 2013-07-13 Bin Cheng <bin.cheng@arm.com>
20870 * ifcvt.c (ifcvt_after_combine): New static variable.
20871 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
20873 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
20874 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
20875 rest_of_handle_if_after_reload): Pass new argument for if_convert.
20877 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
20879 * config/mips/mips.c (mips_expand_call): Remove empty statement.
20881 2013-07-12 Michael Matz <matz@suse.de>
20883 PR middle-end/55771
20884 * convert.c (convert_to_real): Reject non-float inner types.
20886 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
20888 * config/aarch64/aarch64-protos.h
20889 (aarch64_simd_immediate_valid_for_move): Remove.
20890 * config/aarch64/aarch64.c (simd_immediate_info): New member.
20891 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
20893 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
20895 2013-07-11 Steve Ellcey <sellcey@mips.com>
20897 * config/mips/mips.c (mips_conditional_register_usage): Do not
20898 use t[0-7] registers in MIPS16 mode when optimizing for size.
20900 2013-07-11 Sriraman Tallam <tmsriram@google.com>
20902 * config/i386/i386.c (dispatch_function_versions): Fix array
20903 indexing of function_version_info to match actual_versions.
20905 2013-07-11 Teresa Johnson <tejohnson@google.com>
20907 * vec.h (struct va_gc): Move release out-of-line.
20908 (va_gc::release): Call ggc_free on released vec.
20910 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20912 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
20913 Require GOT register as additional operand in UNSPEC.
20914 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
20915 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20916 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20917 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
20918 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
20919 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
20920 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
20922 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
20925 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
20926 name seen by assembler/linker rather if available.
20928 2013-07-11 Andreas Schwab <schwab@suse.de>
20930 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
20932 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
20934 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
20936 2013-07-10 Joseph Myers <joseph@codesourcery.com>
20938 * doc/tm.texi.in: Move hook documentation to ....
20939 * target.def: ... here.
20941 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
20942 text on @hook line.
20943 * doc/tm.texi: Regenerate.
20945 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
20948 * doc/invoke.texi: Document -Wconditionally-supported.
20950 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
20953 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
20956 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
20959 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
20960 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
20961 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
20962 Remove duplicate devices.
20963 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
20964 * config/avr/t-multilib: Regenerate.
20965 * config/avr/avr-tables.opt: Regenerate.
20966 * doc/avr-mmcu.texi: Regenerate.
20968 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
20971 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
20973 2013-07-10 Graham Stott <graham.stott@btinternet.com>
20975 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
20976 the cost of MULT when optimizing for size.
20978 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20980 * config/cr16/cr16-protos.h: Don't include target.h.
20982 2013-07-09 Joseph Myers <joseph@codesourcery.com>
20984 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
20985 adjust register size for TDmode and TFmode for VSX registers.
20987 2013-07-08 Kai Tietz <ktietz@redhat.com>
20990 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
20991 hook_bool_const_tree_true.
20993 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20995 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
20996 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
20997 * config/s390/s390.md: Define FPR*_REGNUM constants.
20998 Fix FPR2_REGNUM constant (18 -> 17).
20999 ("*trunc<BFP:mode><DFP_ALL:mode>2")
21000 ("*trunc<DFP_ALL:mode><BFP:mode>2")
21001 ("trunc<BFP:mode><DFP_ALL:mode>2")
21002 ("trunc<DFP_ALL:mode><BFP:mode>2")
21003 ("*extend<BFP:mode><DFP_ALL:mode>2")
21004 ("*extend<DFP_ALL:mode><BFP:mode>2")
21005 ("extend<BFP:mode><DFP_ALL:mode>2")
21006 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
21009 2013-07-08 Graham Stott <graham.stott@btinternet.com>
21011 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
21013 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21015 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
21016 and cfun_fpr_bit_p to cfun_fpr_save_p.
21017 (s390_frame_area, s390_register_info, s390_frame_info)
21018 (s390_emit_prologue, s390_emit_epilogue)
21019 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
21021 * config/s390/s390.h: Define *_REGNUM macros for floating point
21024 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
21026 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
21028 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
21030 PR rtl-optimization/57786
21031 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
21032 and break out of the loop when it is set to false.
21034 2013-07-08 Jakub Jelinek <jakub@redhat.com>
21037 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
21038 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
21039 (const_int 63)) 0)).
21040 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
21041 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
21042 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
21044 PR rtl-optimization/57829
21045 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
21046 mask bits outside of mode are just sign-extension from mode to HWI.
21048 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
21050 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
21051 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
21052 adjust_address instead of change_address to keep info about alignment.
21053 (emit_strmov): Remove.
21054 (emit_memmov): New function.
21055 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
21056 (expand_movmem_epilogue): Likewise and return updated rtx for
21058 (expand_constant_movmem_prologue): Likewise and return updated rtx for
21059 destination and source.
21060 (decide_alignment): Refactor, handle vector_loop.
21061 (ix86_expand_movmem): Likewise.
21062 (ix86_expand_setmem): Likewise.
21063 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
21065 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
21067 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
21068 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
21070 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
21072 * config/i386/sse.md (sse_movlhps): Change alternative 3
21073 of operand 2 to "m".
21075 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
21078 * config/i386/sse.md (iptr): New mode attribute.
21079 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
21080 (<sse>_vm<plusminus_insn><mode>3): Ditto.
21081 (<sse>_vmmul<mode>3): Ditto.
21082 (<sse>_vmdiv<mode>3): Ditto.
21083 (sse_vmrcpv4sf2): Ditto.
21084 (<sse>_vmsqrt<mode>2): Ditto.
21085 (sse_vmrsqrtv4sf2): Ditto.
21086 (<sse>_vm<code><mode>3): Ditto.
21087 (avx_vmcmp<mode>3): Ditto.
21088 (<sse>_vmmaskcmp<mode>3): Ditto.
21089 (<sse>_comi): Ditto.
21090 (<sse>_ucomi): Ditto.
21091 (*xop_vmfrcz_<mode>): Ditto.
21092 (*fmai_fmadd_<mode>): Ditto.
21093 (*fmai_fmsub_<mode>): Ditto.
21094 (*fmai_fnmadd_<mode>): Ditto.
21095 (*fmai_fnmsub_<mode>): Ditto.
21096 (*fma4i_vmfmadd_<mode>): Ditto.
21097 (*fma4i_vmfmsub_<mode>): Ditto.
21098 (*fma4i_vmfnmadd_<mode>): Ditto.
21099 (*fma4i_vmfnmsub_<mode>): Ditto.
21100 (*xop_vmfrcz_<mode>): Ditto.
21101 (sse_cvtps2pi): Ditto.
21102 (sse_cvttps2pi): Ditto.
21103 (sse_cvtss2si): Ditto.
21104 (sse_cvtss2si_2): Ditto.
21105 (sse_cvtss2siq_2): Ditto.
21106 (sse_cvttss2si): Ditto.
21107 (sse_cvttss2siq): Ditto.
21108 (sse_cvtsd2si): Ditto.
21109 (sse_cvtsd2si_2): Ditto.
21110 (sse_cvtsd2siq_2): Ditto.
21111 (sse_cvttsd2si): Ditto.
21112 (sse_cvttsd2siq): Ditto.
21113 (sse_cvtsd2ss): Ditto.
21114 (sse_cvtss2sd): Ditto.
21115 (avx2_pbroadcast<mode>): Ditto.
21116 (avx2_pbroadcast<mode>_1): Ditto.
21117 (*avx_vperm_broadcast_v4sf): Ditto.
21119 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
21120 (sse_movlhps): Ditto.
21121 (sse_storehps): Ditto.
21122 (sse_loadhps): Ditto.
21123 (sse_storelps): Ditto.
21124 (sse_loadlps): Ditto.
21125 (*vec_concatv4sf): Ditto.
21126 (*vec_interleave_highv2df): Ditto.
21127 (*vec_interleave_lowv2df): Ditto.
21128 (*vec_extractv2df_1_sse): Ditto.
21129 (*vec_extractv2df_0_sse): Ditto.
21130 (sse2_storelpd): Ditto.
21131 (sse2_loadlpd): Ditto.
21132 (sse2_movsd): Ditto.
21133 (*vec_concatv4si): Ditto.
21134 (vec_concatv2di): Ditto.
21136 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
21137 for Intel asm dialect.
21138 (mmx_punpcklwd): Ditto.
21139 (mmx_punpckldq): Ditto.
21141 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
21142 for intel assembler dialect.
21144 2013-07-06 Jakub Jelinek <jakub@redhat.com>
21147 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
21148 for BUILT_IN_C{LZ,LRSB}*.
21149 * tree.h (CASE_INT_FN): Add FN##IMAX case.
21150 * tree-vrp.c (extract_range_basic): Handle
21151 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
21152 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
21153 fall thru to code calling set_value*.
21154 * builtins.c (expand_builtin): Remove *IMAX cases.
21155 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
21156 if width is bigger than 2*HWI.
21158 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
21160 PR rtl-optimization/55342
21161 * lra-int.h (lra_subreg_reload_pseudos): New.
21162 * lra.c: Add undoing optional reloads to the block diagram.
21163 (lra_subreg_reload_pseudos): New.
21164 (lra_optional_reload_pseudos): Change comments.
21165 (lra): Init and clear lra_subreg_reload_pseudos. Clear
21166 lra_optional_reload_pseudos after undo transformations.
21167 * lra-assigns.c (pseudo_prefix_title): New.
21168 (lra_setup_reg_renumber): Use it.
21169 (spill_for): Ditto. Check subreg reload pseudos too.
21170 (assign_by_spills): Consider subreg reload pseudos too.
21171 * lra-constraints.c (simplify_operand_subreg): Use
21172 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
21173 (curr_insn_transform): Recognize and do optional reloads.
21174 (undo_optional_reloads): New.
21175 (lra_undo_inheritance): Call undo_optional_reloads.
21177 2013-07-05 Thomas Quinot <quinot@adacore.com>
21179 * tree-complex.c (expand_complex_operations_1): Fix typo.
21181 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
21183 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
21184 (tune_params): New member 'const vec_costs'.
21185 * config/aarch64/aarch64.c (generic_vector_cost): New.
21186 (generic_tunings): New member 'generic_vector_cost'.
21187 (aarch64_builtin_vectorization_cost): New.
21188 (aarch64_add_stmt_cost): New.
21189 (TARGET_VECTORIZE_ADD_STMT_COST): New.
21190 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
21192 2013-07-03 Jakub Jelinek <jakub@redhat.com>
21195 * config/i386/predicates.md (vsib_address_operand): Disallow
21196 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
21198 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
21200 PR middle-end/55030
21201 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
21202 expand_builtin_setjmp_receiver.
21203 (expand_label): Adjust, call expand_builtin_setjmp_receiver
21204 with NULL for the label parameter.
21205 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
21206 the frame-pointer. Adjust comments.
21207 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
21208 only if LABEL is non-NULL.
21210 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
21212 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
21213 (ARM_ABI_AAPCS64): Ditto.
21215 (ARM_DEFAULT_ABI): Ditto.
21217 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
21219 * config/aarch64/aarch64-builtins.c
21220 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
21221 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
21223 * config/aarch64/aarch64-simd.md
21224 (aarch64_ld1<VALL:mode>): New.
21225 (aarch64_st1<VALL:mode>): Likewise.
21226 * config/aarch64/arm_neon.h
21227 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
21229 2013-07-02 Sriraman Tallam <tmsriram@google.com>
21231 * config/i386/i386.c (gate_insert_vzeroupper): Check if
21233 (ix86_option_override_internal):Turn on all -mavx target flags by
21234 default as they are dependent on AVX anyway.
21236 2013-07-02 Cary Coutant <ccoutant@google.com>
21238 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
21239 deterministic hash.
21240 (loc_checksum_ordered): Likewise.
21241 (hash_loc_operands): Remove inline keyword.
21243 2013-07-02 Jakub Jelinek <jakub@redhat.com>
21245 PR tree-optimization/57741
21246 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
21247 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
21248 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
21249 Allow REAL_CST step_exprs if flag_associative_math.
21250 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
21252 2013-07-02 Ian Bolton <ian.bolton@arm.com>
21254 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
21256 2013-07-02 Ian Bolton <ian.bolton@arm.com>
21258 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
21260 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21262 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
21264 (iorsi3_insn): Likewise.
21265 (arm_xorsi3): Likewise.
21267 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
21269 * arm.md (attribute "wtype"): Delete. Move attribute values from here
21271 (attribute "type"): ... here, and prefix with "wmmx_".
21272 (attribute "core_cycles"): Update for attribute changes.
21273 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
21274 (tbcstv4hi): Likewise.
21275 (tbcstv2si): Likewise.
21276 (iwmmxt_iordi3): Likewise.
21277 (iwmmxt_xordi3): Likewise.
21278 (iwmmxt_anddi3): Likewise.
21279 (iwmmxt_nanddi3): Likewise.
21280 (iwmmxt_arm_movdi): Likewise.
21281 (iwmmxt_movsi_insn): Likewise.
21282 (mov<mode>_internal): Likewise.
21283 (and<mode>3_iwmmxt): Likewise.
21284 (ior<mode>3_iwmmxt): Likewise.
21285 (xor<mode>3_iwmmxt): Likewise.
21286 (add<mode>3_iwmmxt): Likewise.
21287 (ssaddv8qi3): Likewise.
21288 (ssaddv4hi3): Likewise.
21289 (ssaddv2si3): Likewise.
21290 (usaddv8qi3): Likewise.
21291 (usaddv4hi3): Likewise.
21292 (usaddv2si3): Likewise.
21293 (sub<mode>3_iwmmxt): Likewise.
21294 (sssubv8qi3): Likewise.
21295 (sssubv4hi3): Likewise.
21296 (sssubv2si3): Likewise.
21297 (ussubv8qi3): Likewise.
21298 (ussubv4hi3): Likewise.
21299 (ussubv2si3): Likewise.
21300 (mulv4hi3_iwmmxt): Likewise.
21301 (smulv4hi3_highpart): Likewise.
21302 (umulv4hi3_highpart): Likewise.
21303 (iwmmxt_wmacs): Likewise.
21304 (iwmmxt_wmacsz): Likewise.
21305 (iwmmxt_wmacu): Likewise.
21306 (iwmmxt_wmacuz): Likewise.
21307 (iwmmxt_clrdi): Likewise.
21308 (iwmmxt_clrv8qi): Likewise.
21309 (iwmmxt_clr4hi): Likewise.
21310 (iwmmxt_clr2si): Likewise.
21311 (iwmmxt_uavgrndv8qi3): Likewise.
21312 (iwmmxt_uavgrndv4hi3): Likewise.
21313 (iwmmxt_uavgv8qi3): Likewise.
21314 (iwmmxt_uavgv4hi3): Likewise.
21315 (iwmmxt_tinsrb): Likewise.
21316 (iwmmxt_tinsrh): Likewise.
21317 (iwmmxt_tinsrw): Likewise.
21318 (iwmmxt_textrmub): Likewise.
21319 (iwmmxt_textrmsb): Likewise.
21320 (iwmmxt_textrmuh): Likewise.
21321 (iwmmxt_textrmsh): Likewise.
21322 (iwmmxt_textrmw): Likewise.
21323 (iwmxxt_wshufh): Likewise.
21324 (eqv8qi3): Likewise.
21325 (eqv4hi3): Likewise.
21326 (eqv2si3): Likewise.
21327 (gtuv8qi3): Likewise.
21328 (gtuv4hi3): Likewise.
21329 (gtuv2si3): Likewise.
21330 (gtv8qi3): Likewise.
21331 (gtv4hi3): Likewise.
21332 (gtv2si3): Likewise.
21333 (smax<mode>3_iwmmxt): Likewise.
21334 (umax<mode>3_iwmmxt): Likewise.
21335 (smin<mode>3_iwmmxt): Likewise.
21336 (umin<mode>3_iwmmxt): Likewise.
21337 (iwmmxt_wpackhss): Likewise.
21338 (iwmmxt_wpackwss): Likewise.
21339 (iwmmxt_wpackdss): Likewise.
21340 (iwmmxt_wpackhus): Likewise.
21341 (iwmmxt_wpackwus): Likewise.
21342 (iwmmxt_wpackdus): Likewise.
21343 (iwmmxt_wunpckihb): Likewise.
21344 (iwmmxt_wunpckihh): Likewise.
21345 (iwmmxt_wunpckihw): Likewise.
21346 (iwmmxt_wunpckilb): Likewise.
21347 (iwmmxt_wunpckilh): Likewise.
21348 (iwmmxt_wunpckilw): Likewise.
21349 (iwmmxt_wunpckehub): Likewise.
21350 (iwmmxt_wunpckehuh): Likewise.
21351 (iwmmxt_wunpckehuw): Likewise.
21352 (iwmmxt_wunpckehsb): Likewise.
21353 (iwmmxt_wunpckehsh): Likewise.
21354 (iwmmxt_wunpckehsw): Likewise.
21355 (iwmmxt_wunpckelub): Likewise.
21356 (iwmmxt_wunpckeluh): Likewise.
21357 (iwmmxt_wunpckeluw): Likewise.
21358 (iwmmxt_wunpckelsb): Likewise.
21359 (iwmmxt_wunpckelsh): Likewise.
21360 (iwmmxt_wunpckelsw): Likewise.
21361 (ror<mode>3): Likewise.
21362 (ashr<mode>3_iwmmxt): Likewise.
21363 (lshr<mode>3_iwmmxt): Likewise.
21364 (ashl<mode>3_iwmmxt): Likewise.
21365 (ror<mode>3_di): Likewise.
21366 (ashr<mode>3_di): Likewise.
21367 (lshr<mode>3_di): Likewise.
21368 (ashl<mode>3_di): Likewise.
21369 (iwmmxt_wmadds): Likewise.
21370 (iwmmxt_wmaddu): Likewise.
21371 (iwmmxt_tmia): Likewise.
21372 (iwmmxt_tmiaph): Likewise.
21373 (iwmmxt_tmiabb): Likewise.
21374 (iwmmxt_tmiatb): Likewise.
21375 (iwmmxt_tmiabt): Likewise.
21376 (iwmmxt_tmiatt): Likewise.
21377 (iwmmxt_tmovmskb): Likewise.
21378 (iwmmxt_tmovmskh): Likewise.
21379 (iwmmxt_tmovmskw): Likewise.
21380 (iwmmxt_waccb): Likewise.
21381 (iwmmxt_wacch): Likewise.
21382 (iwmmxt_waccw): Likewise.
21383 (iwmmxt_waligni): Likewise.
21384 (iwmmxt_walignr): Likewise.
21385 (iwmmxt_walignr0): Likewise.
21386 (iwmmxt_walignr1): Likewise.
21387 (iwmmxt_walignr2): Likewise.
21388 (iwmmxt_walignr3): Likewise.
21389 (iwmmxt_wsadb): Likewise.
21390 (iwmmxt_wsadh): Likewise.
21391 (iwmmxt_wsadbz): Likewise.
21392 (iwmmxt_wsadhz): Likewise.
21393 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
21394 (iwmmxt_wabsdiffb): Likewise.
21395 (iwmmxt_wabsdiffh): Likewise.
21396 (iwmmxt_wabsdiffw): Likewise.
21397 (iwmmxt_waddsubhx): Likewise
21398 (iwmmxt_wsubaddhx): Likewise.
21399 (addc<mode>3): Likewise.
21400 (iwmmxt_avg4): Likewise.
21401 (iwmmxt_avg4r): Likewise.
21402 (iwmmxt_wmaddsx): Likewise.
21403 (iwmmxt_wmaddux): Likewise.
21404 (iwmmxt_wmaddsn): Likewise.
21405 (iwmmxt_wmaddun): Likewise.
21406 (iwmmxt_wmulwsm): Likewise.
21407 (iwmmxt_wmulwum): Likewise.
21408 (iwmmxt_wmulsmr): Likewise.
21409 (iwmmxt_wmulumr): Likewise.
21410 (iwmmxt_wmulwsmr): Likewise.
21411 (iwmmxt_wmulwumr): Likewise.
21412 (iwmmxt_wmulwl): Likewise.
21413 (iwmmxt_wqmulm): Likewise.
21414 (iwmmxt_wqmulwm): Likewise.
21415 (iwmmxt_wqmulmr): Likewise.
21416 (iwmmxt_wqmulwmr): Likewise.
21417 (iwmmxt_waddbhusm): Likewise.
21418 (iwmmxt_waddbhusl): Likewise.
21419 (iwmmxt_wqmiabb): Likewise.
21420 (iwmmxt_wqmiabt): Likewise.
21421 (iwmmxt_wqmiatb): Likewise.
21422 (iwmmxt_wqmiatt): Likewise.
21423 (iwmmxt_wqmiabbn): Likewise.
21424 (iwmmxt_wqmiabtn): Likewise.
21425 (iwmmxt_wqmiatbn): Likewise.
21426 (iwmmxt_wqmiattn): Likewise.
21427 (iwmmxt_wmiabb): Likewise.
21428 (iwmmxt_wmiabt): Likewise.
21429 (iwmmxt_wmiatb): Likewise.
21430 (iwmmxt_wmiatt): Likewise.
21431 (iwmmxt_wmiabbn): Likewise.
21432 (iwmmxt_wmiabtn): Likewise.
21433 (iwmmxt_wmiatbn): Likewise.
21434 (iwmmxt_wmiattn): Likewise.
21435 (iwmmxt_wmiawbb): Likewise.
21436 (iwmmxt_wmiawbt): Likewise.
21437 (iwmmxt_wmiawtb): Likewise.
21438 (iwmmxt_wmiawtt): Likewise.
21439 (iwmmxt_wmiawbbn): Likewise.
21440 (iwmmxt_wmiawbtn): Likewise.
21441 (iwmmxt_wmiawtbn): Likewise.
21442 (iwmmxt_wmiawttn): Likewise.
21443 (iwmmxt_wmerge): Likewise.
21444 (iwmmxt_tandc<mode>3): Likewise.
21445 (iwmmxt_torc<mode>3): Likewise.
21446 (iwmmxt_torvsc<mode>3): Likewise.
21447 (iwmmxt_textrc<mode>3): Likewise.
21448 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
21449 (wmmxt_pack): Likewise.
21450 (wmmxt_mult_c1): Likewise.
21451 (wmmxt_mult_c2): Likewise.
21452 (wmmxt_alu_c1): Likewise.
21453 (wmmxt_alu_c2): Likewise.
21454 (wmmxt_alu_c3): Likewise.
21455 (wmmxt_transfer_c1): Likewise.
21456 (wmmxt_transfer_c2): Likewise.
21457 (wmmxt_transfer_c3): Likewise.
21458 (marvell_f_iwmmxt_wstr): Likewise.
21459 (marvell_f_iwmmxt_wldr): Likewise.
21461 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
21463 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
21465 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
21468 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
21469 * lra-constraints.c (need_for_split_p): Check call used hard regs
21470 living through calls.
21472 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
21473 call used regs for call insn.
21475 2013-06-28 Jakub Jelinek <jakub@redhat.com>
21478 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
21479 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
21481 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
21483 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
21485 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
21487 * lra-constraints.c (need_for_split_p): Check call used hard regs
21488 living through calls.
21490 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
21493 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
21494 to tie with any other modes. Eliminate Altivec vector mode tests,
21495 since these are a subset of ALTIVEC or VSX vector modes. Simplify
21496 code, to return 0 if testing MODE2 for a condition, if we've
21497 already tested MODE1 for the same condition.
21499 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
21501 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
21504 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
21506 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
21507 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
21509 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
21511 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
21513 (aarch64_symbolic_constant_p): Remove.
21514 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
21515 static. Fix line length and white space.
21516 (aarch64_symbolic_constant_p): Remove.
21517 * config/aarch64/predicates.md (aarch64_valid_symref):
21518 Use aarch64_classify_symbol_expression.
21520 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21522 * config/arm/constraints.md (Ts): New constraint.
21523 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
21525 (compare_scc): Use "Ts" constraint for operand 0.
21526 (ior_scc_scc): Likewise.
21527 (and_scc_scc): Likewise.
21528 (and_scc_scc_nodom): Likewise.
21529 (ior_scc_scc_cmp): Likewise for operand 7.
21530 (and_scc_scc_cmp): Likewise.
21531 * config/arm/thumb2.md (thumb2_movsi_insn):
21532 Add alternatives for 16-bit encodings.
21533 (thumb2_movhi_insn): Likewise.
21534 (thumb2_movsicc_insn): Likewise.
21535 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
21536 (thumb2_negscc): Use "Ts" constraint.
21537 Move mvn instruction outside cond_exec block.
21538 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
21539 for 16-bit encodings.
21541 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21543 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
21545 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
21546 (mulsi3subsi): Likewise.
21547 (mulsidi3adddi): Likewise.
21548 (mulsidi3_v6): Likewise.
21549 (umulsidi3_v6): Likewise.
21550 (umulsidi3adddi_v6): Likewise.
21551 (smulsi3_highpart_v6): Likewise.
21552 (umulsi3_highpart_v6): Likewise.
21553 (mulhisi3tb): Likewise.
21554 (mulhisi3bt): Likewise.
21555 (mulhisi3tt): Likewise.
21556 (maddhisi4): Likewise.
21557 (maddhisi4tb): Likewise.
21558 (maddhisi4tt): Likewise.
21559 (maddhidi4): Likewise.
21560 (maddhidi4tb): Likewise.
21561 (maddhidi4tt): Likewise.
21562 (zeroextractsi_compare0_scratch): Likewise.
21563 (insv_zero): Likewise.
21564 (insv_t2): Likewise.
21565 (anddi_notzesidi_di): Likewise.
21566 (anddi_notsesidi_di): Likewise.
21567 (andsi_notsi_si): Likewise.
21568 (iordi_zesidi_di): Likewise.
21569 (xordi_zesidi_di): Likewise.
21570 (andsi_iorsi3_notsi): Likewise.
21571 (smax_0): Likewise.
21572 (smax_m1): Likewise.
21573 (smin_0): Likewise.
21574 (not_shiftsi): Likewise.
21575 (unaligned_loadsi): Likewise.
21576 (unaligned_loadhis): Likewise.
21577 (unaligned_loadhiu): Likewise.
21578 (unaligned_storesi): Likewise.
21579 (unaligned_storehi): Likewise.
21580 (extv_reg): Likewise.
21581 (extzv_t2): Likewise.
21582 (divsi3): Likewise.
21583 (udivsi3): Likewise.
21584 (arm_zero_extendhisi2addsi): Likewise.
21585 (arm_zero_extendqisi2addsi): Likewise.
21586 (compareqi_eq0): Likewise.
21587 (arm_extendhisi2_v6): Likewise.
21588 (arm_extendqisi2addsi): Likewise.
21589 (arm_movt): Likewise.
21590 (thumb2_ldrd): Likewise.
21591 (thumb2_ldrd_base): Likewise.
21592 (thumb2_ldrd_base_neg): Likewise.
21593 (thumb2_strd): Likewise.
21594 (thumb2_strd_base): Likewise.
21595 (thumb2_strd_base_neg): Likewise.
21596 (arm_negsi2): Add alternative for 16-bit encoding.
21597 (arm_one_cmplsi2): Likewise.
21599 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21601 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
21602 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
21603 (movdfcc): Likewise.
21604 * config/arm/vfp.md (*thumb2_movsf_vfp):
21605 Disable predication for arm_restrict_it.
21606 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
21607 (*thumb2_movdfcc_vfp): Likewise.
21608 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
21609 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
21610 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
21611 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
21612 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
21613 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
21614 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
21615 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
21616 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
21617 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
21618 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
21619 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
21620 Disable predication for arm_restrict_it.
21622 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
21624 * config/i386/bmiintrin.h (_bextr_u32): New.
21625 (_bextr_u64): Ditto.
21627 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
21629 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
21630 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
21631 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
21632 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
21633 * config/mips/n32-elf.h: ...this new file.
21635 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
21638 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
21639 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
21641 2013-06-27 Catherine Moore <clm@codesourcery.com>
21643 * config/mips/mips-tables.opt: Regenerate.
21644 * config/mips/mips-cpus.def: Add m14ke and m14kec.
21645 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
21646 * doc/invoke.texi: Add -m14kc.
21648 2013-06-27 Jakub Jelinek <jakub@redhat.com>
21651 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
21652 constraints of operand 1 and 2.
21655 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
21656 to match RTL canonicalization. Swap predicates and
21657 constraints of operand 1 and 2.
21659 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
21661 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
21662 Process OP_INOUT regs for splitting too.
21664 2013-06-27 Jakub Jelinek <jakub@redhat.com>
21666 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
21667 decl before the loop, initialize to NULL.
21668 (vectorizable_load): Initialize ptr_incr to NULL.
21670 2013-06-27 Martin Jambor <mjambor@suse.cz>
21673 * ipa-ref.h (ipa_maybe_record_reference): Declare.
21674 * ipa-ref.c (ipa_maybe_record_reference): New function.
21675 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
21676 * ipa-cp.c (create_specialized_node): Record potential references from
21678 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
21680 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
21682 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
21683 parameter 'mode' of type 'enum machine_mode mode'; change to pass
21684 'mode' to force_reg.
21685 (aarch64_add_offset): Update calls to aarch64_force_temporary.
21686 (aarch64_expand_mov_immediate): Likewise.
21688 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
21690 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
21691 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
21693 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21695 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
21696 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
21697 (struct machine_function): Add tbegin_p.
21698 (s390_canonicalize_comparison): Fold CC mode compares to
21699 conditional jump if possible.
21700 (s390_emit_jump): Return the emitted jump.
21701 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
21702 Handle CCRAWmode compares.
21703 (s390_option_override): Default to -mhtm if available.
21704 (s390_reg_clobbered_rtx): Handle floating point regs as well.
21705 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
21706 FPRs instead of df_regs_ever_live_p.
21707 (s390_optimize_nonescaping_tx): New function.
21708 (s390_init_frame_layout): Extend clobbered_regs array to cover
21710 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
21711 (s390_expand_tbegin): New function.
21712 (enum s390_builtin): New enum definition.
21713 (code_for_builtin): New array definition.
21714 (s390_init_builtins): New function.
21715 (s390_expand_builtin): New function.
21716 (TARGET_INIT_BUILTINS): Define.
21717 (TARGET_EXPAND_BUILTIN): Define.
21718 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
21719 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
21720 (s390_alc_comparison): Likewise.
21721 * config/s390/s390-modes.def: Add CCRAWmode.
21722 * config/s390/s390.h (processor_flags): Add PF_TX.
21723 (TARGET_CPU_HTM): Define macro.
21724 (TARGET_HTM): Define macro.
21725 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
21726 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
21727 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
21728 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
21729 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
21730 (TBEGIN_MASK, TBEGINC_MASK): New constants.
21731 ("*cc_to_int"): Move up.
21732 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
21733 constants other than 0.
21734 ("*ccraw_to_int"): New insn and splitter definition.
21735 ("tbegin", "tbegin_nofloat", "tbegin_retry")
21736 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
21737 ("tx_assist"): New expander.
21738 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
21739 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
21740 * config/s390/s390.opt: Add -mhtm option.
21741 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
21742 * config/s390/htmxlintrin.h: New file.
21743 * config/s390/htmintrin.h: New file.
21744 * config/s390/s390intrin.h: New file.
21745 * doc/extend.texi: Document htm builtins.
21746 * config.gcc: Add the new header files to extra_headers.
21748 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
21750 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
21751 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
21753 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21754 Pat Haugen <pthaugen@us.ibm.com>
21755 Peter Bergner <bergner@vnet.ibm.com>
21757 * config/rs6000/power8.md: New.
21758 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
21759 setting for power8 entry.
21760 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
21761 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
21762 test for Power4/Power5 only.
21763 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
21765 (force_new_group): Adjust comment.
21766 * config/rs6000/rs6000.md: Include power8.md.
21768 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
21770 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
21771 * config/arm/arm-protos.h (arm_max_conditional_execute): New
21773 (tune_params): Update comment.
21774 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
21775 (arm_max_conditional_execute): New function.
21776 (thumb2_final_prescan_insn): Use max_insn_skipped and
21777 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
21779 2013-06-25 Jakub Jelinek <jakub@redhat.com>
21781 PR tree-optimization/57705
21782 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
21783 SSA_NAME step, provided that it is not defined inside the loop.
21784 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
21785 (get_initial_def_for_induction): Handle SSA_NAME IV step.
21787 2013-06-25 Martin Jambor <mjambor@suse.cz>
21789 PR middle-end/57670
21790 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
21791 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
21793 (ipa_note_param_call): Initialize member_ptr flag.
21794 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
21795 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
21796 (ipa_write_indirect_edge_info): Stream member_ptr flag.
21797 (ipa_read_indirect_edge_info): Likewise.
21799 2013-06-25 Richard Biener <rguenther@suse.de>
21801 PR middle-end/56977
21802 * passes.c (init_optimization_passes): Move pass_fold_builtins
21803 and pass_dce earlier with -Og.
21805 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
21807 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
21808 <BIT_FIELD_REF>: Remove trailing TAB.
21809 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
21812 2013-06-24 Martin Jambor <mjambor@suse.cz>
21814 PR tree-optimization/57358
21815 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
21816 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
21817 (ipa_analyze_params_uses): Generate pessimistic info when true.
21819 2013-06-24 Martin Jambor <mjambor@suse.cz>
21821 PR tree-optimization/57539
21822 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
21823 global.inlined_to of the new node to it. All callers changed.
21824 * ipa-inline-transform.c (clone_inlined_nodes): New variable
21825 inlining_into, pass it to cgraph_clone_node.
21826 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
21827 ipa_free_edge_args_substructures.
21828 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
21829 rdesc linked list. Do not assert rdesc edges have inlined caller.
21830 Assert we have found an rdesc in the rdesc list.
21832 2013-06-24 Richard Biener <rguenther@suse.de>
21834 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
21835 (pointer_set_lookup): Declare.
21836 (class pointer_map): New template class implementing a
21837 generic pointer to T map.
21838 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
21839 pointer_map<T>::contains, pointer_map<T>::insert,
21840 pointer_map<T>::traverse): New functions.
21841 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
21842 (pointer_set_lookup): New function.
21843 (pointer_set_contains): Use pointer_set_lookup.
21844 (pointer_set_insert): Likewise.
21845 (insert_aux): Remove.
21846 (struct pointer_map_t): Embed a pointer_set_t.
21847 (pointer_map_create): Adjust.
21848 (pointer_map_destroy): Likewise.
21849 (pointer_map_contains): Likewise.
21850 (pointer_map_insert): Likewise.
21851 (pointer_map_traverse): Likewise.
21852 * tree-streamer.h (struct streamer_tree_cache_d): Use a
21853 pointer_map<unsigned> instead of a pointer_map_t.
21854 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
21855 (streamer_tree_cache_lookup): Likewise.
21856 (streamer_tree_cache_create): Likewise.
21857 (streamer_tree_cache_delete): Likewise.
21858 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
21859 pointer_map<unsigned> instead of a pointer_map_t.
21860 (lto_init_tree_ref_encoder): Adjust.
21861 (lto_destroy_tree_ref_encoder): Likewise.
21862 * lto-section-out.c (lto_output_decl_index): Likewise.
21863 (lto_record_function_out_decl_state): Likewise.
21864 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
21866 2013-06-24 Richard Biener <rguenther@suse.de>
21868 PR tree-optimization/57488
21869 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
21871 2013-06-24 Alan Modra <amodra@gmail.com>
21873 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
21874 (gen_easy_altivec_constant): Likewise.
21875 * config/rs6000/predicates.md (easy_vector_constant_add_self,
21876 easy_vector_constant_msb): Likewise.
21878 2013-06-23 Jakub Jelinek <jakub@redhat.com>
21881 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
21882 add missing return true.
21884 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
21887 * config/sh/predicates.md (general_extend_operand): Invoke
21888 general_movsrc_operand for memory operands.
21889 (general_movsrc_operand): Allow reg+reg addressing, do not use
21890 general_operand for memory operands.
21892 2013-06-23 Sriraman Tallam <tmsriram@google.com>
21894 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
21895 when current target options does not apply.
21896 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
21897 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
21898 * config/i386/bmiintrin.h: Pass appropriate target
21899 attributes to header.
21900 * config/i386/mmintrin.h: Ditto.
21901 * config/i386/nmmintrin.h: Ditto.
21902 * config/i386/avx2intrin.h: Ditto.
21903 * config/i386/fxsrintrin.h: Ditto.
21904 * config/i386/tbmintrin.h: Ditto.
21905 * config/i386/xsaveintrin.h: Ditto.
21906 * config/i386/f16cintrin.h: Ditto.
21907 * config/i386/xtestintrin.h: Ditto.
21908 * config/i386/xsaveoptintrin.h: Ditto.
21909 * config/i386/bmi2intrin.h: Ditto.
21910 * config/i386/lzcntintrin.h: Ditto.
21911 * config/i386/smmintrin.h: Ditto.
21912 * config/i386/wmmintrin.h: Ditto.
21913 * config/i386/x86intrin.h: Remove all header include guards.
21914 * config/i386/prfchwintrin.h: Ditto.
21915 * config/i386/pmmintrin.h: Ditto.
21916 * config/i386/tmmintrin.h: Ditto.
21917 * config/i386/xmmintrin.h: Ditto.
21918 * config/i386/popcntintrin.h: Ditto.
21919 * config/i386/rdseedintrin.h: Ditto.
21920 * config/i386/ammintrin.h: Ditto.
21921 * config/i386/emmintrin.h: Ditto.
21922 * config/i386/immintrin.h: Remove all header include guards.
21923 * config/i386/fma4intrin.h: Ditto.
21924 * config/i386/lwpintrin.h: Ditto.
21925 * config/i386/xopintrin.h: Ditto.
21926 * config/i386/ia32intrin.h: Ditto.
21927 * config/i386/avxintrin.h: Ditto.
21928 * config/i386/rtmintrin.h: Ditto.
21929 * config/i386/fmaintrin.h: Ditto.
21930 * config/i386/mm3dnow.h: Ditto.
21932 2013-06-22 Sriraman Tallam <tmsriram@google.com>
21934 * common/config/i386/i386-common.c: Handle LZCNT.
21936 2013-06-22 Andi Kleen <ak@linux.intel.com>
21938 * doc/extend.texi: Use __atomic_store_n instead of
21939 __atomic_store in HLE example.
21941 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
21943 * config/sh/sh.c: Remove <cstdlib> workaround.
21945 2013-06-21 Andi Kleen <ak@linux.intel.com>
21947 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
21949 2013-06-21 Andi Kleen <ak@linux.intel.com>
21951 * doc/extend.texi: Document that __atomic_clear and
21952 __atomic_test_and_set should only be used with bool.
21954 2013-06-20 Jan Hubicka <jh@suse.cz>
21956 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
21957 types_same_for_odr.
21958 * tree.c (decls_same_for_odr): New function.
21959 (same_for_edr): New function.
21960 (types_same_for_odr): New function.
21961 (get_binfo_at_offset): Use it.
21962 * tree.h (types_same_for_odr): Declare.
21964 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
21965 Jason Merrill <jason@redhat.com>
21967 * system.h: Include <cstdlib> as well as <stdlib.h>.
21969 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
21972 * config/i386/i386.c (construct_container): Report error if
21973 long double is used with disabled x87 float returns.
21975 2013-06-20 Jan Hubicka <jh@suse.cz>
21977 * lto-cgraph.c (input_symtab): Do not set cgraph state.
21979 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
21981 PR rtl-optimization/57425
21982 PR rtl-optimization/57569
21983 * alias.c (write_dependence_p): Remove parameters mem_mode and
21984 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
21985 Changed all callers.
21986 (canon_anti_dependence): Get comments and semantics in sync.
21987 Add parameter mem_canonicalized. Changed all callers.
21988 * rtl.h (canon_anti_dependence): Update prototype.
21990 2013-06-20 Richard Biener <rguenther@suse.de>
21992 * data-streamer-in.c (streamer_read_uhwi): Optimize single
21993 byte case, inline streamer_read_uchar and defer section
21996 2013-06-20 Richard Biener <rguenther@suse.de>
21998 PR tree-optimization/57584
21999 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
22000 SSA names into the expanded expression that take part in
22001 abnormal coalescing.
22003 2013-06-19 Sharad Singhai <singhai@google.com>
22005 * gcov.c (print_usage): Handle new option.
22006 (process_args): Ditto.
22007 (get_gcov_intermediate_filename): New function.
22008 (output_intermediate_file): New function.
22009 (output_gcov_file): New function
22010 (generate_results): Handle new option.
22011 (release_function): Relase demangled name.
22012 (read_graph_file): Handle demangled name.
22013 (output_lines): Ditto.
22014 * doc/gcov.texi: Document gcov intermediate format.
22016 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
22019 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
22020 (lra_emit_add): Use the functions. Add comment about Y as an
22023 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
22026 * collect2.c (collect_atexit): New.
22027 (collect_exit): Delete.
22028 (main): Register collect_atexit with atexit.
22029 (collect_wait): Change collect_exit to exit.
22031 * collect2.h (collect_exit): Delete.
22032 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
22034 2013-06-19 Wei Mi <wmi@google.com>
22036 PR rtl-optimization/57518
22037 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
22038 if regno is used in paradoxical subreg.
22039 (update_equiv_regs): Check pdx_subregs[regno] before
22040 set a reg to be equivalent with a mem.
22042 2013-06-19 Matthias Klose <doko@ubuntu.com>
22045 * file-find.h (find_a_file): Add a mode parameter.
22046 * file-find.c (find_a_file): Likewise.
22047 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
22048 with X_OK for the executables.
22049 * collect2.c (main): Call find_a_file with X_OK.
22051 2013-06-19 Steve Ellcey <sellcey@mips.com>
22054 * config/mips/mips.md (casesi_internal_mips16_<mode>):
22055 Use NEXT_INSN instead of next_real_insn.
22057 2013-06-19 Jan Hubicka <jh@suse.cz>
22059 * cgraph.h (const_value_known_p): Replace by ...
22060 (ctor_for_folding): .. this one.
22061 * cgraphunit.c (process_function_and_variable_attributes): Use it.
22062 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
22063 * expr.c (expand_expr_real_1): Likewise.
22064 (string_constant): Likewise.
22065 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
22066 * ipa.c (process_references): Likewise.
22067 (symtab_remove_unreachable_nodes): Likewise.
22068 * ipa-inline-analysis.c (param_change_prob): Likewise.
22069 * gimple-fold.c (canonicalize_constructor_val): Likewise.
22070 (get_base_constructor): Likwise.
22071 * varpool.c (varpool_remove_node): Likewise.
22072 (varpool_remove_initializer): LIkewise.
22073 (dump_varpool_node): LIkwise.
22074 (const_value_known_p): Rewrite to ...
22075 (ctor_for_folding): ... this one.
22077 2013-06-19 Jakub Jelinek <jakub@redhat.com>
22080 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
22081 PERSONALITY in $PATH derived prefixes.
22083 2013-06-19 Jeff Law <law@redhat.com>
22085 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
22088 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
22089 (simplify_bitwise_binary): Use it to simpify certain binary ops on
22092 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
22094 * config/arm/vfp.md: Move VFP instruction classification documentation
22096 * config/arm/arm.md: ... here. Update instruction classification
22099 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
22101 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
22102 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
22103 pattern. Use more efficient sequences on ARMv5 and Thumb2.
22105 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
22108 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22109 with NEXT_INSN. Use tablejump_p to check for jump table data
22112 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
22115 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
22116 that now in C++ the value is correct per the C++ standards.
22118 2013-06-19 Richard Biener <rguenther@suse.de>
22120 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
22121 for global context.
22123 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22126 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22129 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22130 with next_active_insn.
22132 2013-06-18 Sriraman Tallam <tmsriram@google.com>
22134 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
22135 functions are inlined during failures to flag an error.
22136 * tree-inline.c (expand_call_inline): Allow the error to be flagged
22137 in early inline pass.
22139 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
22141 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
22144 2013-06-18 Julian Brown <julian@codesourcery.com>
22146 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
22147 Permit virtual register pre-reload if !strict.
22148 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
22150 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
22152 * config/arm/neon.md (movmisalign<mode>): Use
22153 neon_perm_struct_or_reg_operand instead of
22154 neon_struct_or_register_operand.
22155 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
22156 neon_permissive_struct_operand instead of neon_struct_operand.
22157 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
22158 neon_vector_mem_operand.
22159 * config/arm/predicates.md (neon_struct_operand): Adjust call to
22160 neon_vector_mem_operand.
22161 (neon_permissive_struct_operand): New.
22162 (neon_struct_or_register_operand): Rename to...
22163 (neon_perm_struct_or_reg_operand): This. Adjust call to
22164 neon_vector_mem_operand.
22166 2013-06-18 Richard Biener <rguenther@suse.de>
22168 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
22169 * lto-streamer.h: Include pointer-set.h.
22170 (struct lto_decl_slot): Remove.
22171 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
22172 Remove next_index entry.
22173 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
22174 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
22175 (lto_init_tree_ref_encoder): Adjust.
22176 (lto_destroy_tree_ref_encoder): Likewise.
22177 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
22178 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
22179 (lto_output_decl_index): Adjust.
22180 (lto_new_out_decl_state): Likewise.
22181 (lto_record_function_out_decl_state): Likewise.
22182 * lto-streamer-out.c (copy_function): Likewise.
22184 2013-06-18 Richard Biener <rguenther@suse.de>
22186 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
22187 * cgraphunit.c: Include cfgloop.h.
22188 (init_lowered_empty_function): Initialize the loop tree.
22189 (assemble_thunk): Insert new BBs into loops.
22191 2013-06-18 Richard Biener <rguenther@suse.de>
22193 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
22194 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
22195 the map from cache entry to cache index optional.
22196 (streamer_tree_cache_replace_tree): Adjust accordingly.
22197 (streamer_tree_cache_append): Likewise.
22198 (streamer_tree_cache_delete): Likewise.
22199 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
22200 streamer cache map from cache entry to cache index.
22201 * lto-streamer-out.c (create_output_block): Adjust.
22203 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
22205 * config/arm/arm.md (attribute "insn"): Move multiplication and
22206 division attributes to...
22207 (attribute "type"): ... here. Remove mult.
22208 (attribute "mul32"): New attribute.
22209 (attribute "mul64"): Add umaal.
22210 (*arm_mulsi3): Update attributes.
22211 (*arm_mulsi3_v6): Likewise.
22212 (*thumb_mulsi3): Likewise.
22213 (*thumb_mulsi3_v6): Likewise.
22214 (*mulsi3_compare0): Likewise.
22215 (*mulsi3_compare0_v6): Likewise.
22216 (*mulsi_compare0_scratch): Likewise.
22217 (*mulsi_compare0_scratch_v6): Likewise.
22218 (*mulsi3addsi): Likewise.
22219 (*mulsi3addsi_v6): Likewise.
22220 (*mulsi3addsi_compare0): Likewise.
22221 (*mulsi3addsi_compare0_v6): Likewise.
22222 (*mulsi3addsi_compare0_scratch): Likewise.
22223 (*mulsi3addsi_compare0_scratch_v6): Likewise.
22224 (*mulsi3subsi): Likewise.
22225 (*mulsidi3adddi): Likewise.
22226 (*mulsi3addsi_v6): Likewise.
22227 (*mulsidi3adddi_v6): Likewise.
22228 (*mulsidi3_nov6): Likewise.
22229 (*mulsidi3_v6): Likewise.
22230 (*umulsidi3_nov6): Likewise.
22231 (*umulsidi3_v6): Likewise.
22232 (*umulsidi3adddi): Likewise.
22233 (*umulsidi3adddi_v6): Likewise.
22234 (*smulsi3_highpart_nov6): Likewise.
22235 (*smulsi3_highpart_v6): Likewise.
22236 (*umulsi3_highpart_nov6): Likewise.
22237 (*umulsi3_highpart_v6): Likewise.
22238 (mulhisi3): Likewise.
22239 (*mulhisi3tb): Likewise.
22240 (*mulhisi3bt): Likewise.
22241 (*mulhisi3tt): Likewise.
22242 (maddhisi4): Likewise.
22243 (*maddhisi4tb): Likewise.
22244 (*maddhisi4tt): Likewise.
22245 (maddhidi4): Likewise.
22246 (*maddhidi4tb): Likewise.
22247 (*maddhidi4tt): Likewise.
22248 (divsi3): Likewise.
22249 (udivsi3): Likewise.
22250 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
22251 (thumb2_mulsi_short_compare0): Likewise.
22252 (thumb2_mulsi_short_compare0_scratch): Likewise.
22253 * config/arm/arm1020e.md (1020mult1): Update attribute change.
22254 (1020mult2): Likewise.
22255 (1020mult3): Likewise.
22256 (1020mult4): Likewise.
22257 (1020mult5): Likewise.
22258 (1020mult6): Likewise.
22259 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
22261 (cortex_a15_mult64): Likewise.
22262 (cortex_a15_sdiv): Likewise.
22263 (cortex_a15_udiv): Likewise.
22264 * config/arm/arm1026ejs.md (mult1): Update attribute change.
22270 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
22271 (pj4_ir_div): Likewise.
22272 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
22273 (11_mult2): Likewise.
22274 (11_mult3): Likewise.
22275 (11_mult4): Likewise.
22276 (11_mult5): Likewise.
22277 (11_mult6): Likewise.
22278 (11_mult7): Likewise.
22279 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
22280 (cortex_a8_mla): Likewise.
22281 (cortex_a8_mull): Likewise.
22282 (cortex_a8_smulwy): Likewise.
22283 (cortex_a8_smlald): Likewise.
22284 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
22285 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
22286 (cortex_r4_mul_3): Likewise.
22287 (cortex_r4_mla_4): Likewise.
22288 (cortex_r4_mla_3): Likewise.
22289 (cortex_r4_smlald): Likewise.
22290 (cortex_r4_mull): Likewise.
22291 (cortex_r4_sdiv): Likewise.
22292 (cortex_r4_udiv): Likewise.
22293 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
22294 (cortex_a7_idiv): Likewise.
22295 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
22296 (9_mult2): Likewise.
22297 (9_mult3): Likewise.
22298 (9_mult4): Likewise.
22299 (9_mult5): Likewise.
22300 (9_mult6): Likewise.
22301 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
22302 (cortex_a53_sdiv): Likewise.
22303 (cortex_a53_udiv): Likewise.
22304 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
22305 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
22306 (mp626_mult2): Likewise.
22307 (mp626_mult3): Likewise.
22308 (mp626_mult4): Likewise.
22309 * config/arm/fa526.md (526_mult1): Update attribute change.
22310 (526_mult2): Likewise.
22311 * config/arm/arm-generic.md (mult): Update attribute change.
22312 (mult_ldsched_strongarm): Likewise.
22313 (mult_ldsched): Likewise.
22314 (multi_cycle): Likewise.
22315 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
22316 * config/arm/fa606te.md (606te_mult1): Update attribute change.
22317 (606te_mult2): Likewise.
22318 (606te_mult3): Likewise.
22319 (606te_mult4): Likewise.
22320 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
22321 (cortex_a9_mac16): Likewise.
22322 (cortex_a9_multiply): Likewise.
22323 (cortex_a9_mac): Likewise.
22324 (cortex_a9_multiply_long): Likewise.
22325 * config/arm/fa626te.md (626te_mult1): Update attribute change.
22326 (626te_mult2): Likewise.
22327 (626te_mult3): Likewise.
22328 (626te_mult4): Likewise.
22330 2013-06-18 Richard Biener <rguenther@suse.de>
22333 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
22335 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22338 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22339 with next_active_insn.
22341 2013-06-18 Alan Modra <amodra@gmail.com>
22343 * config/rs6000/rs6000.h (enum data_align): New.
22344 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
22345 (DATA_ABI_ALIGNMENT): Define.
22346 (CONSTANT_ALIGNMENT): Correct comment.
22347 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
22348 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
22350 2013-06-17 David Malcolm <dmalcolm@redhat.com>
22352 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
22353 ATTRIBUTE_UNUSED marking.
22355 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
22357 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
22358 alternative and update.
22359 (aarch64_dup_lanedi): Delete.
22360 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
22361 * config/aarch64/aarch64-simd-builtins.def: Update.
22363 2013-06-17 Richard Biener <rguenther@suse.de>
22365 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
22366 (lto_input_scc): Declare.
22367 (lto_input_tree_1): Likewise.
22368 (struct lto_stats_d): Add num_tree_bodies_output and
22369 num_pickle_refs_output.
22370 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
22371 (lto_read_tree_1): Split out from ...
22372 (lto_read_tree): ... this.
22373 (lto_input_scc): New function.
22374 (lto_input_tree_1): Split out from ...
22375 (lto_input_tree): ... this. Handle LTO_tree_scc.
22376 (lto_data_in_create): Create the streamer cache without hashes.
22377 * lto-streamer-out.c (create_output_block): Create the streamer
22378 cache with hashes when not doing WPA.
22379 (lto_write_tree_1): Split out from ...
22380 (lto_write_tree): ... this.
22381 (get_symbol_initial_value): New function.
22382 (lto_output_tree_1): Split out from ...
22383 (lto_output_tree): ... this. Write trees as series of SCCs
22384 using a DFS walk via DFS_write_tree.
22385 (struct sccs, struct scc_entry): New types.
22386 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
22387 (DFS_write_tree_body): New function.
22388 (DFS_write_tree): Likewise.
22389 (hash_tree): Likewise.
22390 (scc_entry_compare): Likewise.
22391 (hash_scc): Likewise.
22392 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
22393 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
22394 TREE_CHAIN as regular reference.
22395 (streamer_read_integer_cst): Remove.
22396 (streamer_get_pickled_tree): Adjust.
22397 * tree-streamer-out.c (streamer_write_chain): Disable streaming
22398 of DECL_EXTERNALs in BLOCK_VARS for now.
22399 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
22401 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
22402 Add hash value argument and record that if hashes are recorded
22404 (streamer_tree_cache_insert_1): Adjust.
22405 (streamer_tree_cache_insert): Likewise.
22406 (streamer_tree_cache_insert_at): Rename to ...
22407 (streamer_tree_cache_replace_tree): ... this and adjust.
22408 (streamer_tree_cache_append): Adjust.
22409 (record_common_node): Likewise.
22410 (streamer_tree_cache_create): Add argument whether to
22411 record hash values together with trees.
22412 (streamer_tree_cache_delete): Adjust.
22413 * tree-streamer.h (struct streamer_tree_cache_d): Add
22415 (streamer_read_integer_cst): Remove.
22416 (streamer_tree_cache_insert): Adjust.
22417 (streamer_tree_cache_append): Likewise.
22418 (streamer_tree_cache_insert_at): Rename to ...
22419 (streamer_tree_cache_replace_tree): ... this and adjust.
22420 (streamer_tree_cache_create): Add argument whether to record hashes.
22421 (streamer_tree_cache_get): Rename to ...
22422 (streamer_tree_cache_get_tree): ... this.
22423 (streamer_tree_cache_get_hash): New function.
22424 * tree.c (cache_integer_cst): New function.
22425 * tree.h (cache_integer_cst): Declare.
22426 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
22427 * lto-symtab.c (lto_varpool_replace_node): Only release
22428 DECL_INITIAL of non-prevailing decls.
22429 * varpool.c (varpool_remove_initializer): Do not release
22430 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
22432 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
22434 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
22435 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
22436 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
22437 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
22438 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
22439 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
22440 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
22441 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
22442 instead of TARGET_64BIT.
22443 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
22444 Require ISA_HAS_<D>DIV.
22446 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
22448 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
22449 (mips*-*-linux*): Move default with_llsc setting to where other
22451 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
22453 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
22454 Likewise. Remove default with_tune setting. Move default float
22455 setting to its own block. Handle with_llsc in the same block as above.
22457 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
22459 PR rtl-optimization/57425
22460 PR rtl-optimization/57569
22461 * alias.c (write_dependence_p): Add new parameters mem_mode,
22462 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
22463 Changed all callers.
22464 (canon_anti_dependence): New function.
22465 * cse.c (check_dependence): Use canon_anti_dependence.
22466 * cselib.c (cselib_invalidate_mem): Likewise.
22467 * rtl.h (canon_anti_dependence): Declare.
22469 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
22471 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
22472 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
22473 ".set mips3" for 64-bit targets.
22475 2013-06-15 Dehao Chen <dehao@google.com>
22477 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
22478 * gimple-low.c (gimple_check_call_matching_types): Likewise.
22479 (gimple_check_call_args): Likewise.
22480 * value-prof.c (check_ic_target): Likewise.
22481 * ipa-inline.c (early_inliner): Likewise.
22482 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
22483 * cgraph.c (cgraph_create_edge_1): Likewise.
22484 (cgraph_make_edge_direct): Likewise.
22486 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
22489 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
22490 rs6000_output_move_128bit to handle emitting quad memory
22491 operations. Set attribute length to 8 bytes.
22493 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
22495 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
22497 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
22498 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
22499 (aarch64_<su>mlsl<mode>): Likewise.
22501 2013-06-14 Mike Stump <mikestump@comcast.net>
22503 * Makefile.in (TARGET_H): Add insn-codes.h.
22505 2013-06-14 Alan Modra <amodra@gmail.com>
22507 PR middle-end/57134
22508 PR middle-end/57586
22509 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
22510 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
22511 bitfield expansion when EXPAND_MEMORY.
22512 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
22514 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
22516 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
22517 test for clearing quad memory on 32-bit later.
22519 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
22521 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
22522 (fold_negate_expr): Likewise.
22523 (fold_real_zero_addition_p): Handle vectors.
22524 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
22526 2013-06-14 Alan Modra <amodra@gmail.com>
22528 * varasm.c (force_const_mem): Revert 2013-06-07 change.
22530 2013-06-13 Jan Hubicka <jh@suse.cz>
22532 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
22533 Local comdats are not externally visible.
22534 * symtab.c (dump_symtab_base): Dump externally visible.
22535 (verify_symtab_base): Verify back links in the symtab hash.
22537 2013-06-13 Bin Cheng <bin.cheng@arm.com>
22539 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
22540 CONVERT_EXPR as equal nodes.
22542 2013-06-13 Bin Cheng <bin.cheng@arm.com>
22544 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
22546 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
22548 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
22549 Generalize to complex and vector.
22550 * tree.c (build_all_ones_cst): New function.
22551 * tree.h (build_all_ones_cst): Declare it.
22553 2013-06-13 Alan Modra <amodra@gmail.com>
22555 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
22556 * config/rs6000/rs6000.md (signbittf2): New insn.
22557 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
22558 (abstf2_internal, cmptf_internal2): Likewise.
22559 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
22561 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22562 Pat Haugen <pthaugen@us.ibm.com>
22563 Peter Bergner <bergner@vnet.ibm.com>
22565 * config/rs6000/rs6000.c (emit_load_locked): Add support for
22566 power8 byte, half-word, and quad-word atomic instructions.
22567 (emit_store_conditional): Likewise.
22568 (rs6000_expand_atomic_compare_and_swap): Likewise.
22569 (rs6000_expand_atomic_op): Likewise.
22571 * config/rs6000/sync.md (larx): Add new modes for power8.
22573 (AINT): New mode iterator to include TImode as well as normal
22574 integer modes on power8.
22575 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
22576 that VSX registers are not considered. Use AINT mode iterator
22577 instead of INT1 to allow inclusion of quad word atomic operations
22579 (load_locked<mode>): Likewise.
22580 (store_conditional<mode>): Likewise.
22581 (atomic_compare_and_swap<mode>): Likewise.
22582 (atomic_exchange<mode>): Likewise.
22583 (atomic_nand<mode>): Likewise.
22584 (atomic_fetch_<fetchop_name><mode>): Likewise.
22585 (atomic_nand_fetch<mode>): Likewise.
22586 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
22588 (ATOMIC): On power8, add QImode, HImode modes.
22589 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
22590 modes that promote to SImode.
22591 (load_lockedti): Convert TImode arguments to PTImode, so that we
22592 get a guaranteed even/odd register pair.
22593 (load_lockedpti): Likewise.
22594 (store_conditionalti): Likewise.
22595 (store_conditionalpti): Likewise.
22597 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
22598 atomic load/store instructions.
22601 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
22603 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
22605 (insn_count): New attribute, with most cases extracted from...
22606 (length): ...here. Redefine most cases in terms of insn_count.
22607 (single_insn): Delete.
22608 (can_delay): Use insn_count to check for single instructions.
22609 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
22610 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
22611 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
22612 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
22613 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
22614 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
22615 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
22616 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
22617 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
22618 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
22619 rather than "length".
22620 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
22621 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
22622 Use "insn_count" rather than "length".
22623 * config/mips/mips-dsp.md
22624 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
22625 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
22628 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
22630 PR tree-optimization/57361
22631 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
22633 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
22635 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
22637 (aarch64_simd_combine<mode>): New instruction expansion.
22638 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
22639 function prototype.
22640 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
22641 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
22643 2013-06-12 Jan Hubicka <jh@suse.cz>
22645 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
22646 decl has when in streaming stage.
22647 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
22648 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
22650 2013-06-12 Roland Stigge <stigge@antcom.de>
22653 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
22655 2013-06-12 Jakub Jelinek <jakub@redhat.com>
22657 PR tree-optimization/57537
22658 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
22659 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
22661 2013-06-12 Richard Biener <rguenther@suse.de>
22663 * data-streamer.h (streamer_write_char_stream): CSE
22664 obs->current_pointer.
22665 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
22666 streamer_write_char_stream manually and optimize the resulting loop.
22667 (streamer_write_hwi_stream): Likewise.
22669 2013-06-12 Jan Hubicka <jh@suse.cz>
22671 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
22672 * cgraph.h (varpool_create_empty_node): Declare.
22673 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
22675 * symtab.c (symtab_unregister_node): Be lax about missin entries
22677 (symtab_get_node): Update comment.
22678 * varpool.c (varpool_create_empty_node): Break out from ...
22679 (varpool_node_for_decl): ... here.
22680 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
22682 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
22684 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
22685 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
22686 part. Use straight-line flow at the end.
22687 <COMPONENT_REF>: Remove superfluous else.
22688 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
22690 2013-06-12 Jakub Jelinek <jakub@redhat.com>
22693 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
22694 target hook even for !TREE_PUBLIC decls. If no resolution info
22695 is available, return false for common and external decls.
22697 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22699 * config/rl78/constraints.md (U): New constraint.
22700 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
22703 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22706 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
22707 to allow returning address to AT_PLATFORM name.
22709 2013-06-11 Jan Hubicka <jh@suse.cz>
22711 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
22712 * cgraph.h (symtab_node_base): Add weakref flag.
22713 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
22714 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
22715 (output_weakrefs): Use weakref flag.
22716 * fold-const.c (simple_operand_p): Handle WEAK.
22717 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
22718 * ipa.c (varpool_externally_visible_p): Drop weakref.
22719 (function_and_variable_visibility): Update comment; fix weakref
22720 sanity checks; do not clear DECL_WEAK on them.
22721 * lto-cgraph.c (lto_output_node): update.
22722 (lto_output_varpool_node): Update.
22723 (input_overwrite_node): Update.
22724 (input_node): Update.
22725 (input_varpool_node): Update.
22726 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
22727 (lto_symtab_merge_symbols): Add sanity check.
22728 (lto_symtab_prevailing_decl): Do not special case weakrefs.
22729 * passes.c (rest_of_decl_compilation): Set static flag, too.
22730 * symtab.c (dump_symtab_base): Dump weakref.
22731 (verify_symtab_base): Sanity check weakrefs.
22732 (symtab_make_decl_local): Remove duplicated code.
22733 (symtab_alias_ultimate_target): Simplify.
22734 * varpool.c (varpool_create_variable_alias): Set weakref flag.
22736 2013-06-11 Tom de Vries <tom@codesourcery.com>
22738 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
22739 sequence_vect == NULL.
22741 2013-06-11 DJ Delorie <dj@redhat.com>
22743 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
22744 (rl78_unwind_word_mode): New.
22746 2013-06-11 David Malcolm <dmalcolm@redhat.com>
22748 * final.c (debug_prefix_maps): Make static.
22750 2013-06-11 David Malcolm <dmalcolm@redhat.com>
22752 * function.c (initial_trampoline): Remove stray copy.
22754 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
22756 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
22758 2013-06-11 Martin Jambor <mjambor@suse.cz>
22760 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
22761 within bounds at the beginning of the function.
22763 2013-06-11 Alan Modra <amodra@gmail.com>
22765 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
22767 (get_named_section): Don't NULL !DECL_P decl.
22769 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
22771 * doc/invoke.texi (core-avx2): Document.
22773 (atom): Updated with MOVBE.
22775 2013-06-11 Richard Biener <rguenther@suse.de>
22777 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
22779 2013-06-11 Anton Blanchard <anton@samba.org>
22781 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
22782 correct shift value in little-endian mode.
22784 2013-06-11 Jakub Jelinek <jakub@redhat.com>
22787 * varasm.c (get_variable_align): Move #endif to the right place.
22789 2013-06-10 Cary Coutant <ccoutant@google.com>
22791 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
22792 for hash so that hash table traversal order is deterministic.
22794 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
22795 Pat Haugen <pthaugen@us.ibm.com>
22796 Peter Bergner <bergner@vnet.ibm.com>
22798 * config/rs6000/vector.md (GPR move splitter): Do not split moves
22799 of vectors in GPRS if they are direct moves or quad word load or
22802 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
22804 (direct_move_p): Likewise.
22805 (quad_load_store_p): Likewise.
22807 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
22808 classes into bins based on the physical register type.
22809 (reg_class_to_reg_type): Likewise.
22810 (IS_STD_REG_TYPE): Likewise.
22811 (IS_FP_VECT_REG_TYPE): Likewise.
22812 (reload_fpr_gpr): Arrays to determine what insn to use if we can
22813 use direct move instructions.
22814 (reload_gpr_vsx): Likewise.
22815 (reload_vsx_gpr): Likewise.
22816 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
22817 information that is a simplification of register classes. Also
22818 precalculate direct move reload helpers.
22819 (direct_move_p): New function to return true if the operation can
22820 be done as a direct move instruciton.
22821 (quad_load_store_p): New function to return true if the operation
22822 is a quad memory operation.
22823 (rs6000_legitimize_address): If quad memory, only allow register
22824 indirect for TImode addresses.
22825 (rs6000_legitimate_address_p): Likewise.
22826 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
22827 (rs6000_reload_register_type): Likewise.
22828 (register_to_reg_type): Return register type.
22829 (rs6000_secondary_reload_simple_move): New helper function for
22830 secondary reload and secondary memory needed to identify anything
22831 that is a simple move, and does not need reloading.
22832 (rs6000_secondary_reload_direct_move): New helper function for
22833 secondary reload to identify cases that can be done with several
22834 instructions via the direct move instructions.
22835 (rs6000_secondary_reload_move): New helper function for secondary
22836 reload to identify moves between register types that can be done.
22837 (rs6000_secondary_reload): Add support for quad memory operations
22838 and for direct move.
22839 (rs6000_secondary_memory_needed): Likewise.
22840 (rs6000_debug_secondary_memory_needed): Change argument names.
22841 (rs6000_output_move_128bit): New function to return the move to
22842 use for 128-bit moves, including knowing about the various
22843 limitations of quad memory operations.
22845 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
22846 memory operations. call rs6000_output_move_128bit for the actual
22847 instruciton(s) to generate.
22848 (vsx_movti_64bit): Likewise.
22850 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
22851 (UNSPEC_P8V_MTVSRWZ): Likewise.
22852 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
22853 (UNSPEC_P8V_MTVSRD): Likewise.
22854 (UNSPEC_P8V_XXPERMDI): Likewise.
22855 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
22856 (UNSPEC_FUSION_GPR): Likewise.
22857 (FMOVE128_GPR): New iterator for direct move.
22858 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
22859 (f32_sv): Likewise.
22860 (f32_dm): Likewise.
22861 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
22862 loads and direct move instructions.
22863 (zero_extendsidi2_lfiwzx): Likewise.
22864 (extendsidi2_lfiwax): Likewise.
22865 (extendsidi2_nocell): Likewise.
22866 (floatsi<mode>2_lfiwax): Likewise.
22867 (lfiwax): Likewise.
22868 (floatunssi<mode>2_lfiwzx): Likewise.
22869 (lfiwzx): Likewise.
22870 (fix_trunc<mode>_stfiwx): Likewise.
22871 (fixuns_trunc<mode>_stfiwx): Likewise.
22872 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
22873 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
22874 (parity<mode>2_cmpb): Set length/type attr.
22875 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
22876 for 'mr.' to fast_compare.
22877 (bpermd_<mode>): Change type attr to popcnt.
22878 (p8_fmrgow_<mode>): New insns for power8 direct move support.
22879 (p8_mtvsrwz_1): Likewise.
22880 (p8_mtvsrwz_2): Likewise.
22881 (reload_fpr_from_gpr<mode>): Likewise.
22882 (p8_mtvsrd_1): Likewise.
22883 (p8_mtvsrd_2): Likewise.
22884 (p8_xxpermdi_<mode>): Likewise.
22885 (reload_vsx_from_gpr<mode>): Likewise.
22886 (reload_vsx_from_gprsf): Likewise.
22887 (p8_mfvsrd_3_<mode>): LIkewise.
22888 (reload_gpr_from_vsx<mode>): Likewise.
22889 (reload_gpr_from_vsxsf): Likewise.
22890 (p8_mfvsrd_4_disf): Likewise.
22891 (multi-word GPR splits): Do not split direct moves or quad memory
22894 2013-06-10 David Malcolm <dmalcolm@redhat.com>
22896 * tree-into-ssa.c (interesting_blocks): Make static.
22898 2013-06-10 Jakub Jelinek <jakub@redhat.com>
22901 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
22902 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
22903 Use DATA_ABI_ALIGNMENT for that case instead if defined.
22904 (get_variable_align): New function.
22905 (get_variable_section, emit_bss, emit_common,
22906 assemble_variable_contents, place_block_symbol): Use
22907 get_variable_align instead of DECL_ALIGN.
22908 (assemble_noswitch_variable): Add align argument, use it
22909 instead of DECL_ALIGN.
22910 (assemble_variable): Adjust caller. Use get_variable_align
22911 instead of DECL_ALIGN.
22912 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
22914 (DATA_ABI_ALIGNMENT): Define.
22915 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
22916 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
22917 opt is false, only return the psABI mandated alignment increase.
22918 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
22919 (DATA_ABI_ALIGNMENT): ... this.
22920 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
22921 (DATA_ABI_ALIGNMENT): ... this.
22922 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
22923 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
22924 (DATA_ABI_ALIGNMENT): ... this.
22925 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
22926 * doc/tm.texi: Regenerated.
22928 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
22930 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
22931 cmp_code to construct REG_EQUAL note.
22933 2013-06-09 Jakub Jelinek <jakub@redhat.com>
22936 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
22937 that operands[2] doesn't overlap with operands[0].
22939 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
22940 Jan Hubicka <jh@suse.cz>
22942 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
22943 hack to mark symbols as used.
22945 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
22947 PR rtl-optimization/57559
22948 * lra-constraints.c (process_alt_operands): Don't discourage
22949 memory with known offset for offsetable memory constraint.
22950 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
22952 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
22954 * varasm.c (struct oc_local_state): Reorder fields.
22955 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
22956 and adjust accordingly.
22957 (output_constructor): Reorder initialization code and adjust call to
22958 output_constructor_bitfield.
22960 2013-06-07 Jan Hubicka <jh@suse.cz>
22962 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
22964 2013-06-07 David Malcolm <dmalcolm@redhat.com>
22966 * tree-object-size.c (unknown): Make const.
22968 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22970 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
22971 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
22972 for last alternative in the cpu_facility attribute.
22974 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22977 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
22978 (xordi3): Change operand 2 constraint to arm_xordi_operand.
22979 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
22980 * config/arm/constraints.md (Dg): New constraint.
22981 * config/arm/neon.md (xordi3_neon): Remove.
22982 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
22983 * config/arm/predicates.md (arm_xordi_operand): New predicate.
22985 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22987 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
22988 Clean up alternatives.
22990 2013-06-07 Alan Modra <amodra@gmail.com>
22992 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
22995 2013-06-07 Alan Modra <amodra@gmail.com>
22997 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
22999 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23001 * config/arm/constraints.md (Df): New constraint.
23002 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
23003 Correct length attribute for last two alternatives.
23005 2013-06-07 Alan Modra <amodra@gmail.com>
23007 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23008 override user -mfp-in-toc.
23009 (offsettable_ok_by_alignment): Consider just the current access
23010 rather than the whole object, unless BLKmode. Handle
23011 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
23012 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
23013 for -mcmodel=medium.
23014 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
23015 override user -mfp-in-toc or -msum-in-toc. Default to
23016 -mno-fp-in-toc for -mcmodel=medium.
23018 2013-06-06 DJ Delorie <dj@redhat.com>
23020 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
23021 TARGET_VALID_POINTER_MODE.
23023 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
23024 Pat Haugen <pthaugen@us.ibm.com>
23025 Peter Bergner <bergner@vnet.ibm.com>
23027 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23028 Document new power8 builtins.
23030 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
23031 condition code register, to allow 128-bit logical operations to be
23032 done in the VSX or GPR registers.
23033 (nor<mode>3): Use the canonical form for nor.
23034 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
23035 vclz*, and vpopcnt* vector instructions.
23036 (nand<mode>3): Likewise.
23037 (orc<mode>3): Likewise.
23038 (clz<mode>2): LIkewise.
23039 (popcount<mode>2): Likewise.
23041 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
23042 that only the GPRs are recognized.
23044 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23045 support for new power8 builtins.
23047 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
23049 (xscvdpspn): Likewise.
23055 (vpopcnt): Likewise.
23056 (vpopcntb): Likewise.
23057 (vpopcnth): Likewise.
23058 (vpopcntw): Likewise.
23059 (vpopcntd): Likewise.
23061 (vmrgew): Likewise.
23062 (vmrgow): Likewise.
23064 (eqv_v16qi3): Likewise.
23065 (eqv_v8hi3): Likewise.
23066 (eqv_v4si3): Likewise.
23067 (eqv_v2di3): Likewise.
23068 (eqv_v4sf3): Likewise.
23069 (eqv_v2df3): Likewise.
23071 (nand_v16qi3): Likewise.
23072 (nand_v8hi3): Likewise.
23073 (nand_v4si3): Likewise.
23074 (nand_v2di3): Likewise.
23075 (nand_v4sf3): Likewise.
23076 (nand_v2df3): Likewise.
23078 (orc_v16qi3): Likewise.
23079 (orc_v8hi3): Likewise.
23080 (orc_v4si3): Likewise.
23081 (orc_v2di3): Likewise.
23082 (orc_v4sf3): Likewise.
23083 (orc_v2df3): Likewise.
23085 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
23086 allow power8 quad mode in 64-bit.
23087 (rs6000_builtin_vectorized_function): Add support to vectorize
23088 ISA 2.07 count leading zeros, population count builtins.
23089 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
23090 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
23091 (builtin_function_type): Add vgbbd builtin function which takes an
23093 (altivec_expand_vec_perm_const): Add support for new power8 merge
23096 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
23097 that does not include TImdoe for use with 32-bit.
23098 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
23100 (UNSPEC_VSX_CVDPSPN): Likewise.
23101 (vsx_xscvdpspn): Likewise.
23102 (vsx_xscvspdpn): Likewise.
23103 (vsx_xscvdpspn_scalar): Likewise.
23104 (vsx_xscvspdpn_directmove): Likewise.
23105 (vsx_and<mode>3): Split logical operations into 32-bit and
23106 64-bit. Add support to do logical operations on TImode as well as
23107 VSX vector types. Allow logical operations to be done in either
23108 VSX registers or in general purpose registers in 64-bit mode. Add
23109 splitters if GPRs were used. For AND, add clobber of CCmode to
23110 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
23112 (vsx_and<mode>3_32bit): Likewise.
23113 (vsx_and<mode>3_64bit): Likewise.
23114 (vsx_ior<mode>3): Likewise.
23115 (vsx_ior<mode>3_32bit): Likewise.
23116 (vsx_ior<mode>3_64bit): Likewise.
23117 (vsx_xor<mode>3): Likewise.
23118 (vsx_xor<mode>3_32bit): Likewise.
23119 (vsx_xor<mode>3_64bit): Likewise.
23120 (vsx_one_cmpl<mode>2): Likewise.
23121 (vsx_one_cmpl<mode>2_32bit): Likewise.
23122 (vsx_one_cmpl<mode>2_64bit): Likewise.
23123 (vsx_nor<mode>3): Likewise.
23124 (vsx_nor<mode>3_32bit): Likewise.
23125 (vsx_nor<mode>3_64bit): Likewise.
23126 (vsx_andc<mode>3): Likewise.
23127 (vsx_andc<mode>3_32bit): Likewise.
23128 (vsx_andc<mode>3_64bit): Likewise.
23129 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
23130 and xxlorc instructions.
23131 (vsx_eqv<mode>3_64bit): Likewise.
23132 (vsx_nand<mode>3_32bit): Likewise.
23133 (vsx_nand<mode>3_64bit): Likewise.
23134 (vsx_orc<mode>3_32bit): Likewise.
23135 (vsx_orc<mode>3_64bit): Likewise.
23137 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
23139 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
23141 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
23142 (p8_vmrgow): Likewise.
23143 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
23144 GPRs to be split under VSX.
23145 (p8v_clz<mode>2): Add power8 count leading zero support.
23146 (p8v_popcount<mode>2): Add power8 population count support.
23147 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
23150 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
23153 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
23155 (vec_nand): Likewise.
23156 (vec_vclz): Likewise.
23157 (vec_vclzb): Likewise.
23158 (vec_vclzd): Likewise.
23159 (vec_vclzh): Likewise.
23160 (vec_vclzw): Likewise.
23161 (vec_vgbbd): Likewise.
23162 (vec_vmrgew): Likewise.
23163 (vec_vmrgow): Likewise.
23164 (vec_vpopcnt): Likewise.
23165 (vec_vpopcntb): Likewise.
23166 (vec_vpopcntd): Likewise.
23167 (vec_vpopcnth): Likewise.
23168 (vec_vpopcntw): Likewise.
23170 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
23172 PR rtl-optimization/57468
23173 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
23176 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
23178 PR rtl-optimization/57459
23179 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
23180 type when setting live regs.
23182 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
23184 * config/s390/s390.opt (mlra): New option.
23185 * config/s390/s390.c (s390_decompose_address): Check displacement
23186 for all registers for LRA.
23187 (s390_secondary_reload): Don't used secondary reloads for LRA.
23188 (s390_lra_p): New function.
23189 (TARGET_LRA_P): Define.
23190 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
23191 of attribute cpu_facility to zarch for the last alternative.
23192 (*cmpmem_short): Ditto.
23194 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
23196 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
23197 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
23198 (arm_expand_prologue): Likewise.
23200 2013-06-06 Teresa Johnson <tejohnson@google.com>
23203 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
23204 as this is now done by redirect_edge_and_branch_force.
23205 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
23206 barriers, and fix interaction with splitting.
23207 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
23208 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
23209 reflect changes made in the routine.
23210 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
23211 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
23212 since this is called in cfglayout mode, and replace partition fixup
23213 with assert as that is now done by force_nonfallthru_and_redirect.
23214 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
23215 already be marked with region crossing note.
23216 (insert_section_boundary_note): Make non-static, gate on flag
23217 has_bb_partition, rewrite to also check for multiple partitions.
23218 (rest_of_handle_reorder_blocks): Remove call to
23219 insert_section_boundary_note, now done later during free_cfg.
23220 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
23221 * bb-reorder.h (insert_section_boundary_note): Declare.
23222 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
23223 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
23224 invoke insert_section_boundary_note.
23225 (try_redirect_by_replacing_jump): Remove unnecessary
23226 check for region crossing note.
23227 (fixup_partition_crossing): New function.
23228 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
23229 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
23230 in non-cfglayout mode.
23231 (force_nonfallthru_and_redirect): Fixup partition boundaries,
23232 remove old code that tried to do this. Emit barrier correctly
23233 when we are in cfglayout mode.
23234 (last_bb_in_partition): New function.
23235 (rtl_split_edge): Correctly fixup partition boundaries.
23236 (commit_one_edge_insertion): Remove old code that tried to
23237 fixup region crossing edge since this is now handled in
23238 split_block, and set up insertion point correctly since
23239 block may now end in a jump.
23240 (verify_hot_cold_block_grouping): Guard against checking when not in
23241 linearized RTL mode.
23242 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
23244 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
23245 rtl_verify_flow_info, so not called in cfglayout mode.
23246 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
23247 (fixup_reorder_chain): Remove old code that attempted to fixup region
23248 crossing note as this is now handled in force_nonfallthru_and_redirect.
23249 (duplicate_insn_chain): Don't duplicate switch section notes.
23250 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
23252 * basic-block.h (emit_barrier_after_bb): Declare.
23254 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23256 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
23257 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
23258 arm_usatsihi): Adjust alternatives for arm_restrict_it.
23260 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23262 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
23264 * config/arm/ldmstm.md: Regenerate.
23266 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23268 * config/arm/sync.md (atomic_loaddi_1):
23269 Disable predication for arm_restrict_it.
23270 (arm_load_exclusive<mode>): Likewise.
23271 (arm_load_exclusivesi): Likewise.
23272 (arm_load_exclusivedi): Likewise.
23273 (arm_load_acquire_exclusive<mode>): Likewise.
23274 (arm_load_acquire_exclusivesi): Likewise.
23275 (arm_load_acquire_exclusivedi): Likewise.
23276 (arm_store_exclusive<mode>): Likewise.
23277 (arm_store_exclusive<mode>): Likewise.
23278 (arm_store_release_exclusivedi): Likewise.
23279 (arm_store_release_exclusive<mode>): Likewise.
23281 2013-06-06 Richard Biener <rguenther@suse.de>
23283 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
23285 (lto_tag_is_tree_code_p): Adjust.
23286 (lto_tag_is_gimple_code_p): Likewise.
23287 (lto_gimple_code_to_tag): Likewise.
23288 (lto_tag_to_gimple_code): Likewise.
23289 (lto_tree_code_to_tag): Likewise.
23290 (lto_tag_to_tree_code): Likewise.
23291 * data-streamer.h (streamer_write_hwi_in_range): Use
23292 uhwi streaming to stream the normalized range.
23293 (streamer_read_hwi_in_range): Likewise.
23295 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23297 * config/arm/arm.md (enabled_for_depr_it): New attribute.
23298 (predicable_short_it): Likewise.
23299 (predicated): Likewise.
23300 (enabled): Handle above.
23301 (define_cond_exec): Set predicated attribute to yes.
23303 2013-06-05 Mike Stump <mikestump@comcast.net>
23305 * gdbinit.in (__FUNCTION__): Add.
23307 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
23309 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
23310 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
23312 2013-06-05 Jan Hubicka <jh@suse.cz>
23314 * varasm.c (mark_decl_referenced): Revert the removal until targets
23317 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
23319 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
23320 instead of mark_decl_referenced.
23322 2013-06-05 Jan Hubicka <jh@suse.cz>
23324 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
23325 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
23326 and symtab_used_from_object_file_p.
23327 (cgraph_make_node_local_1): Clear forced_by_abi.
23328 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
23329 * cgraph.h (symtab_node_base): Add forced_by_abi.
23330 (decide_is_variable_needed): Remove.
23331 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
23332 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
23333 (decide_is_symbol_needed): ... this one; handle symbols in general;
23334 always analyze virtuals; honnor forced_by_abi.
23335 (cgraph_finalize_function): Update.
23336 (varpool_finalize_decl): Update.
23337 (symbol_defined_and_needed): Remove.
23338 (analyze_functions): Update.
23339 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
23340 output_refs, input_overwrite_node): Handle forced_by_abi.
23341 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
23342 (address_taken_from_non_vtable_p): ... this one.
23343 (comdat_can_be_unshared_p_1): New function.
23344 (cgraph_comdat_can_be_unshared_p): Rename to ...
23345 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
23346 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
23347 (function_and_variable_visibility): Clear forced_by_abi as needed.
23348 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
23349 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
23350 * symtab.c (dump_symtab_base): Dump forced_by_abi.
23351 * varpool.c (decide_is_variable_needed): Remove.
23353 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23355 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
23356 (arm_option_override): Override arm_restrict_it where appropriate.
23357 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
23358 * config/arm/arm.opt (mrestrict-it): New command-line option.
23359 * doc/invoke.texi: Document -mrestrict-it.
23361 2013-06-05 David Malcolm <dmalcolm@redhat.com>
23363 * tsan.c (tsan_atomic_table): Make const.
23365 2013-06-05 Richard Biener <rguenther@suse.de>
23367 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
23368 index associated with the tree we are supposed to replace.
23369 * tree-streamer-out.c (pack_ts_base_value_fields): Output
23370 TREE_ASM_WRITTEN as zero for everything but SSA names.
23372 2013-06-05 David Malcolm <dmalcolm@redhat.com>
23374 * tree-ssa-structalias.c (call_stmt_vars): Make static.
23376 2013-06-04 Jan Hubicka <jh@suse.cz>
23378 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
23379 (input_node, input_varpool_node): Handle correctly external same
23381 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
23382 nodes at ltrans stage.
23384 2013-06-04 Jan Hubicka <jh@suse.cz>
23386 * ipa-inline.c (update_caller_keys): Fix availability test.
23387 (update_callee_keys): Likewise.
23388 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
23389 to follow ELF standard.
23391 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
23393 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
23394 (mips64r5900el-*-elf*): New configurations.
23395 * config/mips/mips-cpus.def (r5900): New processor.
23396 * config/mips/mips-tables.opt: Regenerate.
23397 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
23398 (mips_issue_rate): Handle PROCESSOR_R5900.
23399 (mips_reorg_process_insns): Force reorder mode for the R5900.
23400 * config/mips/mips.h (TARGET_MIPS5900): Define.
23401 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
23403 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
23405 * config/mips/mips.md (processor): Add r5900.
23406 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
23408 2013-06-04 Ian Bolton <ian.bolton@arm.com>
23410 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
23411 into function to generate MOVI instruction.
23412 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
23413 (aarch64_preferred_simd_mode): Turn into wrapper.
23414 (aarch64_output_scalar_simd_mov_immediate): New function.
23415 * config/aarch64/aarch64-protos.h: Add prototype for above.
23417 2013-06-04 Ian Bolton <ian.bolton@arm.com>
23419 * config/aarch64/aarch64.c (simd_immediate_info): Remove
23420 element_char member.
23421 (sizetochar): Return signed char.
23422 (aarch64_simd_valid_immediate): Remove elchar and other
23423 unnecessary variables.
23424 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
23425 Calculate element_char as required.
23426 * config/aarch64/aarch64-protos.h: Update and move prototype
23427 for aarch64_output_simd_mov_immediate.
23428 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
23431 2013-06-04 Ian Bolton <ian.bolton@arm.com>
23433 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
23434 information completed by aarch64_simd_valid_immediate.
23435 (aarch64_legitimate_constant_p): Update arguments.
23436 (aarch64_simd_valid_immediate): Work with struct rather than many
23438 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
23439 (aarch64_simd_make_constant): Update arguments.
23440 (aarch64_output_simd_mov_immediate): Work with struct rather than
23441 many pointers. Output immediate directly rather than as operand.
23442 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
23444 * config/aarch64/constraints.md (Dn): Update arguments.
23446 2013-06-04 Ian Bolton <ian.bolton@arm.com>
23448 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
23450 (aarch64_simd_immediate_valid_for_move): Remove.
23451 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
23452 (aarch64_simd_make_constant): Update call.
23453 (aarch64_output_simd_mov_immediate): Update call.
23454 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
23456 * config/aarch64/constraints.md (Dn): Update call.
23458 2013-06-04 Ian Bolton <ian.bolton@arm.com>
23460 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
23461 return type to bool for prototype.
23462 (aarch64_legitimate_constant_p): Check for true instead of not -1.
23463 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
23464 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
23466 2013-06-04 Catherine Moore <clm@codesourcery.com>
23468 * config/mips/mips.opt (meva): New.
23469 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
23470 (ASM_SPEC): Handle -meva.
23471 * doc/invoke.texi (meva): Document.
23473 2013-06-04 Alan Modra <amodra@gmail.com>
23475 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
23478 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23480 * rtl.def: Add extra fourth optional field to define_cond_exec.
23481 * gensupport.c (process_one_cond_exec): Process attributes from
23483 * doc/md.texi: Document fourth field in define_cond_exec.
23485 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
23487 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
23488 out the processing order as in store_bit_field_1.
23490 2013-06-04 Jan Hubicka <jh@suse.cz>
23492 PR middle-end/57500
23493 * cgraphunit.c (cgraph_process_same_body_aliases): Create
23494 non-VAR_DECL node if it does not exist yet.
23496 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
23498 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
23499 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
23500 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
23501 target_cpu_default setting.
23503 2013-06-03 Teresa Johnson <tejohnson@google.com>
23505 * dumpfile.c (opt_info_switch_p): Change -fopt-info
23506 default to -fopt-info=optimized instead of all.
23507 * doc/invoke.texi: Ditto.
23508 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
23509 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
23510 (execute_vect_slp): Emit BB vectorization success under
23511 MSG_OPTIMIZED_LOCATIONS.
23512 * tree-vect-slp.c (vect_slp_transform_bb): Change
23513 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
23514 * tree-vect-loop.c (vect_transform_loop): Ditto.
23516 2013-06-03 Jason Merrill <jason@redhat.com>
23519 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23520 Use TARGET_EXPR for C++.
23522 2013-06-03 Jakub Jelinek <jakub@redhat.com>
23524 PR rtl-optimization/57268
23525 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
23526 if DEBUG_INSN_P (insn).
23529 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
23531 PR rtl-optimization/57268
23532 * sched-deps.c (sched_analyze_2): Flush dependence lists if
23533 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23535 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
23537 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
23538 (ix86_avoid_lea_for_addr): Likewise.
23539 (exact_dependency_1): Likewise.
23540 (ix86_adjust_cost): Likewise.
23541 (swap_top_of_ready_list): Fix formatting and !reload_completed check
23543 (do_reorder_for_imul): Fix typo, formatting and
23544 !reload_completed check removed.
23545 (ix86_sched_reorder): Fix typo and formatting.
23546 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
23549 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
23551 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
23553 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
23555 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
23556 <STRING_CST>: Likewise.
23557 <VECTOR_CST>: Likewise.
23559 2013-06-01 Janus Weil <janus@gcc.gnu.org>
23560 Mikael Morin <mikael@gcc.gnu.org>
23562 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
23563 * config.in: Regenerated.
23564 * configure: Regenerated.
23566 2013-06-01 Jan Hubicka <jh@suse.cz>
23568 PR middle-end/57366
23569 * cgraphunit.c (compile): When weakref is not supported,
23570 set up transparent aliases before final output pass.
23571 * varasm.c (assemble_alias): Do not try to do it here.
23573 2013-06-01 Jan Hubicka <jh@suse.cz>
23575 PR middle-end/57467
23576 * passes.c (for_per_function): Skip unanalyzed functions.
23578 2013-06-01 Jan Hubicka <jh@suse.cz>
23580 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
23581 (lto_symtab_merge_symbols_1): ... this one.
23582 (lto_symtab_merge_cgraph_nodes): Rename to ...
23583 (lto_symtab_merge_symbols): ... this one; simplify.
23584 * cgraph.c (same_body_aliases_done): Rename to ...
23585 (cpp_implicit_aliases_done): ... this one.
23586 (cgraph_create_function_alias): Update.
23587 (cgraph_same_body_alias): Update.
23588 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
23589 (verify_edge_corresponds_to_fndecl): Simplify.
23590 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
23591 (cgraph_node): Remove same_body_alias.
23592 (varpool_node): Remove alias_of and extra_name_alias.
23593 (same_body_aliases_done): Rename to ..
23594 (cpp_implicit_aliases_done): ... this one.
23595 (symtab_alias_ultimate_target): Add default parameter.
23596 (symtab_resolve_alias): New function.
23597 (fixup_same_cpp_alias_visibility): Declare.
23598 (cgraph_function_node): Add default parameter.
23599 (cgraph_node_asm_name): Likewise.
23600 (cgraph_function_or_thunk_node): Add default parameter; do
23601 not ICE when it is NULL.
23602 (varpool_variable_node): Likewise.
23603 * tree-emutls.c (create_emultls_var): Update.
23604 (ipa_lower_emutls): Update.
23605 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
23606 (cgraph_reset_node): Reset alias info.
23607 (cgraph_finalize_function): Update.
23608 (fixup_same_cpp_alias_visibility): Move to symtab.c.
23609 (analyze_function): Simplify.
23610 (cgraph_process_same_body_aliases): Simplify.
23611 (analyze_functions): Fixup same body aliases.
23612 (handle_alias_pairs): Simplify.
23613 (assemble_thunk): Update.
23614 (assemble_thunks_and_aliases): Update.
23615 (output_weakrefs): Rewrite.
23616 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
23617 (lto_output_varpool_node): Likewise.
23618 (compute_ltrans_boundary): Remve assert.
23619 (get_alias_symbol): New functoin.
23620 (input_node): Rewrite alias handling.
23621 (input_varpool_node): Likewise.
23622 * ipa-pure-const.c (propagate_pure_const): Fix formating.
23623 * ipa.c (process_references): Handle weakrefs correctly.
23624 (symtab_remove_unreachable_nodes): Likewise.
23625 * trans-mem.c (get_cg_data): Update.
23626 (ipa_tm_create_version_alias): Update.
23627 (ipa_tm_execute): Update.
23628 * symtab.c (dump_symtab_base): Dump aliases.
23629 (verify_symtab_base): Verify aliases.
23630 (symtab_node_availability): New function.
23631 (symtab_alias_ultimate_target): Simplify.
23632 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
23633 handle all the fixup cases.
23634 (symtab_resolve_alias): New function.
23635 * passes.c (ipa_write_summaries): Handle weakrefs.
23636 * varpool.c (varpool_analyze_node): Simplify.
23637 (assemble_aliases): Update.
23638 (varpool_create_variable_alias): Simplify.
23639 (varpool_extra_name_alias): Simplify.
23640 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
23641 (lto_symtab_merge_symbols): ... this one.
23643 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
23646 PR rtl-optimization/57268
23647 * sched-deps.c (sched_analyze_2): Flush dependence lists if
23648 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23650 2013-06-01 Tobias Burnus <burnus@net-b.de>
23652 Partially reverted:
23653 2013-05-31 Tobias Burnus <burnus@net-b.de>
23655 PR middle-end/57073
23656 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
23659 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
23661 PR rtl-optimization/57268
23662 * sched-deps.c (sched_analyze_2): Flush dependence lists if
23663 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23665 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
23667 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
23668 unordered comparison operators when -fno-trapping-math is in effect
23670 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
23671 and implement unordered comparison operators properly on the e500.
23673 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
23675 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
23676 for constant scalar integers.
23677 (simplify_relational_operation_1): Likewise.
23679 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
23681 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
23682 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
23685 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
23686 Igor Zamyatin <igor.zamyatin@intel.com>
23688 Silvermont (SLM) architecture performance tuning.
23689 * config/i386/i386.h (enum ix86_tune_indices): Add
23690 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
23691 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
23693 * config/i386/i386.c (initial_ix86_tune_features)
23694 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
23695 (ix86_lea_outperforms): Handle Silvermont tuning.
23696 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
23698 (ix86_use_lea_for_mov): Likewise.
23699 (ix86_avoid_lea_for_addr): Likewise.
23700 (ix86_lea_for_add_ok): Likewise.
23701 (exact_dependency_1): New function.
23702 (exact_store_load_dependency): Likewise.
23703 (ix86_adjust_cost): Handle Silvermont tuning.
23704 (do_reoder_for_imul): Likewise.
23705 (swap_top_of_ready_list): New function.
23706 (ix86_sched_reorder): Changed to handle Silvermont tuning.
23708 * config/i386/i386.md (peepholes that split memory operand in fp
23711 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
23713 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23714 Remove un-necessary braces.
23716 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
23718 * config/aarch64/aarch64.c (aarch64_classify_symbol):
23719 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
23721 2013-05-31 Tobias Burnus <burnus@net-b.de>
23723 PR middle-end/57073
23724 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
23726 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23729 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
23730 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
23731 * config/arm/neon.md (iordi3_neon): Remove.
23732 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
23733 * config/arm/predicates.md (imm_for_neon_logic_operand):
23734 Move to earlier in the file.
23735 (neon_logic_op2): Likewise.
23736 (arm_iordi_operand_neon): New predicate.
23738 2013-05-31 Richard Biener <rguenther@suse.de>
23740 PR tree-optimization/57478
23741 PR tree-optimization/57453
23742 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
23745 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23747 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
23748 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
23750 2013-05-30 Tobias Burnus <burnus@net-b.de>
23751 Thomas Koenig <tkoenig@gcc.gnu.org>
23753 PR middle-end/57073
23754 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
23755 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
23757 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
23759 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
23761 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
23763 * target.def (register_usage_leveling_p): New hook.
23764 * targhooks.c (default_register_usage_leveling_p): New.
23765 * targhooks.h (default_register_usage_leveling_p): New prototype.
23766 * lra-assigns.c (register_usage_leveling_p): Use the hook.
23767 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
23768 * doc/tm.texi: Update.
23769 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
23771 2013-05-30 Ian Bolton <ian.bolton@arm.com>
23773 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
23774 (*insv_reg<mode>): New define_insn.
23776 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
23778 PR rtl-optimization/57439
23779 * postreload.c (move2add_valid_value_p): Check that we have
23780 a zero subreg_regno_offset when accessing the register in
23781 the requested mode.
23783 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
23784 Igor Zamyatin <igor.zamyatin@intel.com>
23786 Silvermont (SLM) architecture pipeline model, tuning and
23788 * config.gcc: Add slm config options and target.
23790 * config/i386/slm.md: New.
23792 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
23794 * config/i386/i386-c.c (ix86_target_macros_internal): New case
23796 (ix86_target_macros_internal): Likewise.
23798 * config/i386/i386.c (slm_cost): New cost.
23799 (m_SLM): New macro flag.
23800 (initial_ix86_tune_features): Set m_SLM.
23801 (x86_accumulate_outgoing_args): Likewise.
23802 (x86_arch_always_fancy_math_387): Likewise.
23803 (processor_target_table): Add slm cost.
23804 (cpu_names): Add slm cpu name.
23805 (x86_option_override_internal): Set SLM ISA.
23806 (ix86_issue_rate): New case PROCESSOR_SLM.
23807 (ia32_multipass_dfa_lookahead): Likewise.
23808 (fold_builtin_cpu): Add slm.
23810 * config/i386/i386.h (TARGET_SLM): New target macro.
23811 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
23812 (processor_type): Add PROCESSOR_SLM.
23814 * config/i386/i386.md (cpu): Add new value "slm".
23815 (slm.md): Include slm.md.
23817 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
23818 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23820 * config/arm/arm-protos.h: Add and update function protos.
23821 * config/arm/arm.c (use_simple_return_p): New added.
23822 (thumb2_expand_return): Check simple_return flag.
23823 * config/arm/arm.md: Add simple_return and conditional simple_return.
23824 * config/arm/iterators.md: Add iterator for return and simple_return.
23826 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23828 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
23829 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
23830 (arm_emit_vfp_multi_reg_pop): Likewise.
23831 (thumb2_emit_ldrd_pop): Likewise.
23832 (arm_expand_epilogue): Add misc REG_CFA notes.
23833 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
23835 2013-05-29 Lawrence Crowl <crowl@google.com>
23837 * config/arm/t-arm: Update for below.
23839 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
23840 Change type to hash_table. Update dependent calls and types.
23842 * config/i386/t-cygming: Update for below.
23844 * config/i386/t-interix: Update for below.
23846 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
23847 Change type to hash_table. Update dependent calls and types.
23848 (i386_find_on_wrapper_list::wrappers): Likewise.
23850 * config/ia64/t-ia64: Update for below.
23852 * config/ia64/ia64.c (bundle_state_table):
23853 Change type to hash_table. Update dependent calls and types.
23855 * config/mips/mips.c (mips_reorg_process_insns::htab):
23856 Change type to hash_table. Update dependent calls and types.
23858 * config/sol2.c (solaris_comdat_htab):
23859 Change type to hash_table. Update dependent calls and types.
23861 * config/t-sol2: Update for above.
23863 2013-05-29 Teresa Johnson <tejohnson@google.com>
23865 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
23866 functions are not yet marked as defined.
23868 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
23869 Pat Haugen <pthaugen@us.ibm.com>
23870 Peter Bergner <bergner@vnet.ibm.com>
23872 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
23876 (vrotl<mode>3): Likewise.
23877 (vashl<mode>3): Likewise.
23878 (vlshr<mode>3): Likewise.
23879 (vashr<mode>3): Likewise.
23881 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23882 support for power8 V2DI builtins.
23884 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
23885 power8 V2DI builtins.
23886 (vupkhsw): Likewise.
23887 (vupklsw): Likewise.
23888 (vaddudm): Likewise.
23889 (vminsd): Likewise.
23890 (vmaxsd): Likewise.
23891 (vminud): Likewise.
23892 (vmaxud): Likewise.
23893 (vpkudum): Likewise.
23894 (vpksdss): Likewise.
23895 (vpkudus): Likewise.
23896 (vpksdus): Likewise.
23901 (vsubudm): Likewise.
23902 (vcmpequd): Likewise.
23903 (vcmpgtsd): Likewise.
23904 (vcmpgtud): Likewise.
23905 (vcmpequd_p): Likewise.
23906 (vcmpgtsd_p): Likewise.
23907 (vcmpgtud_p): Likewise.
23908 (vupkhsw): Likewise.
23909 (vupklsw): Likewise.
23910 (vaddudm): Likewise.
23911 (vmaxsd): Likewise.
23912 (vmaxud): Likewise.
23913 (vminsd): Likewise.
23914 (vminud): Likewise.
23915 (vpksdss): Likewise.
23916 (vpksdus): Likewise.
23917 (vpkudum): Likewise.
23918 (vpkudus): Likewise.
23923 (vsubudm): Likewise.
23925 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
23926 support for power8 V2DI instructions.
23928 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
23929 power8 V2DI instructions. Combine pack and unpack insns to use an
23930 iterator for each mode. Check whether a particular mode supports
23931 Altivec instructions instead of just checking TARGET_ALTIVEC.
23932 (UNSPEC_VPKUWUM): Likewise.
23933 (UNSPEC_VPKSHSS): Likewise.
23934 (UNSPEC_VPKSWSS): Likewise.
23935 (UNSPEC_VPKUHUS): Likewise.
23936 (UNSPEC_VPKSHUS): Likewise.
23937 (UNSPEC_VPKUWUS): Likewise.
23938 (UNSPEC_VPKSWUS): Likewise.
23939 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
23940 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
23941 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
23942 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
23943 (UNSPEC_VUPKHSB): Likewise.
23944 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
23945 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
23946 (UNSPEC_VUPKHSH): Likewise.
23947 (UNSPEC_VUPKLSB): Likewise.
23948 (UNSPEC_VUPKLSH): Likewise.
23950 (VI_char): Likewise.
23951 (VI_scalar): Likewise.
23952 (VI_unit): Likewise.
23954 (VP_small): Likewise.
23955 (VP_small_lc): Likewise.
23956 (VU_char): Likewise.
23957 (add<mode>3): Likewise.
23958 (altivec_vaddcuw): Likewise.
23959 (altivec_vaddu<VI_char>s): Likewise.
23960 (altivec_vadds<VI_char>s): Likewise.
23961 (sub<mode>3): Likewise.
23962 (altivec_vsubcuw): Likewise.
23963 (altivec_vsubu<VI_char>s): Likewise.
23964 (altivec_vsubs<VI_char>s): Likewise.
23965 (altivec_vavgs<VI_char>): Likewise.
23966 (altivec_vcmpbfp): Likewise.
23967 (altivec_eq<mode>): Likewise.
23968 (altivec_gt<mode>): Likewise.
23969 (altivec_gtu<mode>): Likewise.
23970 (umax<mode>3): Likewise.
23971 (smax<mode>3): Likewise.
23972 (umin<mode>3): Likewise.
23973 (smin<mode>3): Likewise.
23974 (altivec_vpkuhum): Likewise.
23975 (altivec_vpkuwum): Likewise.
23976 (altivec_vpkshss): Likewise.
23977 (altivec_vpkswss): Likewise.
23978 (altivec_vpkuhus): Likewise.
23979 (altivec_vpkshus): Likewise.
23980 (altivec_vpkuwus): Likewise.
23981 (altivec_vpkswus): Likewise.
23982 (altivec_vpks<VI_char>ss): Likewise.
23983 (altivec_vpks<VI_char>us): Likewise.
23984 (altivec_vpku<VI_char>us): Likewise.
23985 (altivec_vpku<VI_char>um): Likewise.
23986 (altivec_vrl<VI_char>): Likewise.
23987 (altivec_vsl<VI_char>): Likewise.
23988 (altivec_vsr<VI_char>): Likewise.
23989 (altivec_vsra<VI_char>): Likewise.
23990 (altivec_vsldoi_<mode>): Likewise.
23991 (altivec_vupkhsb): Likewise.
23992 (altivec_vupkhs<VU_char>): Likewise.
23993 (altivec_vupkls<VU_char>): Likewise.
23994 (altivec_vupkhsh): Likewise.
23995 (altivec_vupklsb): Likewise.
23996 (altivec_vupklsh): Likewise.
23997 (altivec_vcmpequ<VI_char>_p): Likewise.
23998 (altivec_vcmpgts<VI_char>_p): Likewise.
23999 (altivec_vcmpgtu<VI_char>_p): Likewise.
24000 (abs<mode>2): Likewise.
24001 (vec_unpacks_hi_v16qi): Likewise.
24002 (vec_unpacks_hi_v8hi): Likewise.
24003 (vec_unpacks_lo_v16qi): Likewise.
24004 (vec_unpacks_hi_<VP_small_lc>): Likewise.
24005 (vec_unpacks_lo_v8hi): Likewise.
24006 (vec_unpacks_lo_<VP_small_lc>): Likewise.
24007 (vec_pack_trunc_v8h): Likewise.
24008 (vec_pack_trunc_v4si): Likewise.
24009 (vec_pack_trunc_<mode>): Likewise.
24011 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
24013 (vec_vmaxsd): Likewise.
24014 (vec_vmaxud): Likewise.
24015 (vec_vminsd): Likewise.
24016 (vec_vminud): Likewise.
24017 (vec_vpksdss): Likewise.
24018 (vec_vpksdus): Likewise.
24019 (vec_vpkudum): Likewise.
24020 (vec_vpkudus): Likewise.
24021 (vec_vrld): Likewise.
24022 (vec_vsld): Likewise.
24023 (vec_vsrad): Likewise.
24024 (vec_vsrd): Likewise.
24025 (vec_vsubudm): Likewise.
24026 (vec_vupkhsw): Likewise.
24027 (vec_vupklsw): Likewise.
24029 2013-05-29 Jan Hubicka <jh@suse.cz>
24031 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
24032 flags; reorder rest of fields in more consistent way.
24033 (varpool_node): Remove analyzed, finalized and alias.
24034 (cgraph_ndoe): Likewise.
24035 (symtab_alias_ultimate_target): New function.
24036 (cgraph_function_node): Move offline.
24037 (cgraph_reset_node): Declare.
24038 (cgraph_comdat_can_be_unshared_p): Remove.
24039 (varpool_remove_initializer): Declare.
24040 (varpool_first_defined_variable, varpool_next_defined_variable
24041 cgraph_first_defined_function, cgraph_next_defined_function): Update.
24042 (cgraph_function_with_gimple_body_p): Update.
24043 (varpool_all_refs_explicit_p): Update.
24044 (symtab_alias_target): New function.
24045 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
24046 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
24047 (cgraph_function_or_thunk_node): Simplify using
24048 symtab_alias_ultimate_target.
24049 (varpool_variable_node): Likewise.
24050 * cgraph.c (cgraph_create_function_alias): Update.
24051 (cgraph_add_thunk): Update.
24052 (cgraph_remove_node): Update.
24053 (dump_cgraph_node): Do not dump removed flags.
24054 (cgraph_function_body_availability): Update.
24055 (cgraph_propagate_frequency): Update.
24056 (verify_cgraph_node): Check sanity of local flag.
24057 (cgraph_function_node): Move here from cgraph.h; revamp for
24058 cgraph_function_or_thunk_node.
24059 * lto-symtab.c (lto_varpool_replace_node): Update.
24060 (lto_symtab_resolve_can_prevail_p): Update.
24061 (lto_symtab_merge_cgraph_nodes): Update.
24062 * ipa-cp.c (determine_versionability, initialize_node_lattices,
24063 propagate_constants_accross_call, devirtualization_time_bonus,
24064 ipcp_propagate_stage): Update.
24065 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
24066 * ipa-inline-transform.c (clone_inlined_nodes,
24067 preserve_function_body_p): Update.
24068 * ipa-reference.c (propagate): Update.
24069 (write_node_summary_p): Update.
24070 * toplev.c (wrapup_global_declaration_2): Update.
24071 * cgraphunit.c (cgraph_analyze_function): Rename to ...
24072 (analyze_function) ... this one.
24073 (cgraph_process_new_functions): Update.
24074 (cgraph_reset_node): Export.
24075 (cgraph_finalize_function): Update.
24076 (cgraph_add_new_function): Update.
24077 (process_function_and_variable_attributes): Update.
24078 (varpool_finalize_decl): Update.
24079 (symbol_finalized): Remove.
24080 (symbol_finalized_and_needed): Rename to ...
24081 (symbol_defined_and_needed): ... update.
24082 (cgraph_analyze_functions): Update.
24083 (handle_alias_pairs): Update.
24084 (mark_functions_to_output): Update.
24085 (assemble_thunk): Update.
24086 (output_in_order): Update.
24087 (output_weakrefs): Update.
24088 (finalize_compilation_unit): Update.
24089 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
24090 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
24091 input_node, input_varpool_node): Update.
24092 * dbxout.c (dbxout_expand_expr): Update.
24093 * cgraphclones.c (cgraph_clone_node): Update.
24094 (cgraph_copy_node_for_versioning): Update.
24095 (cgraph_materialize_clone): Update.
24096 (cgraph_materialize_all_clones): Update.
24097 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
24098 propagate_pure_const, propagate_nothrow): Update.
24099 * lto-streamer-out.c (lto_output, write_symbol): Update.
24100 * ipa-utils.c (ipa_reverse_postorder): Update.
24101 * ipa-inline.c (can_inline_edge_p): Update.
24102 (update_caller_keys, ipa_inline): Update.
24103 * dwarf2out.c (reference_to_unused,
24104 premark_types_used_by_global_vars_helper): Update.
24105 * tree-eh.c (tree_could_trap_p): Update.
24106 * ipa-split.c (consider_split, execute_split_functions): Update.
24107 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
24108 has_addr_references_p): Update; move ahead in file for better
24110 (process_references): Simplify.
24111 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
24112 bodies are removed.
24113 (cgraph_comdat_can_be_unshared_p): Make static.
24114 (cgraph_externally_visible_p): Update.
24115 (varpool_externally_visible_p): Update.
24116 (function_and_variable_visibility): Update.
24117 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
24118 ipa_tm_mark_force_output_node): Update.
24119 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
24120 estimate_edge_devirt_benefit, inline_generate_summary,
24121 inline_write_summary): Update.
24122 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
24123 * ipa-prop.c (ipa_compute_jump_functions): Update.
24124 (ipa_print_node_params, ipa_prop_read_section,
24125 ipa_update_after_lto_read, read_replacements_section): Update.
24126 * varasm.c (mark_decl_referenced): Update.
24127 (assemble_alias, dump_tm_clone_pairs): Update.
24128 * tree-inline.c (copy_bb): Update.
24129 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
24131 * symtab.c (dump_symtab_base): Print new flags.
24132 (verify_symtab_base): Verify new flags.
24133 (symtab_alias_ultimate_target): New function.
24134 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
24135 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
24137 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
24139 * i386.c (ix86_get_function_versions_dispatcher,
24140 ix86_generate_version_dispatcher_body): Update.
24141 (fold_builtin_cpu): Use varpool_add_new_variable.
24142 * varpool.c (varpool_remove_initializer): Break out from ...
24143 (varpool_remove_node): ... this one.
24144 (dump_varpool_node, varpool_node_for_asm,
24145 cgraph_variable_initializer_availability, varpool_analyze_node,
24146 varpool_assemble_decl, varpool_remove_unreferenced_decls,
24147 varpool_finalize_named_section_flags, varpool_create_variable_alias):
24150 2013-05-29 Jan Hubicka <jh@suse.cz>
24152 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
24154 2013-05-29 Easwaran Raman <eraman@google.com>
24156 PR tree-optimization/57442
24157 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
24158 when control exits the main loop.
24160 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
24162 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
24164 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
24165 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
24166 * rx/t-rx: Add rx100 under multi library matches option for nofpu
24169 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24171 PR tree-optimization/57441
24172 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
24173 Don't limit size of incr_vec to number of candidates.
24175 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
24177 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
24178 and mips16 directories.
24179 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
24180 (MULTILIB_DIRNAMES): Ditto.
24181 (MULTILIB_EXCEPTIONS): Add new exceptions.
24182 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
24183 (MULTILIB_DIRNAMES): Ditto.
24184 (MULTILIB_EXCEPTIONS): Add new exceptions.
24186 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
24187 Marcus Shawcroft <marcus.shawcroft@arm.com>
24189 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
24190 SYMBOL_TINY_ABSOLUTE.
24191 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
24192 SYMBOL_TINY_ABSOLUTE.
24193 (aarch64_expand_mov_immediate): Likewise.
24194 (aarch64_classify_symbol): Likewise.
24195 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
24196 Permit SYMBOL_TINY_ABSOLUTE.
24197 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
24199 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
24200 Marcus Shawcroft <marcus.shawcroft@arm.com>
24202 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
24203 Refactor if/switch. Replace gcc_assert with if.
24205 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
24207 * config/i386/i386.c (initial_ix86_tune_features): Enable
24208 FP Reassociation for AMD bdver1 and bdver2.
24210 2013-05-29 Martin Jambor <mjambor@suse.cz>
24212 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
24213 and IMAGPART_EXPR do not occur within other handled_components.
24215 2013-05-29 Richard Biener <rguenther@suse.de>
24217 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
24218 access on whether the use is in the BB we currently try to
24220 (vect_bb_vectorization_profitable_p): Pass the BB we currently
24221 vectorize to vect_bb_slp_scalar_cost.
24223 2013-05-29 Richard Biener <rguenther@suse.de>
24225 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
24226 computing scalar cost offsetted by stmts that are kept live
24228 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
24229 for computation of scalar cost.
24231 2013-05-28 Steve Ellcey <sellcey@mips.com>
24233 * config/mips/mips-cpus.def (mips32r2): Change processor type.
24235 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
24237 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
24238 array notation built-in reduction functions.
24239 * doc/passes.texi (Passes): Added documentation about changes done
24241 * doc/invoke.texi (C Dialect Options): Added documentation about
24242 the -fcilkplus flag.
24243 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
24244 (BUILTINS_DEF): Depend on cilkplus.def.
24245 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
24246 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
24247 * cilkplus.def: New file.
24249 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
24251 PR rtl-optimization/57439
24252 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
24254 2013-05-28 Easwaran Raman <eraman@google.com>
24256 PR tree-optimization/57337
24257 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
24258 (find_insert_point): Correctly identify the insertion point
24259 when two statements with the same UID is compared.
24261 2013-05-28 Richard Biener <rguenther@suse.de>
24263 PR tree-optimization/56787
24264 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
24265 from the list of data references.
24266 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
24268 (vect_analyze_loop_operations): Likewise.
24269 (vect_transform_loop): Remove clobbers.
24271 2013-05-28 Martin Jambor <mjambor@suse.cz>
24273 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
24274 and REALPART_EXPRs have scalar type.
24276 2013-05-28 Richard Biener <rguenther@suse.de>
24278 PR tree-optimization/57411
24279 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
24281 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
24282 virtual operand propagation.
24284 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
24286 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
24287 destination register for bmasksi_vis.
24288 (vector_init_bshuffle): Likewise.
24289 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
24291 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
24293 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
24294 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
24295 mode if the instruction isn't available in the original mode.
24296 * config/sparc/sparc.opt (mfix-ut699): New option.
24297 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
24298 (divdf3): Turn into expander.
24299 (divdf3_nofix): New insn.
24300 (divdf3_fix): Likewise.
24301 (divsf3): Disable if -mfix-ut699.
24302 (sqrtdf2): Turn into expander.
24303 (sqrtdf2_nofix): New insn.
24304 (sqrtdf2_fix): Likewise.
24305 (sqrtsf2): Disable if -mfix-ut699.
24307 2013-05-27 Richard Biener <rguenther@suse.de>
24309 PR middle-end/57412
24310 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
24311 block for the new loop.
24313 2013-05-27 Richard Biener <rguenther@suse.de>
24315 PR tree-optimization/57343
24316 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
24317 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
24318 (number_of_iterations_cond): Do not build the folded tree.
24320 2013-05-27 Richard Biener <rguenther@suse.de>
24323 PR middle-end/57381
24324 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
24325 OEP_CONSTANT_ADDRESS_OF retained.
24327 PR tree-optimization/57417
24328 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
24329 for unchanged base.
24330 (set_ssa_val_to): Compare addresses using
24331 get_addr_base_and_unit_offset.
24333 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
24335 PR rtl-optimization/56833
24336 * postreload.c (move2add_record_mode): New function.
24337 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
24338 (move2add_use_add2_insn): Use move2add_record_sym_value.
24339 (move2add_use_add3_insn): Likewise.
24340 (reload_cse_move2add): Use move2add_valid_value_p and
24341 move2add_record_mode. Invalidate call-clobbered and REG_INC
24342 affected regs by setting reg_mode to VOIDmode.
24343 (move2add_note_store): Don't pretend the inside of a SUBREG is
24344 the actual destination. Invalidate single/leading registers by
24345 setting reg_mode to VOIDmode.
24346 Use move2add_record_sym_value, move2add_valid_value_p and
24347 move2add_record_mode.
24349 2013-05-27 Richard Biener <rguenther@suse.de>
24351 PR tree-optimization/57396
24352 * tree-affine.c (double_int_constant_multiple_p): Properly
24353 return false for val == 0 and div != 0.
24355 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
24357 * config/mips/mips.h: Use #elif in preprocessor conditions.
24359 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
24362 * config/mips/constraints.md (kl): New constraint.
24363 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
24364 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
24365 constraint for operand 0. Split after CSE for MIPS16. Emit a move
24366 from LO for MIPS16.
24367 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
24369 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
24372 * config/mips/mips.c (mips_can_inline_p): New function.
24373 (TARGET_CAN_INLINE_P): Define.
24375 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
24377 * sched-int.h (ds_t, dw_t): Make unsigned int.
24378 Fix documentation that describes how all the ds_t bits are used.
24379 Reserve the last bit for delayed-branch scheduling.
24380 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
24381 (BITS_PER_DEP_WEAK): Fix definition and documentation.
24382 (gen_dep_weak_1): Remove prototype.
24383 * sched-deps.c (get_dep_weak_1): Make static.
24384 * target.def (speculate_insn, needs_block_p, gen_spec_check,
24385 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
24386 * doc/tm.texi: Regenerate.
24387 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
24389 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
24392 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
24394 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
24395 Sandra Loosemore <sandra@codesourcery.com>
24397 * config.gcc (powerpc-*): Allow native for with-cpu.
24399 2013-05-24 Jeff Law <law@redhat.com>
24401 PR tree-optimization/57124
24402 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
24403 conversion feeding a condition if the range has an overflow
24404 if -fstrict-overflow. Add warnings for when we do make the
24407 2013-05-24 Dehao Chen <dehao@google.com>
24409 * tree-cfg.c (locus_discrim_map): Fix the typo.
24410 (locus_discrim_hasher): Likewise.
24411 (locus_discrim_hasher::hash): Likewise.
24412 (locus_discrim_hasher::equal): Likewise.
24414 2013-05-24 Martin Jambor <mjambor@suse.cz>
24416 PR tree-optimization/57294
24417 * cgraph.h (ipa_record_stmt_references): Declare.
24418 * cgraphbuild.c (ipa_record_stmt_references): New function.
24419 (build_cgraph_edges): Use ipa_record_stmt_references.
24420 (rebuild_cgraph_edges): Likewise.
24421 (cgraph_rebuild_references): Likewise.
24422 * ipa-prop.c (ipa_modify_call_arguments): Discard references
24423 associated with the old statement and build references from the
24424 newly built statements.
24425 * ipa-ref.c (ipa_remove_stmt_references): New function.
24426 * ipa-ref.h (ipa_remove_stmt_references): Declare.
24428 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
24430 * lra-constraints.c (emit_spill_move): Use smaller mode for
24432 (check_and_process_move): Consider mem-reg moves for secondary
24434 (curr_insn_transform): Don't lose insns emitted before for
24435 secondary memory moves.
24436 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
24437 reg set up in the current insn.
24439 2013-05-24 Dehao Chen <dehao@google.com>
24441 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
24443 (locus_descrim_hasher::equal): Likewise.
24444 (build_gimple_cfg): New discriminator assignment algorithm.
24445 (make_edges): Likewise.
24446 (next_discriminator_for_locus): Likewise.
24447 (same_line_p): Likewise.
24448 (assign_discriminators): Likewise.
24449 (make_cond_expr_edges): Likewise.
24450 (make_gimple_switch_edges): Likewise.
24451 (make_goto_expr_edges): Likewise.
24452 (make_gimple_asm_edges): Likewise.
24454 2013-05-24 Ian Bolton <ian.bolton@arm.com>
24456 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
24457 X format specifier to only display bottom 16 bits.
24458 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
24459 immediate to match for operand 2, since it will be masked.
24461 2013-05-24 Richard Biener <rguenther@suse.de>
24463 PR tree-optimization/57287
24464 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
24465 all SSA names that occur in abnormal PHIs.
24467 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
24470 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
24471 that index is not negative.
24473 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
24475 PR rtl-optimization/55177
24476 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
24477 (simplify_byte_swapping_operation): New.
24478 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
24479 (simplify_relational_operation_1): Deal with BSWAP.
24481 2013-05-23 Richard Henderson <rth@redhat.com>
24484 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
24485 (ix86_reorg): Call it.
24487 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
24490 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
24491 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
24492 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
24494 2013-05-23 Christian Bruel <christian.bruel@st.com>
24497 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
24499 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
24500 Marcus Shawcroft <marcus.shawcroft@arm.com>
24502 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
24503 * config/aarch64/constraints.md (Usa): Remove.
24504 * doc/md.texi (AArch64 Usa): Remove.
24506 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
24507 Marcus Shawcroft <marcus.shawcroft@arm.com>
24509 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
24510 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
24511 * config/aarch64/predicates.md (aarch64_const_address): Remove.
24512 (aarch64_mov_operand): Use aarch64_mov_operand_p.
24514 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
24516 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
24517 instruction (AdvSIMD).
24518 * config/aarch64/aarch64-builtins.c
24519 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
24520 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
24522 2013-05-23 Martin Jambor <mjambor@suse.cz>
24524 PR middle-end/57347
24525 * tree.h (contains_bitfld_component_ref_p): Declare.
24526 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
24527 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
24529 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
24530 not access a bit-field. Assert all final offsets are byte-aligned.
24532 2013-05-23 Richard Biener <rguenther@suse.de>
24534 PR tree-optimization/57380
24535 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
24536 least one invariant or re-used load.
24537 * passes.c (init_optimization_passes): Move pass_phiprop before
24540 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
24542 * config/aarch64/aarch64-simd.md
24543 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
24545 2013-05-23 Richard Biener <rguenther@suse.de>
24547 PR middle-end/57381
24548 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
24549 OEP_CONSTANT_ADDRESS_OF retained.
24551 2013-05-23 Jakub Jelinek <jakub@redhat.com>
24553 PR middle-end/57344
24554 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
24555 don't lower unit. Handle unit not being always BITS_PER_WORD.
24557 2013-05-23 Richard Biener <rguenther@suse.de>
24559 PR rtl-optimization/57341
24560 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
24561 instead of true_dependence.
24563 2013-05-22 David Malcolm <dmalcolm@redhat.com>
24565 * bb-reorder.c (branch_threshold): Make const.
24566 (exec_threshold): Ditto.
24568 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
24569 Pat Haugen <pthaugen@us.ibm.com>
24570 Peter Bergner <bergner@vnet.ibm.com>
24572 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
24573 documentation for the power8 crypto builtins.
24575 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
24577 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
24578 macros for defining power8 builtin functions.
24579 (BU_P8V_AV_2): Likewise.
24580 (BU_P8V_AV_P): Likewise.
24581 (BU_P8V_VSX_1): Likewise.
24582 (BU_P8V_OVERLOAD_1): Likewise.
24583 (BU_P8V_OVERLOAD_2): Likewise.
24584 (BU_CRYPTO_1): Likewise.
24585 (BU_CRYPTO_2): Likewise.
24586 (BU_CRYPTO_3): Likewise.
24587 (BU_CRYPTO_OVERLOAD_1): Likewise.
24588 (BU_CRYPTO_OVERLOAD_2): Likewise.
24589 (XSCVSPDP): Fix typo, point to the correct instruction.
24590 (VCIPHER): Add power8 crypto builtins.
24591 (VCIPHERLAST): Likewise.
24592 (VNCIPHER): Likewise.
24593 (VNCIPHERLAST): Likewise.
24594 (VPMSUMB): Likewise.
24595 (VPMSUMH): Likewise.
24596 (VPMSUMW): Likewise.
24597 (VPERMXOR_V2DI): Likewise.
24598 (VPERMXOR_V4SI: Likewise.
24599 (VPERMXOR_V8HI: Likewise.
24600 (VPERMXOR_V16QI: Likewise.
24601 (VSHASIGMAW): Likewise.
24602 (VSHASIGMAD): Likewise.
24603 (VPMSUM): Likewise.
24604 (VPERMXOR): Likewise.
24605 (VSHASIGMA): Likewise.
24607 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24608 __CRYPTO__ if the crypto instructions are available.
24609 (altivec_overloaded_builtins): Add support for overloaded power8
24612 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
24613 support for power8 crypto builtins.
24614 (builtin_function_type): Likewise.
24615 (altivec_init_builtins): Add support for builtins that take vector
24616 long long (V2DI) arguments.
24618 * config/rs6000/crypto.md: New file, define power8 crypto
24621 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
24622 Pat Haugen <pthaugen@us.ibm.com>
24623 Peter Bergner <bergner@vnet.ibm.com>
24625 * doc/invoke.texi (Option Summary): Add power8 options.
24626 (RS/6000 and PowerPC Options): Likewise.
24628 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
24629 constraints.md instead of rs6000.h. Reorder w* constraints. Add
24630 wm, wn, wr documentation.
24632 * config/rs6000/constraints.md (wm): New constraint for VSX
24633 registers if direct move instructions are enabled.
24634 (wn): New constraint for no registers.
24635 (wq): New constraint for quad word even GPR registers.
24636 (wr): New constraint if 64-bit instructions are enabled.
24637 (wv): New constraint if power8 vector instructions are enabled.
24638 (wQ): New constraint for quad word memory locations.
24640 * config/rs6000/predicates.md (const_0_to_15_operand): New
24641 constraint for 0..15 for crypto instructions.
24642 (gpc_reg_operand): If VSX allow registers in VSX registers as well
24643 as GPR and floating point registers.
24644 (int_reg_operand): New predicate to match only GPR registers.
24645 (base_reg_operand): New predicate to match base registers.
24646 (quad_int_reg_operand): New predicate to match even GPR registers
24647 for quad memory operations.
24648 (vsx_reg_or_cint_operand): New predicate to allow vector logical
24649 operations in both GPR and VSX registers.
24650 (quad_memory_operand): New predicate for quad memory operations.
24651 (reg_or_indexed_operand): New predicate for direct move support.
24653 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
24654 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
24655 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
24656 (POWERPC_MASKS): Add power8 options.
24657 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
24660 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24661 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
24663 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
24664 (-mpower8-fusion): New power8 options.
24665 (-mpower8-fusion-sign): Likewise.
24666 (-mpower8-vector): Likewise.
24667 (-mcrypto): Likewise.
24668 (-mdirect-move): Likewise.
24669 (-mquad-memory): Likewise.
24671 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
24672 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
24674 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
24675 (rs6000_debug_vector_unit): Add p8_vector.
24676 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
24677 definitions. Also print fusion state.
24678 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
24679 (rs6000_builtin_mask_calculate): Add power8 builtin support.
24680 (rs6000_option_override_internal): Add support for power8.
24681 (rs6000_common_init_builtins): Add debugging for skipped builtins
24682 if -mdebug=builtin.
24683 (rs6000_adjust_cost): Add power8 support.
24684 (rs6000_issue_rate): Likewise.
24685 (insn_must_be_first_in_group): Likewise.
24686 (insn_must_be_last_in_group): Likewise.
24687 (force_new_group): Likewise.
24688 (rs6000_register_move_cost): Likewise.
24689 (rs6000_opt_masks): Likewise.
24691 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
24692 power8 capable assembler, default to power7 options.
24693 (TARGET_DIRECT_MOVE): Likewise.
24694 (TARGET_CRYPTO): Likewise.
24695 (TARGET_P8_VECTOR): Likewise.
24696 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
24697 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
24698 (VECTOR_MEM_P8_VECTOR_P): Likewise.
24699 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
24700 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
24701 (TARGET_XSCVDPSPN): Likewise.
24702 (TARGET_XSCVSPDPN): Likewsie.
24703 (TARGET_SYNC_HI_QI): Likewise.
24704 (TARGET_SYNC_TI): Likewise.
24705 (MASK_CRYPTO): Likewise.
24706 (MASK_DIRECT_MOVE): Likewise.
24707 (MASK_P8_FUSION): Likewise.
24708 (MASK_P8_VECTOR): Likewise.
24709 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
24710 temporary used by some of the direct move instructions to get two FP
24711 temporary registers does not force creation of a stack frame.
24712 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
24713 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
24714 that any VSX registers are tieable, even if they are also an
24715 Altivec vector mode.
24716 (r6000_reg_class_enum): Add wm, wr, wv constraints.
24717 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
24718 (RS6000_BTM_CRYPTO): Likewise.
24719 (RS6000_BTM_COMMON): Likewise.
24721 * config/rs6000/rs6000.md (cpu attribute): Add power8.
24722 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
24723 (enum rs6000_vector): Add power8 vector support.
24725 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24729 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
24730 (any_sibcall_could_use_r3): this and handle indirect calls.
24731 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
24733 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24735 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
24737 2013-05-22 Richard Biener <rguenther@suse.de>
24739 PR middle-end/57349
24740 * profile.c (branch_prob): Do not split blocks that are
24741 abnormally receiving from ECF_RETURNS_TWICE functions.
24743 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24745 * recog.c (offsettable_address_addr_space_p): Fix calculation of
24746 address mode. Move pointer mode initialization to the same place.
24748 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
24750 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
24751 while it has any effect.
24753 2013-05-21 Easwaran Raman <eraman@google.com>
24755 PR tree-optimization/57322
24756 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
24757 UID of the statement added to the BB to be 1.
24759 2013-05-21 Jakub Jelinek <jakub@redhat.com>
24761 PR tree-optimization/57331
24762 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
24763 of conversion from pointer type to integral type with integer.
24765 2013-05-21 Martin Jambor <mjambor@suse.cz>
24768 * ipa-prop.c (ipa_read_node_info): Process param_used and
24769 controlled_uses in the same order as when writing.
24771 2013-05-21 Magnus Granberg <baldrick@free.fr>
24774 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
24776 2013-05-21 Richard Biener <rguenther@suse.de>
24778 PR tree-optimization/57318
24779 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
24780 estimate stmts with side-effects as likely eliminated.
24782 2013-05-21 Richard Biener <rguenther@suse.de>
24784 PR tree-optimization/57330
24785 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
24786 preserve the call stmts fntype.
24788 2013-05-21 Richard Biener <rguenther@suse.de>
24790 PR tree-optimization/57303
24791 * tree-ssa-sink.c (statement_sink_location): Improve killing
24792 stmt detection and properly handle self-assignments.
24794 2013-05-21 Christian Bruel <christian.bruel@st.com>
24796 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
24797 spanning registers. LEAF_REG_REMAP is supported only for contiguous
24798 registers. Set register size out of the PARALLEL loop.
24800 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
24803 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
24804 (*fmasf4, *fmasf4_media): New insns.
24806 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24808 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
24809 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
24810 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
24811 (mips_idiv_insns): Update the comments to say that the returned
24812 instruction counts are in units of BASE_INSN_LENGTH.
24813 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
24814 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
24815 using 2 rather than 4 as the length of indirect MIPS16 and
24816 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
24817 length of a NOP. Don't divide MIPS16 lengths by 2.
24818 (mips16_split_long_branches): Assume a branch is long if the
24819 length is greater than 4 rather than 8.
24820 * config/mips/mips.md (length): Give MIPS16 lengths directly,
24821 rather than multiplying them by 2. Multiply instruction counts
24822 by BASE_INSN_LENGTH rather than 4.
24823 (*jump_mips16, tls_get_tp_mips16_<mode>)
24824 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
24826 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24828 * config/mips/mips.md (extended_mips16): Remove branch case.
24829 (length): Remove duplicated extended_mips16 test.
24831 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24833 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
24835 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
24837 * recog.h (Recog_data): Rename to...
24838 (recog_data_d): ...this.
24839 (recog_data): Update accordingly.
24840 * recog.c (recog_data): Likewise.
24841 * reload.c (save_recog_data): Likewise.
24842 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
24843 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
24845 2013-05-17 Julian Brown <julian@codesourcery.com>
24847 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
24848 found in a REG_EQUAL note, invalidate it.
24850 2013-05-17 Easwaran Raman <eraman@google.com>
24852 * tree-ssa-reassoc.c (find_insert_point): New function.
24853 (insert_stmt_after): Likewise.
24854 (get_def_stmt): Likewise.
24855 (ensure_ops_are_available): Likewise.
24856 (not_dominated_by): Likewise.
24857 (rewrite_expr_tree): Do not move statements beyond what is
24858 necessary. Remove call to swap_ops_for_binary_stmt...
24859 (reassociate_bb): ... and move it here.
24860 (build_and_add_sum): Assign UIDs for new statements.
24861 (linearize_expr): Likewise.
24862 (do_reassoc): Renumber gimple statement UIDs.
24864 2013-05-17 Jan Hubicka <jh@suse.cz>
24866 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
24868 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
24869 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
24871 (output_weakrefs): Update.
24873 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
24874 Martin Jambor <mjambor@suse.cz>
24876 PR middle-end/57276
24877 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
24878 value that corresponds to the given aggval is found in values vector.
24880 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
24882 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
24883 sse, sse2, sse3, ssse3 and sse4a flags to options.
24885 2013-05-17 David Malcolm <dmalcolm@redhat.com>
24887 * gengtype-state.c: (s_expr_writer): New class, to handle
24888 prettifying of output layout of s-expressions.
24889 (state_writer): New class, to write out gtype.state.
24890 (state_written_type_count): Move this variable into member data of
24892 (s_expr_writer::s_expr_writer): New code: constructor for new class
24893 (state_writer::state_writer(): ditto
24894 (s_expr_writer::write_new_line): New function
24895 (s_expr_writer::write_any_indent): ditto
24896 (s_expr_writer::begin_s_expr): ditto
24897 (s_expr_writer::end_s_expr): ditto
24898 (write_state_fileloc): convert to method of state_writer...
24899 (state_writer:: write_state_fileloc): ...and use methods of
24900 s_expr_writer to write indentation into the gtype.state output file
24901 to visually represent the hierarchical structure of the list
24903 (write_state_fields): ditto, renaming to...
24904 (state_writer::write_state_fields)
24905 (write_state_a_string): ditto, renaming to...
24906 (state_writer::write_state_a_string)
24907 (write_state_string_option): ditto, renaming to...
24908 (state_writer::write_state_string_option)
24909 (write_state_type_option): ditto, renaming to...
24910 (state_writer::write_state_type_option)
24911 (write_state_nested_option): ditto, renaming to...
24912 (state_writer::write_state_nested_option)
24913 (write_state_option): ditto, renaming to...
24914 (state_writer::write_state_option)
24915 (write_state_options): ditto, renaming to...
24916 (state_writer::write_state_options)
24917 (write_state_lang_bitmap): ditto, renaming to...
24918 (state_writer::write_state_lang_bitmap)
24919 (write_state_version): ditto, renaming to...
24920 (state_writer::write_state_version)
24921 (write_state_scalar_type): ditto, renaming to...
24922 (state_writer::write_state_scalar_type)
24923 (write_state_string_type): ditto, renaming to...
24924 (state_writer::write_state_string_type)
24925 (write_state_undefined_type): ditto, renaming to...
24926 (state_writer::write_state_undefined_type)
24927 (write_state_struct_union_type): ditto, renaming to...
24928 (state_writer::write_state_struct_union_type)
24929 (write_state_struct_type): ditto, renaming to...
24930 (state_writer::write_state_struct_type)
24931 (write_state_user_struct_type): ditto, renaming to...
24932 (state_writer::write_state_user_struct_type)
24933 (write_state_lang_struct_type): ditto, renaming to...
24934 (state_writer::write_state_lang_struct_type)
24935 (write_state_param_struct_type): ditto, renaming to...
24936 (state_writer::write_state_param_struct_type)
24937 (write_state_pointer_type): ditto, renaming to...
24938 (state_writer::write_state_pointer_type)
24939 (write_state_array_type): ditto, renaming to...
24940 (state_writer::write_state_array_type)
24941 (write_state_gc_used): ditto, renaming to...
24942 (state_writer::write_state_gc_used)
24943 (write_state_common_type_content): ditto, renaming to...
24944 (state_writer::write_state_common_type_content)
24945 (write_state_type): ditto, renaming to...
24946 (state_writer::write_state_type)
24947 (write_state_pair_list): ditto, renaming to...
24948 (state_writer::write_state_pair_list)
24949 (write_state_pair): ditto, renaming to...
24950 (state_writer::write_state_pair)
24951 (write_state_typedefs): ditto, renaming to...
24952 (state_writer::write_state_typedefs)
24953 (write_state_structures): ditto, renaming to...
24954 (state_writer::write_state_structures)
24955 (write_state_param_structs): ditto, renaming to...
24956 (state_writer::write_state_param_structs)
24957 (write_state_variables): ditto, renaming to...
24958 (state_writer::write_state_variables)
24959 (write_state_srcdir): ditto, renaming to...
24960 (state_writer::write_state_srcdir)
24961 (write_state_files_list): ditto, renaming to...
24962 (state_writer::write_state_files_list)
24963 (write_state_languages): ditto, renaming to...
24964 (state_writer::write_state_languages)
24965 (write_state): create a state_writer instance and use it when
24966 writing out the state file
24968 2013-05-17 Mike Stump <mikestump@comcast.net>
24970 PR rtl-optimization/57304
24971 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
24972 accessing DF_REF_REAL_LOC.
24974 2013-05-17 Jakub Jelinek <jakub@redhat.com>
24976 PR rtl-optimization/57281
24977 PR rtl-optimization/57300
24978 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
24979 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
24980 what the other splitter did if the registers are dead.
24982 2013-05-17 Richard Biener <rguenther@suse.de>
24984 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
24987 2013-05-17 Jakub Jelinek <jakub@redhat.com>
24989 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
24992 2013-05-17 Marek Polacek <polacek@redhat.com>
24994 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
24995 length when doing non-zero store of storing '\0' to '\0'.
24997 2013-05-17 Jakub Jelinek <jakub@redhat.com>
24999 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
25000 vect_external_def oprnd1 with loop_vinfo, try to emit
25001 optional cast, negation and and stmts on the loop preheader
25002 edge instead of into the pattern def seq.
25004 PR tree-optimization/57051
25005 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
25006 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
25008 2013-05-16 Nick Clifton <nickc@redhat.com>
25010 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
25011 (rl78_is_naked_func): New function.
25012 (rl78_expand_prologue): Skip prologue generation for naked functions.
25013 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
25014 * doc/extend.texi (naked): Add RL78 to the list of processors
25015 that supports this attribute.
25017 2013-05-16 Jeff Law <law@redhat.com>
25019 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
25021 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
25023 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
25024 cache parameters using detect_caches_amd also for CYRIX,
25025 NSC and TM2 signatures.
25027 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
25028 Dzianis Kahanovich <mahatma@eu.by>
25032 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25033 VIA/Centaur processors and determine their cache parameters
25034 using detect_caches_amd.
25036 2013-05-16 Teresa Johnson <tejohnson@google.com>
25038 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
25039 (rtl_verify_edges): New function.
25040 (rtl_verify_bb_insns): Ditto.
25041 (rtl_verify_bb_pointers): Ditto.
25042 (rtl_verify_bb_insn_chain): Ditto.
25043 (rtl_verify_fallthru): Ditto.
25044 (rtl_verify_bb_layout): Ditto.
25045 (rtl_verify_flow_info_1): Outline checks into new functions.
25046 (rtl_verify_flow_info): Ditto.
25048 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
25050 * cfghooks.c (copy_bbs): Add update_dominance argument.
25051 * cfghooks.h (copy_bbs): Update prototype.
25052 * tree-cfg.c (gimple_duplicate_sese_region):
25053 Add update_dominance argument.
25054 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
25055 * tree-ssa-loop-ch.c (copy_loop_headers): Update
25056 gimple_duplicate_sese_region call.
25057 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
25058 Update copy_bbs call.
25059 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
25060 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
25062 2013-05-16 Jakub Jelinek <jakub@redhat.com>
25064 * tree-vectorizer.h (NUM_PATTERNS): Increment.
25065 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
25066 vect_recog_rotate_pattern.
25067 (vect_recog_rotate_pattern): New function.
25069 2013-05-16 Jason Merrill <jason@redhat.com>
25071 * Makefile.in (LLINKER): New variable.
25072 (mostlyclean): Remove link mutex.
25073 * configure.ac: Handle --enable-link-mutex.
25074 * lock-and-run.sh: New script.
25076 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25079 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
25082 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25084 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
25086 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
25088 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
25089 * config/arm/arm.c (next_consecutive_mem): New function.
25090 (gen_movmem_ldrd_strd): Likewise.
25091 * config/arm/arm.md (movmemqi): Update condition and code.
25092 (unaligned_loaddi, unaligned_storedi): New patterns.
25094 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25096 * config.gcc: Obsolete *-*-solaris2.9*.
25097 * doc/install.texi (Specific, *-*-solaris2*): Document it.
25099 2013-05-16 Richard Biener <rguenther@suse.de>
25101 * passes.c (init_optimization_passes): Move pass_parallelize_loops
25102 earlier, after GRAPHITE transforms and IV canonicalization.
25104 2013-05-16 Jakub Jelinek <jakub@redhat.com>
25106 * omp-low.c (extract_omp_for_data): For collapsed loops,
25107 if at least one of the loops is known at compile time to
25108 iterate zero times, set count to 0.
25109 (expand_omp_regimplify_p): New function.
25110 (expand_omp_for_generic): For collapsed loops, if at least
25111 one of the loops isn't known to iterate at least once,
25112 add runtime check with setting count to 0.
25113 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
25114 For unsigned types if it isn't known at compile time that
25115 the loop will iterate at least once, add runtime check to bypass
25116 the whole loop if initial condition isn't true.
25118 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
25120 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
25122 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
25124 PR middle-end/57286
25125 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
25126 transformations to avoid an infinite loop.
25128 2013-05-16 Marek Polacek <polacek@redhat.com>
25130 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
25132 2013-05-15 Leif Ekblad <leif@rdos.net>
25134 * config/i386/i386.c (ix86_decompose_address): Use
25135 DEFAULT_TLS_SEG_REG to access TLS segment register.
25136 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
25137 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
25138 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
25140 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
25143 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
25144 sibling calls to functions that would normally be lazily bound,
25145 unless $gp is call-clobbered.
25147 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
25149 * config/i386/i386.c (ix86_option_override_internal): Update
25150 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
25151 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
25152 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
25153 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
25155 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
25157 2013-05-15 Andreas Schwab <schwab@suse.de>
25159 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
25160 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
25163 2013-05-15 Teresa Johnson <tejohnson@google.com>
25165 * loop-unroll.c (report_unroll_peel): Check decision before
25166 emitting unroll/peel message.
25168 2013-05-15 Teresa Johnson <tejohnson@google.com>
25170 * function.h (has_bb_partition): New rtl_data flag.
25171 (bb_reorder_complete): Ditto.
25172 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
25173 instead of flag_reorder_blocks_and_partition.
25174 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
25175 with some enhancements.
25176 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
25177 * bb-reorder.c (connect_traces): Check for has_bb_partition
25178 instead of flag_reorder_blocks_and_partition.
25179 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
25180 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
25181 verify_hot_cold_block_grouping.
25182 (partition_hot_cold_basic_blocks): Set has_bb_partition.
25184 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25187 * config/arm/predicates.md (call_insn_operand): New predicate.
25188 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
25189 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
25190 if insn is not a tail call.
25191 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
25193 * config/arm/arm.h (enum reg_class): New caller save register class.
25194 (REG_CLASS_NAMES): Likewise.
25195 (REG_CLASS_CONTENTS): Likewise.
25196 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
25199 2013-05-15 Richard Biener <rguenther@suse.de>
25201 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
25202 of MSG_OPTIMIZED_LOCATIONS.
25203 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
25204 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
25206 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
25207 of MSG_OPTIMIZED_LOCATIONS.
25208 (execute_vect_slp): Likewise.
25209 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
25210 (vect_create_cond_for_alias_checks): Likewise.
25211 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
25212 (vect_recog_widen_mult_pattern): Likewise.
25213 (vect_recog_widen_sum_pattern): Likewise.
25214 (vect_recog_over_widening_pattern): Likewise.
25215 (vect_recog_widen_shift_pattern): Likewise.
25216 (vect_recog_vector_vector_shift_pattern): Likewise.
25217 (vect_recog_divmod_pattern): Likewise.
25218 (vect_recog_mixed_size_cond_pattern): Likewise.
25219 (vect_recog_bool_pattern): Likewise.
25220 (vect_pattern_recog_1): Likewise.
25222 2013-05-15 Martin Jambor <mjambor@suse.cz>
25224 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
25225 non-functions to builtin_unreachable.
25226 * ipa-inline-transform.c (inline_call): Do not assert estimates were
25227 correct when new direct edges were discovered.
25229 2013-05-15 Martin Jambor <mjambor@suse.cz>
25231 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
25232 header, print symbol order instead of node uid, print more information
25233 about indirect edge targets.
25234 (ipa_make_edge_direct_to_target): Print symbol order instead of node
25236 (ipa_make_edge_direct_to_target): Likewise.
25237 (remove_described_reference): Likewise.
25238 (propagate_controlled_uses): Likewise.
25239 (ipa_print_node_params): Also print symbol order.
25240 (ipcp_transform_function): Print symbol order instead of node uids.
25241 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
25242 (cgraph_get_create_real_symbol_node): Likewise.
25243 * ipa-cp.c (print_lattice): Likewise.
25244 (print_all_lattices): Likewise.
25245 (determine_versionability): Likewise.
25246 (initialize_node_lattices): Likewise.
25247 (estimate_local_effects): Likewise.
25248 (update_profiling_info): Likewise.
25249 (create_specialized_node): Likewise.
25250 (perhaps_add_new_callers): Likewise.
25251 (decide_about_value): Likewise.
25252 (decide_whether_version_node): Likewise.
25253 (identify_dead_nodes): Likewise.
25254 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
25255 (dump_inline_summary): Likewise.
25256 (estimate_node_size_and_time): Likewise.
25257 (inline_analyze_function): Likewise.
25258 * ipa-inline.c (report_inline_failed_reason): Likewise.
25259 (want_early_inline_function_p): Likewise.
25260 (edge_badness): Likewise.
25261 (update_edge_key): Likewise.
25262 (inline_small_functions): Likewise. Add dumping of order to two other
25264 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
25265 instead of node uids.
25266 (propagate_pure_const): Likewise.
25267 (propagate_pure_const): Likewise.
25268 * ipa-utils.c (dump_cgraph_node_set): Likewise.
25269 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
25270 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
25272 * tree-pretty-print.c (dump_function_header): Likewise.
25273 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
25274 Print symbol order instead of node uids.
25276 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25278 * config/s390/s390.c (s390_register_move_cost): Don't impose the
25279 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
25281 2013-05-15 Richard Biener <rguenther@suse.de>
25283 PR tree-optimization/57275
25284 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
25285 return value for fail to do runtime alias checks for gather loads.
25287 2013-05-15 Jan Hubicka <jh@suse.cz>
25291 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
25292 weakrefs are not external.
25293 (lto_symtab_merge_decls): Fix thinko when dealing with
25294 non-lto_symtab decls.
25295 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
25296 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
25297 * varpool.c (dump_varpool_node): Dump more flags.
25299 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
25301 * config/i386/i386.c (processor_alias_table): Add instruction
25302 FSGSBASE for AMD bdver3 architecture.
25304 2013-05-14 Jakub Jelinek <jakub@redhat.com>
25306 * tree.c (warn_deprecated_use): Print file:line using locus color.
25307 * diagnostic.c (diagnostic_report_current_module): Print file:line
25308 and file:line:column using locus color.
25310 2013-05-14 Mike Stump <mikestump@comcast.net>
25312 * gdbinit.in: Add __null.
25314 2013-05-14 Mike Stump <mikestump@comcast.net>
25316 * recog.h: Rename struct recog_data to Recog_data.
25317 * recog.c: Likewise.
25318 * reload.c (can_reload_into): Likewise.
25319 * config/picochip/picochip.c: Likewise.
25321 2013-05-14 Mike Stump <mikestump@comcast.net>
25323 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
25325 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
25327 * resource.h (struct resources): Remove unch_memory member.
25328 (CLEAR_RESOURCE): Don't clear unch_memory.
25329 * resource.c (mark_referenced_resources): Don't set it.
25330 (mark_set_resources): Likewise.
25331 (mark_target_live_regs): Don't clear it.
25332 (init_resource_info): Likewise.
25333 * reorg.c (resource_conflicts_p): Don't compare it.
25334 (redundant_insn): Don't set it.
25336 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
25338 * emit-rtl.c (next_label): Remove unused function.
25339 (skip_consecutive_labels, link_cc0_insns): Move to ...
25340 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
25341 only place where these functions are used, and make them static.
25343 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
25345 * fold-const.c (fold_negate_expr): Handle vectors.
25346 (fold_truth_not_expr): Make it static.
25347 (fold_invert_truthvalue): New static function.
25348 (invert_truthvalue_loc): Handle vectors. Do not call
25349 fold_truth_not_expr directly.
25350 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
25351 <TRUTH_NOT_EXPR>: Do not cast to boolean.
25352 (fold_comparison): Handle vector constants.
25353 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
25354 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
25355 * tree.h (fold_truth_not_expr): Remove declaration.
25357 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
25359 * config/aarch64/aarch64-simd.md
25360 (aarch64_vcond_internal<mode>): Rename to...
25361 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
25362 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
25363 float modes. Clarify all iterator modes.
25364 (vcond<mode><mode>): Use new name for vcond expanders.
25365 (vcond<v_cmp_result><mode>): Likewise.
25366 (vcondu<mode><mode>: Likewise.
25367 * config/aarch64/iterators.md (VDQF_COND): New.
25369 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
25372 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
25373 variable for the shift amount. Check that we shift by non-negative
25376 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
25379 * config/arm/arm.h (EPILOGUE_USES): Only return true
25380 for LR_REGNUM after epilogue_completed.
25382 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
25384 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
25385 is error_mark_node.
25387 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25390 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
25391 and Solaris 11+/x86 with gld.
25392 * configure: Regenerate.
25394 2013-05-14 Jakub Jelinek <jakub@redhat.com>
25396 * expmed.c (expand_shift_1): Canonicalize rotates by
25397 constant bitsize / 2 to bitsize - 1.
25398 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
25399 case ROTATERT>: Likewise.
25402 2013-05-10 Jakub Jelinek <jakub@redhat.com>
25404 * config/i386/i386.md (rotateinv): New code attr.
25405 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
25406 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
25407 roll $31, %eax, etc.
25409 2013-05-14 Richard Biener <rguenther@suse.de>
25411 PR middle-end/57235
25412 * tree-eh.c (sink_clobbers): Give up for successors with
25413 multiple predecessors and no virtual uses.
25415 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
25417 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
25418 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
25420 2013-05-14 Jakub Jelinek <jakub@redhat.com>
25422 PR middle-end/57251
25423 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
25424 the case when both op0 and op1 have VOIDmode.
25426 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25428 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
25429 in multiply-accumulate mode.
25431 2013-05-13 Guozhi Wei <carrot@google.com>
25433 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
25435 2013-05-13 Kai Tietz <ktietz@redhat.com>
25438 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
25439 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
25440 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
25441 * config/i386/i386.c (ix86_option_override_internal): Likewise.
25442 (ix86_expand_prologue): Likewise.
25443 (ix86_expand_split_stack_prologue): Likewise.
25444 (legitimate_pic_address_disp_p): Likewise.
25445 (legitimize_pic_address): Likewise.
25446 (legitimize_tls_address): Likewise.
25447 (legitimize_pe_coff_symbol): Likewise.
25448 (output_pic_addr_const): Likewise.
25449 (construct_plt_address): Likewise.
25450 (ix86_expand_call): Likewise.
25451 (x86_output_mi_thunk): Likewise.
25452 (x86_function_profiler): Likewise.
25454 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
25456 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
25457 similar switch cases.
25458 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
25459 (aarch64_simd_mov_to_<mode>low): Delete.
25460 (aarch64_simd_mov_to_<mode>high): Delete.
25461 (move_lo_quad_<mode>): Add w<-r alternative.
25462 (aarch64_simd_move_hi_quad_<mode>): Likewise.
25463 (aarch64_simd_mov_from_*): Update type attribute.
25464 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
25467 2013-05-13 Jan Hubicka <jh@suse.cz>
25469 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
25470 * config/i386/i386.c (ix86_compute_frame_layout,
25471 ix86_expand_epilogue, emit_i387_cw_initialization,
25472 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
25473 ix86_local_alignment): Fix use of size/speed predicates.
25475 2013-05-13 Jakub Jelinek <jakub@redhat.com>
25477 PR tree-optimization/45216
25478 PR tree-optimization/57157
25479 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
25480 the (-Y) & (B - 1) variant if OP is |.
25481 * expmed.c (expand_shift_1): For rotations by const0_rtx just
25482 return shifted. Use (-op1) & (prec - 1) as other_amount
25483 instead of prec - op1.
25485 2013-05-13 Martin Jambor <mjambor@suse.cz>
25487 PR middle-end/42371
25488 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
25489 (ipa_constant_data): New type.
25490 (ipa_jump_func): Use ipa_constant_data to hold information about
25491 constant jump functions.
25492 (ipa_get_jf_constant): Adjust to jump function type changes.
25493 (ipa_get_jf_constant_rdesc): New function.
25494 (ipa_param_descriptor): New field controlled_uses.
25495 (ipa_get_controlled_uses): New function.
25496 (ipa_set_controlled_uses): Likewise.
25497 * ipa-ref.h (ipa_find_reference): Declare.
25498 * ipa-prop.c (ipa_cst_ref_desc): New type.
25499 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
25501 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
25502 New parameter cs. Adjust all callers.
25503 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
25504 (remove_described_reference): New function.
25505 (jfunc_rdesc_usable): Likewise.
25506 (try_make_edge_direct_simple_call): Decrement controlled use count,
25507 attempt to remove reference if it hits zero.
25508 (combine_controlled_uses_counters): New function.
25509 (propagate_controlled_uses): Likewise.
25510 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
25511 (ipa_edge_duplication_hook): Duplicate reference descriptions.
25512 (ipa_print_node_params): Print described use counter.
25513 (ipa_write_jump_function): Adjust to jump function type changes.
25514 (ipa_read_jump_function): New parameter CS, pass it to
25515 ipa_set_jf_constant. Adjust caller.
25516 (ipa_write_node_info): Stream controlled use count
25517 (ipa_read_node_info): Likewise.
25518 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
25520 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
25521 count. Remove cloning-added reference if it reaches zero.
25522 * ipa-ref.c (ipa_find_reference): New function.
25524 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
25526 * config/i386/i386.c (processor_target_table): Modified default
25527 alignment values for AMD BD and BT architectures.
25529 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
25531 * tree-vect-generic.c (uniform_vector_p): Move ...
25532 * tree.c (uniform_vector_p): ... here.
25533 * tree.h (uniform_vector_p): Declare it.
25534 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
25537 2013-05-13 Jakub Jelinek <jakub@redhat.com>
25539 PR tree-optimization/57230
25540 * tree-ssa-strlen.c (handle_char_store): Record length for
25541 array store from STRING_CST.
25543 PR tree-optimization/57230
25544 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
25547 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
25549 * config/epiphany/epiphany.c (epiphany_init): Check size of
25550 NUM_MODES_FOR_MODE_SWITCHING.
25551 (epiphany_expand_prologue):
25552 Remove CONFIG_REGNUM initial value handling code.
25553 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
25554 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
25555 (emit_set_fp_mode, epiphany_mode_after): Likewise.
25556 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
25557 Don't return 1 for FP_MODE_NONE.
25558 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
25559 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
25560 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
25561 * config/epiphany/epiphany.md (save_config): New pattern.
25563 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
25565 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
25567 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
25569 * config/i386/i386.md (memory): Handle sseishft1.
25570 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
25571 (*vec_extractv2di_1): Ditto.
25573 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
25575 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
25578 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
25580 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
25581 Add mthumb/march=armv7-a multilib.
25582 Add mthumb/march=armv7-r multilib.
25583 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
25585 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
25587 * config/v850/t-rtems: Add more multilibs.
25589 2013-05-10 Richard Biener <rguenther@suse.de>
25591 PR tree-optimization/57214
25592 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
25593 not propagate from SSA names that occur in abnormal PHI nodes.
25595 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
25597 * stor-layout.c (element_precision): New function.
25598 * machmode.h (element_precision): Declare it.
25599 * tree.c (build_minus_one_cst): New function.
25600 (element_precision): Likewise.
25601 * tree.h (build_minus_one_cst): Declare new function.
25602 (element_precision): Likewise.
25603 * fold-const.c (operand_equal_p): Use element_precision.
25604 (fold_binary_loc): Handle vector types.
25605 * convert.c (convert_to_integer): Use element_precision.
25606 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
25609 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
25611 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
25612 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
25613 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
25614 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
25615 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
25616 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
25617 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
25618 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
25619 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
25620 (Uuw8): New constraints.
25621 (Usb4): Move into alphabetical order.
25622 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
25623 (sd8_operand, ub8_operand, uw8_operand): New predicates.
25624 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
25625 previously unnamed patterns.
25626 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
25627 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
25628 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
25629 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
25630 of set_attr_alternative/if_then_else. Use extended_mips16 instead
25631 of specific lengths.
25633 2013-05-10 Jakub Jelinek <jakub@redhat.com>
25635 * config/i386/i386.md (rotateinv): New code attr.
25636 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
25637 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
25638 roll $31, %eax, etc.
25640 PR tree-optimization/45216
25641 PR tree-optimization/57157
25642 * tree-ssa-forwprop.c (simplify_rotate): New function.
25643 (ssa_forward_propagate_and_combine): Call it.
25645 2013-05-10 Richard Biener <rguenther@suse.de>
25647 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
25648 disable peeling when we version for aliasing.
25649 (vector_alignment_reachable_p): Honor explicit user alignment.
25650 (vect_supportable_dr_alignment): Likewise.
25651 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
25652 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
25653 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
25654 then peeling to arrange for the cost-model check to come first.
25656 2013-05-10 Alan Modra <amodra@gmail.com>
25658 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
25659 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
25660 * configure: Regenerate.
25662 2013-05-10 Alan Modra <amodra@gmail.com>
25665 * varasm.c (default_elf_select_section): Move !DECL_P check..
25666 (get_named_section): ..to here before calling get_section_name.
25668 (default_section_type_flags): Add DECL_P check.
25669 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
25670 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
25672 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
25674 * config/epiphany/epiphany.c (epiphany_expand_prologue):
25675 When using gen_stack_adjust_str with a register offset, add a
25676 REG_FRAME_RELATED_EXPR note.
25678 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
25680 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
25681 (*vec_extractv4si_zext_mem): Ditto.
25682 (*vec_extractv2di): Add 0->x and x->x alternatives.
25683 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
25684 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
25686 2013-05-09 Jason Merrill <jason@redhat.com>
25688 N3639 C++1y VLA support
25689 * gimplify.c (gimplify_vla_decl): Don't touch an existing
25692 * tree.c (build_constructor_va): New.
25693 * tree.h: Declare it.
25695 2013-05-09 Martin Jambor <mjambor@suse.cz>
25698 * gimple-fold.c (canonicalize_constructor_val): Call
25699 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
25701 2013-05-09 Jan Hubicka <jh@suse.cz>
25702 Richard Biener <rguenther@suse.de>
25705 * symtab.c (symtab_make_decl_local): Do not add private names.
25707 2013-05-09 Jan Hubicka <jh@suse.cz>
25710 * symtab.c (insert_to_assembler_name_hash): Handle clones.
25711 (unlink_from_assembler_name_hash): Likewise.
25712 (symtab_prevail_in_asm_name_hash, symtab_register_node,
25713 symtab_unregister_node, symtab_initialize_asm_name_hash,
25714 change_decl_assembler_name): Update.
25716 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
25718 * config/aarch64/aarch64.md: New movtf split.
25719 (*movtf_aarch64): Update.
25720 (aarch64_movdi_tilow): Handle TF modes and rename to
25721 aarch64_movdi_<mode>low.
25722 (aarch64_movdi_tihigh): Handle TF modes and rename to
25723 aarch64_movdi_<mode>high
25724 (aarch64_movtihigh_di): Handle TF modes and rename to
25725 aarch64_mov<mode>high_di
25726 (aarch64_movtilow_di): Handle TF modes and rename to
25727 aarch64_mov<mode>low_di
25728 (aarch64_movtilow_tilow): Remove spurious whitespace.
25729 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
25731 (aarch64_print_operand): Update.
25733 2013-05-09 Alan Modra <amodra@gmail.com>
25735 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
25737 * configure: Regenerate.
25739 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
25741 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
25742 splitter preparation statements.
25743 * config/i386/sse.md (*vec_extract* splitters): Ditto.
25744 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
25747 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25749 * gimple-ssa-strength-reduction.c (count_candidates): Change
25750 return value to int.
25751 (analyze_candidates_and_replace): Change type of length to int.
25753 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
25755 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
25756 (*vec_extract<mode>): Use VI12_128 mode iterator.
25757 (*vec_extract<mode>_mem): Ditto.
25758 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
25761 2013-05-08 Diego Novillo <dnovillo@google.com>
25766 2012-08-17 Diego Novillo <dnovillo@google.com>
25769 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
25770 * config.in: Regenerate.
25771 * configure: Regenerate.
25772 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
25774 2013-05-08 Jan Hubicka <jh@suse.cz>
25777 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
25778 * cgraph.h (symtab_node_base): Add unique_name.
25779 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25780 input_overwrite_node, input_varpool_node): Stream unique_name.
25781 * cgraphclones.c (cgraph_create_virtual_clone,
25782 cgraph_function_versioning): Set unique_name.
25783 * ipa.c (function_and_variable_visibility): Set unique_name.
25785 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25787 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
25788 (alloc_cand_and_find_basis): Restrict conditional candidate
25789 processing to CAND_MULTs.
25791 2013-05-08 Jan Hubicka <jh@suse.cz>
25794 lto-symtab.c (lto_symtab_symbol_p): New function.
25795 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
25796 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
25797 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
25798 Skip static symbols.
25800 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
25802 PR tree-optimization/57200
25803 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
25804 Only call inform if the preceding warning_at returns true.
25806 2013-05-07 Han Shen <shenhan@google.com>
25808 * cfgexpand.c (record_or_union_type_has_array_p): New function.
25809 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
25810 * common.opt (fstack-protector-strong): New option.
25811 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
25812 * doc/invoke.texi (Optimization Options): Document
25813 "-fstack-protector-strong".
25814 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
25816 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
25818 * config/mips/mips.c (mips_machine_reorg2): Return 0.
25820 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
25822 * ira.c (update_equiv_regs): Add insn having equiv memory even if
25823 it is not lhs of the insn.
25824 (setup_reg_equiv): Remove insn having equiv memory which it is not
25826 * lra-constraints.c (process_address): Try to improve generation
25827 code for address base + disp.
25828 (lra_constraints): Make correct the code for checking insn setting
25829 up backward equivalence. Remove insn only if it is in the init
25831 * lra-eliminations.c (update_reg_eliminate): Change return value.
25832 (lra_eliminate): Use the result.
25834 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
25836 * config/i386/sse.md (ssescalarnummask): New mode attribute.
25837 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
25838 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
25839 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
25840 register target operands.
25841 (*vec_extractv8hi_sse2): New pattern.
25842 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
25843 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
25844 (*vec_extract<mode>_mem): New insn and split pattern.
25846 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
25848 * config/arm/arm.c (arm_asan_shadow_offset): New function.
25849 (TARGET_ASAN_SHADOW_OFFSET): Define.
25850 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
25851 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
25853 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25855 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
25856 (incr_vec_index): Return -1 if increment not found.
25857 (create_add_on_incoming_edge): Assert if increment not found.
25858 (record_increment): Limit number of increments recorded.
25859 (all_phi_incrs_profitable): Return false if an increment not found.
25860 (replace_profitable_candidates): Don't process increments that were
25862 (analyze_candidates_and_replace): Limit size of incr_vec.
25864 2013-05-07 Richard Biener <rguenther@suse.de>
25866 * calls.c (special_function_p): setjmp-like functions are leaf.
25867 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
25868 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
25870 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
25872 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
25873 (aarch64_simd_mov<mode>): New expander.
25874 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
25875 (aarch64_simd_mov_to_<mode>high): Likewise.
25876 (aarch64_simd_mov_from_<mode>low): Likewise.
25877 (aarch64_simd_mov_from_<mode>high): Likewise.
25878 (aarch64_dup_lane<mode>): Update.
25879 (aarch64_dup_lanedi): New instruction pattern.
25880 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
25881 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
25883 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25885 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
25886 (replace_mult_candidate): Remove unnecessary argument; remove
25887 unnecessary parameter from call to introduce_cast_before_cand.
25888 (replace_unconditional_candidate): Remove unnecessary parameter
25889 from call to replace_mult_candidate.
25890 (replace_conditional_candidate): Likewise.
25891 (insert_initializers): Use make_temp_ssa_name.
25892 (introduce_cast_before_cand): Remove unnecessary argument; use
25893 make_temp_ssa_name.
25894 (replace_one_candidate): Remove unnecessary argument; remove
25895 unnecessary parameter from calls to introduce_cast_before_cand.
25896 (replace_profitable_candidates): Remove unnecessary parameters
25897 from calls to replace_one_candidate.
25899 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25901 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
25902 phi def as possibly hiding a basis for a CAND_ADD whose operands
25903 have been commuted in the analysis.
25904 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
25906 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25908 * config/aarch64/aarch64.md
25909 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
25910 shift value between 0-4.
25912 2013-05-07 Richard Biener <rguenther@suse.de>
25914 * double-int.h (rshift): New overload.
25915 * double-int.c (rshift): New function.
25916 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
25917 (create_reference_ops_from_ref): Remove.
25918 (vn_reference_insert): Use shared ops for constructing the
25919 reference and copy it.
25921 2013-05-07 Richard Biener <rguenther@suse.de>
25923 PR middle-end/57190
25924 * tree-eh.c (sink_clobbers): Properly propagate
25925 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
25927 2013-05-07 Jakub Jelinek <jakub@redhat.com>
25929 PR tree-optimization/57149
25930 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
25931 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
25932 collect_phi_def_edges, execute_late_warn_uninitialized): Use
25933 uninit_undefined_value_p instead of ssa_undefined_value_p.
25936 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
25937 for modifier == EXPAND_INITIALIZER.
25939 2013-05-07 Anton Blanchard <anton@samba.org>
25941 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
25942 for powerpc64 little endian.
25943 * configure: Regenerate.
25945 2013-05-06 Graham Stott <grahams@btinternet.com>
25947 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
25948 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
25949 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
25950 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
25952 2013-05-06 Graham Stott <grahams@btinternet.com>
25954 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
25955 codes which allow non-lvalues.
25957 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
25959 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
25960 components are all 1s.
25961 (integer_minus_onep): New function.
25962 * tree.h (integer_minus_onep): Declare it.
25963 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
25964 integer_minus_onep instead of integer_all_onesp.
25966 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25969 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
25970 variations of these patterns.
25972 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
25974 * config/i386/i386.md (isa): Add x64_sse4 member.
25975 (enabled): Handle x64_sse4.
25976 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
25977 instruction for 64bit SSE4_1 targets. Update insn attributes.
25978 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
25979 instruction for SSE4_1 targets. Update insn attributes.
25980 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
25981 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
25982 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
25984 (*vec_extractv4si): Rename from *sse4_1_pextrd.
25985 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
25986 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
25988 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25991 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
25993 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
25995 * final.c (do_assembler_dialects): Don't handle curly braces and
25996 vertical bar escaped by % as dialect delimiters.
25997 (output_asm_insn): Print curly braces and vertical bar if escaped
25998 by % and ASSEMBLER_DIALECT defined.
25999 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
26000 * doc/tm.texi: Regenerated.
26002 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
26004 * config/mips/mips.c: Include tree-pass.h.
26005 (mips_reorg): Split in pre- and post-dbr_schedule parts.
26006 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
26007 (pass_mips_machine_reorg2): New machine specific pass.
26008 (insert_pass_mips_machine_reorg2): New pass plugin definition.
26009 (mips_option_override): Register the new pass.
26010 * rtl.h (cleanup_barriers): Remove prototype.
26011 (dbr_schedule): Likewise.
26012 * jump.c (cleanup_barriers): Make static.
26013 * reorg.c (dbr_schedule): Likewise.
26015 2013-05-06 Richard Biener <rguenther@suse.de>
26017 PR tree-optimization/57185
26018 * tree-parloops.c (add_field_for_reduction): Handle anonymous
26019 SSA names properly.
26021 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
26024 * config/i386/i386.c (add_parameter_dependencies): Add dependence
26025 between "first_arg" and "insn", not "last" and "insn".
26027 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26029 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
26030 (find_candidates_in_block): Re-enable slsr_process_phi.
26031 (create_phi_basis): Fix double counting of candidate adjustment.
26033 2013-05-06 Richard Biener <rguenther@suse.de>
26035 PR middle-end/57147
26036 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
26037 the edge is also fallthru, preserve it and just clear the
26039 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
26040 also complex, preserve that and just clear the fallthru flag.
26041 * tree-inline.c (update_ssa_across_abnormal_edges): Also
26042 update virtual operands.
26044 2013-05-06 Alan Modra <amodra@gmail.com>
26046 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
26047 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
26048 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
26049 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
26050 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
26051 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
26053 2013-05-06 Alan Modra <amodra@gmail.com>
26055 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
26056 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
26057 (DEFAULT_ASM_ENDIAN): Define.
26058 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
26059 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
26060 Update -K PIC clause from sysv4.h.
26061 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
26062 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
26064 2013-05-06 Alan Modra <amodra@gmail.com>
26066 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
26067 twice for little-endian.
26068 (ashrdi3_no_power, ashrdi3): Support little-endian.
26070 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
26073 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
26074 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
26076 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
26077 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
26078 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
26081 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
26082 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26084 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
26085 * config/pa/pa.opt: Make mbig-switch a no-op.
26086 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
26087 (CASE_VECTOR_MODE): Always return SImode.
26088 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
26089 for the !TARGET_BIG_SWITCH case.
26090 * config/pa/pa-linux.h: Likewise.
26091 * config/pa/pa-openbsd.h: Likewise.
26092 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
26093 * config/pa/pa.md (short_jump): Remove define_insn.
26094 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
26095 (casesi0): Remove define_insn.
26096 (type): Remove btable_branch.
26097 (pa_combine_type): Likewise.
26098 (in_nullified_branch_delay): Likewise.
26099 (in_call_delay): Likewise.
26100 (define_delay): Likewise.
26101 (define_insn_reservation "Z3"): Likewise.
26102 (define_insn_reservation "Z4"): Likewise.
26103 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
26104 (pa_adjust_insn_length): Remove adjustment for btable branches.
26105 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
26108 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
26110 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
26111 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
26112 Add m->r,x alternatives.
26113 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
26114 splitters using SWI48x mode iterator.
26115 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
26116 TARGET_64BIT. Add m->x alternative.
26117 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
26118 Add o->x alternative. Enable for TARGET_SSE.
26119 (sse_storeq): Remove expander.
26120 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
26121 with memory input operand.
26122 (*vec_extractv2di_1 splitter): New.
26123 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
26124 * config/i386/i386.md (ssevecmodelower): New mode attribute.
26126 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
26128 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
26129 (INT_LOWPART): Delete.
26130 (extract_MB): Adjust.
26131 (extract_ME): Adjust.
26132 (print_operand): Adjust.
26134 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
26136 * config/rs6000/predicates.md (reg_or_add_cint_operand,
26137 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
26138 (reg_or_logical_cint_operand, easy_fp_constant,
26139 logical_const_operand): Delete "CONST_DOUBLE" case.
26140 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
26141 "HOST_BITS_PER_WIDE_INT == 64" test.
26142 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
26143 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
26144 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
26145 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
26147 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
26148 CONST_DOUBLE DImode/VOIDmode case.
26149 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
26150 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
26151 CONST_DOUBLE VOIDmode case.
26152 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
26153 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
26154 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
26155 Delete CONST_DOUBLE case.
26156 (splitters for mov FMOVE64 const_double): Delete
26157 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
26158 "HOST_BITS_PER_WIDE_INT >= 64" test.
26159 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
26161 (mov DI const_double): Delete.
26163 2013-05-04 Jakub Jelinek <jakub@redhat.com>
26165 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
26166 on op shows all bits zero in mode of a lowpart subreg, return zero.
26168 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
26171 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
26172 to save TFmode registers and DImode to save TImode registers for
26173 caller save operations.
26174 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
26175 mark being partially clobbered since they only use the first
26178 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
26179 and TDmode only use the upper 64-bits of each VSX register.
26181 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26183 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
26184 (find_candidates_in_block): Disable slsr_process_phi.
26186 2013-05-03 Guozhi Wei <carrot@google.com>
26188 * coverage.c (coverage_obj_init): Move the construction of gcov
26190 (build_init_ctor): ... here.
26192 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26194 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
26195 (slsr_cand_d): Redefine def_phi.
26196 (stride_status, phi_adjust_status, count_phis_status): New enums.
26197 (find_phi_def): New.
26198 (find_basis_for_base_expr): New.
26199 (find_basis_for_candidate): Handle hidden bases.
26200 (alloc_cand_and_find_basis): Handle phi candidates.
26201 (slsr_process_phi): New.
26202 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
26203 (create_mul_imm_cand): Likewise.
26204 (create_add_ssa_cand): Exclude phi base candidates.
26205 (create_add_imm_cand): Likewise.
26206 (slsr_process_cast): Likewise.
26207 (slsr_process_copy): Likewise.
26208 (find_candidates_in_block): Handle phi candidates.
26209 (dump_candidate): Likewise.
26210 (unconditional_cands): Delete.
26211 (unconditional_cands_with_known_stride_p): Delete.
26212 (phi_dependent_cand_p): New.
26213 (cand_increment): Handle phi-dependent candidates.
26214 (replace_dependent): Delete.
26215 (replace_mult_candidate): New.
26216 (replace_unconditional_candidate): New.
26217 (incr_vec_index): Move to avoid forward reference.
26218 (create_add_on_incoming_edge): New.
26219 (create_phi_basis): New.
26220 (replace_dependents): Delete.
26221 (replace_conditional_candidate): New.
26222 (phi_add_costs): New.
26223 (replace_uncond_cands_and_profitable_phis): New.
26224 (record_increment): Handle phi adjustments.
26225 (record_phi_increments): New.
26226 (record_increments): Handle phi adjustments.
26227 (phi_incr_cost): New.
26228 (lowest_cost_path): Handle phis.
26229 (total_savings): Likewise.
26230 (analyze_increments): Likewise.
26231 (ncd_with_phi): New.
26232 (ncd_of_cand_and_phis): New.
26233 (nearest_common_dominator_for_cands): Handle phi increments.
26234 (all_phi_incrs_profitable): New.
26235 (replace_profitable_candidates): Handle phi-dependent candidates.
26236 (analyze_candidates_and_replace): Likewise.
26238 2013-05-03 Teresa Johnson <tejohnson@google.com>
26241 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
26242 do not exceed REG_BR_PROB_BASE.
26244 2013-05-03 Jeff Law <law@redhat.com>
26246 PR tree-optimization/57144
26247 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
26248 operand of the condition will bit into the new type when eliminating
26249 a cast feeding a condition.
26251 2013-05-03 Jakub Jelinek <jakub@redhat.com>
26253 PR rtl-optimization/57130
26254 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
26255 of COMPARE as in_code to the recursive call if needed.
26257 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
26259 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
26260 (enabled): Handle new members.
26261 * config/i386/sse.md (*vec_concatv2si): Merge from
26262 *vec_concatv2si_sse2 and vec_concatv2si_sse.
26263 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
26265 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
26267 PR tree-optimization/57027
26268 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
26269 for fnms opportunity, check we got the prerequisite kind
26270 of tree / gimple before using accessor functions.
26272 2013-05-03 Richard Biener <rguenther@suse.de>
26274 * double-int.h (lshift): New overload without precision
26275 and arith argument.
26276 (operator *=, operator +=, operator -=): Move ...
26277 * double-int.c (operator *=, operator +=, operator -=): ... here
26278 and implement more efficiently.
26279 (mul_double_with_sign): Remove.
26280 (lshift_double): Adjust to take unsinged shift argument, push
26281 dispatching code to callers.
26282 (mul_double_wide_with_sign): Add early out for callers that
26283 are not interested in high parts or overflow.
26284 (lshift): New function.
26285 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
26286 dispatch code here.
26287 (lrotate, rrotate): Use logical shifts.
26288 * expr.c (get_inner_reference): Use lshift.
26289 * fixed-value.c (do_fixed_divide): Likewise.
26290 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26291 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26292 (indirect_refs_may_alias_p): Likewise.
26293 (stmt_kills_ref_p_1): Likewise.
26295 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
26297 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
26299 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
26301 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
26302 scalar form of FABD instruction.
26304 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
26306 * lra-constraints.c (process_alt_operands): Add checking alt
26307 number to choose the best alternative.
26309 2013-05-02 Richard Biener <rguenther@suse.de>
26311 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
26312 bitmap and its handling.
26313 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
26315 2013-05-02 Richard Biener <rguenther@suse.de>
26317 PR middle-end/57140
26318 * tree-inline.c (copy_loops): Properly handle removed loops.
26319 (copy_cfg_body): Mark destination loops for fixup if source
26320 loops needed fixup.
26322 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
26325 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
26326 generating simple_return for naked functions.
26328 2013-05-02 Martin Jambor <mjambor@suse.cz>
26330 PR middle-end/56988
26331 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
26332 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
26334 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
26335 ipa_agg_replacement_value structures.
26336 (known_aggs_to_agg_replacement_list): Likewise.
26337 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
26338 (read_agg_replacement_chain): Likewise.
26339 (ipcp_transform_function): Also check that by_ref flags match.
26341 2013-05-02 Richard Biener <rguenther@suse.de>
26343 * graphds.h (struct graph): Add obstack member.
26344 * graphds.c (new_graph): Initialize obstack and allocate
26346 (add_edge): Allocate edge from the obstack.
26347 (free_graph): Free the obstack instead of all edges and vertices.
26349 2013-05-02 Teresa Johnson <tejohnson@google.com>
26351 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
26353 * cfg.c (update_bb_profile_for_threading): Ditto.
26354 * tree-inline.c (copy_bb): Ditto.
26355 (copy_edges_for_bb): Ditto.
26356 (initialize_cfun): Ditto.
26357 (copy_cfg_body): Ditto.
26358 (expand_call_inline): Ditto.
26359 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
26360 (estimate_node_size_and_time): Ditto.
26361 (inline_merge_summary): Ditto.
26362 * cgraphclones.c (cgraph_clone_edge): Ditto.
26363 (cgraph_clone_node): Ditto.
26364 * sched-rgn.c (compute_dom_prob_ps): Ditto.
26365 (compute_trg_info): Ditto.
26367 2013-05-02 Ian Bolton <ian.bolton@arm.com>
26369 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
26370 S reg when fp attribute set.
26371 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
26373 2013-05-02 Ian Bolton <ian.bolton@arm.com>
26375 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
26377 (*and_one_cmplsi3_compare0_uxtw): Likewise.
26378 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
26379 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
26381 2013-05-02 Richard Biener <rguenther@suse.de>
26383 * tree-scalar-evolution.c (scev_info_hasher): Remove.
26384 (struct instantiate_cache_entry): New type.
26385 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
26386 (struct instantiate_cache_type): New type.
26387 (set_instantiated_value, get_instantiated_value): Remove.
26388 (get_instantiated_value_entry): New function.
26389 (instantiate_scev_name): Use the new cache and adjust.
26390 (instantiate_scev_poly): Adjust.
26391 (instantiate_scev_binary): Likewise.
26392 (instantiate_array_ref): Likewise.
26393 (instantiate_scev_convert): Likewise.
26394 (instantiate_scev_not): Likewise.
26395 (instantiate_scev_3): Likewise.
26396 (instantiate_scev_2): Likewise.
26397 (instantiate_scev_r): Likewise.
26398 (instantiate_scev): Likewise.
26399 (resolve_mixers): Likewise.
26401 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
26404 * lra-constraints.c (best_small_class_operands_num): Remove.
26405 (process_alt_operands): Remove small_class_operands_num. Take
26406 small classes operands into losers and only if the operand is not
26407 matched. Modify debugging output.
26408 (curr_insn_transform): Remove best_small_class_operands_num.
26411 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26413 * config/aarch64/aarch64-builtins.c
26414 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
26415 * config/aarch64/aarch64-simd-builtins.def
26416 (reduc_splus_): Add new modes.
26417 (reduc_uplus_): New.
26418 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
26419 (reduc_uplus_v4sf): Likewise.
26420 (reduc_splus_v4sf): Likewise.
26421 (aarch64_addv<mode>): Likewise.
26422 (reduc_uplus_<mode>): Likewise.
26423 (reduc_splus_<mode>): Likewise.
26424 (aarch64_addvv2di): Likewise.
26425 (reduc_uplus_v2di): Likewise.
26426 (reduc_splus_v2di): Likewise.
26427 (aarch64_addvv2si): Likewise.
26428 (reduc_uplus_v2si): Likewise.
26429 (reduc_splus_v2si): Likewise.
26430 (reduc_<sur>plus_<mode>): New.
26431 (reduc_<sur>plus_v2di): Likewise.
26432 (reduc_<sur>plus_v2si): Likewise.
26433 (reduc_<sur>plus_v4sf): Likewise.
26434 (aarch64_addpv4sf): Likewise.
26435 * config/aarch64/arm_neon.h
26436 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
26437 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
26438 add UNSPEC_SADDV, UNSPEC_UADDV.
26440 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
26442 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26444 * config/aarch64/arm_neon.h
26445 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
26447 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26449 * config/aarch64/aarch64-builtins
26450 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
26452 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26454 * config/aarch64/aarch64-simd-builtins.def
26455 (reduc_smax_): New.
26456 (reduc_smin_): Likewise.
26457 (reduc_umax_): Likewise.
26458 (reduc_umin_): Likewise.
26459 (reduc_smax_nan_): Likewise.
26460 (reduc_smin_nan_): Likewise.
26463 (smax): Update for V2SF, V4SF and V2DF modes.
26466 (smin_nan): Likewise.
26467 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
26468 (<su><maxmin><mode>3): ...This, refactor.
26469 (s<maxmin><mode>3): New.
26470 (<maxmin_uns><mode>3): Likewise.
26471 (reduc_<maxmin_uns>_<mode>): Refactor.
26472 (reduc_<maxmin_uns>_v4sf): Likewise.
26473 (reduc_<maxmin_uns>_v2si): Likewise.
26474 (aarch64_<fmaxmin><mode>: Remove.
26475 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
26477 (vmin<q>_f<32,64>): Likewise.
26478 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
26480 (su): Add mappings for smax, smin, umax, umin.
26482 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
26483 (FMAXMIN): Rename as...
26484 (FMAXMIN_UNS): ...This.
26486 (fmaxminv): Likewise.
26487 (fmaxmin): Likewise.
26489 (maxmin_uns_op): Likewise.
26491 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26493 * config/aarch64/arm_neon.h
26494 (vac<ge, gt><sd>_f<32, 64>): Rename to...
26495 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
26496 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
26498 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26500 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
26501 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
26503 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26505 * config/aarch64/aarch64-simd.md
26506 (vcond<mode>_internal): Handle special cases for constant masks.
26507 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
26508 (vcondu<mode><mode>): Likewise.
26509 (vcond<v_cmp_result><mode>): New.
26511 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26513 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
26514 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
26515 * config/aarch64/aarch64-simd-builtins.def
26516 (cmeq): Update to BUILTIN_VALLDI.
26521 * config/aarch64/arm_neon.h
26522 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
26523 to builtins or C as appropriate.
26525 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26527 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
26529 (cmhi): Rename to...
26531 * config/aarch64/aarch64-simd.md
26532 (simd_mode): Add SF.
26533 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
26534 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
26535 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
26536 (cstore<mode>_neg): ...This.
26537 * config/aarch64/iterators.md
26539 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
26540 (COMPARISONS): New.
26541 (UCOMPARISONS): Likewise.
26542 (optab): Add missing comparisons.
26548 (VCMP_S): Likewise.
26549 (VCMP_U): Likewise.
26550 (V_cmp_result): Add DF, SF modes.
26551 (v_cmp_result): Likewise.
26553 (vmtype): Likewise.
26554 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
26556 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
26558 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
26559 define_insn to define_insn_and_split.
26560 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
26561 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
26562 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
26563 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
26564 (thumb2_negscc): Likewise.
26566 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
26568 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
26570 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
26572 * config/arm/thumb2.md: Remove trailing whitespaces.
26574 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26576 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
26577 Use gen_int_mode rather than GEN_INT.
26579 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
26581 * value-prof.c (stream_in_histogram_value): Remove the strayed
26584 2013-04-30 Richard Biener <rguenther@suse.de>
26586 PR middle-end/57122
26587 * cfghooks.c (split_edge): Properly check for the loop latch edge.
26589 2013-04-30 Richard Biener <rguenther@suse.de>
26591 PR middle-end/57107
26592 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
26594 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
26596 PR rtl-optimization/56957
26597 PR rtl-optimization/57105
26598 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
26599 variable. Use just INSN_UID for determining whether an insn
26600 should be only disconnected from the insn stream.
26601 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
26603 2013-04-30 Jakub Jelinek <jakub@redhat.com>
26605 PR tree-optimization/57104
26606 * tsan.c (instrument_expr): Don't instrument accesses to
26607 DECL_HARD_REGISTER VAR_DECLs.
26609 2013-04-30 Richard Biener <rguenther@suse.de>
26611 * function.h (loops_for_fn): New inline function.
26612 (set_loops_for_fn): Likewise.
26613 * cfgloop.h (place_new_loop): Add struct function parameter.
26614 (get_loop): Likewise.
26615 (get_loops): Likewise.
26616 (number_of_loops): Likewise.
26617 (fel_next): Adjust.
26618 (fel_init): Likewise.
26619 * cfg.c (get_loop_copy): Adjust.
26620 * cfgloop.c (flow_loops_dump): Likewise.
26621 (record_loop_exits): Likewise.
26622 (verify_loop_structure): Likewise.
26623 * cfgloopanal.c (mark_irreducible_loops): Likewise.
26624 (estimate_reg_pressure_cost): Likewise.
26625 (mark_loop_exit_edges): Likewise.
26626 * cfgloopmanip.c (place_new_loop): Likewise.
26627 (add_loop): Likewise.
26628 (duplicate_loop): Likewise.
26629 * graph.c (draw_cfg_nodes): Likewise.
26630 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
26631 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
26632 (extract_affine_chrec): Likewise.
26633 (build_scop_iteration_domain): Likewise.
26634 * graphite.c (graphite_initialize): Likewise.
26635 * ira-build.c (create_loop_tree_nodes): Likewise.
26636 (more_one_region_p): Likewise.
26637 (rebuild_regno_allocno_maps): Likewise.
26638 (mark_loops_for_removal): Likewise.
26639 (mark_all_loops_for_removal): Likewise.
26640 (remove_unnecessary_regions): Likewise.
26641 (ira_build): Likewise.
26642 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
26643 * loop-init.c (fix_loop_structure): Likewise.
26644 (gate_rtl_move_loop_invariants): Likewise.
26645 (gate_rtl_unswitch): Likewise.
26646 (gate_rtl_unroll_and_peel_loops): Likewise.
26647 (rtl_doloop): Likewise.
26648 * lto-streamer-in.c (input_cfg): Likewise.
26649 * lto-streamer-out.c (output_cfg): Likewise.
26650 * modulo-sched.c (sms_schedule): Likewise.
26651 * predict.c (tree_estimate_probability): Likewise.
26652 (tree_estimate_probability_driver): Likewise.
26653 (estimate_loops): Likewise.
26654 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
26655 (move_sese_region_to_fn): Likewise.
26656 (debug_loop_num): Likewise.
26657 * tree-chrec.c (chrec_evaluate): Likewise.
26658 (hide_evolution_in_other_loops_than_loop): Likewise.
26659 (chrec_component_in_loop_num): Likewise.
26660 (reset_evolution_in_loop): Likewise.
26661 (evolution_function_is_invariant_rec_p): Likewise.
26662 * tree-if-conv.c (main_tree_if_conversion): Likewise.
26663 * tree-inline.c (copy_loops): Likewise.
26664 (copy_cfg_body): Likewise.
26665 (tree_function_versioning): Likewise.
26666 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
26667 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
26669 (add_to_evolution_1): Likewise.
26670 (scev_const_prop): Likewise.
26671 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
26672 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
26673 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
26674 (tree_ssa_lim_initialize): Likewise.
26675 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
26676 (verify_loop_closed_ssa): Likewise.
26677 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
26678 (tree_ssa_loop_im): Likewise.
26679 (tree_ssa_loop_unswitch): Likewise.
26680 (tree_vectorize): Likewise.
26681 (check_data_deps): Likewise.
26682 (tree_ssa_loop_ivcanon): Likewise.
26683 (tree_ssa_loop_bounds): Likewise.
26684 (tree_complete_unroll): Likewise.
26685 (tree_complete_unroll_inner): Likewise.
26686 (tree_parallelize_loops): Likewise.
26687 (tree_ssa_loop_prefetch): Likewise.
26688 (tree_ssa_loop_ivopts): Likewise.
26689 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
26690 * tree-vectorizer.c (vectorize_loops): Likewise.
26692 2013-04-29 Mike Frysinger <vapier@gentoo.org>
26694 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
26695 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
26696 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
26697 with EABI_LINK_SPEC.
26699 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
26702 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
26705 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
26708 * lra-constraints.c (process_alt_operands): Discourage a bit more
26709 using memory for pseudos. Print cost dump for alternatives.
26710 Modify cost values for conflicts with early clobbers.
26711 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
26713 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
26716 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
26718 2013-04-29 Ian Bolton <ian.bolton@arm.com>
26720 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
26721 from/to S register.
26722 (movdi_aarch64): Support LDR/STR from/to D register.
26724 2013-04-29 Ian Bolton <ian.bolton@arm.com>
26726 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
26727 or higher by default.
26729 2013-04-29 Richard Biener <rguenther@suse.de>
26731 PR middle-end/57075
26732 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
26733 even if not adding abnormal edges for calls that can make
26736 2013-04-29 Richard Biener <rguenther@suse.de>
26738 PR middle-end/57103
26739 * tree-cfg.c (move_stmt_op): Fix condition under which to update
26741 (move_stmt_r): Remove redundant checking.
26743 2013-04-29 Teresa Johnson <tejohnson@google.com>
26746 * basic-block.h (apply_scale): New function.
26747 (apply_probability): Use apply_scale.
26748 * gimple-streamer-in.c (input_bb): Ditto.
26749 * lto-streamer-in.c (input_cfg): Ditto.
26750 * lto-cgraph.c (merge_profile_summaries): Ditto.
26751 * tree-optimize.c (execute_fixup_cfg): Ditto.
26752 * tree-inline.c (copy_bb): Update comment to use apply_scale.
26753 (copy_edges_for_bb): Ditto.
26754 (copy_cfg_body): Ditto.
26756 2013-04-29 Tom de Vries <tom@codesourcery.com>
26758 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
26759 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
26760 (tail_merge_optimize): Handle current_loops == NULL.
26762 2013-04-26 Jeff Law <law@redhat.com>
26764 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
26765 (simplify_cond_using_ranges): Generalize code to simplify
26766 COND_EXPRs where one argument is a constant and the other
26767 is an SSA_NAME created by an integral type conversion.
26769 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26771 * config/arm/arm.md (store_minmaxsi): Use only when
26772 optimize_insn_for_size_p.
26774 2013-04-29 Christian Bruel <christian.bruel@st.com>
26777 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
26779 2013-04-29 Richard Biener <rguenther@suse.de>
26781 PR middle-end/57089
26782 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
26783 loop tree make sure to schedule a fixup for the child as well.
26784 (expand_omp_for_generic): Properly add loops.
26785 (expand_omp_for_static_nochunk): Likewise.
26786 (expand_omp_for_static_chunk): Likewise.
26787 (expand_omp_for): For the degenerate case fixup loops.
26788 (expand_omp_sections): Fix default bb placement in loops.
26789 (expand_omp_atomic_pipeline): Properly add loops.
26791 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26793 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
26795 2013-04-29 Tom de Vries <tom@codesourcery.com>
26797 * tree-ssa-tail-merge.c: Update header comment.
26799 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26801 * config/aarch64/arm_neon.h
26802 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
26803 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
26804 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
26805 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
26806 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
26807 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
26808 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
26809 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
26811 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26813 * config/aarch64/aarch64-simd.md
26814 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
26815 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
26816 fix_trunc, fixuns_trunc.
26817 (ftrunc<VDQF:mode>2): New.
26818 * config/aarch64/iterators.md (optab): Add fix, fixuns.
26819 (fix_trunc_optab): New.
26821 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26823 * config/aarch64/aarch64-builtins.c
26824 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
26825 iceilf, lround, iroundf.
26827 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
26830 * config/i386/i386.h (enum ix86_tune_indices)
26831 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
26832 New, split from X86_TUNE_INTER_UNIT_MOVES.
26833 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
26834 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
26835 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
26836 (TARGET_INTER_UNIT_MOVES): Remove.
26837 * config/i386/i386.c (initial_ix86_tune_features): Update.
26838 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
26839 (ix86_expand_convert_uns_didf_sse): Use
26840 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26841 (ix86_expand_vector_init_one_nonzero): Ditto.
26842 (ix86_expand_vector_init_interleave): Ditto.
26843 (inline_secondary_memory_needed): Return true for moves from SSE class
26844 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
26845 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
26846 * config/i386/constraints.md (Yi, Ym): Depend on
26847 TARGET_INTER_UNIT_MOVES_TO_VEC.
26848 (Yj, Yn): New constraints.
26849 * config/i386/i386.md (*movdi_internal): Change constraints of
26850 operand 1 from Yi to Yj and from Ym to Yn.
26851 (*movsi_internal): Ditto.
26852 (*movdf_internal): Ditto.
26853 (*movsf_internal): Ditto.
26854 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
26855 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26856 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
26857 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
26858 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
26859 * config/i386/sse.md (movdi_to_sse): Ditto.
26860 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
26861 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
26862 TARGET_INTER_UNIT_MOVES.
26863 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
26864 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
26865 instead of TARGET_INTER_UNIT_MOVES.
26866 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
26867 operand 1 from Yi to Yj and from Ym to Yn.
26869 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26871 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
26872 (float_truncate_hi_): Likewise.
26873 (float_extend_lo_): Likewise.
26874 (float_truncate_lo_): Likewise.
26875 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
26876 (aarch64_float_extend_lo_v2df): Likewise.
26877 (vec_unpacks_hi_v4sf): Likewise.
26878 (aarch64_float_truncate_lo_v2sf): Likewise.
26879 (aarch64_float_truncate_hi_v4sf): Likewise.
26880 (vec_pack_trunc_v2df): Likewise.
26881 (vec_pack_trunc_df): Likewise.
26883 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26885 * config/aarch64/aarch64-builtins.c
26886 (aarch64_fold_builtin): Fold float conversions.
26887 * config/aarch64/aarch64-simd-builtins.def
26888 (floatv2si, floatv4si, floatv2di): New.
26889 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
26890 * config/aarch64/aarch64-simd.md
26891 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
26892 * config/aarch64/iterators.md (FLOATUORS): New.
26893 (optab): Add float, floatuns.
26894 (su_optab): Likewise.
26896 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26898 * config/aarch64/aarch64-builtins.c
26899 (aarch64_builtin_vectorized_function): Use new names for
26901 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
26902 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
26903 (fcvtzu): Split as...
26904 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
26905 (fcvtas): Split as...
26906 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
26907 (fcvtau): Split as...
26908 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
26909 (fcvtps): Split as...
26910 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
26911 (fcvtpu): Split as...
26912 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
26913 (fcvtms): Split as...
26914 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
26915 (fcvtmu): Split as...
26916 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
26917 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
26918 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
26919 (lfrintnusf, lfrintnudf): Likewise.
26920 * config/aarch64/aarch64-simd.md
26921 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
26923 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
26924 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
26925 (fcvt_pattern): Likewise.
26927 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26929 * config/aarch64/aarch64-simd.md
26930 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
26931 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
26933 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26935 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
26936 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
26937 (vrnd<a,m,n,p>_f32): Implement using builtins.
26938 (vrnd<i,x><q>_f<32, 64>): New.
26940 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26942 * config/aarch64/aarch64-builtins.c
26943 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
26944 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
26945 (frintz): Rename to...
26947 (frintp): Rename to...
26949 (frintm): Rename to...
26951 (frinti): Rename to...
26952 (nearbyint): ...this.
26953 (frintx): Rename to...
26955 (frinta): Rename to...
26957 * config/aarch64/aarch64-simd.md
26958 (aarch64_frint<frint_suffix><mode>): Delete.
26959 (<frint_pattern><mode>2): Convert to insn.
26960 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
26961 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
26962 (frint_pattern): Likewise.
26963 (frint_suffix): Likewise.
26965 2013-04-29 Richard Biener <rguenther@suse.de>
26967 PR tree-optimization/57081
26968 * loop-init.c: Include tree-flow.h.
26969 (loop_optimizer_finalize): Free number of iteration estimates.
26970 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
26972 2013-04-29 Jakub Jelinek <jakub@redhat.com>
26974 PR tree-optimization/57083
26975 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
26976 non-singleton shift count range, zero extend low_bound for uns case.
26978 * config/i386/predicates.md (general_vector_operand): New predicate.
26979 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
26980 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
26981 if they aren't nonimmediate operands. If their original values
26982 satisfy const_vector_equal_evenodd_p, don't shift them.
26983 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
26984 predicates. For the SSE4.1 case force operands[{1,2}] into registers
26985 if not nonimmediate_operand.
26986 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
26987 instead of register_operand.
26988 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
26990 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
26992 * stor-layout.c (finalize_size_functions): Allocate a structure and
26993 reset cfun before dumping the functions.
26995 2013-04-27 Jakub Jelinek <jakub@redhat.com>
26997 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
27000 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
27001 use xop_pmacsdqh if uns_p.
27002 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
27003 the immediate rotate count.
27005 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
27007 * rtl.h (struct rtx_def): Add comment for field jump.
27008 (LRA_SUBREG_P): New macro.
27009 * recog.c (register_operand): Check LRA_SUBREG_P.
27010 * lra.c (lra): Add note at the end of RTL code. Align non-empty
27012 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
27013 (lra_final_code_change): Skip subreg change for operators.
27014 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
27015 if there are no operand changes.
27016 * lra-constraints.c (curr_insn_set): New.
27017 (match_reload): Set LRA_SUBREG_P.
27018 (emit_spill_move): Ditto.
27019 (check_and_process_move): Use curr_insn_set. Process only single
27020 set insns. Don't initialize sec_mem_p and change_p.
27021 (simplify_operand_subreg): Use LRA_SUBREG_P.
27022 (reg_in_class_p): New function.
27023 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
27024 of #ifdef. Add code to remove cycling.
27025 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
27026 non-null disp. Reload inner instead of disp when base and index
27027 are null. Try to put lo_sum into register.
27028 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
27029 (check_and_process_move): Move code for move cost check to
27030 simple_move_p. Remove equiv_substitution.
27031 (simple_move_p): New function.
27032 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
27033 curr_insn_set. Call check_and_process_move only for single set
27034 insns. Use the new function. Move call of check_and_process_move
27035 after operand equiv substitution and address process.
27037 2013-04-26 Jakub Jelinek <jakub@redhat.com>
27040 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
27041 with nonlocal goto receivers or returns twice calls, ignore
27042 unininitialized values from abnormal edges to nl goto receiver
27043 or returns twice call.
27045 2013-04-26 Jakub Jelinek <jakub@redhat.com>
27047 PR tree-optimization/57051
27048 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
27049 and VEC_RSHIFT_EXPR if shift count is a multiple of element
27052 2013-04-26 Richard Biener <rguenther@suse.de>
27054 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
27055 (expand_omp_taskreg): Likewise. Mark loops for fixup.
27056 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
27057 (fixup_loop_arrays_after_move): New function.
27058 (move_sese_region_to_fn): Properly outline the loop tree parts
27059 of the SESE region.
27061 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
27063 * config/i386/i386.md (type, unit): Fix long lines.
27065 2013-04-26 Richard Biener <rguenther@suse.de>
27067 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
27068 (lto-streamer-out.o): Likewise.
27069 * cfgloop.c (init_loops_structure): Export, add struct function
27070 argument and adjust.
27071 (flow_loops_find): Adjust.
27072 * cfgloop.h (enum loop_estimation): Add EST_LAST.
27073 (init_loops_structure): Declare.
27074 * lto-streamer-in.c: Include cfgloop.h.
27075 (input_cfg): Input the loop tree.
27076 * lto-streamer-out.c: Include cfgloop.h.
27077 (output_cfg): Output the loop tree.
27078 (output_struct_function_base): Do not drop PROP_loops.
27080 2013-03-26 Richard Biener <rguenther@suse.de>
27082 * tree-cfg.c (execute_build_cfg): Build the loop tree.
27083 (pass_build_cfg): Provide PROP_loops.
27084 (move_sese_region_to_fn): Remove loops that are outlined into fn
27086 * tree-inline.c: Include cfgloop.h.
27087 (initialize_cfun): Do not drop PROP_loops.
27088 (copy_loops): New function.
27089 (copy_cfg_body): Copy loop structure.
27090 (tree_function_versioning): Initialize destination loop tree.
27091 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
27092 (pass_parallelize_loops): Do IL verification.
27093 * loop-init.c (loop_optimizer_init): Fixup loops if required.
27094 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
27095 the CFG make sure we fixup loops as well.
27096 * tree-ssa-tail-merge.c: Include cfgloop.h.
27097 (replace_block_by): When merging loop latches mark loops for fixup.
27098 * lto-streamer-out.c (output_struct_function_base): Drop
27099 PROP_loops for now.
27100 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
27101 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
27102 * ipa-split.c: Include cfgloop.h.
27103 (split_function): Add the new return block to the loop tree root.
27104 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
27105 whether we have removed the forwarder block.
27106 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
27107 * cfgloop.h (place_new_loop): Declare.
27108 * cfgloopmanip.c (place_new_loop): Export.
27109 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
27110 (tree-switch-conversion.o): Likewise.
27111 (tree-complex.o): Likewise.
27112 (tree-inline.o): Likewise.
27113 (tree-ssa-tailmerge.o): Likewise.
27114 (ipa-split.o): Likewise.
27115 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
27116 (tree-ssa-copy.o): Likewise.
27117 * tree-switch-conversion.c: Include cfgloop.h
27118 (process_switch): If we emit a bit-test cascade, schedule loops
27120 * tree-complex.c: Include cfgloop.h.
27121 (expand_complex_div_wide): Properly add new basic-blocks to loops.
27122 * asan.c: Include cfgloop.h.
27123 (create_cond_insert_point): Properly add new basic-blocks to
27124 loops, schedule loop fixup.
27125 * cfgloop.c (verify_loop_structure): Check that looks are not
27127 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
27129 (expand_omp_for_generic): Likewise.
27130 (expand_omp_sections): Likewise.
27131 (expand_omp_atomic_pipeline): Schedule loops for fixup.
27132 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
27133 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
27134 is initialized, not when loops are present.
27135 * tree-parloops.c (parallelize_loops): Remove checking here.
27136 * passes.c (init_optimization_passes): Schedule a copy-propagation
27137 pass before complete unrolling of inner loops.
27139 2013-04-26 Jakub Jelinek <jakub@redhat.com>
27141 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
27142 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
27143 (colorize_init): Add argument to _WIN32 version.
27144 * toplev.c: Include diagnostic-color.h.
27145 (process_options): Default to -fdiagnostics-color=auto if
27146 GCC_COLORS env var is in the environment.
27147 * common.opt (fdiagnostics-color=): Add Var and Init.
27148 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
27149 env var is in the environment, the default is auto rather than never.
27151 * diagnostic.h (file_name_as_prefix): Add context argument.
27152 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
27153 the string as locus.
27154 * langhooks.c (lhd_print_error_function): Adjust caller.
27156 2013-04-25 Lawrence Crowl <crowl@google.com>
27158 * var-tracking.c (shared_hash_def::htab):
27159 Change type to hash_table. Update dependent calls and types.
27161 2013-04-25 Lawrence Crowl <crowl@google.com>
27163 * Makefile.in: Update as needed below.
27165 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
27166 Move declaration to after the type's method definitons.
27168 * attribs.c (htab_t scoped_attributes::attribute_hash):
27169 Change type to hash_table. Update dependent calls and types.
27171 * bitmap.c (htab_t bitmap_desc_hash):
27172 Change type to hash_table. Update dependent calls and types.
27174 * cselib.c (htab_t cselib_hash_table):
27175 Change type to hash_table. Update dependent calls and types.
27177 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
27178 (hash_string_slot_node): Move implementation into lto-streamer.h
27179 struct string_slot_hasher.
27180 (eq_string_slot_node): Likewise.
27182 * data-streamer-out.c: Update output_block::string_hash_table
27183 dependent calls and types.
27185 * dwarf2cfi.c (htab_t trace_index):
27186 Change type to hash_table. Update dependent calls and types.
27188 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
27189 Change type to hash_table. Update dependent calls and types.
27190 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
27191 (htab_t optimize_external_refs::map): Likewise.
27192 (htab_t output_comp_unit::extern_map): Likewise.
27193 (htab_t output_comdat_type_unit::extern_map): Likewise.
27194 (htab_t output_macinfo::macinfo_htab): Likewise.
27195 (htab_t optimize_location_lists::htab): Likewise.
27196 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
27198 * except.c (htab_t ehspec_hash_type):
27199 Change type to hash_table. Update dependent calls and types.
27200 (assign_filter_values::ttypes): Likewise.
27201 (assign_filter_values::ehspec): Likewise.
27202 (sjlj_assign_call_site_values::ar_hash): Likewise.
27203 (convert_to_eh_region_ranges::ar_hash): Likewise.
27205 * gcse.c (htab_t pre_ldst_table):
27206 Change type to hash_table. Update dependent calls and types.
27208 * ggc-common.c (htab_t saving_htab):
27209 Change type to hash_table. Update dependent calls and types.
27210 (htab_t loc_hash): Likewise.
27211 (htab_t ptr_hash): Likewise.
27212 (call_count): Rename ggc_call_count.
27213 (call_alloc): Rename ggc_call_alloc.
27214 (loc_descriptor): Rename make_loc_descriptor.
27215 (add_statistics): Rename ggc_add_statistics.
27217 * ggc-common.c (saving_htab):
27218 Change type to hash_table. Update dependent calls and types.
27220 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
27221 (push_gimplify_context): Likewise.
27222 (pop_gimplify_context): Likewise.
27223 (struct gimple_temp_hash_elt): Added.
27224 (struct gimplify_hasher): Likewise.
27225 (struct gimplify_ctx.temp_htab):
27226 Change type to hash_table. Update dependent calls and types.
27228 * gimple-fold.c: Include gimplify-ctx.h.
27230 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
27231 Change type to hash_table. Update dependent calls and types.
27232 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
27233 avoid potential global name collision.
27235 * gimplify.c: Include gimplify-ctx.h.
27236 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
27237 (htab_t gimplify_ctx::temp_htab):
27238 Update dependent calls and types for new type hash_table.
27239 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
27240 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
27242 * gimplify-ctx.h: New.
27243 (struct gimple_temp_hash_elt): Move from gimplify.c.
27244 (class gimplify_hasher): New.
27245 (struct gimplify_ctx): Move from gimple.h.
27246 (htab_t gimplify_ctx::temp_htab):
27247 Change type to hash_table. Update dependent calls and types.
27249 * graphite-clast-to-gimple.c: Include graphite-htab.h.
27250 (htab_t ivs_params::newivs_index):
27251 Change type to hash_table. Update dependent calls and types.
27252 (htab_t ivs_params::params_index): Likewise.
27253 (htab_t print_generated_program::params_index): Likewise.
27254 (htab_t gloog::newivs_index): Likewise.
27255 (htab_t gloog::params_index): Likewise.
27257 * graphite.c: Include graphite-htab.h.
27258 4htab_t graphite_transform_loops::bb_pbb_mapping):
27259 Change type to hash_table. Update dependent calls and types.
27261 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
27262 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
27263 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
27265 * graphite-dependences.c: Include graphite-htab.h.
27266 (loop_is_parallel_p): Change hash table type of parameter.
27268 * graphite-htab.h: New.
27269 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
27270 (extern find_pbb_via_hash): Move from graphite-poly.h.
27271 (extern loop_is_parallel_p): Move from graphite-poly.h.
27272 (extern get_loop_body_pbbs): Move from graphite-poly.h.
27274 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
27275 (extern loop_is_parallel_p): Move to graphite-htab.h.
27276 (extern get_loop_body_pbbs): Move to graphite-htab.h.
27278 * haifa-sched.c (htab_t delay_htab):
27279 Change type to hash_table. Update dependent calls and types.
27280 (htab_t delay_htab_i2): Likewise.
27282 * ira-color.c (htab_t allocno_hard_regs_htab):
27283 Change type to hash_table. Update dependent calls and types.
27285 * ira-costs.c (htab_t cost_classes_htab):
27286 Change type to hash_table. Update dependent calls and types.
27288 * loop-invariant.c (htab_t merge_identical_invariants::eq):
27289 Change type to hash_table. Update dependent calls and types.
27291 * loop-iv.c (htab_t bivs):
27292 Change type to hash_table. Update dependent calls and types.
27294 * loop-unroll.c (htab_t opt_info::insns_to_split):
27295 Change type to hash_table. Update dependent calls and types.
27296 (htab_t opt_info::insns_with_var_to_expand): Likewise.
27298 * lto-streamer.h (struct string_slot): Move from data-streamer.h
27299 (struct string_slot_hasher): New.
27300 (htab_t output_block::string_hash_table):
27301 Change type to hash_table. Update dependent calls and types.
27303 * lto-streamer-in.c (freeing_string_slot_hasher): New.
27304 (htab_t file_name_hash_table):
27305 Change type to hash_table. Update dependent calls and types.
27307 * lto-streamer-out.c: Update output_block::string_hash_table dependent
27310 * lto-streamer.c (htab_t tree_htab):
27311 Change type to hash_table. Update dependent calls and types.
27313 * omp-low.c: Include gimplify-ctx.h.
27315 * passes.c (htab_t name_to_pass_map):
27316 Change type to hash_table. Update dependent calls and types.
27317 (pass_traverse): Rename to passes_pass_traverse.
27319 * plugin.c (htab_t event_tab):
27320 Change type to hash_table. Update dependent calls and types.
27322 * postreload-gcse.c (htab_t expr_table):
27323 Change type to hash_table. Update dependent calls and types.
27324 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
27326 * sese.c (debug_rename_map_1): Make extern.
27327 (htab_t copy_bb_and_scalar_dependences::rename_map):
27328 Change type to hash_table. Update dependent calls and types.
27330 * sese.h (extern debug_rename_map): Move to .c file.
27332 * store-motion.c (htab_t store_motion_mems_table):
27333 Change type to hash_table. Update dependent calls and types.
27335 * trans-mem.c (htab_t tm_new_mem_hash):
27336 Change type to hash_table. Update dependent calls and types.
27338 * tree-browser.c (htab_t TB_up_ht):
27339 Change type to hash_table. Update dependent calls and types.
27341 * tree-cfg.c (htab_t discriminator_per_locus):
27342 Change type to hash_table. Update dependent calls and types.
27344 * tree-complex.c: Include tree-hasher.h
27345 (htab_t complex_variable_components):
27346 Change type to hash_table. Update dependent calls and types.
27348 * tree-eh.c (htab_t finally_tree):
27349 Change type to hash_table. Update dependent calls and types.
27351 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
27352 struct int_tree_hasher.
27353 (extern int_tree_map_eq): Likewise.
27354 (uid_decl_map_hash): Removed.
27355 (extern decl_tree_map_eq): Likewise.
27357 * tree-hasher.h: New.
27358 (struct int_tree_hasher): New.
27359 (typedef int_tree_htab_type): New.
27361 * tree-inline.c: Include gimplify-ctx.h.
27363 * tree-mudflap.c: Include gimplify-ctx.h.
27365 * tree-parloops.c: Include tree-hasher.h.
27366 (htab_t eliminate_local_variables_stmt::decl_address):
27367 Change type to hash_table. Update dependent calls and types.
27368 (htab_t separate_decls_in_region::decl_copies): Likewise.
27370 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
27371 Change type to hash_table. Update dependent calls and types.
27373 * tree-sra.c (candidates):
27374 Change type to hash_table. Update dependent calls and types.
27376 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
27378 (int_tree_map_hash): Likewise.
27380 * tree-ssa-dom.c (htab_t avail_exprs):
27381 Change type to hash_table. Update dependent calls and types.
27383 * tree-ssa-live.c (var_map_base_init::tree_to_index):
27384 Change type to hash_table. Update dependent calls and types.
27386 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
27387 Change type to hash_table. Update dependent calls and types.
27389 * tree-ssa-phiopt.c (seen_ssa_names):
27390 Change type to hash_table. Update dependent calls and types.
27392 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
27393 Change type to hash_table. Update dependent calls and types.
27395 * tree-ssa-uncprop.c (equiv):
27396 Change type to hash_table. Update dependent calls and types.
27398 2013-04-25 Jakub Jelinek <jakub@redhat.com>
27400 PR rtl-optimization/57003
27401 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
27402 call note_stores with kill_clobbered_value callback again after
27403 killing regs_invalidated_by_call.
27405 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
27407 * config/aarch64/aarch64-simd.md
27408 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
27409 (aarch64_simd_bsl<mode>): Likewise.
27410 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
27412 2013-04-25 Marek Polacek <polacek@redhat.com>
27414 PR tree-optimization/57066
27415 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
27417 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
27419 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
27421 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
27423 * config/aarch64/aarch64-builtins.c
27424 (aarch64_fold_builtin): New.
27425 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
27426 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
27427 * config/aarch64/aarch64-simd-builtins.def (abs): New.
27428 * config/aarch64/arm_neon.h
27429 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
27431 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
27432 Tejas Belagod <tejas.belagod@arm.com>
27434 * config/aarch64/aarch64-builtins.c
27435 (aarch64_gimple_fold_builtin): New.
27436 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
27437 * config/aarch64/aarch64-simd-builtins.def (addv): New.
27438 * config/aarch64/aarch64-simd.md (addpv4sf): New.
27439 (addvv4sf): Update.
27440 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
27442 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27444 * config/aarch64/aarch64.md
27445 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
27447 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27449 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
27450 (*ngcsi_uxtw): New pattern.
27452 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27453 Julian Brown <julian@codesourcery.com>
27455 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
27456 (TB_DREG): Add T_V4HF.
27457 (v4hf_UP): New macro.
27458 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27459 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27460 Handle initialisation of V4HF. Adjust initialisation of reinterpret
27462 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27463 (arm_vector_mode_supported_p): Handle V4HF.
27464 (arm_mangle_map): Handle V4HFmode.
27465 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
27466 * config/arm/arm_neon_builtins.def: Add entries for
27467 vcvtv4hfv4sf, vcvtv4sfv4hf.
27468 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
27469 (neon_vcvtv4hfv4sf): Likewise.
27470 * config/arm/neon-gen.ml: Handle half-precision floating point
27472 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
27473 * config/arm/arm_neon.h: Regenerate.
27474 * config/arm/neon.ml (type elts): Add F16.
27475 (type vectype): Add T_float16x4, T_floatHF.
27476 (type vecmode): Add V4HF.
27477 (type features): Add Requires_FP_bit feature.
27478 (elt_width): Handle F16.
27479 (elt_class): Likewise.
27480 (elt_of_class_width): Likewise.
27481 (mode_of_elt): Refactor.
27482 (type_for_elt): Handle F16, fix error messages.
27483 (vectype_size): Handle T_float16x4.
27484 (vcvt_sh): New function.
27485 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
27486 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
27487 (string_of_mode): Handle V4HF.
27488 * doc/arm-neon-intrinsics.texi: Regenerate.
27490 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
27492 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
27493 format specifier in 'X' case.
27495 2013-04-25 Alan Modra <amodra@gmail.com>
27498 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
27499 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
27500 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
27501 Repeat for many other rotate/shift and mask patterns using subregs.
27502 Name lshiftrt insns.
27503 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
27504 on WORDS_BIG_ENDIAN.
27506 2013-04-25 Alan Modra <amodra@gmail.com>
27508 * config.gcc: Support little-endian powerpc-linux targets.
27509 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
27510 (LINK_OS_LINUX_SPEC): Define.
27511 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
27512 Preserve MASK_LITTLE_ENDIAN.
27513 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
27514 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
27515 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
27516 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
27517 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
27518 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
27519 Correct fp word order for little-endian. Don't shift toc entries
27520 smaller than a word for little-endian.
27521 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
27522 (bswapdi2 splits): Correct low-part subreg for little-endian.
27523 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
27524 low/high where such is correct only for be.
27525 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
27526 little-endian for -mcall-aixdesc.
27528 2013-04-25 Alan Modra <amodra@gmail.com>
27530 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27531 replace_equiv_address_nv.
27533 2013-04-25 Alan Modra <amodra@gmail.com>
27535 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
27537 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
27540 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
27541 * rtl.h (struct rtx_def): ...
27543 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
27545 PR rtl-optimizations/57046
27546 * lra-constraints (split_reg): Set up lra_risky_transformations_p
27547 for multi-reg splits.
27549 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
27551 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
27553 2013-04-24 Sterling Augustine <saugustine@google.com>
27555 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
27556 (comp_dir_string, debug_str_dwo_section): New.
27557 (DEBUG_STR_DWO_SECTION): Rename to ...
27558 (DEBUG_DWO_STR_SECTION): ... this.
27559 (DEBUG_NORM_STR_SECTION): Delete.
27560 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
27561 (DEBUG_STR_DWO_SECTION_FLAGS): New.
27562 (find_AT_string): Move most logic to ...
27563 (find_AT_string_in_table): ... here. New.
27564 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
27565 add_skeleton_AT_string. Delete logic.
27566 (output_skeleton_debug_sections): Remove call to
27567 add_top_level_skeleton_die_attrs.
27568 (add_comp_dir_attribute): Move logic to comp_dir_string.
27569 (dwarf2out_init): Initialize debug_str_dwo_section.
27570 (output_indirect_string): Call find_string_form.
27571 (output_indirect_strings): Rewrite.
27572 (prune_unused_types): Empty skeleton_debug_str_hash.
27573 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
27574 (dwarf2out_finish): Call output_indirect_strings.
27576 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
27578 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
27580 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
27582 * rtl.h (struct rtx_def): Add comment for field jump.
27583 (LRA_SUBREG_P): New macro.
27584 * recog.c (register_operand): Check LRA_SUBREG_P.
27585 * lra.c (lra): Add note at the end of RTL code. Align non-empty
27587 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
27588 (lra_final_code_change): Skip subreg change for operators.
27589 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
27590 if there are no operand changes.
27591 * lra-constraints.c (curr_insn_set): New.
27592 (match_reload): Set LRA_SUBREG_P.
27593 (emit_spill_move): Ditto.
27594 (check_and_process_move): Use curr_insn_set. Process only single
27595 set insns. Don't initialize sec_mem_p and change_p.
27596 (simplify_operand_subreg): Use LRA_SUBREG_P.
27597 (reg_in_class_p): New function.
27598 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
27599 of #ifdef. Add code to remove cycling.
27600 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
27601 non-null disp. Reload inner instead of disp when base and index
27602 are null. Try to put lo_sum into register.
27603 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
27604 (check_and_process_move): Move code for move cost check to
27605 simple_move_p. Remove equiv_substitution.
27606 (simple_move_p): New function.
27607 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
27608 curr_insn_set. Call check_and_process_move only for single set
27609 insns. Use the new function. Move call of check_and_process_move
27610 after operand equiv substitution and address process.
27612 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
27614 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
27615 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
27616 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
27618 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
27620 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
27622 2013-04-24 Marek Polacek <polacek@redhat.com>
27624 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
27625 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
27626 (select_loops_exit_conditions): Likewise.
27627 (number_of_iterations_for_all_loops): Likewise.
27628 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
27629 (scev_analysis): Likewise.
27631 2013-04-02 Catherine Moore <clm@codesourcery.com>
27632 Chao-ying Fu <fu@mips.com>
27634 * config/mips/micromips.md (jraddiusp): New pattern.
27635 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
27636 instruction if possible.
27638 2013-04-24 Alan Modra <amodra@gmail.com>
27640 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
27642 2013-04-24 Julian Brown <julian@codesourcery.com>
27643 Chung-Lin Tang <cltang@codesourcery.com>
27645 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
27646 dependency behavior in enumeration type DIE generation. Add TODO note
27647 to comments about future DW_FORM_sdata/udata re-work of related code.
27649 2013-04-23 Lawrence Crowl <crowl@google.com>
27651 * Makefile.in: Update as needed below.
27653 * hash-table.h (class hash_table):
27654 Correct many methods with parameter types compare_type to the correct
27655 value_type. (Correct code was unlikely to notice the change.)
27656 (hash_table::elements_with_deleted) New.
27657 (class hashtable::iterator): New.
27658 (hashtable::begin()): New.
27659 (hashtable::end()): New.
27660 (FOR_EACH_HASH_TABLE_ELEMENT): New.
27662 * statistics.c (statistics_hashes):
27663 Change type to hash_table. Update dependent calls and types.
27665 * tree-into-ssa.c (var_infos):
27666 Change type to hash_table. Update dependent calls and types.
27668 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
27669 Change type to hash_table. Update dependent calls and types.
27671 * tree-ssa-loop-im.c (struct mem_ref.refs):
27672 Change type to hash_table. Update dependent calls and types.
27674 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
27675 Change type to hash_table. Update dependent calls and types.
27677 * tree-ssa-sccvn.c (vn_tables_s::nary):
27678 Change type to hash_table. Update dependent calls and types.
27679 (vn_tables_s::phis): Likewise.
27680 (vn_tables_s::references): Likewise.
27682 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
27683 (vn_reference_eq): Update parameter and return types.
27685 * tree-ssa-structalias.c (pointer_equiv_class_table):
27686 Change type to hash_table. Update dependent calls and types.
27687 (location_equiv_class_table): Likewise.
27689 * tree-vect-data-refs.c: Consequential changes for making
27690 peeling a hash_table.
27692 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
27693 (destroy_loop_vec_info): Dependent hash_table update.
27695 * tree-vectorizer.h (peeling_htab):
27696 Change type to hash_table. Update dependent calls and types.
27698 2013-04-23 Shiva Chen <shiva0217@gmail.com>
27700 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
27701 to check the register content is equal or not.
27702 * lra-constraints.c (match_reload): Use lra_assign_reg_val
27703 to assign register content record.
27704 * lra-eliminations.c (update_reg_eliminate): Use
27705 lra_update_reg_val_offset to update register content offset.
27706 * lra-int.h (struct lra_reg): Add offset member.
27707 (lra_reg_val_equal_p): New static inline function.
27708 (lra_update_reg_val_offset): New static inline function.
27709 (lra_assign_reg_val): New static inline function.
27710 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
27711 to assign register content record.
27712 (initialize_lra_reg_info_element): Initial offset to zero.
27714 2013-04-23 Catherine Moore <clm@codesourcery.com>
27716 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
27717 operands. Record compression.
27719 2013-04-23 Xinliang David Li <davidxl@google.com>
27721 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
27723 2013-04-23 Richard Biener <rguenther@suse.de>
27725 PR middle-end/57036
27726 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
27727 parameter, only add abnormal goto edges from the copied body
27728 if the call could perform abnormal gotos.
27729 (copy_cfg_body): Adjust.
27731 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
27733 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
27735 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
27737 * coretypes.h (gimple_stmt_iterator): Add struct to make
27740 2013-04-23 Richard Biener <rguenther@suse.de>
27742 PR tree-optimization/57026
27743 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
27744 from SSA names occuring in abnormal PHI nodes.
27746 2013-04-22 Andi Kleen <ak@linux.intel.com>
27748 * lto/lto.c (print_lto_report_1): Fix LTO report names.
27750 2013-04-22 Andi Kleen <ak@linux.intel.com>
27752 * lto/lto.c (print_lto_report_1): Declare early.
27753 (read_cgraph_and_symbols): Call print_lto_report_1 early.
27755 2013-04-22 Andi Kleen <ak@linux.intel.com>
27757 * common.opt (-flto-report-wpa): Add.
27758 * doc/invoke.texi (-flto-report-wpa): Add.
27759 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
27762 2013-04-22 Xinliang David Li <davidxl@google.com>
27764 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
27765 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
27766 * Makefile.in: New dependency
27768 David Daney <ddaney.cavm@gmail.com>
27770 * configure.ac (gcc_cv_as_micromips_support): Use the
27771 --fatal-warnings option.
27772 * configure: Regenerate.
27774 2013-04-22 Marek Polacek <polacek@redhat.com>
27777 * tsan.c (instrument_expr): Don't instrument expression
27778 in case its size is zero.
27780 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
27784 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
27786 * config/alpha/alpha.c (TARGET_LRA_P): New define.
27788 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27790 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
27791 (gimple_stmt_iterator): New typedef.
27792 * gimple.h (gimple_stmt_iterator): Rename to...
27793 (gimple_stmt_iterator_d): ... This.
27794 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
27795 trees be valid for GIMPLE and GENERIC.
27796 (TARGET_GIMPLE_FOLD_BUILTIN): New.
27797 * gimple-fold.c (gimple_fold_call): Call target hook
27798 gimple_fold_builtin.
27799 * hooks.c (hook_bool_gsiptr_false): New.
27800 * hooks.h (hook_bool_gsiptr_false): New.
27801 * target.def (fold_stmt): New.
27802 * doc/tm.texi: Regenerate.
27804 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
27807 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
27808 a set sp if no stack realignment.
27810 2013-04-22 Nick Clifton <nickc@redhat.com>
27812 * config.gcc (tilegx-linux): Extend extra_objs rather than
27814 (tilepro-linux): Likewise.
27816 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27818 * config/aarch64/aarch64-builtins.c
27820 (CF0, CF1, CF2, CF3, CF4, CF10): New.
27821 (VAR<1-12>): Add MAP parameter.
27822 (BUILTIN_*): Likewise.
27823 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
27824 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
27825 (aarch64_ushl_n<mode>): Likewise.
27826 (aarch64_sshr_n<mode>): Likewise.
27827 (aarch64_ushr_n<mode>): Likewise.
27828 (aarch64_<maxmin><mode>): Likewise.
27829 (aarch64_sqrt<mode>): Likewise.
27830 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
27831 (vshr<q>_n_*): Likewise.
27833 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27835 * config/aarch64/aarch64-builtins.c
27836 (aarch64_simd_builtin_type_mode): Handle SF types.
27838 (BUILTIN_GPF): Define.
27839 (aarch64_init_simd_builtins): Handle SF types.
27840 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
27841 (frecps): Likewise.
27842 (frecpx): Likewise.
27843 * config/aarch64/aarch64-simd.md
27844 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
27845 (aarch64_frecpe<mode>): New.
27846 (aarch64_frecps<mode>): Likewise.
27847 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
27848 (v8type): Add frecp<esx>.
27849 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
27850 (aarch64_frecps<mode>): Likewise.
27851 * config/aarch64/iterators.md (FRECP): New.
27852 (frecp_suffix): Likewise.
27853 * config/aarch64/arm_neon.h
27854 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
27856 2013-04-22 Christian Bruel <christian.bruel@st.com>
27859 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
27860 (REG_CLASS_NAMES): Idem.
27861 (REG_CLASS_CONTENTS): Idem.
27862 (REGCLASS_HAS_FP_REG): Idem.
27863 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
27864 (sh_conditional_register_usage): Idem.
27866 2013-04-21 Jeff Law <law@redhat.com>
27868 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
27869 (ssa_forward_propagate_and_combine): Use it.
27871 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
27873 * lra.c: Update the flow chart diagram.
27875 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
27877 PR rtl-optimization/56847
27878 * lra-constraints.c (process_alt_operands): Discourage alternative
27879 with non-matche doffsettable memory constraint fro memory with
27882 2013-04-19 Richard Biener <rguenther@suse.de>
27884 PR tree-optimization/56982
27885 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
27887 * gimplify.c (gimplify_call_expr): Notice special calls.
27888 (gimplify_modify_expr): Likewise.
27889 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
27890 abnormal control flow receivers.
27891 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
27892 in the same way as cfun->has_nonlocal_labels.
27893 (gimple_purge_dead_abnormal_call_edges): Likewise.
27894 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
27895 receivers start a basic-block.
27897 2013-04-19 Richard Biener <rguenther@suse.de>
27899 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
27901 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
27902 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
27903 (SLP_TREE_LOAD_PERMUTATION): Add.
27904 (vect_transform_slp_perm_load): Adjust prototype.
27905 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
27906 (vect_free_slp_instance): Likewise.
27907 (vect_create_new_slp_node): Likewise.
27908 (vect_supported_slp_permutation_p): Remove.
27909 (vect_slp_rearrange_stmts): Adjust.
27910 (vect_supported_load_permutation_p): Likewise. Inline
27911 vect_supported_slp_permutation_p here.
27912 (vect_analyze_slp_instance): Compute load permutations per
27913 slp node instead of per instance.
27914 (vect_get_slp_defs): Adjust.
27915 (vect_transform_slp_perm_load): Likewise.
27916 (vect_schedule_slp_instance): Remove redundant code.
27917 (vect_schedule_slp): Remove hack for PR56270, add it ...
27918 * tree-vect-stmts.c (vectorizable_load): ... here, do not
27919 CSE loads for SLP. Adjust.
27921 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
27923 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
27924 spelling in two comments.
27926 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
27929 * config/arm/arm.c (load_multiple_sequence): Require SP
27930 as base register for loads if SP is in the register list.
27932 2013-04-19 Martin Jambor <mjambor@suse.cz>
27934 PR tree-optimization/56718
27935 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
27936 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
27937 and made public. Adjusted all callers.
27938 (ipa_intraprocedural_devirtualization): New function.
27939 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
27940 (ipa_intraprocedural_devirtualization): Likewise.
27941 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
27943 2013-04-19 Richard Biener <rguenther@suse.de>
27945 PR tree-optimization/57000
27946 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
27948 2013-04-19 Terry Guo <terry.guo@arm.com>
27950 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
27952 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
27953 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
27954 (cortex_m4_fmacs): Use new reservations.
27955 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
27957 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
27959 PR rtl-optimization/56999
27960 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
27962 (lra_coalesce): Remove split_origin_bitmap and related code.
27963 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
27964 ranges if necessary.
27966 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
27968 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
27970 (ix86_expand_call): Remove clobbered_registers array and use
27971 x86_64_ms_sysv_extra_clobbered_registers instead.
27972 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
27974 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
27976 * config/i386/i386.md (*call_rex64_ms_sysv): Use
27977 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
27978 (*call_value_rex64_ms_sysv): Ditto.
27980 2013-04-18 Cary Coutant <ccoutant@google.com>
27982 * dwarf2out.c (output_pubnames): Check die_perennial_p of
27983 parent instead of die_mark.
27985 2013-04-18 Diego Novillo <dnovillo@google.com>
27987 * gimple.c (create_gimple_tmp): New.
27988 (get_expr_type): New.
27989 (build_assign): New.
27990 (build_type_cast): New.
27991 * gimple.h (enum ssa_mode): Define.
27992 (gimple_seq_set_location): New.
27993 * asan.c (build_check_stmt): Change some gimple_build_* calls
27994 to use build_assign and build_type_cast.
27996 2013-04-18 Richard Biener <rguenther@suse.de>
27998 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27999 handle negative step. Remove redundant checks.
28000 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
28001 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
28002 for negative step and grouped loads fail to vectorize.
28004 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
28006 * emit-rtl.c (reset_insn_used_flags): New function.
28007 (reset_all_used_flags): Use it.
28008 (verify_insn_sharing): New function.
28009 (verify_rtl_sharing): Fix verification for SEQUENCEs.
28011 2013-04-18 Jakub Jelinek <jakub@redhat.com>
28013 PR tree-optimization/56984
28014 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
28015 and (x >> M) >= N don't register any assertion if N << M is the
28018 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
28020 * lower-subreg.c (resolve_simple_move): If called self-recursive,
28021 do not delete_insn insns that have not yet been emitted, only
28022 unlink them with remove_insn.
28023 * df-scan.c (df_insn_delete): Revert r197492.
28025 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
28027 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
28028 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
28030 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
28032 * config/arm/arm.md (movsicc_insn): Convert define_insn into
28033 define_insn_and_split.
28034 (and_scc,ior_scc,negscc): Likewise.
28035 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
28037 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
28039 * config/arm/arm.c (use_return_insn): Return 0 for targets that
28040 can benefit from using a sequence of LDRD instructions in epilogue
28041 instead of a single LDM instruction.
28043 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
28046 * doc/extend.texi: Fix typo.
28048 2013-04-17 Richard Biener <rguenther@suse.de>
28050 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
28051 (vect_build_slp_tree): ... here.
28052 (vect_build_slp_tree_1): Compute which stmts of the SLP group
28053 match. Remove special-casing of mismatched complex loads.
28054 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
28055 re-try the match with swapped commutative operands.
28056 (vect_supported_load_permutation_p): Remove special-casing of
28057 mismatched complex loads.
28058 (vect_analyze_slp_instance): Adjust.
28060 2013-04-17 Richard Biener <rguenther@suse.de>
28062 PR rtl-optimization/56921
28063 * cfgloop.h (struct loop): Add simple_loop_desc member.
28064 (struct niter_desc): Mark with GTY(()).
28065 (simple_loop_desc): Do not use aux field but simple_loop_desc.
28066 * loop-iv.c (get_simple_loop_desc): Likewise.
28067 (free_simple_loop_desc): Likewise.
28070 2013-04-16 Richard Biener <rguenther@suse.de>
28072 PR rtl-optimization/56921
28073 * loop-init.c (pass_rtl_move_loop_invariants): Add
28074 TODO_do_not_ggc_collect to todo_flags_finish.
28075 (pass_rtl_unswitch): Same.
28076 (pass_rtl_unroll_and_peel_loops): Same.
28077 (pass_rtl_doloop): Same.
28079 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
28081 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
28082 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
28083 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
28085 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
28086 * tree-streamer.c (record_common_node): Adjust reference in comment.
28088 2013-04-17 Terry Guo <terry.guo@arm.com>
28090 * config/arm/cortex-m4.md: Add a new bypass.
28092 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28094 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
28096 (*subs_<optab><mode>_multp2): New pattern.
28097 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
28098 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
28100 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28102 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
28103 (*subs_mul_imm_<mode>): New pattern.
28105 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
28108 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
28109 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
28110 (vsx_movti_32bit): Change j->wa to O->wa.
28112 2013-04-16 Richard Biener <rguenther@suse.de>
28114 PR rtl-optimization/56921
28115 * loop-init.c (pass_rtl_move_loop_invariants): Add
28116 TODO_do_not_ggc_collect to todo_flags_finish.
28117 (pass_rtl_unswitch): Same.
28118 (pass_rtl_unroll_and_peel_loops): Same.
28119 (pass_rtl_doloop): Same.
28121 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
28123 * config/arm/arm.c (emit_multi_reg_push): New declaration
28124 for an existing function.
28125 (arm_emit_strd_push): New function.
28126 (arm_expand_prologue): Used here.
28127 (arm_emit_ldrd_pop): New function.
28128 (arm_expand_epilogue): Used here.
28129 (arm_get_frame_offsets): Update condition.
28130 (arm_emit_multi_reg_pop): Add a special case for load of a single
28131 register with writeback.
28133 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
28135 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
28138 2013-04-16 Richard Biener <rguenther@suse.de>
28140 PR tree-optimization/56756
28141 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
28142 (first_mem_ref_loc): New.
28143 (execute_sm): Place the load temporarily before a previous
28144 access instead of in the latch edge to ensure its SSA dependencies
28145 are defined at points dominating the load.
28147 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
28149 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
28150 correct fix by moving header and footer insn to the footer of
28151 the merged basic block. Clear BB_END of the merged-away block.
28153 PR middle-end/43631
28154 * emit-rtl.c (make_note_raw): New function.
28155 (link_insn_into_chain): New static inline function.
28156 (add_insn): Use it.
28157 (add_insn_before, add_insn_after): Factor insn chain linking code...
28158 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
28159 using link_insn_into_chain.
28160 (note_outside_basic_block_p): New helper function for emit_note_after
28161 and emit_note_before.
28162 (emit_note_after): Use nobb variant of add_insn_after if the note
28163 should not be contained in a basic block.
28164 (emit_note_before): Use nobb variant of add_insn_before if the note
28165 should not be contained in a basic block.
28166 (emit_note_copy): Use make_note_raw.
28167 (emit_note): Likewise.
28168 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
28169 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
28170 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
28171 the moved barrier the tail of the basic block it follows.
28172 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
28174 2013-04-15 Jakub Jelinek <jakub@redhat.com>
28176 PR tree-optimization/56962
28177 * gimple-ssa-strength-reduction.c (record_increment): Only set
28178 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
28179 either rhs1 or rhs2 is equal to c->base_expr.
28181 2013-04-15 Richard Biener <rguenther@suse.de>
28183 PR tree-optimization/56933
28184 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
28186 (GROUP_READ_WRITE_DEPENDENCE): Remove.
28187 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
28188 * tree-vect-data-refs.c (vect_analyze_group_access): Move
28189 dependence check ...
28190 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
28192 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
28193 GROUP_READ_WRITE_DEPENDENCE.
28195 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28197 * emit-rtl.c (reset_all_used_flags): New function.
28198 (verify_rtl_sharing): Call reset_all_used_flags before and after
28199 performing the checks.
28201 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28203 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
28204 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
28205 * config/arm/constraints.md (De): New constraint.
28206 * config/arm/neon.md (anddi3_neon): Delete.
28207 (neon_vand<mode>): Expand to standard anddi3 pattern.
28208 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
28209 Move earlier in the file.
28210 (neon_inv_logic_op2): Likewise.
28211 (arm_anddi_operand_neon): New predicate.
28213 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28215 * configure.ac (gcc_cv_ld_as_needed): Set
28216 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
28217 Use -z ignore, -z record on *-*-solaris2*.
28218 (HAVE_LD_AS_NEEDED): Update comment.
28219 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
28220 * configure: Regenerate.
28221 * config.in: Regenerate.
28222 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
28223 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
28224 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
28225 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
28226 equivalents. Fix markup.
28227 * doc/tm.texi: Regenerate.
28229 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
28231 * config/i386/i386.opt: New option mstack-protector-guard=.
28232 * config/i386/i386-opts.h: Add enum stack_protector_guard.
28233 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
28234 TARGET_SSP_TLS_GUARD.
28235 * config/i386/i386.c (ix86_option_override_internal): Set
28236 ix86_stack_protector_guard.
28237 * config/i386/i386.md (stack_protect_set): Enable for
28238 TARGET_SSP_TLS_GUARD only.
28239 (stack_protect_set_<mode>): Ditto.
28240 (stack_protect_test): Ditto.
28241 (stack_protect_test_<mode>): Ditto.
28242 * doc/invoke.texi (i386 Option): Document.
28244 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
28247 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
28248 (S_MODES): Set H_MODE bit.
28249 (SF_MODES): Set only S_MODE and SF_MODE bits.
28250 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
28251 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
28252 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
28253 <MODE_FLOAT>: Likewise.
28255 2013-04-15 Joey Ye <joey.ye@arm.com>
28257 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
28259 2013-04-15 Joey Ye <joey.ye@arm.com>
28261 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
28263 (thumb_far_jump_used_p): Count instruction size and set
28266 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
28268 * reorg.c (fill_simple_delay_slots): Reindent block of code.
28269 * resource.c (mark_target_live_regs): Reformat conditional block.
28271 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
28273 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
28274 notes, they are emitted only just before final.
28275 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
28277 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
28279 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
28280 * cfgrtl.c (delete_insn): Call it here instead.
28281 * lra-spills.c (lra_final_code_change): Use delete_insn.
28282 * haifa-sched.c (sched_remove_insn): Likewise.
28283 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
28284 returning to the nop pool.
28285 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
28286 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
28288 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
28290 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
28291 * doc/tm.texi: Regenerated.
28293 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
28295 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
28298 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
28300 * df-core.c (df_find_def): Compare register numbers.
28301 (df_find_use): Likewise.
28303 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
28306 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
28307 lra_in_progress for return.
28309 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
28311 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
28312 define_insn into define_insn_and_split and emit movsicc patterns.
28314 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
28316 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
28318 2013-04-12 Richard Biener <rguenther@suse.de>
28320 * tree-pass.h (TODO_do_not_ggc_collect): New.
28321 * passes.c (execute_one_ipa_transform_pass): Honor
28322 TODO_do_not_ggc_collect.
28323 (execute_one_pass): Likewise.
28326 2013-04-10 Richard Biener <rguenther@suse.de>
28328 * passes.c (init_optimization_passes): Remove reload pass.
28329 * ira.c (do_reload): Merge into ...
28331 (rest_of_handle_reload): Remove.
28332 (pass_reload): Likewise.
28333 * config/i386/i386.c (ix86_option_override): Refer to ira instead
28334 of reload for vzeroupper pass placement.
28336 2013-04-12 Jakub Jelinek <jakub@redhat.com>
28338 PR tree-optimization/56918
28339 PR tree-optimization/56920
28340 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
28341 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
28342 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
28343 use wide_mul_with_sign method.
28345 2013-04-12 Richard Biener <rguenther@suse.de>
28347 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
28348 not be considered a gimple constant.
28350 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
28352 * fold-const.c (const_binop): Handle vector shifts by a scalar.
28353 (fold_binary_loc): Call const_binop also for mixed vector-scalar
28356 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
28357 Jakub Jelinek <jakub@redhat.com>
28359 * opts.c: Include diagnostic-color.h.
28360 (common_handle_option): Handle OPT_fdiagnostics_color_.
28361 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
28362 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
28363 (diagnostic-color.o): New.
28364 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
28365 (diagnostic_color_rule): New enum.
28366 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
28367 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
28368 the location string.
28369 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
28370 either NULL, or color kind.
28371 * diagnostic-color.c: New file.
28372 * diagnostic-color.h: New file.
28373 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
28375 * doc/invoke.texi (-fdiagnostics-color): Document.
28376 * pretty-print.h (pp_show_color): Define.
28377 (struct pretty_print_info): Add show_color field.
28378 * diagnostic.c: Include diagnostic-color.h.
28379 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
28380 macros. Colorize error:, warning: etc. strings and also the location
28382 (diagnostic_show_locus): Colorize the caret line.
28383 * pretty-print.c: Include diagnostic-color.h.
28384 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
28385 inside of %< %> quotes or quoted through q format modifier.
28387 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28389 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
28391 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28393 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
28394 code in CC_NZ mode.
28395 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
28398 2013-04-11 Marek Polacek <polacek@redhat.com>
28400 PR tree-optimization/48184
28401 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
28403 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
28405 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
28406 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
28407 (skip_simple_arithmetic): Tidy up.
28408 * tree.h (skip_simple_constant_arithmetic): Declare.
28410 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28412 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
28414 2013-04-11 Richard Biener <rguenther@suse.de>
28416 * tree-vect-loop.c (get_initial_def_for_induction): Properly
28417 generate vector constants.
28419 2013-04-11 Richard Biener <rguenther@suse.de>
28421 PR tree-optimization/56878
28422 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
28423 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
28425 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28426 Prefer to align the DR with the most invariant base address.
28428 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28430 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
28433 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28435 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
28436 floating-point vector comparisons against 0.
28438 2013-04-11 Jakub Jelinek <jakub@redhat.com>
28440 PR tree-optimization/56899
28441 * fold-const.c (extract_muldiv_1): Apply distributive law
28442 only if TYPE_OVERFLOW_WRAPS (ctype).
28444 2013-04-11 Bin Cheng <bin.cheng@arm.com>
28447 * ira-costs.c (scan_one_insn): Check whether the source rtx of
28448 loading has side effect.
28450 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
28452 * config/sparc/sparc.c: Include tree-pass.h.
28453 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
28454 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
28455 head of file. Change return type. Split off gate function.
28456 (sparc_gate_work_around_errata): New function.
28457 (pass_work_around_errata): New pass definition.
28458 (insert_pass_work_around_errata) New pass insert definition to
28459 insert pass_work_around_errata just after delayed-branch scheduling.
28460 (sparc_option_override): Insert the pass.
28461 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
28463 2013-04-10 David S. Miller <davem@davemloft.net>
28465 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
28466 or -mcpu=hypersparc.
28468 * target.def (cstore_mode): New hook.
28469 * target.h: Include insn-codes.h
28470 * targhooks.c: Likewise.
28471 (default_cstore_mode): New function.
28472 * targhooks.h: Declare it.
28473 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
28474 * doc/tm.texi: Rebuild.
28475 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
28476 target hook, rather than inspecting the insn_data.
28477 * config/sparc/sparc.c (sparc_cstore_mode): New function.
28478 (TARGET_CSTORE_MODE): Redefine.
28479 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
28481 * config/sparc/predicates.md (cstore_result_operand): New special
28483 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
28484 Use it for operand 0.
28485 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
28486 (*snesi_special): Likewise.
28487 (*snesi_zero): Likewise.
28488 (*seqsi_zero): Likewise.
28489 (*sltu_insn): Likewise.
28490 (*sgeu_insn): Likewise.
28491 (*seqdi_special): Make operand 0 and comparison operation be of
28493 (*snedi_special): Likewise.
28494 (*snedi_special_vis3): Likewise.
28495 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
28496 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
28497 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
28498 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
28499 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
28500 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
28501 (*sltu_extend_sp64): Likewise.
28502 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
28503 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
28504 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
28505 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
28506 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
28508 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
28510 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
28511 (aarch64_start_file): Use the new function.
28513 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28514 Jason Merrill <jason@redhat.com>
28516 * common.opt: Add -gdwarf.
28517 * opts.c (common_handle_option): Handle it.
28518 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
28520 2013-04-10 Richard Biener <rguenther@suse.de>
28522 * passes.c (execute_todo): Do not call ggc_collect conditional here.
28523 (execute_one_ipa_transform_pass): But unconditionally here.
28524 (execute_one_pass): And here.
28525 (init_optimization_passes): Remove reload pass.
28526 * tree-pass.h (TODO_ggc_collect): Remove.
28527 (pass_reload): Likewise.
28528 * ira.c (do_reload): Merge into ...
28530 (rest_of_handle_reload): Remove.
28531 (pass_reload): Likewise.
28532 * config/i386/i386.c (ix86_option_override): Refer to ira instead
28533 of reload for vzeroupper pass placement.
28534 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
28535 and todo_flags_finish of all passes.
28537 2013-04-10 Richard Biener <rguenther@suse.de>
28539 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
28540 first_const_oprnd field, rename first_def_type to first_op_type.
28541 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
28542 (vect_get_and_check_slp_defs): Always use the type of the
28543 operand. Allow mixed vect_external_def, vect_constant_def types.
28544 (vect_get_constant_vectors): Handle mixed vect_external_def,
28545 vect_constant_def types.
28547 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
28549 PR tree-optimization/55524
28550 * tree-ssa-math-opts.c
28551 (convert_mult_to_fma): Don't use an fms construct
28552 when we don't have an fms operation, but fnma, and it looks
28553 likely that we'll be able to use the latter.
28555 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
28557 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
28559 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
28560 inline fail caused by overwritable functions.
28562 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
28564 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
28565 unnecessary bits in the constant power of two case.
28567 2013-04-10 Richard Biener <rguenther@suse.de>
28569 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
28570 broken code swapping operands.
28571 (vect_build_slp_tree): Do not compute load permutations here.
28572 (vect_analyze_slp_instance): Compute load permutations here,
28573 after building the SLP tree.
28575 2013-04-09 Christian Bruel <christian.bruel@st.com>
28577 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
28578 of next/prev_real_insn.
28580 2013-04-09 Jan Hubicka <jh@suse.cz>
28582 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
28583 Drop aliased parameter.
28584 (function_and_variable_visibility): Do not handle alias pairs.
28585 * cgraph.c (varpool_externally_visible_p): Update prototype.
28586 * varpool.c (varpool_add_new_variable): Update.
28588 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28590 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
28592 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
28594 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
28596 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
28598 2013-04-09 Marek Polacek <polacek@redhat.com>
28600 PR tree-optimization/48762
28601 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
28603 2013-04-09 Richard Biener <rguenther@suse.de>
28605 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
28607 (vect_build_slp_tree): Likewise.
28608 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
28609 calculating the cost of a SLP instance.
28610 (vect_analyze_slp_instance): Use it from here, after building
28613 2013-04-09 Jakub Jelinek <jakub@redhat.com>
28615 PR middle-end/56883
28616 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
28617 expand_omp_for_static_chunk): Use simple_p = true in
28618 force_gimple_operand_gsi calls when assigning to addressable decls.
28620 2013-04-09 Jeff Law <law@redhat.com>
28622 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
28623 when the boolean was created by converting a wider object which
28624 had a boolean range.
28626 2013-04-09 Richard Biener <rguenther@suse.de>
28628 * tree-vectorizer.h (slp_void_p): Remove.
28629 (slp_tree): Typedef before _slp_tree declaration.
28630 (struct _slp_tree): Use a vector of slp_tree as children.
28631 (vect_get_place_in_interleaving_chain): Remove.
28632 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
28634 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
28636 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
28637 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
28638 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
28639 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
28640 Use slp_node instead of slp_void_p and adjust.
28642 2013-04-09 Richard Biener <rguenther@suse.de>
28644 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
28645 work that is not necessary.
28647 2013-04-09 Jakub Jelinek <jakub@redhat.com>
28649 PR tree-optimization/56854
28650 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
28651 forward into clobber stmts if it would change MEM_REF lhs into
28654 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
28656 * tree.c (type_hash_lookup, type_hash_add): Make static.
28657 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
28659 2013-04-09 Richard Biener <rguenther@suse.de>
28661 * tree.h (unsave_expr_now): Remove.
28662 * tree-inline.c (mark_local_for_remap_r): Remove.
28663 (unsave_expr_1): Likewise.
28664 (unsave_r): Likewise.
28665 (unsave_expr_now): Likewise.
28666 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
28667 (propagate_tree_value): Likewise.
28669 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
28671 * doc/rtl.texi (sequence): Rewrite documentation to match the
28672 current use of SEQUENCE rtl objects.
28673 * rtl.def (SEQUENCE): Likewise.
28675 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
28676 Update documentation.
28677 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
28678 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
28680 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
28682 2013-04-08 Teresa Johnson <tejohnson@google.com>
28684 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
28685 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
28687 (estimate_edge_size_and_time): Add comment to suggest using rounding
28689 (estimate_node_size_and_time): Ditto.
28690 (remap_edge_change_prob): Use helper rounding divide methods.
28691 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
28692 (gimple_mod_pow2_value_transform): Ditto.
28693 (gimple_mod_subtract_transform): Ditto.
28694 (gimple_ic_transform): Ditto.
28695 (gimple_stringops_transform): Ditto.
28696 * stmt.c (conditional_probability): Ditto.
28697 (emit_case_dispatch_table): Ditto.
28698 * lto-cgraph.c (merge_profile_summaries): Ditto.
28699 * tree-optimize.c (execute_fixup_cfg): Ditto.
28700 * cfgcleanup.c (try_forward_edges): Ditto.
28701 * cfgloopmanip.c (scale_loop_profile): Ditto.
28703 (duplicate_loop_to_header_edge): Ditto.
28704 (lv_adjust_loop_entry_edge): Ditto.
28705 * tree-vect-loop.c (vect_transform_loop): Ditto.
28706 * profile.c (compute_branch_probabilities): Ditto.
28707 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
28708 * lto-streamer-in.c (input_cfg): Ditto.
28709 * gimple-streamer-in.c (input_bb): Ditto.
28710 * ipa-cp.c (update_profiling_info): Ditto.
28711 (update_specialized_profile): Ditto.
28712 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
28713 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
28715 * sched-rgn.c (compute_dom_prob_ps): Ditto.
28716 (compute_trg_info): Ditto.
28717 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
28718 (purge_dead_edges): Ditto.
28719 * loop-unswitch.c (unswitch_loop): Ditto.
28720 * cgraphclones.c (cgraph_clone_edge): Ditto.
28721 (cgraph_clone_node): Ditto.
28722 * tree-inline.c (copy_bb): Ditto.
28723 (copy_edges_for_bb): Ditto.
28724 (initialize_cfun): Ditto.
28725 (copy_cfg_body): Ditto.
28726 (expand_call_inline): Ditto.
28728 2013-04-08 Kai Tietz <ktietz@redhat.com>
28730 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
28731 TARGET_CYGWIN64 by TARGET_64BIT.
28733 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
28735 * config/epiphany/epiphany.md (GPR_1): New constant.
28736 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
28737 * config/epiphany/epiphany.c (gen_compare_reg):
28738 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
28739 is already in place.
28740 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
28741 Don't require being called during rtl expansion; If y operlaps r0,
28743 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
28744 (epiphany_expand_epilogue): Likewise.
28746 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
28747 Don't use CC_FPmode for ORDERED / UNORDERED.
28748 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
28750 * config/epiphany/constraints.md (CnL): New constraint.
28751 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
28752 * config/epiphany/predicates.md (add_operand): Allow 1024.
28754 * config/epiphany/epiphany.md (logical_op): New code iterator.
28755 (op_mnc): New code attribute.
28756 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
28757 (mov_f+1, mov_f+2): New peephole2 patterns.
28759 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
28760 (cstoresi4): Also allow re-use of zero result when doing a NE
28761 comparison to a non-zero operand.
28762 Use (clobber (scratch)) for first insn if the gpr output is not needed.
28764 * config/epiphany/epiphany.md (<insn_opname>v2si3):
28765 Use gen_addsi3_i / gen_subsi3_i.
28767 2013-04-08 Jakub Jelinek <jakub@redhat.com>
28771 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
28772 contain anything but clobbers, at most one __builtin_stack_restore,
28773 optionally debug stmts and final resx, and if it has at least one
28774 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
28775 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
28776 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
28777 which isn't defaut definition, remove them.
28778 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
28779 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
28780 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
28781 with MEM_REF LHS with SSA_NAME address.
28783 2013-04-08 Jeff Law <law@redhat.com>
28785 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
28787 2013-04-08 Richard Biener <rguenther@suse.de>
28789 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
28791 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
28792 determined vector type.
28793 (vect_analyze_data_refs): Likewise.
28794 (vect_get_new_vect_var): Adjust.
28795 (vect_create_destination_var): Preserve SSA name versions.
28796 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
28797 not dump anything here.
28799 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
28801 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
28802 Add member lr_slot_known.
28803 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
28805 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
28806 Remove code that sets lr_slot_offset according to what a previous
28807 version of epiphany_emit_save_restore used to do.
28808 (epiphany_emit_save_restore): When doing an lr save or restore,
28809 set/verify lr_slot_known and lr_slot_offset.
28811 2013-04-08 Xinyu Qi <xyqi@marvell.com>
28814 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
28817 2013-04-08 Richard Biener <rguenther@suse.de>
28819 * alias.c (find_base_term): Fix thinko in previous change.
28821 2013-04-08 Jakub Jelinek <jakub@redhat.com>
28823 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
28824 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
28825 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
28826 if possible to compute val.
28827 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
28828 For QImode integers don't require anything about precision. Use
28829 const_with_all_bytes_same to find out if the constant doesn't have
28830 repeated bytes in it.
28832 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28834 * config/s390/s390.c (s390_expand_insv): Only accept insertions
28837 2013-04-08 Marek Polacek <polacek@redhat.com>
28839 PR rtl-optimization/48182
28840 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
28843 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28846 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
28847 nuses, make sure we have a label.
28849 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28852 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
28853 (rs6000_emit_swdiv_low_precision): Remove.
28854 (rs6000_emit_swdiv): Rewrite to handle between one and four
28855 iterations of Newton-Raphson generally; modify required number of
28856 iterations for some cases.
28857 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
28859 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
28861 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
28862 set-but-unused variable.
28864 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
28865 basic blocks of released function bodies garbage-collectable.
28867 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
28868 (struct rtl_opt_pass): Add TODO_df_finish.
28870 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
28872 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28874 * config/arm/constraints.md (q): New constraint.
28875 * config/arm/ldrdstrd.md: New file.
28876 * config/arm/arm.md (ldrdstrd.md) New include.
28877 (arm_movdi): Use "q" instead of "r" constraint
28878 for double-word memory access.
28879 (movdf_soft_insn): Likewise.
28880 * config/arm/vfp.md (movdi_vfp): Likewise.
28881 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
28882 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
28883 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
28884 (mem_ok_for_ldrd_strd): Likewise.
28885 (output_move_double): Update assertion.
28887 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28889 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
28891 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28893 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
28894 define_insn_and_split.
28895 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
28897 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28899 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
28900 define_insn_and_split.
28901 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
28902 (shiftsi3_compare): New pattern.
28903 (rrx): New pattern.
28904 * config/arm/unspecs.md (UNSPEC_RRX): New.
28906 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28908 * config/arm/arm.md (negdi_extendsidi): New pattern.
28909 (negdi_zero_extendsidi): Likewise.
28911 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28913 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
28914 define_insn_and_split.
28915 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
28916 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
28918 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28920 * config/arm/arm.md (arm_subdi3): Convert define_insn into
28921 define_insn_and_split.
28922 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
28923 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
28925 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28927 * config/arm/arm.md (subsi3_carryin): New pattern.
28928 (subsi3_carryin_const): Likewise.
28929 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
28930 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
28932 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28934 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
28936 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28938 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
28939 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
28941 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28943 * config/arm/arm.c (arm_expand_builtin): Change fcode
28944 type to unsigned int.
28946 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28948 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
28950 2013-04-04 Ian Lance Taylor <iant@google.com>
28952 * doc/standards.texi (Standards): The Go frontend supports the Go 1
28955 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
28957 PR middle-end/56729
28958 * df-scan.c (df_insn_delete): Disable failing assert.
28960 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28962 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
28963 New function prototype.
28964 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
28965 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
28966 (arm_builtin_vectorized_function): New function.
28968 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28970 * config/arm/arm_neon_builtins.def: New file.
28971 * config/arm/arm.c (neon_builtin_data): Move contents to
28972 arm_neon_builtins.def.
28973 (enum arm_builtins): Include neon builtin definitions.
28974 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
28975 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
28977 2013-04-04 Marek Polacek <polacek@redhat.com>
28979 PR tree-optimization/48186
28980 * predict.c (maybe_hot_frequency_p): Return false if
28981 HOT_BB_FREQUENCY_FRACTION is 0.
28982 (cgraph_maybe_hot_edge_p): Likewise.
28984 2013-04-04 Richard Biener <rguenther@suse.de>
28986 PR tree-optimization/56826
28987 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
28990 2013-04-04 Richard Biener <rguenther@suse.de>
28992 PR tree-optimization/56213
28993 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
28994 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
28996 2013-04-04 Richard Biener <rguenther@suse.de>
28998 PR tree-optimization/56837
28999 * tree-loop-distribution.c (classify_partition): For non-zero
29000 values require that the value has the same precision as its
29001 mode to be useful as memset value.
29003 2013-04-03 Nick Clifton <nickc@redhat.com>
29005 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
29006 (fmssf4): Use fmsf.s on E3V5 architectures.
29007 (fnmasf4): Use fnmaf.s on E3V5 architectures.
29008 (fnmssf4): Use fnmsf.s on E3V5 architectures.
29010 2013-04-03 Jeff Law <law@redhat.com>
29012 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
29013 (lra-eliminations.o): Likewise.
29015 2013-04-03 Teresa Johnson <tejohnson@google.com>
29017 * gcov-io.c (compute_working_sets): Moved most of body of old
29018 compute_working_sets here from profile.c.
29019 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
29020 (gcov_working_set_t): Moved typedef here from basic-block.h
29021 (compute_working_set): Declare.
29022 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
29023 (get_working_sets): Renamed from compute_working_set,
29024 replace most of body with call to new compute_working_sets.
29025 (get_exec_counts): Replace call to compute_working_sets
29026 to get_working_sets.
29027 * profile.h (get_working_sets): Renamed from compute_working_set.
29028 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
29029 to get_working_sets.
29030 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
29031 * gcov-dump.c (dump_working_sets): New function.
29033 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
29035 * hwint.c (sext_hwi, zext_hwi): New functions.
29036 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
29037 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
29038 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
29039 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
29040 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
29041 (sext_hwi, zext_hwi): New functions.
29043 2013-04-03 Jeff Law <law@redhat.com>
29045 PR tree-optimization/56799
29046 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
29047 back test for widening conversion erroneously dropped in prior change.
29049 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29052 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
29053 instead of next_real_insn.
29055 2013-04-03 Marek Polacek <polacek@redhat.com>
29058 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
29060 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29063 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
29065 (thumb1_output_casesi): Likewise.
29066 (thumb2_output_casesi): Likewise.
29068 2013-04-03 Richard Biener <rguenther@suse.de>
29070 PR tree-optimization/56817
29071 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
29073 (tree_unroll_loops_completely_1): ... new function to manually
29074 walk the loop tree, properly defering outer loops of unrolled
29075 loops to later iterations.
29077 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
29079 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
29080 (vectorizable_load): Likewise.
29081 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
29082 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
29084 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
29086 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
29089 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29091 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
29093 2013-04-03 Bin Cheng <bin.cheng@arm.com>
29095 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
29097 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
29099 PR tree-optimization/56790
29100 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
29103 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
29105 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
29107 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
29108 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
29111 2013-04-03 Jakub Jelinek <jakub@redhat.com>
29114 * tree.h (force_folding_builtin_constant_p): New decl.
29115 * builtins.c (force_folding_builtin_constant_p): New variable.
29116 (fold_builtin_constant_p): Fold immediately also if
29117 force_folding_builtin_constant_p.
29119 2013-04-03 Richard Biener <rguenther@suse.de>
29121 PR tree-optimization/56812
29122 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
29123 DRs of the same interleaving chain are independent.
29125 2013-04-02 Jason Merrill <jason@redhat.com>
29127 * gdbinit.in (pbb): Use debug fn.
29129 2013-04-02 Lawrence Crowl <crowl@google.com>
29131 * sese.h (struct ivtype_map_elt_s): Remove unused.
29132 (extern debug_ivtype_map): Remove unused.
29133 (extern eq_ivtype_map_elts): Remove unused.
29134 * sese.c (debug_ivtype_map): Removed unused.
29135 (debug_ivtype_map_1): Removed unused.
29136 (debug_ivtype_elt): Remove unused.
29137 (eq_ivtype_map_elts): Remove unused.
29139 2013-04-02 Kai Tietz <ktietz@redhat.com>
29142 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
29143 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
29144 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
29146 (legitimize_pe_coff_symbol): Likewise.
29147 (is_imported_p): New helper-function.
29148 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
29149 for Windows x64 targets.
29150 (ix86_expand_prologue): Optimize for pe-coff targets.
29151 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
29152 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
29153 medium/large code-model.
29154 (legitimize_pic_address): Likewise.
29155 (legitimize_tls_address): Likewise.
29156 (ix86_expand_call): Likewise.
29157 (x86_output_mi_thunk): Likewise.
29158 (get_dllimport_decl): Add new beimport argument.
29159 (construct_plt_address): Don't assert for x64 pe-coff targets.
29160 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
29162 (SYMBOL_FLAG_STUBVAR): New macro.
29163 (SYMBOL_REF_STUBVAR_P): Likewise.
29164 * config/i386/winnt.c (stub_list): New structure.
29165 (stub_head): New local variable.
29166 (i386_pe_record_stub): New function.
29167 (i386_pe_file_end): Emit refptr-stubs.
29169 2013-04-02 Jakub Jelinek <jakub@redhat.com>
29171 PR rtl-optimization/56745
29172 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
29173 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
29176 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
29177 and both of them are MEM_REFs, just compare first argument for
29178 equality and attempt to deal even with differing offsets.
29181 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
29182 of gimple_clobber_p to be MEM_REF.
29183 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
29184 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
29185 after gimplification.
29186 * asan.c (get_mem_ref_of_assignment): Don't instrument
29187 gimple_clobber_p stmts.
29188 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
29189 gimple_clobber_p stmt if they have MEM_REF lhs and
29190 are dead because of another gimple_clobber_p stmt.
29191 * tree-ssa-live.c (clear_unused_block_pointer): Treat
29192 gimple_clobber_p stmts like debug stmts.
29193 (remove_unused_locals): Remove clobbers with MEM_REF lhs
29194 that refer to unused VAR_DECLs or uninitialized values.
29195 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
29196 gimple_clobber_p stmts if they refer to removed parameters.
29197 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
29200 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
29202 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
29203 using SWI48 mode attribute.
29205 2013-04-02 Wei Mi <wmi@google.com>
29207 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
29208 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
29209 *<rotate_insn><mode>3_mask in i386.md.
29211 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
29213 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
29215 2013-04-02 Richard Biener <rguenther@suse.de>
29217 PR tree-optimization/56778
29218 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29219 Runtime alias tests are not supported for gather loads.
29220 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
29221 stmts referenced from SSA operands before updating SSA form.
29223 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
29224 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29226 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
29227 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
29228 * config/arm/cortex-a53.md: New file.
29229 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
29230 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
29231 * config/arm/arm.c (arm_issue_rate): Likewise.
29232 * config/arm/arm-tune.md: Regenerate
29233 * config/arm/arm-tables.opt: Regenerate.
29234 * config/arm/arm-cores.def: Add cortex-a53.
29236 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
29238 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
29241 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
29243 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
29244 scalar load/store operations using B/H registers.
29245 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
29247 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
29249 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
29251 * config/aarch64/aarch64.c
29252 (aarch64_simd_scalar_immediate_valid_for_move): New.
29253 * config/aarch64/aarch64-protos.h
29254 (aarch64_simd_scalar_immediate_valid_for_move): New.
29255 * config/aarch64/constraints.md (Dh, Dq): New.
29256 * config/aarch64/iterators.md (hq): New.
29258 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
29260 * reorg.c (get_branch_condition): Deal with conditional returns.
29261 (fill_simple_delay_slots): Remove dead code dealing with jumps.
29263 2013-04-01 Wei Mi <wmi@google.com>
29265 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
29266 Truncate operand 2 using %b asm operand modifier.
29267 (*<shift_insn><mode>3_mask): Ditto.
29268 (*<rotate_insn><mode>3_mask): Ditto.
29270 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
29272 PR middle-end/56798
29273 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
29275 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
29277 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
29279 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
29281 2013-03-30 Lawrence Crowl <crowl@google.com>
29283 * dse.c (clear_alias_sets): Remove never set.
29284 (disqualified_clear_alias_sets): Remove never set.
29285 (clear_alias_mode_pool): Remove never set.
29286 (dse_step0): Remove condition that is never true.
29287 (canon_address): Remove condition that is never true.
29288 (dse_step7): Remove condition that is never true.
29289 (rest_of_handle_dse): Remove condition that is never true.
29290 (rest_of_handle_dse::did_global): Remove never read from above.
29291 (dse_step2_spill): Remove never called from above.
29292 (dse_step5_spill): Remove never called from above.
29294 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
29296 * doc/md.texi (Standard Names) <casesi>: Update documentation for
29297 JUMP_TABLE_DATA changes.
29298 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
29299 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
29300 (Insns) <jump_table_data>: New entry.
29301 * doc/tm.texi: Regenerate.
29303 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
29305 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
29306 for table jump at the end of a basic block using tablejump_p.
29307 * targhooks.c (default_invalid_within_doloop): Likewise.
29308 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
29309 target hook implementation that is identical to the default hook.
29310 (rs6000_invalid_within_doloop): Remove.
29312 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
29313 unused variable from tablejump_p call.
29315 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
29316 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
29317 (INSN_DELETED_P): Likewise.
29318 (emit_jump_table_data): New prototype.
29319 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
29320 after 4th as unused.
29321 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
29322 * sched-vis.c (print_insn): Likewise.
29323 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
29324 insn for compatibility with back ends that use next_active_insn to
29325 identify jump table data.
29326 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
29327 (remove_insn): Likewise.
29328 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
29330 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
29331 (emit_jump_table_data): New function.
29333 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
29334 basic block, a JUMP_TABLE_DATA never is.
29335 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
29336 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
29337 off from code handling real insns.
29338 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
29339 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
29340 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
29341 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
29342 is not a NONDEBUG_INSN_P.
29343 * ira-costs.c (scan_one_insn): Likewise.
29344 * jump.c (mark_all_labels): Likewise.
29345 (mark_jump_label_1): Likewise.
29346 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
29347 * lra.c (get_insn_freq): Expect all insns reaching here to be in
29349 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
29350 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
29351 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
29352 JUMP_TABLE_DATA_P insns.
29353 (calculate_elim_costs_all_insns): Likewise.
29354 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
29355 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
29356 (delete_output_reload): Code style fixups.
29357 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
29358 insn flags on this non-insn.
29359 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
29360 as scheduling barriers, for pre-change compatibility.
29361 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
29362 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
29364 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
29365 redundant JUMP_TABLE_DATA_P test.
29366 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
29367 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
29368 (frv_for_each_packet): Likewise.
29369 * config/i386/i386.c (min_insn_size): Likewise.
29370 (ix86_avoid_jump_mispredicts): Likewise.
29371 * config/m32r/m32r.c (m32r_is_insn): Likewise.
29372 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
29373 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
29374 (mips16_insn_length): Robustify.
29375 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
29376 (mips16_split_long_branches): Likewise.
29377 * config/pa/pa.c (pa_combine_instructions): Likewise.
29378 * config/rs6000/rs6000.c (get_next_active_insn): Treat
29379 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
29380 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
29381 as contributing to pool range lengths.
29382 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
29383 Remove redundant JUMP_TABLE_DATA_P test.
29384 (sh_loop_align): Likewise.
29385 (split_branches): Likewise.
29386 (sh_insn_length_adjustment): Likewise.
29387 * config/spu/spu.c (get_branch_target): Likewise.
29389 2013-03-29 Jan Hubicka <jh@suse.cz>
29391 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
29392 gcov streaming; stream hot bb threshold to ltrans.
29393 * predict.c (get_hot_bb_threshold): Break out from ....
29394 (maybe_hot_count_p): ... here.
29395 (set_hot_bb_threshold): New function.
29396 * lto-section-in.c (lto_section_name): Add profile.
29397 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
29398 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
29399 and data-streamer.h
29400 (histogram_entry): New structure.
29401 (histogram, histogram_pool): New global vars.
29402 (histogram_hash): New structure.
29403 (histogram_hash::hash): New method.
29404 (histogram_hash::equal): Likewise.
29405 (account_time_size): New function.
29406 (cmp_counts): New function.
29407 (dump_histogram): New function.
29408 (ipa_profile_generate_summary): New function.
29409 (ipa_profile_write_summary): New function.
29410 (ipa_profile_read_summary): New function.
29411 (ipa_profile): Decide on threshold.
29412 (pass_ipa_profile): Add ipa_profile_write_summary and
29413 ipa_profile_read_summary.
29414 * Makefile.in (ipa.o): Update dependencies.
29415 * lto-streamer.h (LTO_section_ipa_profile): New section.
29417 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
29419 * tree.h (VAR_P): New.
29421 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
29424 * doc/invoke.texi ([-fwhole-program]): Fix typo.
29426 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
29428 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
29429 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
29430 (control_flow_insn_p): Likewise.
29431 * cfgrtl.c (duplicate_insn_chain): Likewise.
29432 * final.c (get_attr_length_1): Likewise.
29433 (shorten_branches): Likewise.
29434 (final_scan_insn): Likewise.
29435 * function.c (instantiate_virtual_regs): Likewise.
29436 * gcse.c (insert_insn_end_basic_block): Likewise.
29437 * ira-costs.c (scan_one_insn): Likewise.
29438 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
29439 * lra.c (check_rtl): Likewise.
29440 * reload1.c (elimination_costs_in_insn): Likewise.
29441 * reorg.c (follow_jumps): Likewise.
29443 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
29444 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
29445 (thumb_far_jump_used_p): Likewise.
29446 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
29447 (workaround_speculation): Likewise.
29448 (add_sched_insns_for_speculation): Likewise.
29449 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
29450 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
29451 (frv_for_each_packet): Likewise.
29452 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
29453 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
29454 (final_emit_insn_group_barriers): Likewise.
29455 * config/m32r/m32r.c (m32r_is_insn): Likewise.
29456 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
29457 (mips16_insn_length): Likewise.
29458 * config/pa/pa.c (pa_reorg): Likewise.
29459 (pa_combine_instructions): Likewise.
29460 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
29461 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
29462 (sh_reorg): Likewise.
29463 (split_branches): Likewise.
29464 * config/spu/spu.c (get_branch_target): Likewise.
29466 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
29469 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
29471 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
29472 Fix declaration name.
29474 2013-03-28 Lawrence Crowl <crowl@google.com>
29476 * graphds.h (struct graph.indicies): Remove unused.
29477 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
29478 (SCOP_ORIGINAL_PDDRS): Remove unused.
29479 * sese.h (extern insert_loop_close_phis): Removed unused.
29480 (extern insert_guard_phis): Removed unused.
29481 (extern ivtype_map_elt_info): Removed unused.
29482 (new_ivtype_map_elt): Removed unused.
29483 * sese.c (ivtype_map_elt_info): Removed unused.
29485 2013-03-28 Lawrence Crowl <crowl@google.com>
29487 * Makefile.in: Add several missing include dependences.
29489 (test-dump.o): New. This object is not added to any executable,
29490 but is present for ad-hoc testing.
29492 (debug (const bitmap_head_def &)): New.
29493 (debug (const bitmap_head_def *)): New.
29495 (extern debug (const bitmap_head_def &)): New.
29496 (extern debug (const bitmap_head_def *)): New.
29498 (debug (edge_def &)): New.
29499 (debug (edge_def *)): New.
29501 (debug (basic_block_def &)): New.
29502 (debug (basic_block_def *)): New.
29504 (dump_node (const_tree, int, FILE *)): Correct source file.
29506 (debug (die_struct &)): New.
29507 (debug (die_struct *)): New.
29509 (extern debug (die_struct &)): New.
29510 (extern debug (die_struct *)): New.
29511 * gimple-pretty-print.c
29512 (debug (gimple_statement_d &)): New.
29513 (debug (gimple_statement_d *)): New.
29514 * gimple-pretty-print.h
29515 (extern debug (gimple_statement_d &)): New.
29516 (extern debug (gimple_statement_d *)): New.
29518 (debug (ira_allocno_copy &)): New.
29519 (debug (ira_allocno_copy *)): New.
29520 (debug (ira_allocno &)): New.
29521 (debug (ira_allocno *)): New.
29523 (extern debug (ira_allocno_copy &)): New.
29524 (extern debug (ira_allocno_copy *)): New.
29525 (extern debug (ira_allocno &)): New.
29526 (extern debug (ira_allocno *)): New.
29528 (debug (live_range &)): New.
29529 (debug (live_range *)): New.
29531 (debug (lra_live_range &)): New.
29532 (debug (lra_live_range *)): New.
29534 (debug (lra_live_range &)): New.
29535 (debug (lra_live_range *)): New.
29537 (debug (omega_pb_d &)): New.
29538 (debug (omega_pb_d *)): New.
29540 (extern debug (omega_pb_d &)): New.
29541 (extern debug (omega_pb_d *)): New.
29543 (debug (const rtx_def &)): New.
29544 (debug (const rtx_def *)): New.
29546 (debug_tree (tree): Move within file.
29547 (debug_raw (const tree_node &)): New.
29548 (debug_raw (const tree_node *)): New.
29549 (dump_tree_via_hooks (const tree_node *, int)): New.
29550 (debug (const tree_node &)): New.
29551 (debug (const tree_node *)): New.
29552 (debug_verbose (const tree_node &)): New.
29553 (debug_verbose (const tree_node *)): New.
29554 (debug_head (const tree_node &)): New.
29555 (debug_head (const tree_node *)): New.
29556 (debug_body (const tree_node &)): New.
29557 (debug_body (const tree_node *)): New.
29558 (debug_vec_tree (tree): Move and reimplement in terms of dump.
29559 (debug (vec<tree, va_gc> &)): New.
29560 (debug (vec<tree, va_gc> *)): New.
29562 (extern debug (const rtx_def &)): New.
29563 (extern debug (const rtx_def *)): New.
29565 (debug_raw (simple_bitmap_def &)): New.
29566 (debug_raw (simple_bitmap_def *)): New.
29567 (debug (simple_bitmap_def &)): New.
29568 (debug (simple_bitmap_def *)): New.
29570 (extern debug (simple_bitmap_def &)): New.
29571 (extern debug (simple_bitmap_def *)): New.
29572 (extern debug_raw (simple_bitmap_def &)): New.
29573 (extern debug_raw (simple_bitmap_def *)): New.
29575 (debug (vinsn_def &)): New.
29576 (debug (vinsn_def *)): New.
29577 (debug_verbose (vinsn_def &)): New.
29578 (debug_verbose (vinsn_def *)): New.
29579 (debug (expr_def &)): New.
29580 (debug (expr_def *)): New.
29581 (debug_verbose (expr_def &)): New.
29582 (debug_verbose (expr_def *)): New.
29583 (debug (vec<rtx> &)): New.
29584 (debug (vec<rtx> *)): New.
29586 (extern debug (vinsn_def &)): New.
29587 (extern debug (vinsn_def *)): New.
29588 (extern debug_verbose (vinsn_def &)): New.
29589 (extern debug_verbose (vinsn_def *)): New.
29590 (extern debug (expr_def &)): New.
29591 (extern debug (expr_def *)): New.
29592 (extern debug_verbose (expr_def &)): New.
29593 (extern debug_verbose (expr_def *)): New.
29594 (extern debug (vec<rtx> &)): New.
29595 (extern debug (vec<rtx> *)): New.
29597 (_list_iter_cond_expr): Make inline instead of static.
29599 (debug (sreal &)): New.
29600 (debug (sreal *)): New.
29602 (extern debug (sreal &)): New.
29603 (extern debug (sreal *)): New.
29605 (extern debug_raw (const tree_node &)): New.
29606 (extern debug_raw (const tree_node *)): New.
29607 (extern debug (const tree_node &)): New.
29608 (extern debug (const tree_node *)): New.
29609 (extern debug_verbose (const tree_node &)): New.
29610 (extern debug_verbose (const tree_node *)): New.
29611 (extern debug_head (const tree_node &)): New.
29612 (extern debug_head (const tree_node *)): New.
29613 (extern debug_body (const tree_node &)): New.
29614 (extern debug_body (const tree_node *)): New.
29615 (extern debug (vec<tree, va_gc> &)): New.
29616 (extern debug (vec<tree, va_gc> *)): New.
29618 (debug (struct loop &)): New.
29619 (debug (struct loop *)): New.
29620 (debug_verbose (struct loop &)): New.
29621 (debug_verbose (struct loop *)): New.
29622 * tree-dump.c: Add header dependence.
29624 (extern debug (struct loop &)): New.
29625 (extern debug (struct loop *)): New.
29626 (extern debug_verbose (struct loop &)): New.
29627 (extern debug_verbose (struct loop *)): New.
29629 (debug (data_reference &)): New.
29630 (debug (data_reference *)): New.
29631 (debug (vec<data_reference_p> &)): New.
29632 (debug (vec<data_reference_p> *)): New.
29633 (debug (vec<ddr_p> &)): New.
29634 (debug (vec<ddr_p> *)): New.
29636 (extern debug (data_reference &)): New.
29637 (extern debug (data_reference *)): New.
29638 (extern debug (vec<data_reference_p> &)): New.
29639 (extern debug (vec<data_reference_p> *)): New.
29640 (extern debug (vec<ddr_p> &)): New.
29641 (extern debug (vec<ddr_p> *)): New.
29643 (debug (pt_solution &)): New.
29644 (debug (pt_solution *)): New.
29646 (extern debug (pt_solution &)): New.
29647 (extern debug (pt_solution *)): New.
29649 (debug (_var_map &)): New.
29650 (debug (_var_map *)): New.
29651 (debug (tree_live_info_d &)): New.
29652 (debug (tree_live_info_d *)): New.
29654 (extern debug (_var_map &)): New.
29655 (extern debug (_var_map *)): New.
29656 (extern debug (tree_live_info_d &)): New.
29657 (extern debug (tree_live_info_d *)): New.
29659 2013-03-28 Jan Hubicka <jh@suse.cz>
29661 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
29663 2013-03-28 Ian Bolton <ian.bolton@arm.com>
29665 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
29666 record only when desired or required.
29668 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
29670 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
29671 *vec_extractv2di_1_rex64. Use x64 isa attribute.
29673 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29675 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
29676 (*andsi3_compare0_uxtw): New pattern.
29677 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
29678 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
29680 2013-03-28 Jan Hubicka <jh@suse.cz>
29682 * data-streamer-in.c (streamer_read_gcov_count): New function.
29683 * gimple-streamer-out.c: Include value-prof.h.
29684 (output_gimple_stmt): Output histogram.
29685 (output_bb): Use streamer_write_gcov_count.
29686 * value-prof.c: Include data-streamer.h
29687 (dump_histogram_value): Add HIST_TYPE_MAX.
29688 (stream_out_histogram_value): New function.
29689 (stream_in_histogram_value): New function.
29690 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
29691 (stream_out_histogram_value, stream_in_histogram_value): Declare.
29692 * data-streamer-out.c (streamer_write_gcov_count): New function.
29693 (streamer_write_gcov_count_stream): New function.
29694 * lto-cgraph.c (lto_output_edge): Update counter streaming.
29695 (lto_output_node): Likewise.
29696 (input_node, input_edge): Likewise.
29697 * lto-streamer-out.c (output_cfg): Update streaming.
29698 * lto-streamer-in.c (input_cfg): Likewise.
29699 * data-streamer.h (streamer_write_gcov_count,
29700 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
29701 * gimple-streamer-in.c: Include value-prof.h
29702 (input_gimple_stmt): Input histograms.
29703 (input_bb): Update profile streaming.
29705 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
29707 * genmodes.c (emit_max_int): New function.
29708 (emit_insn_modes_h): Added call to emit_max_function.
29709 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
29711 * machmode.def: Fixed comment.
29713 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
29715 * combine.c (try_combine): Removed useless assert.
29716 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
29718 2013-03-28 Marek Polacek <polacek@redhat.com>
29719 Richard Biener <rguenther@suse.de>
29721 PR tree-optimization/56695
29722 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
29723 build signed result of a vector comparison.
29724 * tree-cfg.c (verify_gimple_comparison): Check that a result
29725 of a vector comparison has signed type.
29727 2013-03-28 Richard Biener <rguenther@suse.de>
29729 PR tree-optimization/37021
29730 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
29731 do not restrict gaps between groups.
29732 * tree-vect-stmts.c (vectorizable_load): Properly account for
29733 a gap between groups.
29735 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
29737 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
29738 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
29741 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
29743 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
29744 * doc/extend.texi (Named Address Spaces): Ditto.
29745 (Variable Attributes): Ditto.
29747 2013-03-27 Kai Tietz <ktietz@redhat.com>
29749 * config.build: Add support for cygwin x64 target.
29750 * config.gcc: Likewise.
29751 * config.host: Likewise.
29752 * configure.ac: Likewise
29753 * configure: Regenerated.
29755 2013-03-27 Kai Tietz <ktietz@redhat.com>
29757 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
29758 * config/i386/t-cygwin-w64: New file.
29759 * config/i386/cygwin-w64.h: New file.
29760 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
29761 and add support for x64-cygwin target.
29762 (CPP_SPEC): Likewise.
29763 (CXX_WRAP_SPEC_LIST): Undefine before define.
29764 (LIBGCJ_SONAME): Use 15 as version.
29766 2013-03-27 Richard Biener <rguenther@suse.de>
29768 PR tree-optimization/56716
29769 * tree-ssa-structalias.c (perform_var_substitution): Adjust
29770 dumping for ref nodes.
29772 2013-03-27 Martin Jambor <mjambor@suse.cz>
29774 PR tree-optimization/55334
29775 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
29776 restricted pointers to arrays.
29778 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
29780 * Makefile.in (.SUFFIXES): Add .cc.
29781 (.c.o): Apply same recipe for implicit rule .cc.o.
29783 2013-03-27 Richard Biener <rguenther@suse.de>
29785 PR tree-optimization/37021
29786 * tree-vect-data-refs.c (vect_check_strided_load): Allow
29787 REALPART/IMAGPART_EXPRs around the supported refs.
29788 * tree-ssa-structalias.c (find_func_aliases): Assume that
29789 floating-point values are not used to transfer pointers.
29791 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
29793 * target.def (TARGET_HAS_IFUNC_P): New target hook.
29794 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
29795 * doc/tm.texi: Regenerate.
29796 * targhooks.h (default_has_ifunc_p): New.
29797 * targhooks.c (default_has_ifunc_p): Ditto.
29798 * config/linux-protos.h: New file.
29799 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
29800 hook for linux which disables support of indirect functions in android.
29801 * config/linux-android.c: New file.
29802 * config/t-linux-android.c: Ditto.
29803 * config.gcc: Added new object file linux-android.o.
29804 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
29805 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
29806 * varasm.c (do_assemble_alias): Likewise.
29807 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
29808 doesn't support indirect functions.
29809 * configure: Regenerate.
29811 2013-03-27 Bin Cheng <bin.cheng@arm.com>
29814 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
29815 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
29818 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29820 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
29822 2013-03-27 Terry Guo <terry.guo@arm.com>
29824 * config/arm/arm-cores.def: Added core cortex-r7.
29825 * config/arm/arm-tune.md: Regenerated.
29826 * config/arm/arm-tables.opt: Regenerated.
29827 * doc/invoke.texi: Added entry for core cortex-r7.
29829 2013-03-27 Walter Lee <walt@tilera.com>
29831 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
29832 double-decrement of next_scratch_regno.
29834 2013-03-27 Walter Lee <walt@tilera.com>
29836 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
29838 (insn_v1mulus): Ditto.
29839 (insn_v2muls): Ditto.
29841 2013-03-27 Walter Lee <walt@tilera.com>
29843 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
29844 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
29846 2013-03-27 Walter Lee <walt@tilera.com>
29848 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
29849 (*sibcall_value): Ditto.
29851 2013-03-27 Walter Lee <walt@tilera.com>
29853 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
29854 (insn_mnz_v8qi): ... this ...
29855 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
29857 (insn_v<n>mnz): Replaced by ...
29858 (insn_v1mnz): ... this ...
29859 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
29861 (insn_mz_<mode>): Replaced by ...
29862 (insn_mz_v8qi): ... this ...
29863 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
29865 (insn_v<n>mz): Replaced by ...
29866 (insn_v1mz): ... this ...
29867 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
29870 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
29872 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
29874 2013-03-26 Roland McGrath <mcgrathr@google.com>
29876 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
29877 than fprintf with a non-constant, non-format string.
29879 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
29881 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
29882 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
29883 operand 0 predicate.
29884 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
29885 attribute. Use general_x64nomem_operand as operand 1 predicate.
29886 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
29887 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
29888 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
29889 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
29890 (mov<mode>_insv_1): Remove expander. Merge insn with
29891 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
29892 Use general_x64nomem_operand as operand 1 predicate.
29893 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
29894 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
29895 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
29896 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
29897 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
29898 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
29899 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
29900 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
29901 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
29902 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
29903 (general_x64nomem_operand): Ditto.
29905 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
29907 * config/rtems.opt: Add -pthread option.
29909 2013-03-26 Richard Biener <rguenther@suse.de>
29911 * alias.c (find_base_term): Avoid redundant and not used recursion.
29912 (base_alias_check): Get the initial base term from the caller.
29913 (true_dependence_1): Compute and pass base terms to base_alias_check.
29914 (write_dependence_p): Likewise.
29915 (may_alias_p): Likewise.
29917 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
29919 * config/aarch64/aarch64.c (aarch64_classify_address): Support
29920 PC-relative load in SI modes and above only.
29922 2013-03-26 Xinyu Qi <xyqi@marvell.com>
29924 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
29925 * config/arm/iwmmxt.md (WCGR0): Update.
29926 (WCGR1, WCGR2, WCGR3): Likewise.
29928 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
29930 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
29931 Use x64 and nox64 isa attributes.
29933 2013-03-26 Richard Biener <rguenther@suse.de>
29935 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
29936 alignment computations and rely on get_object_alignment_1
29937 for the !TYPE_P case.
29938 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
29940 2013-03-26 Walter Lee <walt@tilera.com>
29942 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
29943 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
29945 2013-03-25 Jeff Law <law@redhat.com>
29947 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
29948 check for INTEGRAL_TYPE_P that was missing due to checking in
29949 wrong version of prior patch.
29951 2013-03-25 Walter Lee <walt@tilera.com>
29953 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
29954 TILEGX_INSN_SHUFFLEBYTES1.
29955 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
29957 (tilegx_builtins): Ditto.
29958 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
29960 2013-03-25 Walter Lee <walt@tilera.com>
29962 * config/tilegx/tilegx.md (floatsisf2): New pattern.
29963 (floatunssisf2): New pattern.
29964 (floatsidf2): New pattern.
29965 (floatunssidf2): New pattern.
29967 2013-03-25 Walter Lee <walt@tilera.com>
29969 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
29970 tests for constraint J, K, N, P.
29972 2013-03-25 Walter Lee <walt@tilera.com>
29974 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
29975 Use indirect/pcrel encoding.
29976 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
29979 2013-03-25 Steve Ellcey <sellcey@mips.com>
29981 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
29982 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
29983 * config/mips/mips.c (mips_option_override): Set IMADD default.
29984 * config/mips/mips.h (PTF_AVOID_IMADD): New.
29985 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
29986 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
29987 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
29988 * doc/invoke.texi (-mimadd/-mno-imadd): New.
29990 2013-03-25 Jeff Law <law@redhat.com>
29992 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
29993 slightly to avoid creating and folding useless trees. Simplify
29994 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
29996 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
29998 * config/i386/i386.md (*zero_extendsidi2): Merge with
29999 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
30000 * config/i386/predicates.md (x86_64_zext_operand): Rename from
30001 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
30002 targets. Clarify comment.
30004 2013-03-25 Martin Jambor <mjambor@suse.cz>
30006 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
30007 pass-through jump functions differently.
30008 (ipa_read_jump_function): Likewise. Also use setter functions to set
30011 2013-03-25 Martin Jambor <mjambor@suse.cz>
30013 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
30014 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
30016 (ipa_get_indirect_edge_target): New function.
30017 (devirtualization_time_bonus): New parameter known_aggs, pass it to
30018 ipa_get_indirect_edge_target. Update all callers.
30019 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
30020 ipa_get_indirect_edge_target_1 instead of calling
30021 ipa_get_indirect_edge_target.
30022 (create_specialized_node): Pass aggvlas to
30023 ipcp_discover_new_direct_edges.
30025 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30027 * config/arm/arm.md (f_sels, f_seld): New types.
30028 (*cmov<mode>): New pattern.
30029 * config/arm/predicates.md (arm_vsel_comparison_operator): New
30032 2013-03-25 Kai Tietz <ktietz@redhat.com>
30034 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
30035 POSIX-printf for mingw-hosted builds.
30037 2013-03-25 Richard Biener <rguenther@suse.de>
30039 PR middle-end/56694
30040 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
30041 must-not-throw stmt location.
30043 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30045 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
30046 Emit load-acquire versions when acq is true.
30047 (arm_emit_store_exclusive): Add rel parameter.
30048 Emit store-release versions when rel is true.
30049 (arm_split_compare_and_swap): Use acquire-release instructions
30051 of barriers when appropriate.
30052 (arm_split_atomic_op): Likewise.
30053 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
30054 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
30055 (VUNSPEC_SLX): Likewise.
30056 (VUNSPEC_LDA): Likewise.
30057 (VUNSPEC_STL): Likewise.
30058 * config/arm/sync.md (atomic_load<mode>): New pattern.
30059 (atomic_store<mode>): Likewise.
30060 (arm_load_acquire_exclusive<mode>): Likewise.
30061 (arm_load_acquire_exclusivesi): Likewise.
30062 (arm_load_acquire_exclusivedi): Likewise.
30063 (arm_store_release_exclusive<mode>): Likewise.
30065 2013-03-25 Catherine Moore <clm@codesourcery.com>
30067 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
30068 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
30069 * config/mip/predicates.md (lwsp_swsp_operand,
30070 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
30071 sb16_operand, db4_operand, db7_operand, ib3_operand,
30072 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
30073 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
30074 andi16_operand): New predicates.
30075 * config/mips/mips.md (compression): New attribute.
30076 (enabled): New attribute.
30077 (length): Consider compression in computing length.
30078 (shift_compression): New code attribute.
30079 (*add<mode>3): New operands. Record compression.
30080 (sub<mode>3): Likewise.
30081 (one_cmpl<mode>2): Likewise.
30082 (*and<mode>3): Likewise.
30083 (*ior<mode>3): Likewise.
30084 (unnamed pattern for xor): Likewise.
30085 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
30086 (*<optab><mode>3): Likewise.
30087 (*mov<mode>_internal: Likewise.
30088 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
30089 (mips_unsigned_immediate_p): New.
30090 (umips_lwsp_swsp_address_p): New.
30091 (m16_based_address_p): New.
30092 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
30093 (mips_unsigned_immediate_p): New prototype.
30094 (lwsp_swsp_address_p): New prototype.
30095 (m16_based_address_p): New prototype.
30096 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
30097 (mips_signed_immediate_p): New function.
30098 (m16_based_address_p): New function.
30099 (lwsp_swsp_address_p): New function.
30100 (mips_print_operand_punctuation): Recognize short delay slot insns
30101 for microMIPS.add<mode>3"
30103 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30106 * config/arm/iterators.md (v_cmp_result): New mode attribute.
30107 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
30109 2013-03-25 Richard Biener <rguenther@suse.de>
30111 PR tree-optimization/56689
30112 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
30115 2013-03-25 Richard Biener <rguenther@suse.de>
30117 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
30119 (memory_references): Likewise.
30120 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
30121 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
30122 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
30123 (gather_mem_refs_in_loops): Fold into ...
30124 (analyze_memory_references): ... this. Move initialization
30125 to tree_ssa_lim_initialize.
30126 (fill_always_executed_in): Rename to ...
30127 (fill_always_executed_in_1): ... this.
30128 (fill_always_executed_in): Move contains_call computation to
30129 this new function from ...
30130 (tree_ssa_lim_initialize): ... here.
30131 (tree_ssa_lim): Call fill_always_executed_in.
30133 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
30135 * postreload.c (reload_combine): Fix code detecting returns.
30137 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
30139 * function.c (emit_use_return_register_into_block): On cc0 targets,
30140 do not emit the sequence between cc0 setter and user.
30142 2013-03-25 Kai Tietz <ktietz@redhat.com>
30144 * config/i386/predicates.md (local_symbolic_operand): Interpret
30145 dll-imported symbols as none-local.
30147 2013-03-25 Richard Biener <rguenther@suse.de>
30149 * tree-ssa-loop-im.c (struct depend): Remove.
30150 (struct lim_aux_data): Make depends a vec of gimples.
30151 (free_lim_aux_data): Adjust.
30152 (add_dependency): Likewise.
30153 (set_level): Likewise.
30155 2013-03-25 Richard Biener <rguenther@suse.de>
30157 PR middle-end/56434
30158 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
30159 the pointer returned by calls with ECF_MALLOC set.
30161 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
30163 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
30165 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
30167 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
30168 using MMXMODE mode iterator.
30169 (*move<mode>_internal): Merge with *movv2sf_internal and
30170 *movv2sf_internal_rex64 using MMXMODE mode iterator.
30172 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
30174 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
30175 (record_last_mem_set_info): Likewise.
30177 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
30178 of XNEWVEC followed by memset.
30179 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
30181 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
30183 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30184 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
30185 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
30186 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
30187 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
30188 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
30189 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
30190 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
30191 BARRIER_P instead of GET_CODE.
30193 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
30195 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
30196 inaccuracy in the probing code.
30198 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
30199 (ctrapdi4): Likewise.
30201 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
30203 * calls.c (expand_call): Add missing guard to code handling return
30204 of non-BLKmode structures in MSB.
30205 * function.c (expand_function_end): Likewise.
30207 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
30209 * combine.c (try_combine): Adjust comment. Do not add the set of
30210 insn #0 if the destination indirectly is set or dies in insn #2.
30211 Tidy up code to distribute a new note.
30213 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
30215 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
30216 also for alternatives 16 and 17.
30218 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
30220 * config/i386/sse.md (*mov<mode>_internal): Merge with
30221 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
30222 Emit insn template depending on type attribute. Use
30223 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
30224 movd instead of movq mnemonic for interunit moves. Rewrite mode
30225 attribute calculation. Remove unit attribute calculation.
30226 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
30227 Set prefix_data16 attribute for DImode ssemov types.
30228 Use Ym instead of y for SSE-MMX conversion alternatives.
30229 Reorder operand constraints.
30231 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
30233 * df.h (df_insn_delete): Adjust prototype.
30234 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
30235 and let it decide whether mark the basic block dirty.
30236 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
30237 * df-scan.c (df_insn_info_delete): New helper function, split
30238 off from df_insn_delete.
30239 (df_scan_free_bb_info): Use it.
30240 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
30242 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
30243 that the insn is actually an insn and it has a non-NULL basic block.
30244 Do not mark basic block dirty if only deleting a DEBUG_INSN.
30246 2013-03-22 Richard Biener <rguenther@suse.de>
30248 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
30250 (mem_ref_alloc): Do not allocate them.
30251 (refs_independent_p): Do not query or maintain a cache.
30253 2013-03-22 Richard Biener <rguenther@suse.de>
30255 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
30256 (gather_mem_refs_in_loops): Do not compute it.
30257 (analyze_memory_references): Do not allocate it.
30258 (tree_ssa_lim_finalize): Do not free it.
30259 (for_all_locs_in_loop): Do not query all_refs_in_loop.
30261 2013-03-22 Richard Biener <rguenther@suse.de>
30263 * is-a.h (as_a): Use gcc_checking_assert.
30265 2013-03-22 Ian Bolton <ian.bolton@arm.com>
30267 * config/aarch64/aarch64.c (aarch64_print_operand): New
30268 format specifier for printing a constant in hex.
30269 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
30270 format specifier for printing second operand.
30272 2013-03-22 Richard Biener <rguenther@suse.de>
30274 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
30276 (gather_mem_refs_in_loops): Perform store accumulation here.
30277 (create_vop_ref_mapping_loop): Remove.
30278 (create_vop_ref_mapping): Likewise.
30279 (analyze_memory_references): Initialize refs_stored_in_loop.
30280 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
30281 (record_indep_loop): Remove.
30282 (record_dep_loop): New function.
30283 (ref_indep_loop_p_1): Adjust to only walk over references
30284 in the loop, not its subloops.
30285 (ref_indep_loop_p): Rename to ...
30286 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
30287 maintaining a more fine-grained cache.
30288 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
30289 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
30291 2013-03-22 Richard Biener <rguenther@suse.de>
30293 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
30294 (struct mem_ref): Make accesses_in_loop a vec of a vec of
30295 aggregate mem_ref_loc.
30296 (free_mem_ref_locs): Inline into ...
30297 (memref_free): ... this and adjust.
30298 (mem_ref_alloc): Adjust.
30299 (mem_ref_locs_alloc): Remove.
30300 (record_mem_ref_loc): Adjust.
30301 (get_all_locs_in_loop): Rewrite into ...
30302 (for_all_locs_in_loop): ... this iterator.
30303 (rewrite_mem_ref_loc): New functor.
30304 (rewrite_mem_refs): Use for_all_locs_in_loop.
30305 (sm_set_flag_if_changed): New functor.
30306 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
30307 (ref_always_accessed): New functor.
30308 (ref_always_accessed_p): Use for_all_locs_in_loop.
30310 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
30312 * tree-pass.h (PROP_gimple_lvec): New.
30313 * passes.c (dump_properties): Handle PROP_gimple_lvec.
30314 (init_optimization_passes): Move pass_lower_vector.
30315 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
30317 (pass_lower_vector): Provide PROP_gimple_lvec.
30318 (pass_lower_vector_ssa): Likewise.
30319 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
30321 2013-03-21 Mark Wielaard <mjw@redhat.com>
30323 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
30325 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
30327 * config/i386/i386.md (*movdi_internal): Disparage slightly
30328 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
30329 conversion alternatives.
30331 2013-03-21 Jakub Jelinek <jakub@redhat.com>
30333 PR middle-end/48087
30334 * diagnostic.def (DK_WERROR): New kind.
30335 * diagnostic.h (werrorcount): Define.
30336 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
30337 promoted to DK_ERROR, increment DK_WERROR counter instead of
30339 * toplev.c (toplev_main): Call print_ignored_options even if
30340 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
30341 even if just werrorcount is non-zero.
30344 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
30346 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
30347 (string_cst_pool_decl): New function.
30348 (optimize_one_addr_into_implicit_ptr): New function.
30349 (resolve_addr_in_expr): Optimize DWARF location expression
30350 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
30351 which doesn't live in memory, but has DW_AT_location or
30352 DW_AT_const_value, or refers to a string literal, into
30353 DW_OP_GNU_implicit_pointer.
30354 (optimize_location_into_implicit_ptr): New function.
30355 (resolve_addr): If removing DW_AT_location of a variable because
30356 it was DW_OP_addr of address of the variable, but the variable doesn't
30357 live in memory, try to emit const value attribute for the initializer.
30359 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
30361 * tree.h (VECTOR_TYPE_P): New macro.
30362 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
30363 TYPE_MODE): Use it.
30364 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
30365 VEC_COND_EXPR cannot be lvalues.
30366 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
30368 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
30370 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
30371 Restrict the transformation to equal modes.
30373 2013-03-21 Richard Biener <rguenther@suse.de>
30375 PR tree-optimization/39326
30376 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
30377 (MEM_ANALYZABLE): Adjust.
30378 (record_mem_ref_loc): Move bitmap ops ...
30379 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
30380 unanalyzable refs, do not record locations for it.
30381 (analyze_memory_references): Allocate ref zero as shared
30383 (refs_independent_p): Do not test for unanalyzed mems here.
30384 (ref_indep_loop_p_1): Special-case disambiguation against
30385 the unanalyzed ref.
30386 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
30388 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
30390 * config/arm/arm-protos.h (tune_params): Add
30391 prefer_neon_for_64bits field.
30392 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
30393 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
30394 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
30395 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
30396 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
30397 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
30398 (arm_option_override): Handle -mneon-for-64bits new option.
30399 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
30400 (prefer_neon_for_64bits): Declare new variable.
30401 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
30402 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
30403 (arch_enabled): Handle new arch types. Remove support for onlya8
30405 (one_cmpldi2): Use new arch names.
30406 (zero_extend<mode>di2, extend<mode>di2): Ditto.
30407 * config/arm/arm.opt (mneon-for-64bits): Add option.
30408 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
30409 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
30410 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
30412 * doc/invoke.texi (-mneon-for-64bits): Document.
30414 2013-03-21 Richard Biener <rguenther@suse.de>
30416 PR tree-optimization/39326
30417 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
30418 (sort_bbs_in_loop_postorder_cmp): New function.
30419 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
30421 2013-03-21 Richard Biener <rguenther@suse.de>
30423 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
30424 (vect_insert_into_interleaving_chain): Likewise.
30425 (vect_drs_dependent_in_basic_block): Inline ...
30426 (vect_slp_analyze_data_ref_dependence): ... here. New function,
30428 (vect_analyze_data_ref_dependence): ... here. Simplify.
30429 (vect_check_interleaving): Simplify.
30430 (vect_analyze_data_ref_dependences): Likewise. Split out ...
30431 (vect_slp_analyze_data_ref_dependences): ... this new function.
30432 (dr_group_sort_cmp): New function.
30433 (vect_analyze_data_ref_accesses): Compute data-reference groups
30434 here instead of in vect_analyze_data_ref_dependence. Use
30435 a more efficient algorithm.
30436 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
30437 vect_slp_analyze_data_ref_dependences. Call
30438 vect_analyze_data_ref_accesses earlier.
30439 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
30440 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
30441 (vect_slp_analyze_data_ref_dependences): New prototype.
30443 2013-03-21 Richard Biener <rguenther@suse.de>
30445 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
30446 ref is stored in the loop.
30447 (find_refs_for_sm): Walk only over all stores.
30448 (store_motion_loop): Allocate from lim_bitmap_obstack.
30449 (store_motion): Likewise.
30451 2013-03-21 Richard Biener <rguenther@suse.de>
30453 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
30454 Update virtual SSA form.
30456 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30458 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
30459 * configure: Regenerate.
30460 * config.in: Regenerate.
30461 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
30462 if !HAVE_LD_EH_FRAME_CIEV3.
30464 2013-03-21 Richard Biener <rguenther@suse.de>
30466 * tree-cfg.c (verify_expr_no_block): New function.
30467 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
30468 nor DECL_VALUE_EXPR have locations with associated blocks.
30469 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
30470 (clear_unused_block_pointer): Remove code dealing with
30471 blocks in DECL_DEBUG_EXPR locations.
30473 2013-03-21 Richard Biener <rguenther@suse.de>
30475 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
30476 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
30477 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
30478 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
30479 instead of DECL_DEBUG_EXPR_IS_FROM.
30480 * gimplify.c (gimplify_modify_expr): Likewise.
30481 * tree-cfg.c (verify_expr_location_1): Likewise.
30482 * tree-complex.c (create_one_component_var): Likewise.
30483 * tree-sra.c (create_access_replacement): Likewise.
30484 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
30485 (clear_unused_block_pointer): Likewise.
30486 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
30487 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
30488 * var-tracking.c (var_debug_decl): Likewise.
30489 (track_expr_p): Likewise.
30490 * tree-inline.c (add_local_variables): Likewise. Set
30491 DECL_HAS_DEBUG_EXPR_P after copying it.
30492 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
30493 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
30495 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
30498 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
30499 * configure: Regenerate.
30500 * config.in: Regenerate.
30501 * config/i386/i386.md (*movdf_internal): Use
30502 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
30503 movd instead of movq mnemonic for interunit moves.
30504 (*movdi_internal): Ditto.
30506 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30508 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
30509 (abd<mode>_3): New pattern.
30510 (aba<mode>_3): New pattern.
30511 (fabd<mode>_3): New pattern.
30513 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30515 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
30516 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
30517 occurrence of REGISTER_PREFIX as its empty string.
30519 2013-03-20 Jeff Law <law@redhat.com>
30521 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
30522 addititional equivalences for equality comparisons between an SSA_NAME
30523 and a constant where the SSA_NAME was set from a widening conversion.
30525 2013-03-20 Walter Lee <walt@tilera.com>
30527 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
30529 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
30531 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
30532 depending on type attribute.
30533 (*movti_internal): Ditto.
30534 (*movtf_internal): Ditto.
30535 (*movxf_internal): Ditto.
30536 (*movdf_internal): Ditto.
30537 (*movsf_internal): Ditto.
30539 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
30541 * config/i386/i386.md (*movti_internal): Set prefix attribute to
30542 maybe_vex for sselog1 and ssemov types.
30543 (*movdi_internal): Reorder operand constraints.
30544 (*movsi_internal): Ditto. Set prefix attribute to
30545 maybe_vex for sselog1 and ssemov types.
30546 (*movtf_internal): Set prefix attribute to maybe_vex
30547 for sselog1 and ssemov types.
30548 (*movdf_internal): Ditto. Set prefix_data16 attribute for
30549 DImode ssemov types. Reorder operand constraints.
30550 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
30551 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
30552 attribute for SImode ssemov types. Reorder operand constraints.
30554 2013-03-20 Martin Jambor <mjambor@suse.cz>
30556 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
30557 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
30559 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
30561 * config/rs6000/predicates.md (indexed_address, update_address_mem
30562 update_indexed_address_mem): New predicates.
30563 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
30564 attribute for load/store instructions.
30565 * config/rs6000/dfp.md (movsd_store): Likewise.
30566 (movsd_load): Likewise.
30567 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
30568 (unnamed HI->DI extend define_insn): Likewise.
30569 (unnamed SI->DI extend define_insn): Likewise.
30570 (unnamed QI->SI extend define_insn): Likewise.
30571 (unnamed QI->HI extend define_insn): Likewise.
30572 (unnamed HI->SI extend define_insn): Likewise.
30573 (unnamed HI->SI extend define_insn): Likewise.
30574 (extendsfdf2_fpr): Likewise.
30575 (movsi_internal1): Likewise.
30576 (movsi_internal1_single): Likewise.
30577 (movhi_internal): Likewise.
30578 (movqi_internal): Likewise.
30579 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
30580 attribute for load/store instructions.
30581 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
30583 (mov<mode>_softfloat): Likewise.
30584 (mov<mode>_hardfloat32): Likewise.
30585 (mov<mode>_hardfloat64): Likewise.
30586 (mov<mode>_softfloat64): Likewise.
30587 (movdi_internal32): Likewise.
30588 (movdi_internal64): Likewise.
30589 (probe_stack_<mode>): Likewise.
30591 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
30593 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
30594 floating point, and decimal floating point to reload iterator.
30596 * config/rs6000/constraints.md (wl constraint): New constraints to
30597 return FLOAT_REGS if certain options are used to reduce the number
30598 of separate patterns that exist in the file.
30599 (wx constraint): Likewise.
30600 (wz constraint): Likewise.
30602 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30603 -mdebug=reg, print wg, wl, wx, and wz constraints.
30604 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
30605 Initialize the reload functions for 64-bit binary/decimal floating
30607 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
30608 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
30609 create the buffer on the stack to overcome not having a 32-bit
30611 (rs6000_emit_move): Likewise.
30612 (rs6000_secondary_memory_needed_rtx): Likewise.
30613 (rs6000_alloc_sdmode_stack_slot): Likewise.
30614 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
30615 via xxlxor, just like DFmode 0.0.
30617 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
30618 define as 1 if we are running on a power7 or newer.
30619 (enum r6000_reg_class_enum): Add new constraints.
30621 * config/rs6000/dfp.md (movsd): Delete, combine with binary
30622 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
30623 with other moves by using conditional constraits (wg). Use LFIWZX
30624 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
30625 (movsd splitter): Likewise.
30626 (movsd_hardfloat): Likewise.
30627 (movsd_softfloat): Likewise.
30629 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
30630 binary and decimal floating point moves.
30631 (fmove_ok): New attributes to combine binary and decimal floating
30632 point moves, and to combine power6x (mfpgpr) moves along normal
30634 (real_value_to_target): Likewise.
30635 (f32_lr): Likewise.
30636 (f32_lm): Likewise.
30637 (f32_li): Likewise.
30638 (f32_sr): Likewise.
30639 (f32_sm): Likewise.
30640 (f32_si): Likewise.
30641 (movsf): Combine binary and decimal floating point moves. Combine
30642 power6x (mfpgpr) moves with other moves by using conditional
30643 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
30644 (mov<mode> for SFmode/SDmode); Likewise.
30645 (SFmode/SDmode splitters): Likewise.
30646 (movsf_hardfloat): Likewise.
30647 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
30648 (movsf_softfloat): Likewise.
30649 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
30651 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
30652 wx and wz constraints.
30654 * config/rs6000/constraints.md (wg constraint): New constraint to
30655 return FLOAT_REGS if -mmfpgpr (power6x) was used.
30657 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
30660 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30661 -mdebug=reg, print wg, wl, wx, and wz constraints.
30662 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
30663 Initialize the reload functions for 64-bit binary/decimal floating
30665 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
30666 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
30667 create the buffer on the stack to overcome not having a 32-bit
30669 (rs6000_emit_move): Likewise.
30670 (rs6000_secondary_memory_needed_rtx): Likewise.
30671 (rs6000_alloc_sdmode_stack_slot): Likewise.
30672 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
30673 via xxlxor, just like DFmode 0.0.
30675 * config/rs6000/dfp.md (movdd): Delete, combine with binary
30676 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
30677 with other moves by using conditional constraits (wg). Use LFIWZX
30678 and STFIWX for loading SDmode on power7.
30679 (movdd splitters): Likewise.
30680 (movdd_hardfloat32): Likewise.
30681 (movdd_softfloat32): Likewise.
30682 (movdd_hardfloat64_mfpgpr): Likewise.
30683 (movdd_hardfloat64): Likewise.
30684 (movdd_softfloat64): Likewise.
30686 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
30687 64-bit binary and decimal floating point moves.
30688 (FMOVE64X): Likewise.
30689 (movdf): Combine 64-bit binary and decimal floating point moves.
30690 Combine power6x (mfpgpr) moves with other moves by using
30691 conditional constraits (wg).
30692 (mov<mode> for DFmode/DDmode): Likewise.
30693 (DFmode/DDmode splitters): Likewise.
30694 (movdf_hardfloat32): Likewise.
30695 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
30696 (movdf_softfloat32): Likewise.
30697 (movdf_hardfloat64_mfpgpr): Likewise.
30698 (movdf_hardfloat64): Likewise.
30699 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
30700 (movdf_softfloat64): Likewise.
30701 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
30702 (reload_<mode>_load): Move to later in the file so they aren't in
30703 the middle of the floating point move insns.
30704 (reload_<mode>_store): Likewise.
30706 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
30709 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
30710 constraint if -mdebug=reg.
30711 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
30712 Enable using dd reload support if needed.
30714 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
30715 binary and decimal floating point moves in rs6000.md.
30716 (movtd_internal): Likewise.
30718 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
30719 decimal floating point moves.
30721 (movtf_internal): Likewise.
30722 (mov<mode>_internal, TDmode/TFmode): Likewise.
30723 (movtf_softfloat): Likewise.
30724 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
30726 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
30727 movdi_internal64, using wg constraint for move direct operations.
30728 (movdi_internal64): Likewise.
30730 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
30731 MODES_TIEABLE_P for selected modes. Print the numerical value of
30732 the various virtual registers. Use GPR/FPR first/last values,
30733 instead of hard coding the register numbers. Print which modes
30734 have reload functions registered.
30735 (rs6000_option_override_internal): If -mdebug=reg, trace the options
30736 settings before/after setting cpu, target and subtarget settings.
30737 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
30738 and for secondary reload failures in rs6000_secondary_reload_inner.
30739 (rs6000_secondary_reload_fail): Likewise.
30740 (rs6000_secondary_reload_inner): Likewise.
30742 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
30743 macros for first/last GPR and FPR registers.
30744 (LAST_GPR_REGNO): Likewise.
30745 (FIRST_FPR_REGNO): Likewise.
30746 (LAST_FPR_REGNO): Likewise.
30748 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
30749 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
30750 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
30751 (vcond<mode><mode>): Likewise.
30752 (vcondu<mode><mode>): Likewise.
30753 (vector_gtu<mode>): Likewise.
30754 (vector_gte<mode>): Likewise.
30755 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
30756 to prevent the compiler from converting DImode operations to TImode.
30757 (ior<mode>3): Likewise.
30758 (and<mode>3): Likewise.
30759 (one_cmpl<mode>2): Likewise.
30760 (nor<mode>3): Likewise.
30761 (andc<mode>3): Likewise.
30763 * config/rs6000/constraints.md (wt constraint): New constraint
30764 that returns VSX_REGS if TImode is allowed in VSX registers.
30766 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
30767 constant under VSX.
30769 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
30770 similar to TImode, but it is restricted to being in the GPRs.
30772 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
30773 TImode to occupy a single VSX register.
30775 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
30776 -mvsx-timode for power7/power8.
30777 (power7 cpu): Likewise.
30778 (power8 cpu): Likewise.
30780 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
30781 sure that TFmode/TDmode take up two registers if they are ever
30782 allowed in the upper VSX registers.
30783 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
30785 (rs6000_init_hard_regno_mode_ok): Likewise.
30786 (rs6000_debug_reg_global): Add debugging for PTImode and wt
30787 constraint. Print if LRA is turned on.
30788 (rs6000_option_override_internal): Give an error if -mvsx-timode
30789 and VSX is not enabled.
30790 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
30791 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
30792 to reg+offset addressing. Use PTImode when checking offset
30793 addresses for validity.
30794 (reg_offset_addressing_ok_p): Likewise.
30795 (rs6000_legitimate_offset_address_p): Likewise.
30796 (rs6000_legitimize_address): Likewise.
30797 (rs6000_legitimize_reload_address): Likewise.
30798 (rs6000_legitimate_address_p): Likewise.
30799 (rs6000_eliminate_indexed_memrefs): Likewise.
30800 (rs6000_emit_move): Likewise.
30801 (rs6000_secondary_reload): Likewise.
30802 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
30803 reloads to fpr registers to continue to use reg+offset addressing,
30804 but 64-bit reloads to altivec registers need reg+reg addressing.
30805 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
30806 it. Treat LO_SUM like a PLUS operation.
30807 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
30808 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
30809 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
30810 registers to share a register with a smaller sized type, since VSX
30811 puts scalars in the upper 64-bits.
30812 (print_operand): Add support for PTImode.
30813 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
30814 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
30815 registers, but don't have arithmetic support.
30816 (rs6000_memory_move_cost): Add test for VSX.
30817 (rs6000_opt_masks): Add -mvsx-timode.
30819 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
30822 (VSr): Use wt constraint for TImode.
30823 (VSv): Drop TImode support.
30824 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
30825 (vsx_movti_64bit): Likewise.
30826 (vsx_movti_32bit): Likewise.
30827 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
30828 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
30829 one '?' on the appropriate output constraint. Do not allow TImode
30830 logical operations on 32-bit systems.
30831 (vsx_ior<mode>3): Likewise.
30832 (vsx_xor<mode>3): Likewise.
30833 (vsx_one_cmpl<mode>2): Likewise.
30834 (vsx_nor<mode>3): Likewise.
30835 (vsx_andc<mode>3): Likewise.
30836 (vsx_concat_<mode>): Likewise.
30837 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
30839 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
30840 OPTION_MASK_VSX_TIMODE.
30841 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
30842 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
30844 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
30845 (TI2 iterator): New iterator for TImode, PTImode.
30846 (wd mode attribute): Add values for vector types.
30847 (movti_string): Replace TI move operations with operations for TImode
30848 and PTImode. Add support for TImode being allowed in VSX registers.
30849 (mov<mode>_string, TImode/PTImode): Likewise.
30850 (movti_ppc64): Likewise.
30851 (mov<mode>_ppc64, TImode/PTImode): Likewise.
30852 (TI mode splitters): Likewise.
30854 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
30857 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
30859 PR tree-optimization/56355
30860 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
30861 Also handle integers with undefined overflow.
30863 2013-03-20 Catherine Moore <clm@codesourcery.com>
30864 Maciej W. Rozycki <macro@codesourcery.com>
30865 Tom de Vries <tom@codesourcery.com>
30866 Nathan Sidwell <nathan@codesourcery.com>
30867 Iain Sandoe <iain@codesourcery.com>
30868 Nathan Froyd <froydnj@codesourcery.com>
30869 Chao-ying Fu <fu@mips.com>
30871 * doc/extend.texi: (micromips, nomicromips, nocompression):
30872 Document new function attributes.
30873 * doc/invoke.texi (minterlink-compressed, mmicromips,
30874 m14k, m14ke, m14kec): Document new options.
30875 (minterlink-mips16): Update documentation.
30876 * doc/md.texi (ZC, ZD): Document new constraints.
30877 * configure.ac (gcc_cv_as_micromips): Check if linker
30878 supports the .set micromips directive.
30879 * configure: Regenerate.
30880 * config.in: Regenerate.
30881 * config/mips/mips-tables.opt: Regenerate.
30882 * config/mips/micromips.md: New file.
30883 * constraints.md (ZC, ZD): New constraints.
30884 * config/mips/predicates.md (movep_src_register): New predicate.
30885 (movep_src_operand): New predicate.
30886 (non_volatile_mem_operand): New predicate.
30887 * config/mips/mips.md (multimem): New type.
30888 (length): Differentiate between 17-bit and 18-bit branch offsets.
30889 (MOVEP1, MOVEP2): New mode iterator.
30890 (mov_<load>l): Use ZC constraint.
30891 (mov_<load>r): Likewise.
30892 (mov_<store>l): Likewise.
30893 (mov_<store>r): Likewise.
30894 (*branch_equality<mode>_inverted): Add microMIPS support.
30895 (*branch_equality<mode>): Likewise.
30896 (*jump_absolute): Likewise.
30897 (indirect_jump_<mode>): Likewise.
30898 (tablejump_<mode>): Likewise.
30899 (<optab>_internal): Likewise.
30900 (sibcall_internal): Likewise.
30901 (sibcall_value_internal): Likewise.
30902 (prefetch): Use constraint ZD.
30903 * config/mips/mips.opt (minterlink-compressed): New option.
30904 (minterlink-mips16): Now an alias for minterlink-compressed.
30905 (mmicromips): New option.
30906 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
30907 (compare_and_swap_12): Likewise.
30908 (sync_add<mode>): Likewise.
30909 (sync_<optab>_12): Likewise.
30910 (sync_old_<optab>_12): Likewise.
30911 (sync_new_<optab>_12): Likewise.
30912 (sync_nand_12): Likewise.
30913 (sync_old_nand_12): Likewise.
30914 (sync_new_nand_12): Likewise.
30915 (sync_sub<mode>): Likewise.
30916 (sync_old_add<mode>): Likewise.
30917 (sync_old_sub<mode>): Likewise.
30918 (sync_new_add<mode>): Likewise.
30919 (sync_new_sub<mode>): Likewise.
30920 (sync_<optab><mode>): Likewise.
30921 (sync_old_<optab><mode>): Likewise.
30922 (sync_new_<optab><mode>): Likewise.
30923 (sync_nand<mode>): Likewise.
30924 (sync_old_nand<mode>): Likewise.
30925 (sync_new_nand<mode>): Likewise.
30926 (sync_lock_test_and_set<mode>): Likewise.
30927 (test_and_set_12): Likewise.
30928 (atomic_compare_and_swap<mode>): Likewise.
30929 (atomic_exchange<mode>_llsc): Likewise.
30930 (atomic_fetch_add<mode>_llsc): Likewise.
30931 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
30932 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
30933 (umips_save_restore_pattern_p): Likewise.
30934 (umips_load_store_pair_p): Likewise.
30935 (umips_output_load_store_pair): Likewise.
30936 (umips_movep_target_p): Likewise.
30937 (umips_12bit_offset_address_p): Likewise.
30938 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
30939 (mips_base_mips16): Rename this...
30940 (mips_base_compression_flags): ...to this. Update all uses.
30941 (mips_attribute_table): Add micromips, nomicromips and nocompression.
30942 (mips_mips16_decl_p): Delete.
30943 (mips_nomips16_decl_p): Delete.
30944 (mips_get_compress_on_flags): New function.
30945 (mips_get_compress_off_flags): New function.
30946 (mips_get_compress_mode): New function.
30947 (mips_get_compress_on_name): New function.
30948 (mips_get_compress_off_name): New function.
30949 (mips_insert_attributes): Support multiple compression types.
30950 (mips_merge_decl_attributes): Likewise.
30951 (umips_12bit_offset_address_p): New function.
30952 (mips_start_function_definition): Emit .set micromips directive.
30953 (mips_call_may_need_jalx_p): New function.
30954 (mips_function_ok_for_sibcall): Add microMIPS support.
30955 (mips_print_operand_punctuation): Support short delay slots and
30957 (umips_swm_mask, umips_swm_encoding): New.
30958 (umips_build_save_restore): New function.
30959 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
30960 (was_mips16_p): Remove.
30961 (old_compression_mode): New.
30962 (mips_set_compression_mode): New function.
30963 (mips_set_current_function): Add microMIPS support.
30964 (mips_option_override): Likewise.
30965 (umips_save_restore_pattern_p): New function.
30966 (umips_output_save_restore): New function.
30967 (umips_load_store_pair_p_1): New function.
30968 (umips_load_store_pair_p): New function.
30969 (umips_output_load_store_pair_1): New function.
30970 (umips_output_load_store_pair): New function.
30971 (umips_movep_target_p) New function.
30972 (mips_prepare_pch_save): Add microMIPS support.
30973 * config/mips/mips.h (TARGET_COMPRESSION): New.
30974 (TARGET_CPU_CPP_BUILTINS): Update macro
30975 to use new compression flags and to support microMIPS.
30976 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
30977 (MIPS_ARCH_FLOAT_SPEC): Likewise.
30978 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
30979 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
30980 (ASM_SPEC): Support mmicromips and mno-micromips.
30981 (M16STORE_REG_P): New macro.
30982 (MIPS_CALL): Support TARGET_MICROMIPS.
30983 (MICROMIPS_J): New macro.
30984 (mips_base_mips16): Rename this...
30985 (mips_base_compression_flags): ...to this.
30986 (UMIPS_12BIT_OFFSET_P): New macro.
30987 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
30988 (MULTILIB_DIRNAMES): Likewise.
30989 2013-03-20 Richard Biener <rguenther@suse.de>
30991 PR tree-optimization/56661
30992 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
30993 the result does not have to be distinct.
30995 2013-03-20 Richard Biener <rguenther@suse.de>
30997 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
31000 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31001 Steven Bosscher <steven@gcc.gnu.org>
31003 PR rtl-optimization/56605
31004 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
31006 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
31009 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
31010 that require movd instead of movq.
31012 2013-03-20 Richard Biener <rguenther@suse.de>
31014 * tree-ssa-structalias.c (struct variable_info): Add pointer
31015 to the first field of an aggregate with sub-vars. Make
31016 this and the pointer to the next subfield its ID.
31017 (vi_next): New function.
31018 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
31019 storedanything_id, integer_id): Increment by one.
31020 (new_var_info, get_call_vi, lookup_call_clobber_vi,
31021 get_call_clobber_vi): Adjust.
31022 (solution_set_expand): Simplify and speedup.
31023 (solution_set_add): Inline into ...
31024 (set_union_with_increment): ... this. Adjust accordingly.
31025 (do_sd_constraint): Likewise.
31026 (do_ds_constraint): Likewise.
31027 (do_complex_constraint): Simplify.
31028 (build_pred_graph): Adjust.
31029 (solve_graph): Likewise. Simplify and speedup.
31030 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
31031 get_constraint_for_component_ref, get_constraint_for_1,
31032 first_vi_for_offset, first_or_preceding_vi_for_offset,
31033 create_function_info_for, create_variable_info_for_1,
31034 create_variable_info_for, intra_create_variable_infos): Adjust.
31035 (init_base_vars): Push NULL for ID zero.
31036 (compute_points_to_sets): Adjust.
31038 2013-03-20 Richard Biener <rguenther@suse.de>
31040 * cfgloop.c (verify_loop_structure): Streamline and avoid
31041 ICEing on corrupt loop tree.
31042 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
31045 2013-03-20 Richard Biener <rguenther@suse.de>
31047 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
31048 check whether an SSA update is needed.
31050 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
31052 * config/mips/constraints.md (T): Rename to...
31056 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
31057 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
31059 2013-03-19 Ian Bolton <ian.bolton@arm.com>
31061 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
31062 (*subsi3_carryin_uxtw): Likewise.
31064 2013-03-19 Ian Bolton <ian.bolton@arm.com>
31066 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
31067 (*rorsi3_insn_uxtw): Likewise.
31069 2013-03-19 Ian Bolton <ian.bolton@arm.com>
31071 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
31072 (*extrsi5_insn_uxtw): Likewise.
31074 2013-03-19 Richard Biener <rguenther@suse.de>
31076 PR tree-optimization/56273
31077 * passes.c (init_optimization_passes): Move second VRP after DOM.
31079 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
31081 * config/i386/i386.md (*movti_internal): Merge from
31082 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
31083 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
31084 nox64 isa attributes.
31086 2013-03-18 Richard Biener <rguenther@suse.de>
31088 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
31090 (merge_node_constraints): Likewise.
31091 (build_succ_graph): Likewise.
31092 (valid_graph_edge): Inline into single caller.
31093 (unify_nodes): Likewise. Use bitmap_set_bit return value
31095 (scc_visit): Fix formatting and variable use.
31096 (do_sd_constraint): Use gcc_checking_assert.
31097 (do_ds_constraint): Likewise.
31098 (do_complex_constraint): Likewise.
31099 (condense_visit): Likewise. Cleanup.
31100 (dump_pred_graph): New function.
31101 (perform_var_substitution): Dump the pred-graph before
31102 variable substitution.
31103 (find_equivalent_node): Use gcc_checking_assert.
31104 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
31106 2013-03-18 Richard Biener <rguenther@suse.de>
31108 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
31109 Remove cond_expr_stmt_list argument and do not gimplify the
31111 (vect_loop_versioning): Adjust.
31112 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
31113 Cleanup to use less temporaries.
31114 (vect_create_data_ref_ptr): Cleanup.
31116 2013-03-18 Jakub Jelinek <jakub@redhat.com>
31118 PR tree-optimization/56635
31119 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
31120 require types_compatible_p types.
31122 2013-03-18 Nick Clifton <nickc@redhat.com>
31124 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
31125 spurious backslash.
31127 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
31128 Add missing line to comment describing function.
31130 2013-03-18 Richard Biener <rguenther@suse.de>
31132 PR tree-optimization/56210
31133 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
31134 Handle string / character search functions.
31135 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
31137 2013-03-18 Richard Biener <rguenther@suse.de>
31139 PR middle-end/56483
31140 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
31141 and implement properly.
31142 * gimple.h (gimple_cond_single_var_p): Remove.
31144 2013-03-18 Richard Biener <rguenther@suse.de>
31146 * tree-data-ref.h (find_data_references_in_loop): Declare.
31147 * tree-data-ref.c (get_references_in_stmt): Use a stack
31148 vector pre-allocated in the callers.
31149 (find_data_references_in_stmt): Adjust.
31150 (graphite_find_data_references_in_stmt): Likewise.
31151 (create_rdg_vertices): Likewise.
31152 (find_data_references_in_loop): Export.
31153 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
31154 Compute dependences here...
31155 (vect_analyze_data_refs): ...not here. When we encounter
31156 a non-vectorizable data reference in basic-block vectorization
31157 truncate the data reference vector. Do not bother to
31158 fixup data-dependence information for gather loads.
31159 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
31160 of data references, as reported.
31162 2013-03-18 Richard Biener <rguenther@suse.de>
31164 PR tree-optimization/3713
31165 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
31166 has_constants and expr.
31167 (stmt_has_constants): Properly valueize SSA names when deciding
31168 whether the stmt has constants.
31170 2013-03-18 Richard Biener <rguenther@suse.de>
31172 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
31173 whole function when there is nothing to do.
31174 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
31175 * tree-vectorizer.c (vectorize_loops): Update virtual and
31176 loop-closed SSA once.
31177 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
31179 2013-03-18 Richard Biener <rguenther@suse.de>
31181 PR middle-end/56113
31182 * domwalk.c (bb_postorder): New global static.
31183 (cmp_bb_postorder): New function.
31184 (walk_dominator_tree): Replace scheme imposing an order for
31185 visiting dominator sons by one sorting them at the time they
31186 are pushed on the stack.
31188 2013-03-18 Richard Biener <rguenther@suse.de>
31190 PR tree-optimization/39326
31191 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
31192 (struct mem_ref): Replace mem member with ao_ref typed member.
31193 (MEM_ANALYZABLE): Adjust.
31194 (memref_eq): Likewise.
31195 (mem_ref_alloc): Likewise.
31196 (gather_mem_refs_stmt): Likewise.
31197 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
31198 (execute_sm_if_changed_flag_set): Adjust.
31199 (execute_sm): Likewise.
31200 (ref_always_accessed_p): Likewise.
31201 (refs_independent_p): Likewise.
31202 (can_sm_ref_p): Likewise.
31204 2013-03-18 Jakub Jelinek <jakub@redhat.com>
31207 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
31208 return 1 even for !unsignedp.
31210 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
31212 * config/i386/i386.md (isa): Add x64 and nox64.
31213 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
31214 (*pushtf): Enable *roF alternative for x64 isa only.
31215 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
31216 mode attribute of integer alternatives to DImode for TARGET_64BIT.
31217 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
31218 (*movtf_internal): Merge from *movtf_internal_rex64 and
31219 *movtf_internal_sse. Use x64 and nox64 isa attributes.
31220 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
31221 nox64 isa attributes.
31222 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
31223 nox64 isa attributes.
31224 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
31226 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
31228 * config/alpha/alpha.c (TARGET_LRA_P): New define.
31230 2013-03-17 Jakub Jelinek <jakub@redhat.com>
31233 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
31234 class names. Remove trailing comma after "ALL_REGS".
31236 2013-03-16 Jan Hubicka <jh@suse.cz>
31238 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
31239 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
31240 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
31241 of cgraph_get_create_node.
31242 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
31244 2013-03-16 Jason Merrill <jason@redhat.com>
31247 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
31248 with DW_AT_default_value.
31250 2013-03-16 Jakub Jelinek <jakub@redhat.com>
31252 * BASE-VER: Set to 4.9.0.
31254 2013-03-14 Andi Kleen <ak@linux.intel.com>
31257 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
31258 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
31259 Document _x* TSX intrinsics.
31261 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
31262 David Holsgrove <david.holsgrove@xilinx.com>
31264 * configure.ac: Add MicroBlaze TLS support detection.
31265 * configure: Regenerate.
31266 * config/microblaze/microblaze-protos.h
31267 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
31268 symbol_mentioned_p, label_mentioned_p): Add prototypes.
31269 * config/microblaze/microblaze.c (microblaze_address_type): Add
31270 ADDRESS_TLS and tls_reloc address types.
31271 (microblaze_address_info): Add tls_reloc.
31272 (TARGET_HAVE_TLS): Define.
31273 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
31274 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
31275 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
31276 load_tls_operand, microblaze_call_tls_get_addr,
31277 microblaze_legitimize_tls_address): New functions.
31278 (microblaze_classify_unspec): Handle UNSPEC_TLS.
31279 (get_base_reg): Use microblaze_tls_symbol_p.
31280 (microblaze_classify_address): Handle TLS.
31281 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
31282 label_mentioned_p and microblaze_tls_referenced_p.
31283 (microblaze_legitimize_address): Handle TLS.
31284 (microblaze_address_insns): Handle ADDRESS_TLS.
31285 (pic_address_needs_scratch): Handle TLS.
31286 (print_operand_address): Handle TLS.
31287 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
31288 (microblaze_expand_move): Handle TLS.
31289 (microblaze_legitimate_constant_p): Check
31290 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
31291 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
31292 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
31293 (PIC_OFFSET_TABLE_REGNUM): Set.
31294 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
31295 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
31296 (addsi3, movsi_internal2, movdf_internal): Update constraints
31297 * config/microblaze/predicates.md (arith_plus_operand): Define
31298 (move_operand): Redefine as move_src_operand,
31299 check microblaze_tls_referenced_p.
31301 2013-03-14 Ian Bolton <ian.bolton@arm.com>
31303 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
31304 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
31306 2013-03-14 Ian Bolton <ian.bolton@arm.com>
31308 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
31311 2013-03-14 Jakub Jelinek <jakub@redhat.com>
31313 PR tree-optimization/53265
31314 * common.opt (Waggressive-loop-optimizations): New option.
31315 * tree-ssa-loop-niter.c: Include tree-pass.h.
31316 (do_warn_aggressive_loop_optimizations): New function.
31317 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
31318 if number_of_latch_executions returned constant.
31319 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
31320 early. If number_of_latch_executions returned constant, set
31321 nb_iterations_upper_bound back to it.
31322 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
31324 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
31325 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
31327 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
31328 (MULTILIB_OSDIRNAMES): Set.
31329 * genmultilib: If defaultosdirname doesn't start with :: , set
31330 defaultosdirname2 instead, clear it and emit two . multilib_raw
31331 entries instead of just one.
31333 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
31335 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
31336 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
31337 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
31338 (SUBTARGET_OVERRIDE_OPTIONS): New.
31340 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
31343 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
31344 (musermode): Convert to Var(TARGET_USERMODE).
31345 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
31346 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
31347 * config/sh/sh.c (sh_option_override): Use
31348 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
31349 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
31351 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
31353 (udivsi3_i4_single, divsi3_i4_single): Use
31354 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
31356 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
31358 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
31361 2013-03-13 Richard Biener <rguenther@suse.de>
31363 PR tree-optimization/56608
31364 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
31365 calls when vectorizing basic-blocks.
31367 2013-03-13 Jakub Jelinek <jakub@redhat.com>
31370 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
31373 2013-03-12 Jakub Jelinek <jakub@redhat.com>
31375 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
31377 2013-03-11 Jan Hubicka <jh@suse.cz>
31380 * lto-streamer-out.c (output_symbol_p): Skip references from
31381 constructors of external variables.
31383 2013-03-11 Jan Hubicka <jh@suse.cz>
31385 PR middle-end/56571
31386 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
31388 * emit-rtl.c (verify_rtx_sharing): Likewise.
31389 (copy_insn_1): Likewise.
31390 * rtl.c (copy_rtx): Likewise.
31392 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
31395 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
31396 output_operand_lossage message.
31398 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
31401 * arm.c (shift_op): Validate RTL pattern on the fly.
31402 (arm_print_operand, case 'S'): Don't use shift_operator to validate
31405 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31408 * config/pa/pa.md (call_value): Check for calls to powf and direct to
31409 new call patterns that clobber %fr12.
31410 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
31411 split and postreload patterns.
31412 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
31413 registers %fr12 and %fr12R as call used.
31415 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
31417 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
31418 (canon_address, record_store, replace_read, check_mem_read_rtx,
31419 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
31420 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
31421 rest_of_handle_dse): Likewise.
31423 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
31425 PR middle-end/56524
31426 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
31428 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
31429 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
31430 (save_optabs_if_changed): Replace with...
31431 (init_tree_optimization_optabs): ...this.
31432 * optabs.c (save_optabs_if_changed): Rename to...
31433 (init_tree_optimization_optabs): ...this. Take the optimization node
31434 as argument. Do nothing if the base optabs are already correct.
31435 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
31436 to recompute optabs.
31437 * function.h (function): Remove optabs field.
31438 * function.c (invoke_set_current_function_hook): Call
31439 init_tree_optimization_optabs. Use the result to initialize
31442 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
31444 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
31445 if GTMA_HAS_NO_INSTRUMENTATION.
31446 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
31447 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
31448 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
31449 * gimple-pretty-print.c (dump_gimple_transaction): Handle
31450 GTMA_HAS_NO_INSTRUMENTATION.
31452 2013-03-08 Jakub Jelinek <jakub@redhat.com>
31454 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
31457 2013-03-08 Marek Polacek <polacek@redhat.com>
31458 Jakub Jelinek <jakub@redhat.com>
31460 PR tree-optimization/56478
31461 * predict.c (is_comparison_with_loop_invariant_p): Change the
31462 type of loop_step to tree.
31463 (predict_loops): Adjust.
31464 (predict_iv_comparison): Perform the computations on double_ints.
31466 2013-03-08 Richard Biener <rguenther@suse.de>
31468 PR tree-optimization/56570
31469 * tree-cfg.c (verify_expr_location_1): Verify locations for
31471 * tree-sra.c (create_access_replacement): Strip locations
31472 from DECL_DEBUG_EXPRs.
31474 2013-03-08 Richard Biener <rguenther@suse.de>
31476 * tree-inline.c (expand_call_inline): Do not associate
31477 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
31478 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
31480 2013-03-08 Richard Biener <rguenther@suse.de>
31482 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
31483 or block changes with -Og. Fix for location / block encoding
31484 changes and PHI arguments with locations.
31486 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
31488 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
31490 (struct output_info): Likewise.
31491 (register_overhead): Remove bad gcc_assert.
31492 (bitmap_find_bit): If there is only a single bitmap element, do not
31493 count a miss as a search.
31494 (print_statistics): Update for counter type changes.
31495 (dump_bitmap_statistics): Likewise. Print headers such that they
31496 are properly lined up with the printed counters.
31498 2013-03-07 Jakub Jelinek <jakub@redhat.com>
31500 PR tree-optimization/56559
31501 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
31502 check that it has only a single use.
31504 2013-03-07 Richard Biener <rguenther@suse.de>
31506 * doc/invoke.texi (fwhole-program): Discourage use in combination
31509 2013-03-06 Jakub Jelinek <jakub@redhat.com>
31511 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
31513 PR tree-optimization/56539
31514 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
31515 instead of GSI_CONTINUE_LINKING as last argument to
31516 force_gimple_operand_gsi. Adjust function comment.
31518 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
31521 PR middle-end/56548
31522 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
31523 promoted mode, convert the result back to the original mode.
31525 2013-03-06 Richard Biener <rguenther@suse.de>
31527 PR middle-end/56294
31528 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
31529 (insert_updated_phi_nodes_compare_uids): New function.
31530 (update_ssa): Sort symbols_to_rename after UID before
31531 traversing it to insert PHI nodes.
31533 2013-03-06 Richard Biener <rguenther@suse.de>
31535 PR middle-end/50494
31536 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
31537 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
31540 2013-02-13 Richard Biener <rguenther@suse.de>
31543 * varasm.c (output_constant_def_1): Get the decl representing
31544 the constant as argument.
31545 (output_constant_def): Wrap output_constant_def_1.
31546 (make_decl_rtl): Use output_constant_def_1 with the decl
31547 representing the constant.
31548 (build_constant_desc): Optionally re-use a decl already
31549 representing the constant.
31550 (tree_output_constant_def): Adjust.
31552 2013-03-06 Joey Ye <joey.ye@arm.com>
31555 * gcc.c (convert_white_space): New function.
31556 (main): Handles white space in function name.
31558 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
31561 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
31562 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
31563 to SH_DIV_CALL_TABLE for TARGET_SH2.
31564 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
31566 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
31567 call-table options.
31569 2013-03-05 Sterling Augustine <saugustine@google.com>
31570 Cary Coutant <ccoutant@google.com>
31573 * dwarf2out.c (resolve_addr): Don't call
31574 remove_loc_list_addr_table_entries a second time for the same
31577 2013-03-05 Jakub Jelinek <jakub@redhat.com>
31580 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
31581 (avoid_complex_debug_insns): New function.
31582 (expand_debug_locations): Call it.
31584 PR rtl-optimization/56484
31585 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
31586 lifetimes of hard registers on small register class machines.
31588 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
31590 * config/microblaze/microblaze-protos.h: Rename
31591 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
31592 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
31594 (microblaze_fast_interrupt_function_p): New function.
31595 (microblaze_is_interrupt_handler): Rename to
31596 microblaze_is_interrupt_variant and add fast_interrupt check.
31597 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
31598 (save_restore_insns): Likewise.
31599 (compute_frame_size): Likewise.
31600 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
31601 (microblaze_globalize_label): Likewise.
31602 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
31603 * config/microblaze/microblaze.md: Use wrapper
31604 microblaze_is_interrupt_variant.
31606 2013-03-05 Kai Tietz <ktietz@redhat.com>
31608 * sdbout.c (sdbout_one_type): Switch to current function's section
31609 supporting cold/hot.
31611 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
31613 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
31616 2013-03-05 Jakub Jelinek <jakub@redhat.com>
31618 PR middle-end/56461
31619 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
31620 if VALGRIND_GET_VBITS is defined, temporarily make object
31621 memory all defined, and restore previous valgrind addressability
31622 and definability afterwards. Free this_object at the end.
31624 PR middle-end/56461
31625 * lra.c (lra): Call lra_clear_live_ranges if live_p,
31626 right before calling lra_create_live_ranges, also call it
31627 when clearing live_p. Only call lra_clear_live_ranges
31628 at the end if live_p.
31630 PR middle-end/56461
31631 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
31633 2013-03-05 Richard Biener <rguenther@suse.de>
31635 PR tree-optimization/56521
31636 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
31639 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
31642 * except.h (remove_unreachable_eh_regions): New prototype.
31643 * except.c (remove_eh_handler_splicer): New function, split out
31644 of remove_eh_handler.
31645 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
31646 warning about running it on many EH regions one at a time.
31647 (remove_unreachable_eh_regions_worker): New function, walk the
31648 EH tree in depth-first order and remove non-marked regions.
31649 (remove_unreachable_eh_regions): New function.
31650 * tree-eh.c (mark_reachable_handlers): New function, split out
31651 from remove_unreachable_handlers.
31652 (remove_unreachable_handlers): Use mark_reachable_handlers and
31653 remove_unreachable_eh_regions.
31654 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
31655 and remove_unreachable_eh_regions.
31657 2013-03-05 Richard Biener <rguenther@suse.de>
31659 PR middle-end/56525
31660 * loop-init.c (fix_loop_structure): Remove loops in two stages,
31661 not freeing them until the end.
31663 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31665 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
31667 2013-03-05 Richard Biener <rguenther@suse.de>
31669 PR tree-optimization/56270
31670 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
31671 of loads after scheduling an SLP instance.
31673 2013-03-05 Jakub Jelinek <jakub@redhat.com>
31675 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
31677 (check_gcc_parallelize): Run guality.exp as a separate job from
31678 vect.exp with unsorted.exp and $(dg_target_exps) separately from
31679 struct-layout-1.exp with stackalign.exp.
31681 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
31683 PR middle-end/56461
31684 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
31685 load_index sbitmap even if some bit in it isn't set.
31687 PR middle-end/56461
31688 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
31689 (discover_iteration_bound_by_body_walk): Change queues to
31690 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
31691 spelling in comment. Call safe_push on queues[bound_index] directly.
31692 Release queues[queue_index] in every iteration unconditionally.
31693 Release bounds vector.
31695 PR middle-end/56461
31696 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
31697 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
31698 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
31701 2013-03-05 Richard Biener <rguenther@suse.de>
31704 * tree-inline.c (remap_blocks_to_null): New function.
31705 (expand_call_inline): When expanding a call stmt without
31706 an associated block inline remap all callee blocks to NULL.
31708 2013-03-05 Jakub Jelinek <jakub@redhat.com>
31710 PR rtl-optimization/56494
31711 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
31712 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
31713 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
31715 PR middle-end/56461
31716 * sel-sched-ir.c (free_sched_pools): Release
31717 succs_info_pool.stack[succs_info_pool.max_top] vectors too
31718 if succs_info_pool.max_top isn't -1.
31721 * opts.c (opts_obstack, opts_concat): Moved to...
31722 * opts-common.c (opts_obstack, opts_concat): ... here.
31724 2013-03-04 Jakub Jelinek <jakub@redhat.com>
31726 PR middle-end/56461
31727 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
31729 2013-03-04 Martin Jambor <mjambor@suse.cz>
31731 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
31732 all appropriate places.
31734 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
31736 PR tree-optimization/56424
31737 * ipa-split.c (split_function): Do not set the RSO flag if result is
31738 not by reference and its type is a register type.
31740 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
31742 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
31743 (microblaze_legitimate_pic_operand): Likewise
31744 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
31745 new function microblaze_legitimate_pic_operand
31746 * config/microblaze/microblaze-protos.h
31747 (microblaze_legitimate_pic_operand): Declare.
31749 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31751 * config/microblaze/predicates.md (call_insn_simple_operand):
31752 New predicate for supported rtx code types.
31753 * config/microblaze/microblaze.md (call_internal1): Use
31754 call_insn_simple_operand predicate.
31756 2013-03-04 Jakub Jelinek <jakub@redhat.com>
31758 PR middle-end/56461
31759 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
31760 partitions.ordered_remove.
31762 PR middle-end/56461
31763 * tree-vect-stmts.c (vectorizable_conversion): Don't call
31764 vec_oprnds0.create (1) for modifier == NONE.
31766 PR middle-end/56461
31767 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
31768 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
31769 vec_oprnds1 right before pushing anything to it for
31772 PR middle-end/56461
31773 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
31774 set nbbs to 0 instead of having separate code path.
31775 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
31776 instead of false as last argument if returning NULL.
31778 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
31780 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
31781 the attribute is now called "target" instead of "option".
31782 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
31783 * doc/tm.texi.in (Target Attributes): Likewise document the correct
31784 attribute/pragma name for TARGET_OPTION_VALID_P and
31785 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
31786 * doc/tm.texi: Regenerated.
31788 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
31790 * config/microblaze/microblaze.c:
31791 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
31792 * config/microblaze/microblaze.h: Add -mxl-reorder to
31794 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
31795 instructions emitted if TARGET_REORDER.
31796 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
31797 or 0 for -m/-mno case, but initialises as 2 to detect default use case
31800 2013-03-01 Xinliang David Li <davidxl@google.com>
31802 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
31805 2013-03-01 Jakub Jelinek <jakub@redhat.com>
31807 PR middle-end/56461
31808 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
31809 vector even when returning true. Fix up function comment formatting.
31811 PR middle-end/56461
31812 * ira-build.c (ira_loop_nodes_count): New variable.
31813 (create_loop_tree_nodes): Initialize it.
31814 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
31816 PR middle-end/56461
31817 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
31818 method on dr_chain and result_chain.
31819 * tree-vect-stmts.c (vectorizable_store): Only call
31820 result_chain.create if j == 0.
31822 PR middle-end/56461
31823 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
31824 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
31825 before overwriting it.
31827 2013-03-01 Tobias Burnus <burnus@net-b.de>
31829 * doc/extended.texi (C Extensions): Change order in @menu
31831 (Other MIPS Built-in Functions): Move last MIPS entry before
31832 "picoChip Built-in Functions".
31833 (SH Built-in Functions): Move after RX Built-in Functions.
31834 * doc/gcc.texi (Introduction): Change order in @menu
31836 * doc/md.texi (Constraints): Ditto.
31837 * gty.texi (Type Information): Ditto.
31838 (User-provided marking routines for template types): Make
31840 * doc/invoke.texi (AArch64 Options): Move before
31841 "Adapteva Epiphany Options".
31843 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
31844 Jakub Jelinek <jakub@redhat.com>
31847 * asan.c (gate_asan): Lookup no_sanitize_address instead of
31848 no_address_safety_analysis attribute.
31849 * doc/extend.texi (no_address_safety_attribute): Rename to
31850 no_sanitize_address attribute, mention no_address_safety_analysis
31851 attribute as deprecated alias.
31853 2013-02-28 Jakub Jelinek <jakub@redhat.com>
31855 PR middle-end/56461
31856 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
31857 type to vec<vec<tree> > *.
31858 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
31859 to be vec<tree> instead of vec<tree> *, set vec_defs
31860 to vNULL and call vec_defs.create (number_of_vects), adjust other
31862 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
31863 vectorizable_condition): Adjust vect_get_slp_defs callers.
31865 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31867 * config/aarch64/aarch64.c
31868 (aarch64_float_const_representable): Remove unused variable.
31870 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31872 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
31874 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31876 * config/aarch64/aarch64-builtins.c
31877 (aarch64_init_simd_builtins): Make static.
31879 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31881 * config/aarch64/aarch64.c
31882 (aarch64_simd_make_constant): Make static.
31884 2013-02-28 Martin Jambor <mjambor@suse.cz>
31886 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
31887 with no initialization to the RHS of debug statements.
31889 2013-02-28 Martin Jambor <mjambor@suse.cz>
31891 PR tree-optimization/56294
31892 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
31894 (get_access_replacement): Do not call create_access_replacement.
31895 Assert a replacement exists.
31896 (get_repl_default_def_ssa_name): Create the replacement declaration
31899 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31901 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
31902 final_end_function.
31904 2013-02-28 Marek Polacek <polacek@redhat.com>
31906 PR rtl-optimization/56466
31907 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
31908 if we're changing a loop.
31909 (peel_loops_completely): Likewise.
31911 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
31914 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
31916 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
31919 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
31920 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
31921 INTX_FTYPE_FX, FX_FTYPE_INTX.
31922 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
31924 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
31926 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
31927 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
31928 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
31929 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
31930 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
31931 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
31932 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
31933 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
31934 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
31935 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
31936 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
31937 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
31938 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
31939 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
31940 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
31941 (avrxmega6): Increase max flash segments from 5 to 6.
31942 * config/avr/t-multilib: Regenerate.
31943 * config/avr/avr-tables.opt: Regenerate.
31944 * doc/avr-mmcu.texi: Regenerate.
31946 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
31948 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
31949 (avr_device_to_arch): Rename to avr_device_to_ld.
31950 (avr_device_to_as): New prototype.
31951 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
31952 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
31953 * config/avr/driver-avr.c (avr_device_to_as): New.
31954 (avr_device_to_arch): Rename to avr_device_to_ld.
31956 2013-02-27 Jakub Jelinek <jakub@redhat.com>
31958 PR middle-end/56461
31959 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
31960 method on dr_chain and result_chain.
31962 PR middle-end/56461
31963 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
31964 pointer_set_destroy on not_executed_last_iteration.
31966 PR middle-end/56461
31967 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
31969 PR middle-end/56461
31970 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
31971 FOR_EACH_DEFINED_FUNCTION when freeing state.
31973 PR middle-end/56461
31974 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
31976 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
31979 PR middle-end/56461
31980 * ipa-cp.c (decide_whether_version_node): Call vec_free on
31981 known_aggs[i].items and release known_aggs vector.
31983 PR middle-end/56461
31984 * ipa-reference.c (propagate): Free node_info even for alias nodes.
31986 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31988 * config/microblaze/microblaze.c (microblaze_emit_compare):
31989 Use xor for EQ/NE comparisions.
31990 * config/microblaze/microblaze.md (cstoresf4): Add constraints
31991 (cbranchsf4): Adjust operator to comparison_operator.
31993 2013-02-27 Jakub Jelinek <jakub@redhat.com>
31995 PR middle-end/56461
31996 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
31998 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
31999 vec_safe_push, always update *slot.
32000 (redirect_edge_var_map_clear): Use vec_free.
32001 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
32002 (free_var_map_entry): Use vec_free.
32003 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
32004 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
32006 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
32008 PR middle-end/45472
32009 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
32010 when the may_trap_p bit of the exprs being merged differs.
32011 Reorder tests for speculativeness in the logical and operator.
32013 2013-02-27 Jakub Jelinek <jakub@redhat.com>
32015 * incpath.c (add_standard_paths): Use reconcat instead of concat
32016 where appropriate and avoid leaking memory.
32018 * opts.h: Include obstack.h.
32019 (opts_concat): New prototype.
32020 (opts_obstack): New declaration.
32021 * opts.c (opts_concat): New function.
32022 (opts_obstack): New variable.
32023 (init_options_struct): Call gcc_init_obstack on opts_obstack.
32024 (finish_options): Use opts_concat instead of concat
32025 and XOBNEWVEC instead of XNEWVEC.
32026 * opts-common.c (generate_canonical_option, decode_cmdline_option,
32027 generate_option): Likewise.
32028 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
32029 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
32032 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
32033 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
32035 2013-02-26 Jakub Jelinek <jakub@redhat.com>
32037 PR middle-end/56461
32038 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
32040 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
32042 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
32043 (arm_block_move_unaligned_straight): Likewise.
32044 (arm_adjust_block_mem): Likewise.
32046 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
32049 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
32050 temp, cond and label.
32051 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
32054 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
32055 * config/c6x/c6x.h (dbx_register_map): Update declaration.
32058 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
32059 of prologue/epilogue functions.
32062 * config/tilegx/tilegx.c (tilegx_expand_prologue):
32063 Remove unused variable cfa_offset.
32064 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
32067 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
32068 type promotion to unsigned.
32071 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
32072 for HOST_WIDE_INT of 32 bit / same size as int.
32073 (arm_block_move_unaligned_straight): Likewise.
32074 (arm_adjust_block_mem): Likewise.
32077 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
32080 2013-02-26 Marek Polacek <polacek@redhat.com>
32082 PR tree-optimization/56426
32083 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
32085 2013-02-26 Richard Biener <rguenther@suse.de>
32088 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
32089 unused variable loops.
32091 2013-02-26 Jakub Jelinek <jakub@redhat.com>
32093 PR tree-optimization/56448
32094 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
32095 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
32096 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
32097 later operands of the references, or even first operand for
32098 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
32100 PR tree-optimization/56443
32101 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
32102 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
32103 to type_for_mode langhook.
32105 2013-02-25 Matt Turner <mattst88@gmail.com>
32107 * doc/invoke.texi: Document r4700.
32109 2013-02-25 Richard Biener <rguenther@suse.de>
32111 PR tree-optimization/56175
32112 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
32114 (simplify_bitwise_binary): ... here. Also guard the conversion
32115 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
32117 2013-02-25 Catherine Moore <clm@codesourcery.com>
32120 2013-02-24 Catherine Moore <clm@codesourcery.com>
32121 Maciej W. Rozycki <macro@codesourcery.com>
32122 Tom de Vries <tom@codesourcery.com>
32123 Nathan Sidwell <nathan@codesourcery.com>
32124 Iain Sandoe <iain@codesourcery.com>
32125 Nathan Froyd <froydnj@codesourcery.com>
32126 Chao-ying Fu <fu@mips.com>
32128 * doc/extend.texi: (micromips, nomicromips, nocompression):
32129 Document new function attributes.
32130 * doc/invoke.texi (minterlink-compressed, mmicromips,
32131 m14k, m14ke, m14kec): Document new options.
32132 (minterlink-mips16): Update documentation.
32133 * doc/md.texi (ZC, ZD): Document new constraints.
32134 * configure.ac (gcc_cv_as_micromips): Check if linker
32135 supports the .set micromips directive.
32136 * configure: Regenerate.
32137 * config.in: Regenerate.
32138 * config/mips/mips-tables.opt: Regenerate.
32139 * config/mips/micromips.md: New file.
32140 * constraints.md (ZC, AD): New constraints.
32141 * config/mips/predicates.md (movep_src_register): New predicate.
32142 (movep_src_operand): New predicate.
32143 (non_volatile_mem_operand): New predicate.
32144 * config/mips/mips.md (multimem): New type.
32145 (length): Differentiate between 17-bit and 18-bit branch offsets.
32146 (MOVEP1, MOVEP2): New mode iterator.
32147 (mov_<load>l): Use ZC constraint.
32148 (mov_<load>r): Likewise.
32149 (mov_<store>l): Likewise.
32150 (mov_<store>r): Likewise.
32151 (*branch_equality<mode>_inverted): Add microMIPS support.
32152 (*branch_equality<mode>): Likewise.
32153 (*jump_absolute): Likewise.
32154 (indirect_jump_<mode>): Likewise.
32155 (tablejump_<mode>): Likewise.
32156 (<optab>_internal): Likewise.
32157 (sibcall_internal): Likewise.
32158 (sibcall_value_internal): Likewise.
32159 (prefetch): Use constraint ZD.
32160 * config/mips/mips.opt (minterlink-compressed): New option.
32161 (minterlink-mips16): Now an alias for minterlink-compressed.
32162 (mmicromips): New option.
32163 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32164 (compare_and_swap_12): Likewise.
32165 (sync_add<mode>): Likewise.
32166 (sync_<optab>_12): Likewise.
32167 (sync_old_<optab>_12): Likewise.
32168 (sync_new_<optab>_12): Likewise.
32169 (sync_nand_12): Likewise.
32170 (sync_old_nand_12): Likewise.
32171 (sync_new_nand_12): Likewise.
32172 (sync_sub<mode>): Likewise.
32173 (sync_old_add<mode>): Likewise.
32174 (sync_old_sub<mode>): Likewise.
32175 (sync_new_add<mode>): Likewise.
32176 (sync_new_sub<mode>): Likewise.
32177 (sync_<optab><mode>): Likewise.
32178 (sync_old_<optab><mode>): Likewise.
32179 (sync_new_<optab><mode>): Likewise.
32180 (sync_nand<mode>): Likewise.
32181 (sync_old_nand<mode>): Likewise.
32182 (sync_new_nand<mode>): Likewise.
32183 (sync_lock_test_and_set<mode>): Likewise.
32184 (test_and_set_12): Likewise.
32185 (atomic_compare_and_swap<mode>): Likewise.
32186 (atomic_exchange<mode>_llsc): Likewise.
32187 (atomic_fetch_add<mode>_llsc): Likewise.
32188 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32189 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32190 (umips_save_restore_pattern_p): Likewise.
32191 (umips_load_store_pair_p): Likewise.
32192 (umips_output_load_store_pair): Likewise.
32193 (umips_movep_target_p): Likewise.
32194 (umips_12bit_offset_address_p): Likewise.
32195 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32196 (mips_base_mips16): Rename this...
32197 (mips_base_compression_flags): ...to this. Update all uses.
32198 (mips_attribute_table): Add micromips, nomicromips and nocompression.
32199 (mips_mips16_decl_p): Delete.
32200 (mips_nomips16_decl_p): Delete.
32201 (mips_get_compress_on_flags): New function.
32202 (mips_get_compress_off_flags): New function.
32203 (mips_get_compress_mode): New function.
32204 (mips_get_compress_on_name): New function.
32205 (mips_get_compress_off_name): New function.
32206 (mips_insert_attributes): Support multiple compression types.
32207 (mips_merge_decl_attributes): Likewise.
32208 (umips_12bit_offset_address_p): New function.
32209 (mips_start_function_definition): Emit .set micromips directive.
32210 (mips_call_may_need_jalx_p): New function.
32211 (mips_function_ok_for_sibcall): Add microMIPS support.
32212 (mips_print_operand_punctuation): Support short delay slots and
32214 (umips_swm_mask, umips_swm_encoding): New.
32215 (umips_build_save_restore): New function.
32216 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32217 (was_mips16_p): Remove.
32218 (old_compression_mode): New.
32219 (mips_set_compression_mode): New function.
32220 (mips_set_current_function): Add microMIPS support.
32221 (mips_option_override): Likewise.
32222 (umips_save_restore_pattern_p): New function.
32223 (umips_output_save_restore): New function.
32224 (umips_load_store_pair_p_1): New function.
32225 (umips_load_store_pair_p): New function.
32226 (umips_output_load_store_pair_1): New function.
32227 (umips_output_load_store_pair): New function.
32228 (umips_movep_target_p) New function.
32229 (mips_prepare_pch_save): Add microMIPS support.
32230 * config/mips/mips.h (TARGET_COMPRESSION): New.
32231 (TARGET_CPU_CPP_BUILTINS): Update macro
32232 to use new compression flags and to support microMIPS.
32233 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32234 (MIPS_ARCH_FLOAT_SPEC): Likewise.
32235 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32236 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32237 (ASM_SPEC): Support mmicromips and mno-micromips.
32238 (M16STORE_REG_P): New macro.
32239 (MIPS_CALL): Support TARGET_MICROMIPS.
32240 (MICROMIPS_J): New macro.
32241 (mips_base_mips16): Rename this...
32242 (mips_base_compression_flags): ...to this.
32243 (UMIPS_12BIT_OFFSET_P): New macro.
32244 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32245 (MULTILIB_DIRNAMES): Likewise.
32247 2013-02-25 Tom de Vries <tom@codesourcery.com>
32249 PR rtl-optimization/56131
32250 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
32251 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
32252 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
32254 2013-02-25 Tobias Burnus <burnus@net-b.de>
32256 * doc/invoke.texi (-fsanitize=): Move from optimization
32257 to debugging options.
32259 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
32261 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
32263 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
32264 Alexander Monakov <amonakov@ispras.ru>
32266 PR middle-end/56077
32267 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
32268 flush pending lists also on non-jumps. Adjust comment.
32270 2013-02-24 Catherine Moore <clm@codesourcery.com>
32271 Maciej W. Rozycki <macro@codesourcery.com>
32272 Tom de Vries <tom@codesourcery.com>
32273 Nathan Sidwell <nathan@codesourcery.com>
32274 Iain Sandoe <iain@codesourcery.com>
32275 Nathan Froyd <froydnj@codesourcery.com>
32276 Chao-ying Fu <fu@mips.com>
32278 * doc/extend.texi: (micromips, nomicromips, nocompression):
32279 Document new function attributes.
32280 * doc/invoke.texi (minterlink-compressed, mmicromips,
32281 m14k, m14ke, m14kec): Document new options.
32282 (minterlink-mips16): Update documentation.
32283 * doc/md.texi (ZC, ZD): Document new constraints.
32284 * configure.ac (gcc_cv_as_micromips): Check if linker
32285 supports the .set micromips directive.
32286 * configure: Regenerate.
32287 * config.in: Regenerate.
32288 * config/mips/mips-tables.opt: Regenerate.
32289 * config/mips/micromips.md: New file.
32290 * constraints.md (ZC, AD): New constraints.
32291 * config/mips/predicates.md (movep_src_register): New predicate.
32292 (movep_src_operand): New predicate.
32293 (non_volatile_mem_operand): New predicate.
32294 * config/mips/mips.md (multimem): New type.
32295 (length): Differentiate between 17-bit and 18-bit branch offsets.
32296 (MOVEP1, MOVEP2): New mode iterator.
32297 (mov_<load>l): Use ZC constraint.
32298 (mov_<load>r): Likewise.
32299 (mov_<store>l): Likewise.
32300 (mov_<store>r): Likewise.
32301 (*branch_equality<mode>_inverted): Add microMIPS support.
32302 (*branch_equality<mode>): Likewise.
32303 (*jump_absolute): Likewise.
32304 (indirect_jump_<mode>): Likewise.
32305 (tablejump_<mode>): Likewise.
32306 (<optab>_internal): Likewise.
32307 (sibcall_internal): Likewise.
32308 (sibcall_value_internal): Likewise.
32309 (prefetch): Use constraint ZD.
32310 * config/mips/mips.opt (minterlink-compressed): New option.
32311 (minterlink-mips16): Now an alias for minterlink-compressed.
32312 (mmicromips): New option.
32313 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32314 (compare_and_swap_12): Likewise.
32315 (sync_add<mode>): Likewise.
32316 (sync_<optab>_12): Likewise.
32317 (sync_old_<optab>_12): Likewise.
32318 (sync_new_<optab>_12): Likewise.
32319 (sync_nand_12): Likewise.
32320 (sync_old_nand_12): Likewise.
32321 (sync_new_nand_12): Likewise.
32322 (sync_sub<mode>): Likewise.
32323 (sync_old_add<mode>): Likewise.
32324 (sync_old_sub<mode>): Likewise.
32325 (sync_new_add<mode>): Likewise.
32326 (sync_new_sub<mode>): Likewise.
32327 (sync_<optab><mode>): Likewise.
32328 (sync_old_<optab><mode>): Likewise.
32329 (sync_new_<optab><mode>): Likewise.
32330 (sync_nand<mode>): Likewise.
32331 (sync_old_nand<mode>): Likewise.
32332 (sync_new_nand<mode>): Likewise.
32333 (sync_lock_test_and_set<mode>): Likewise.
32334 (test_and_set_12): Likewise.
32335 (atomic_compare_and_swap<mode>): Likewise.
32336 (atomic_exchange<mode>_llsc): Likewise.
32337 (atomic_fetch_add<mode>_llsc): Likewise.
32338 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32339 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32340 (umips_save_restore_pattern_p): Likewise.
32341 (umips_load_store_pair_p): Likewise.
32342 (umips_output_load_store_pair): Likewise.
32343 (umips_movep_target_p): Likewise.
32344 (umips_12bit_offset_address_p): Likewise.
32345 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32346 (mips_base_mips16): Rename this...
32347 (mips_base_compression_flags): ...to this. Update all uses.
32348 (mips_attribute_table): Add micromips, nomicromips and nocompression.
32349 (mips_mips16_decl_p): Delete.
32350 (mips_nomips16_decl_p): Delete.
32351 (mips_get_compress_on_flags): New function.
32352 (mips_get_compress_off_flags): New function.
32353 (mips_get_compress_mode): New function.
32354 (mips_get_compress_on_name): New function.
32355 (mips_get_compress_off_name): New function.
32356 (mips_insert_attributes): Support multiple compression types.
32357 (mips_merge_decl_attributes): Likewise.
32358 (umips_12bit_offset_address_p): New function.
32359 (mips_start_function_definition): Emit .set micromips directive.
32360 (mips_call_may_need_jalx_p): New function.
32361 (mips_function_ok_for_sibcall): Add microMIPS support.
32362 (mips_print_operand_punctuation): Support short delay slots and
32364 (umips_swm_mask, umips_swm_encoding): New.
32365 (umips_build_save_restore): New function.
32366 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32367 (was_mips16_p): Remove.
32368 (old_compression_mode): New.
32369 (mips_set_compression_mode): New function.
32370 (mips_set_current_function): Add microMIPS support.
32371 (mips_option_override): Likewise.
32372 (umips_save_restore_pattern_p): New function.
32373 (umips_output_save_restore): New function.
32374 (umips_load_store_pair_p_1): New function.
32375 (umips_load_store_pair_p): New function.
32376 (umips_output_load_store_pair_1): New function.
32377 (umips_output_load_store_pair): New function.
32378 (umips_movep_target_p) New function.
32379 (mips_prepare_pch_save): Add microMIPS support.
32380 * config/mips/mips.h (TARGET_COMPRESSION): New.
32381 (TARGET_CPU_CPP_BUILTINS): Update macro
32382 to use new compression flags and to support microMIPS.
32383 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32384 (MIPS_ARCH_FLOAT_SPEC): Likewise.
32385 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32386 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32387 (ASM_SPEC): Support mmicromips and mno-micromips.
32388 (M16STORE_REG_P): New macro.
32389 (MIPS_CALL): Support TARGET_MICROMIPS.
32390 (MICROMIPS_J): New macro.
32391 (mips_base_mips16): Rename this...
32392 (mips_base_compression_flags): ...to this.
32393 (UMIPS_12BIT_OFFSET_P): New macro.
32394 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32395 (MULTILIB_DIRNAMES): Likewise.
32397 2013-02-24 Jakub Jelinek <jakub@redhat.com>
32400 * target-globals.c (save_target_globals): For init_reg_sets and
32401 target_reinit remporarily set this_fn_optabs to this_target_optabs.
32403 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
32405 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
32406 * config/aarch64/t-aarch64
32407 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
32409 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
32411 PR inline-asm/56148
32412 * lra-constraints.c (process_alt_operands): Reload operand
32413 conflicting with earlier clobber only if no more other conflicting
32416 2013-02-22 Jakub Jelinek <jakub@redhat.com>
32419 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
32420 if not linking a shared library.
32422 2013-02-22 Seth LaForge <sethml@google.com>
32424 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
32426 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
32428 * config/arm/arm.md (split for extendsidi): Update condition.
32429 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
32430 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
32431 (qhs_zextenddi_cstr): Likewise.
32433 2013-02-21 Jakub Jelinek <jakub@redhat.com>
32435 PR middle-end/56420
32436 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
32437 avoid signed wrapping.
32438 (expand_mult): Handle properly multiplication by
32439 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
32440 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
32441 in the compiler if coeff is HOST_WIDE_INT_MIN.
32442 (expand_divmod): Don't make ext_op1 static, change it's type to
32443 uhwi. Avoid undefined behavior in -INTVAL (op1).
32445 PR rtl-optimization/50339
32446 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
32448 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
32449 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
32450 into splitting_ashiftrt field.
32451 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
32453 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
32456 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
32458 PR middle-end/56108
32459 * trans-mem.c (execute_tm_mark): Do not expand transactions that
32460 are sure to go irrevocable.
32462 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
32464 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
32465 scalars are valid operands.
32467 2013-02-21 Martin Jambor <mjambor@suse.cz>
32469 PR tree-optimization/56310
32470 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
32471 only matching indices and non-negative final offsets.
32472 (intersect_aggregates_with_edge): Pass src_idx to
32473 agg_replacements_to_vector. Pass src_idx insstead of index to
32474 intersect_with_agg_replacements.
32476 2013-02-21 Martin Jambor <mjambor@suse.cz>
32478 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
32479 instead of hard-wired defaults.
32481 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
32483 * doc/invoke.texi (MIPS Options): Update documentation of the
32484 floating-point multiply-accumulate instruction restrictions.
32486 2013-02-21 Kostya Serebryany <kcc@google.com>
32488 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
32489 asan_shadow_offset on x86_64 linux.
32491 2013-02-21 Richard Biener <rguenther@suse.de>
32493 PR tree-optimization/56415
32495 2013-02-11 Richard Biener <rguenther@suse.de>
32497 PR tree-optimization/56273
32498 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
32501 2013-02-21 Jakub Jelinek <jakub@redhat.com>
32504 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
32507 PR inline-asm/56405
32508 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
32509 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
32511 2013-02-20 Jan Hubicka <jh@suse.cz>
32513 PR tree-optimization/56265
32514 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
32515 when target is referenced for first time.
32517 2013-02-20 Richard Biener <rguenther@suse.de>
32519 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
32520 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
32521 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
32522 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
32523 not return anything.
32524 (rename_ssa_copies): Do not remove unused locals.
32525 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
32526 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
32527 * passes.c (execute_function_todo): Do not schedule unused locals
32528 removal if cleanup_tree_cfg did something.
32529 * tree-ssa-live.c (remove_unused_locals): Dump statistics
32530 about the number of removed locals.
32532 2013-02-20 Richard Biener <rguenther@suse.de>
32534 PR tree-optimization/56398
32535 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
32537 2013-02-20 Martin Jambor <mjambor@suse.cz>
32539 PR tree-optimization/55334
32540 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
32541 restricted pointers to arrays.
32543 2013-02-20 Richard Biener <rguenther@suse.de>
32544 Jakub Jelinek <jakub@redhat.com>
32546 PR tree-optimization/56396
32547 * tree-ssa-ccp.c (n_const_val): New static variable.
32548 (get_value): Return NULL for SSA names we don't have a lattice
32550 (ccp_initialize): Initialize n_const_val.
32551 * tree-ssa-copy.c (n_copy_of): New static variable.
32552 (init_copy_prop): Initialize n_copy_of.
32553 (get_value): Return NULL_TREE for SSA names we don't have a
32556 2013-02-20 Martin Jambor <mjambor@suse.cz>
32558 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
32560 2013-02-20 Richard Biener <rguenther@suse.de>
32562 * genpreds.c (write_lookup_constraint): Do not compare first
32563 letter of the constraint again.
32565 2013-02-20 Richard Biener <rguenther@suse.de>
32567 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
32569 (get_use_iv_cost): Terminate hashtable walk when coming across
32572 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
32574 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
32575 reassociation for avx2 targets.
32577 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32579 * config/microblaze/microblaze.c: microblaze_has_clz = 0
32580 Add version check for v8.10.a to enable microblaze_has_clz
32581 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
32582 version and TARGET_PATTERN_COMPARE check
32583 * config/microblaze/microblaze.md: New clzsi2 instruction
32585 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32587 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
32588 function before branching.
32590 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
32592 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
32594 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
32596 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
32598 PR middle-end/55889
32599 * sel-sched.c: Include ira.h.
32600 (implicit_clobber_conflict_p): New function.
32601 (moveup_expr): Use it.
32602 * Makefile.in (sel-sched.o): Depend on ira.h.
32604 2013-02-19 Richard Biener <rguenther@suse.de>
32606 PR tree-optimization/56384
32607 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
32608 (vn_hash_type): Split out from ...
32609 (vn_hash_constant_with_type): ... here.
32610 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
32611 (vn_phi_eq): Compare types from vn_phi_s structure.
32612 (vn_phi_lookup): Populate vn_phi_s type.
32613 (vn_phi_insert): Likewise.
32615 2013-02-19 Jakub Jelinek <jakub@redhat.com>
32617 PR tree-optimization/56350
32618 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
32619 if haven't found reduction or nested cycle operand, rather than
32620 asserting we must find it.
32622 PR tree-optimization/56381
32623 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
32626 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
32627 Jakub Jelinek <jakub@redhat.com>
32630 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
32631 (swap_optab_enable): Same.
32632 (init_all_optabs): Use argument instead of global.
32633 * tree.h (struct tree_optimization_option): New field target_optabs.
32634 * expr.h (init_all_optabs): Add argument to prototype.
32635 (TREE_OPTIMIZATION_OPTABS): New.
32636 (save_optabs_if_changed): Protoize.
32637 * optabs.h: Declare this_fn_optabs.
32638 * optabs.c (save_optabs_if_changed): New.
32639 Declare this_fn_optabs.
32640 (init_optabs): Add argument to init_all_optabs() call.
32641 * function.c (invoke_set_current_function_hook): Handle per
32643 * function.h (struct function): New field optabs.
32644 * config/mips/mips.c (mips_set_mips16_mode): Handle when
32645 optimization_current_node has changed.
32646 * target-globals.h (save_target_globals_default_opts): Protoize.
32647 * target-globals.c (save_target_globals_default_opts): New.
32649 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32652 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
32653 registers %fr12 and %fr12R as call used.
32656 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
32657 and HImode, require all displacements to be an integer multiple of
32659 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
32660 only allow QImode and HImode when reload is in progress and strict is
32661 true. Likewise for symbolic addresses. Use base14_operand to check
32662 displacements in REG+BASE addresses.
32664 2013-02-18 Richard Biener <rguenther@suse.de>
32666 PR tree-optimization/56366
32667 * tree-vect-loop.c (get_initial_def_for_induction): Properly
32668 handle sign-conversion of outer-loop initial induction value.
32670 2013-02-18 Richard Biener <rguenther@suse.de>
32672 PR middle-end/56349
32673 * cfghooks.c (merge_blocks): If we merge a latch into another
32674 block adjust references to it.
32675 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
32676 (verify_loop_structure): Verify that a recorded latch is in fact
32679 2013-02-18 Richard Biener <rguenther@suse.de>
32681 PR tree-optimization/56321
32682 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
32683 order SSA name release and virtual operand unlinking.
32685 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32687 * config/microblaze/microblaze.md (save_stack_block): Define.
32688 (restore_stack_block): Likewise.
32690 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32692 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
32693 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
32694 * config/microblaze/microblaze.c (microblaze_option_override):
32695 Bail out early for PIC modes when target does not support PIC.
32697 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32699 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
32700 Replace with a microblaze version.
32701 (microblaze_trampoline_init): Adapt for microblaze.
32702 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
32705 2013-02-16 Jakub Jelinek <jakub@redhat.com>
32706 Dodji Seketeli <dodji@redhat.com>
32709 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
32710 (instrument_mem_region_access): Do not forget to always put
32711 instrumentation of the of 'base' and 'base + len' in a "if (len !=
32712 0) statement, even for cases where either 'base' or 'base + len'
32713 are not instrumented -- because they have been previously
32714 instrumented. Simplify the logic by putting all the statements
32715 instrument 'base + len' inside a sequence, and then insert that
32716 sequence right before the current insertion point. Then, to
32717 instrument 'base + len', just get an iterator on that statement.
32718 And do not forget to update the pointer to iterator the function
32719 received as argument.
32721 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
32723 PR rtl-optimization/56348
32724 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
32726 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
32728 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
32729 (clean_graph_dump_file): Pass base to start_graph_dump.
32731 2013-02-14 Richard Henderson <rth@redhat.com>
32734 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
32736 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
32738 * collect2-aix.h: Define F_LOADONLY.
32740 2013-02-14 Richard Biener <rguenther@suse.de>
32743 * varasm.c (output_constant_def_1): Get the decl representing
32744 the constant as argument.
32745 (output_constant_def): Wrap output_constant_def_1.
32746 (make_decl_rtl): Use output_constant_def_1 with the decl
32747 representing the constant.
32748 (build_constant_desc): Optionally re-use a decl already
32749 representing the constant.
32750 (tree_output_constant_def): Adjust.
32752 2013-02-14 Dodji Seketeli <dodji@redhat.com>
32755 * asan.c (instrument_builtin_call): Really put the length of the
32756 second source argument into src1_len.
32758 2013-02-13 Jakub Jelinek <jakub@redhat.com>
32760 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
32761 argument. If it is false, don't create edge from then_bb to
32763 (insert_if_then_before_iter): Pass true to it.
32764 (build_check_stmt): Pass false to it.
32765 (transform_statements): Flush hash table only on extended basic
32766 block boundaries, rather than at the beginning of every bb.
32767 Don't flush hash table on nonfreeing_call_p calls.
32768 * tree-flow.h (nonfreeing_call_p): New prototype.
32769 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
32771 2013-02-13 David S. Miller <davem@davemloft.net>
32773 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
32775 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
32778 * ira.c (max_regno_before_ira): Move from ...
32780 (fix_reg_equiv_init): Use max_regno_before_ira instead of
32783 2013-02-13 Jakub Jelinek <jakub@redhat.com>
32785 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
32787 2013-02-13 Richard Biener <rguenther@suse.de>
32790 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
32791 globals in MEM_REFs.
32793 2013-02-13 Richard Biener <rguenther@suse.de>
32795 * loop-init.c (loop_optimizer_init): Clear loop state when
32796 re-initializing preserved loops.
32797 * loop-unswitch.c (unswitch_single_loop): Return whether
32798 we unswitched the loop. Do not verify loop state here.
32799 (unswitch_loops): When we unswitched a loop discover new loops.
32801 2013-02-13 Kostya Serebryany <kcc@google.com>
32803 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
32805 * sanitizer.def: Rename __asan_init to __asan_init_v1.
32807 2013-02-12 Dodji Seketeli <dodji@redhat.com>
32809 Avoid instrumenting duplicated memory access in the same basic block
32810 * Makefile.in (asan.o): Add new dependency on hash-table.h
32811 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
32812 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
32813 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
32814 (free_mem_ref_resources, has_mem_ref_been_instrumented)
32815 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
32816 (get_mem_ref_of_assignment): New functions.
32817 (get_mem_refs_of_builtin_call): Extract from
32818 instrument_builtin_call and tweak a little bit to make it fit with
32820 (instrument_builtin_call): Use the new
32821 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
32822 of is_gimple_builtin_call.
32823 (instrument_derefs, instrument_mem_region_access): Insert the
32824 instrumented memory reference into the hash table.
32825 (maybe_instrument_assignment): Renamed instrument_assignment into
32826 this, and change it to advance the iterator when instrumentation
32827 actually happened and return true in that case. This makes it
32828 homogeneous with maybe_instrument_assignment, and thus give a
32829 chance to callers to be more 'regular'.
32830 (transform_statements): Clear the memory reference hash table
32831 whenever we enter a new BB, when we cross a function call, or when
32832 we are done transforming statements. Use
32833 maybe_instrument_assignment instead of instrumentation. No more
32834 need to special case maybe_instrument_assignment and advance the
32835 iterator after calling it; it's now handled just like
32836 maybe_instrument_call. Update comment.
32838 2013-02-13 Richard Biener <rguenther@suse.de>
32840 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
32841 Fix loop discovery code.
32843 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
32845 PR inline-asm/56148
32846 * lra-constraints.c (process_alt_operands): Match early clobber
32847 operand with itself. Check conflicts with earlyclobber only if
32848 the operand is not reloaded. Prefer to reload conflicting operand
32849 if earlyclobber and matching operands are the same.
32851 2013-02-12 Richard Biener <rguenther@suse.de>
32854 * lto-streamer-out.c (write_symbol): Do not output symbols
32855 for hard register variables.
32857 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
32860 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
32861 (umulsidi3_insn, mulsidi3_insn): New insns.
32863 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
32865 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
32866 (struct tune_params): Add vec_costs field.
32867 * config/arm/arm.c (arm_builtin_vectorization_cost)
32868 (arm_add_stmt_cost): New functions.
32869 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
32870 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
32871 (arm_default_vec_cost): New struct of type cpu_vec_costs.
32872 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
32873 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
32874 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
32875 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
32877 2013-02-12 Richard Biener <rguenther@suse.de>
32880 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
32881 decls again if possible.
32883 2013-02-12 Richard Biener <rguenther@suse.de>
32885 PR middle-end/56288
32886 * tree-ssa.c (verify_ssa_name): Fix check, move
32887 SSA_NAME_IN_FREE_LIST check up.
32889 2013-02-12 Jakub Jelinek <jakub@redhat.com>
32890 Steven Bosscher <steven@gcc.gnu.org>
32892 PR rtl-optimization/56151
32893 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
32894 equal to op0 or op1, and last_insn pattern is CODE operation
32895 with MEM dest and one of the operands matches that MEM.
32897 2013-02-11 Sriraman Tallam <tmsriram@google.com>
32899 * doc/extend.texi: Document Function Multiversioning and "default"
32900 parameter string to target attribute.
32901 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
32902 target attribute parameter is "default".
32903 (ix86_compare_version_priority): Remove checks for target attribute.
32904 (ix86_mangle_function_version_assembler_name): Change error to sorry.
32905 Remove check for target attribute equal to NULL. Add assert.
32906 (ix86_generate_version_dispatcher_body): Change error to sorry.
32908 2013-02-11 Iain Sandoe <iain@codesourcery.com>
32909 Jack Howarth <howarth@bromo.med.uc.edu>
32910 Patrick Marlier <patrick.marlier@gmail.com>
32913 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
32914 define ENDFILE_SPEC as TM_DESTRUCTOR.
32915 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
32917 2013-02-11 Alexander Potapenko <glider@google.com>
32918 Jack Howarth <howarth@bromo.med.uc.edu>
32919 Jakub Jelinek <jakub@redhat.com>
32922 * config/darwin.c (cdtor_record): Rename ctor_record.
32923 (sort_cdtor_records): Rename sort_ctor_records.
32924 (finalize_dtors): New routine to sort destructors by
32925 priority before use in assemble_integer.
32926 (machopic_asm_out_destructor): Use finalize_dtors if needed.
32928 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
32930 PR rtl-optimization/56275
32931 * simplify-rtx.c (avoid_constant_pool_reference): Check that
32932 offset is non-negative and less than cmode size before
32933 calling simplify_subreg.
32935 2013-02-11 Richard Biener <rguenther@suse.de>
32937 PR tree-optimization/56264
32938 * cfgloop.h (fix_loop_structure): Adjust prototype.
32939 * loop-init.c (fix_loop_structure): Return the number of
32940 newly discovered loops.
32941 * tree-cfgcleanup.c (repair_loop_structures): When new loops
32942 are discovered, do a full loop-closed SSA rewrite.
32944 2013-02-11 Richard Biener <rguenther@suse.de>
32946 PR tree-optimization/56273
32947 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
32949 (check_array_ref): Fix missing newline in dumps.
32950 (search_for_addr_array): Likewise.
32952 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
32954 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
32956 2013-02-09 Jakub Jelinek <jakub@redhat.com>
32959 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
32961 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
32963 PR rtl-optimization/56246
32964 * lra-constraints.c (simplify_operand_subreg): Try to reuse
32966 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
32967 constraints are satisfied.
32969 2013-02-08 Jeff Law <law@redhat.com>
32972 * emit-rtl.c (reg_is_parm_p): New function.
32973 * regs.h (reg_is_parm_p): New prototype.
32974 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
32975 callee-clobbered registers.
32977 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
32980 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
32981 If there is no implicit builtin declaration, just return NULL.
32983 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
32985 * config/i386/sse.md (FMAMODEM): New mode iterator.
32986 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
32987 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
32989 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
32991 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
32992 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
32993 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
32995 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32997 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
32998 (microblaze*-*-elf): Likewise.
32999 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
33001 * config/microblaze/microblaze-c.c: Add builtin defines for
33002 _LITTLE_ENDIAN and _BIG_ENDIAN.
33003 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
33004 add to TARGET_DEFAULT flags.
33005 Expand ASM_SPEC and LINK_SPEC.
33006 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
33007 * config/microblaze/microblaze.md: Update extendsidi2 and
33008 movdi_internal instructions to use low-order / high-order reg
33010 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
33011 options and inversemask / mask of LITTLE_ENDIAN.
33012 * config/microblaze/t-microblaze: Expand multilib options to
33013 include mlittle-endian (le) and update exceptions patterns.
33015 2013-02-08 Jakub Jelinek <jakub@redhat.com>
33017 PR rtl-optimization/56195
33018 * lra-constraints.c (get_reload_reg): Don't reuse regs
33019 if they have smaller mode than requested, if they have
33020 wider mode than requested, try to return a SUBREG.
33022 PR tree-optimization/56250
33023 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
33024 if type is unsigned and code isn't MULT_EXPR.
33026 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
33028 PR tree-optimization/56064
33029 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
33030 bits according to mode.
33031 * fixed-value.h (fixed_from_double_int)
33032 (const_fixed_from_double_int): Adjust comments.
33034 2013-02-08 Richard Biener <rguenther@suse.de>
33037 * lto-streamer.h (struct data_in): Remove current_file, current_line
33038 and current_col members.
33039 * lto-streamer-out.c (lto_output_location): Stream changed bits
33040 en-block for efficiency.
33041 * lto-streamer-in.c (clear_line_info): Remove.
33042 (lto_input_location): Cache current file, line and column
33043 globally via local statics. Read changed bits en-block.
33044 (input_function): Do not call clear_line_info.
33045 (lto_read_body): Likewise.
33046 (lto_input_toplevel_asms): Likewise.
33048 2013-02-08 Michael Matz <matz@suse.de>
33050 PR tree-optimization/52448
33051 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
33052 (nt_call_phase): New static.
33053 (add_or_mark_expr): Only mark accesses with newer phase than any
33055 (nonfreeing_call_p): New.
33056 (nt_init_block): Update nt_call_phase, mark blocks as visited.
33057 (nt_fini_block): Keep blocks marked as visited.
33058 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
33060 2013-02-08 Richard Biener <rguenther@suse.de>
33062 * ira.c (ira): Free broken dominator information.
33064 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
33066 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
33068 2013-02-08 Marek Polacek <polacek@redhat.com>
33070 * cfgloop.c (verify_loop_structure): Add more checking of headers.
33072 2013-02-08 Richard Biener <rguenther@suse.de>
33074 PR middle-end/56181
33075 * cfgloop.h (flow_loops_find): Adjust.
33076 (bb_loop_header_p): Declare.
33077 * cfgloop.c (bb_loop_header_p): New function split out from ...
33078 (flow_loops_find): ... here. Adjust function signature,
33079 support incremental loop structure update.
33080 (verify_loop_structure): Cleanup. Verify a loop is a loop.
33081 * cfgloopmanip.c (fix_loop_structure): Move ...
33082 * loop-init.c (fix_loop_structure): ... here.
33083 (apply_loop_flags): Split out from ...
33084 (loop_optimizer_init): ... here.
33085 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
33086 in incremental mode, only remove dead loops here.
33088 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
33091 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
33092 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
33093 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
33094 (*round<mode>3.libgcc): New insns for fixed-modes.
33095 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
33096 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
33097 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
33098 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
33099 implementations. Define to __builtin_avr_absFX,
33100 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
33101 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
33102 __builtin_avr_countlsFX, respectively.
33103 * config/avr/avr-c.c (target.h): Include it.
33104 (enum avr_builtin_id): New enum.
33105 (avr_resolve_overloaded_builtin): New static function.
33106 (avr_register_target_pragmas): Use it to set
33107 targetm.resolve_overloaded_builtin.
33108 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
33109 tree nodes used by DEF_BUILTIN.
33110 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
33111 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
33112 <AVR_BUILTIN_xxBITS>: Same.
33114 2013-02-08 Richard Biener <rguenther@suse.de>
33116 * cfgloop.c (verify_loop_structure): Properly handle
33117 a loop exiting to another loop header.
33118 * ira-int.h (ira_loops): Remove.
33119 * ira.c (ira_loops): Remove.
33120 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
33121 (do_reload): Use loop_optimizer_finalize.
33122 * ira-build.c (create_loop_tree_nodes): Use get_loops and
33123 number_of_loops to access the loop tree.
33124 (more_one_region_p): Likewise.
33125 (finish_loop_tree_nodes): Likewise.
33126 (rebuild_regno_allocno_maps): Likewise.
33127 (mark_loops_for_removal): Likewise.
33128 (mark_all_loops_for_removal): Likewise.
33129 (remove_unnecessary_regions): Likewise.
33130 (ira_build): Likewise.
33131 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
33133 2013-02-08 Richard Biener <rguenther@suse.de>
33135 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
33136 * ipa-pure-const.c (analyze_function): Avoid calling
33137 mark_irreducible_loops twice.
33138 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
33140 2013-02-07 David S. Miller <davem@davemloft.net>
33142 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
33144 * var-tracking.c (vt_add_function_parameter): Test the presence of
33145 HAVE_window_save properly and do not remap argument registers when
33146 we have a leaf function.
33148 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
33151 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
33153 * config/i386/i386.c (ix86_print_operand): Ditto.
33155 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
33157 * lra-constraints.c (process_alt_operands): Fix recently added comment.
33159 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
33161 PR rtl-optimization/56225
33162 * lra-constraints.c (process_alt_operands): Check that reload hard
33163 reg can hold value for strict_low_part.
33165 2013-02-07 Jakub Jelinek <jakub@redhat.com>
33168 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
33169 dwarf2out_end_function.
33170 (in_first_function_p, maybe_at_text_label_p,
33171 first_loclabel_num_not_at_text_label): New variables.
33172 (dwarf2out_var_location): In the first function find out
33173 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
33174 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
33177 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
33179 PR rtl-optimization/56178
33180 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
33181 SUBREG of a register. Tidy up related block of code.
33182 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
33183 note if the source is a register or a SUBREG of a register.
33185 2013-02-07 Jakub Jelinek <jakub@redhat.com>
33188 * config/rs6000/rs6000.md (ptrm): New mode attr.
33189 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
33190 call_value_indirect_aix<pttrsize>,
33191 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
33194 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
33196 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
33197 if -bnortl. Convert to strcmp and strncmp.
33199 2013-02-07 Alan Modra <amodra@gmail.com>
33202 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
33203 addresses won't wrap when offsetting.
33204 (rs6000_secondary_reload): Provide secondary reloads needed for
33205 wrapping LO_SUM addresses.
33207 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
33209 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
33210 MACH, just __MACH__.
33212 2013-02-06 Richard Biener <rguenther@suse.de>
33214 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
33215 instead of calling fix_loop_structure.
33217 2013-02-06 Jakub Jelinek <jakub@redhat.com>
33219 PR middle-end/56217
33220 * omp-low.c (use_pointer_for_field): Return false if
33221 lower_send_shared_vars doesn't generate any copy-out code.
33223 2013-02-06 Tom de Vries <tom@codesourcery.com>
33225 PR rtl-optimization/56131
33226 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
33227 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
33228 of the label is NULL. Add comment.
33230 2013-02-05 Jakub Jelinek <jakub@redhat.com>
33232 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
33235 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
33236 (STATIC_LIBTSAN_LIBS): Likewise.
33237 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
33238 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
33239 is defined, don't add anything else beyond that.
33240 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
33241 (LINK_COMMAND_SPEC): Use them.
33243 PR tree-optimization/56205
33244 * tree-stdarg.c (check_all_va_list_escapes): Return true if
33245 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
33246 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
33248 2013-02-05 Richard Biener <rguenther@suse.de>
33250 PR tree-optimization/53342
33251 PR tree-optimization/53185
33252 * tree-vectorizer.h (vect_check_strided_load): Remove.
33253 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
33254 not disallow peeling for vectorized strided loads.
33255 (vect_check_strided_load): Make static and simplify.
33256 (vect_analyze_data_refs): Adjust.
33257 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
33258 correctly when vectorizing strided loads.
33260 2013-02-05 Richard Biener <rguenther@suse.de>
33262 * doc/install.texi: Refer to ISL, not PPL.
33264 2013-02-05 Jan Hubicka <jh@suse.cz>
33266 PR tree-optimization/55789
33267 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
33269 2013-02-05 Jan Hubicka <jh@suse.cz>
33271 PR tree-optimization/55789
33272 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
33273 the dead call anyway.
33275 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
33278 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
33280 2013-02-04 Alexander Potapenko <glider@google.com>
33281 Jack Howarth <howarth@bromo.med.uc.edu>
33282 Jakub Jelinek <jakub@redhat.com>
33285 * config/darwin.c (sort_ctor_records): Stabilized qsort
33286 on constructor priority by using original position.
33287 (finalize_ctors): New routine to sort constructors by
33288 priority before use in assemble_integer.
33289 (machopic_asm_out_constructor): Use finalize_ctors if needed.
33291 2013-02-04 Jakub Jelinek <jakub@redhat.com>
33294 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
33295 about visibility on artificial decls.
33296 * config/sol2.c (solaris_assemble_visibility): Likewise.
33298 2013-02-04 Kai Tietz <ktietz@redhat.com>
33301 * config/i386/i386.c (function_value_ms_64): Add additional valtype
33302 argument and improve checking of return-argument types for 16-byte
33304 (ix86_function_value_1): Add additional valtype argument on call
33305 of function_value_64.
33306 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
33307 handling infunction_value_64 function.
33309 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
33311 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
33313 2013-02-04 Richard Biener <rguenther@suse.de>
33315 PR tree-optimization/56188
33316 * tree-ssa-structalias.c (label_visit): Consider case with
33317 initially non-empty points-to set.
33318 (perform_var_substitution): Dump node mapping and clean up.
33320 2013-02-04 Richard Guenther <rguenther@suse.de>
33323 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
33324 node prevail as last resort.
33325 (lto_symtab_merge_decls): Remove guard on LTRANS here.
33326 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
33328 2013-02-04 Richard Biener <rguenther@suse.de>
33330 PR tree-optimization/56113
33331 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
33333 (equiv_class_lookup_or_add): ... this.
33334 (label_visit): Adjust and fix error in previous patch.
33335 (perform_var_substitution): Adjust.
33337 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
33339 * config/sh/divtab.c: Fix formatting and comments throughout the file.
33340 * config/sh/sh4-300.md: Likewise.
33341 * config/sh/sh4a.md: Likewise.
33342 * config/sh/constraints.md: Likewise.
33343 * config/sh/sh.md: Likewise.
33344 * config/sh/netbsd-elf.h: Likewise.
33345 * config/sh/predicates.md: Likewise.
33346 * config/sh/sh-protos.h: Likewise.
33347 * config/sh/ushmedia.h: Likewise.
33348 * config/sh/linux.h: Likewise.
33349 * config/sh/sh.c: Likewise.
33350 * config/sh/superh.h: Likewise.
33351 * config/sh/elf.h: Likewise.
33352 * config/sh/sh4.md: Likewise.
33353 * config/sh/sh.h: Likewise.
33355 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33357 * config/pa/constraints.md: Adjust unused letters. Change "T"
33358 constraint to match_test floating_point_store_memory_operand().
33359 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
33360 (base14_operand): New.
33361 (floating_point_store_memory_operand): New.
33362 (integer_store_memory_operand): Revise to use base14_operand and
33363 reg_plus_base_memory_operand.
33364 (move_dest_operand): Allow symbolic_memory_operands.
33365 (symbolic_memory_operand): Check for LO_SOM.
33366 (symbolic_operand): Change default case to break.
33367 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
33368 CONST_DOUBLE values to be reloaded by putting them into memory when
33369 the destination is a floating point register.
33370 (movdf): Remove code to handle CONST_DOUBLE.
33372 (reload_indf_r1): New.
33373 (reload_insf_r1): New.
33374 Consistently use "Q" and "T" constraints with integer and floating
33375 point move instructions, respectively.
33376 (movdi): Remove FAIL.
33377 Change predicate for source operand unamed DImode move from
33378 general_operand to move_src_operand.
33379 (umulsidi3): Change predicate for destination operand to
33381 Likewise for similar unamed patterns.
33382 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
33383 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
33384 (hppa_legitimize_address): Simplify mask calculation.
33385 (pa_emit_move_sequence): Revised handling of secondary reloads from
33386 REG+D addresses for floating point loads and stores. Directly handle
33387 loading CONST0_RTX (mode) to a floating point register.
33388 (pa_secondary_reload): Handle reloading DF and SFmode constant values
33389 to floating point registers. Don't restrict secondary reloads to
33390 floating point registers to integer modes. Revise some comments and
33392 (TARGET_LEGITIMATE_ADDRESS_P): Define.
33393 (pa_legitimate_address_p): New.
33394 (pa_legitimize_reload_address): New.
33395 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
33396 (STRICT_REG_OK_FOR_BASE_P): New.
33397 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
33398 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
33400 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
33401 Andrew Dixie <andrewd@gentrack.com>
33403 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
33406 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
33408 * expmed.c (extract_bit_field_1): Pass the full width of the
33409 structure to get_best_reg_extraction_insn.
33411 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
33414 * configure.ac (use_cxa_atexit): Add AIX.
33415 * configure: Regenerate.
33417 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
33419 2013-02-01 Jakub Jelinek <jakub@redhat.com>
33422 * final.c (need_profile_function): New variable.
33423 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
33424 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
33425 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
33426 notes, targetm.asm_out.function_prologue doesn't emit anything,
33427 HAVE_prologue and profiler should be emitted before prologue,
33428 set need_profile_function instead of emitting it.
33429 (final_scan_insn): If need_profile_function, emit
33430 profile_function on the first NOTE_INSN_BASIC_BLOCK or
33431 NOTE_INSN_FUNCTION_BEG note.
33433 2013-02-01 Richard Henderson <rth@redhat.com>
33435 * config/rs6000/rs6000.md (smulditi3): New.
33438 * config/alpha/alpha.md (umulditi3): New.
33440 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
33442 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
33443 (ASM_OUTPUT_ALIGNED_LOCAL): New.
33445 2013-02-01 Richard Biener <rguenther@suse.de>
33447 PR tree-optimization/56113
33448 * tree-ssa-structalias.c (label_visit): Reduce work for
33449 single-predecessor nodes.
33451 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
33453 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
33454 range isn't testing for zero.
33456 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
33458 PR middle-end/56113
33459 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
33461 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
33462 Nick Clifton <nickc@redhat.com>
33464 * config/v850/constraints.md (Q): Define as a memory constraint.
33465 * config/v850/predicates.md (label_ref_operand): New predicate.
33466 (e3v5_shift_operand): New predicate.
33467 (ior_operator): New predicate.
33468 * config/v850/t-v850: Add e3v5 multilib.
33469 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
33470 (v850_gen_movdi): Prototype.
33471 * config/v850/v850.c: Add support for e3v5 architecture.
33472 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
33474 (construct_save_jarl): Add e3v5 long JARL support.
33475 (v850_adjust_insn_length): New function. Adjust length of call
33476 insns when using e3v5 instructions.
33477 (v850_gen_movdi): New function: Generate instructions to move a
33479 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
33480 (CPP_SPEC): Define __v850e3v5__ as appropriate.
33481 (TARGET_USE_FPU): Enable for e3v5.
33482 (CONST_OK_FOR_W): New macro.
33483 (ADJUST_INSN_LENGTH): Define.
33484 * config/v850/v850.md (UNSPEC_LOOP): Define.
33485 (attr cpu): Add v850e3v5.
33486 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
33487 (movdi): New pattern.
33488 (movdi_internal): New pattern.
33489 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
33490 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
33491 (cstoresf4): Likewise.
33492 (cstoredf4): Likewise.
33493 (insv): New pattern.
33494 (rotlso3_a): New pattern.
33495 (rotlsi3_b): New pattern
33496 (rotlsi3_v850e3v5): New pattern.
33497 (doloop_begin): New pattern.
33498 (fix_loop_counter): New pattern.
33499 (doloop_end): New pattern.
33500 (branch_normal): Add e3v5 long branch support.
33501 (branch_invert): Likewise.
33502 (branch_z_normal): Likewise.
33503 (branch_z_invert): Likewise.
33504 (branch_nz_normal): Likewise.
33505 (branch_nz_invert): Likewise.
33506 (call_internal_short): Add e3v5 register-indirect JARL support.
33507 (call_internal_long): Likewise.
33508 (call_value_internal_short): Likewise.
33509 (call_value_internal_long): Likewise.
33510 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
33511 (mloop): New option.
33512 * config.gcc: Add support for configuring v840e3v5 target.
33513 * doc/invoke.texi: Document new v850 specific command line options.
33515 2013-01-31 Paul Koning <ni1d@arrl.net>
33519 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
33520 children if parent is a class.
33521 (prune_unused_types_prune): Don't add DW_AT_declaration.
33523 2013-01-31 Richard Biener <rguenther@suse.de>
33525 PR tree-optimization/56157
33526 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
33527 match up operand with SLP child.
33529 2013-01-31 Jason Merrill <jason@redhat.com>
33532 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
33533 parameters the first time.
33534 (gen_scheduled_generic_parms_dies): Check completeness here.
33536 2013-01-31 Richard Biener <rguenther@suse.de>
33538 PR middle-end/53073
33539 * common.opt (faggressive-loop-optimizations): New flag,
33540 enabled by default.
33541 * doc/invoke.texi (faggressive-loop-optimizations): Document.
33542 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
33543 infer_loop_bounds_from_undefined by it.
33545 2013-01-31 Richard Biener <rguenther@suse.de>
33547 PR tree-optimization/56150
33548 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
33549 visit virtual operands.
33550 (find_uses_to_rename_bb): Likewise.
33552 2013-01-31 Richard Biener <rguenther@suse.de>
33554 PR tree-optimization/56150
33555 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
33556 mixed store non-store stmts.
33558 2013-01-30 Jakub Jelinek <jakub@redhat.com>
33561 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
33562 LIBASAN_EARLY_SPEC is defined.
33563 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
33564 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
33566 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
33569 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
33570 invalid args instead of ICEing on it.
33571 (ix86_valid_target_attribute_tree): Return error_mark_node if
33572 ix86_valid_target_attribute_inner_p failed.
33573 (ix86_valid_target_attribute_p): Return false only if
33574 ix86_valid_target_attribute_tree returned error_mark_node. Allow
33575 target("default") attribute.
33576 (sorted_attr_string): Change argument from const char * to tree,
33577 merge in all target attribute arguments rather than just one.
33578 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
33579 instead of free. Avoid using strcat.
33580 (ix86_mangle_function_version_assembler_name): Mangle
33581 target("default") as if no target attribute is present. Adjust
33582 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
33583 instead of xmalloc and XDELETEVEC instead of free.
33584 (ix86_function_versions): Don't return true if one of the decls
33585 doesn't have target attribute. If they don't and one of the decls
33586 is DECL_FUNCTION_VERSIONED, report an error. Adjust
33587 sorted_attr_string caller. Use XDELETEVEC instead of free.
33588 (ix86_supports_function_versions): Remove.
33589 (make_name): Fix up formatting.
33590 (make_dispatcher_decl): Remove resolver_name and its initialization.
33591 Avoid leaking memory.
33592 (is_function_default_version): Return true if there is
33593 target("default") attribute rather than no target attribute at all.
33594 (make_resolver_func): Avoid leaking memory.
33595 (ix86_generate_version_dispatcher_body): Likewise.
33596 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
33597 * target.def (supports_function_versions): Remove.
33598 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
33599 * doc/tm.texi: Regenerated.
33601 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
33603 PR rtl-optimization/56144
33604 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
33605 for values with side effects.
33607 2013-01-30 Richard Biener <rguenther@suse.de>
33609 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
33610 (sparseset_pop): Likewise.
33611 * cfganal.c (compute_idf): Likewise. Increase work-stack size
33612 to be able to use quick_push in the worker loop.
33614 2013-01-30 Marek Polacek <polacek@redhat.com>
33616 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
33618 2013-01-30 Richard Biener <rguenther@suse.de>
33621 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
33623 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
33625 PR tree-optimization/56064
33626 * fixed-value.c (fixed_from_double_int): New function.
33627 * fixed-value.h (fixed_from_double_int): New prototype.
33628 (const_fixed_from_double_int): New static inline function.
33629 * fold-const.c (native_interpret_fixed): New static function.
33630 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
33631 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
33632 (native_encode_fixed): New static function.
33633 (native_encode_expr) <FIXED_CST>: Use it.
33634 (native_interpret_int): Move double_int worker code to...
33635 * double-int.c (double_int::from_buffer): ...this new static method.
33636 * double-int.h (double_int::from_buffer): Prototype it.
33638 2013-01-30 Richard Biener <rguenther@suse.de>
33640 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
33641 New pointer-map and obstack.
33642 (init_alias_vars): Allocate pointer-map and obstack.
33643 (delete_points_to_sets): Free them.
33644 (find_what_var_points_to): Cache result.
33645 (find_what_p_points_to): Adjust for changed interface of
33646 find_what_var_points_to.
33647 (compute_points_to_sets): Likewise.
33648 (ipa_pta_execute): Likewise.
33650 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33652 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
33653 * configure: Regenerate.
33654 * config.in: Regenerate.
33655 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
33656 #nobits/#progbits if supported.
33658 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
33661 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
33662 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
33663 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
33665 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33667 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
33668 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
33670 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33672 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
33673 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
33675 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33677 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
33679 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
33680 * config/arm/cortex-a7.md: New bypasses using
33681 arm_mac_accumulator_is_result.
33683 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33685 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
33686 (cortex_a7_neon_mla): Likewise.
33687 (cortex_a7_fpfmad): New reservation.
33688 (cortex_a7_fpmacs): Use ffmas and update required units.
33689 (cortex_a7_fpmuld): Update required units and latency.
33690 (cortex_a7_fpmacd): Likewise.
33691 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
33692 (cortex_a7_neon). Likewise.
33693 (bypass) Update participating units.
33695 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33697 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
33698 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
33700 * config/arm/vfp11.md (vfp_farith): Use ffmas.
33701 (vfp_fmul): Use ffmad.
33702 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
33703 (cortex_r4_fmacd): Use ffmad.
33704 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
33705 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
33706 (cortex_a9_fmacd): Use ffmad.
33707 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
33708 (cortex_a8_vfp_macd): Use ffmad.
33709 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
33710 (cortex_a5_fpmacd): Use ffmad.
33711 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
33712 (cortex_a15_vfp_macd): Use ffmad.
33713 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
33715 2013-01-29 Jason Merrill <jason@redhat.com>
33718 * varasm.c (default_assemble_visibility): Don't warn about
33719 visibility on artificial decls.
33721 2013-01-29 Richard Biener <rguenther@suse.de>
33723 PR tree-optimization/56113
33724 * tree-ssa-structalias.c (equiv_class_lookup): Also return
33726 (label_visit): Free duplicate bitmaps and record the leader instead.
33727 (perform_var_substitution): Adjust.
33729 2013-01-29 Richard Biener <rguenther@suse.de>
33731 PR tree-optimization/55270
33732 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
33733 the CFG, schedule loops for fixup.
33735 2013-01-29 Nick Clifton <nickc@redhat.com>
33737 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
33740 2013-01-28 Leif Ekblad <leif@rdos.net>
33742 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
33743 * config/i386/i386.h (TARGET_RDOS): New macro.
33744 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
33745 * config/i386/i386.c (ix86_option_override_internal): For 64bit
33746 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
33747 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
33748 DEFAULT_LARGE_SECTION_THRESHOLD.
33749 * config/i386/i386.md (R14_REG, R15_REG): New constants.
33750 * config/i386/rdos.h: New file.
33751 * config/i386/rdos64.h: New file.
33753 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
33756 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
33759 2013-01-28 Jakub Jelinek <jakub@redhat.com>
33761 PR rtl-optimization/56117
33762 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
33763 call cselib_lookup_from_insn on the MEM before calling
33764 add_insn_mem_dependence.
33766 2013-01-28 Richard Biener <rguenther@suse.de>
33768 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
33769 to a stmt that didn't have one.
33770 (copy_phis_for_bb): Likewise for PHI arguments.
33771 (copy_debug_stmt): Likewise for debug stmts.
33773 2013-01-28 Richard Biener <rguenther@suse.de>
33775 PR tree-optimization/56034
33776 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
33777 (partition_builtin_p): Adjust.
33778 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
33779 it is the last partition.
33780 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
33781 up the vertex for the definition.
33782 (classify_partition): Classify whether a partition is a
33783 PKIND_REDUCTION, thus has uses outside of the loop.
33784 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
33785 Merge all PKIND_REDUCTION partitions into the last partition.
33786 (tree_loop_distribution): Seed partitions from reductions as well.
33788 2013-01-28 Jakub Jelinek <jakub@redhat.com>
33790 PR tree-optimization/56125
33791 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
33792 pow(x,c) into sqrt(x) * powi(x, n/2) or
33793 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
33794 optimizing for size.
33795 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
33796 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
33799 PR tree-optimization/56094
33800 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
33801 to UNKNOWN_LOCATION while gimplifying expr.
33803 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
33806 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
33807 operand 0 in movabs insn template for -masm=intel asm alternative.
33808 (*movabs<mode>_2): Ditto for operand 1.
33810 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
33813 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
33816 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33818 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
33821 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33823 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
33824 Undef to avoid warning.
33826 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
33828 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
33829 * configure: Regenerate.
33831 2013-01-25 Jakub Jelinek <jakub@redhat.com>
33833 PR tree-optimization/56098
33834 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
33835 for stmts with volatile ops.
33836 (cond_store_replacement): Don't optimize if assign has volatile ops.
33837 (cond_if_else_store_replacement_1): Don't optimize if either
33838 then_assign or else_assign have volatile ops.
33839 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
33842 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
33844 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
33846 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
33848 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
33849 missing ':' in asm example.
33851 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
33853 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
33854 entries into lane and laneq entries.
33855 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
33856 Remove AdvSIMD scalar modes.
33857 (aarch64_sq<r>dmulh_laneq<mode>): New.
33858 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
33860 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
33861 builtin implementations to relfect changes in RTL in aarch64-simd.md.
33862 * config/aarch64/iterators.md (VCOND): New.
33865 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
33868 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
33869 Add NULL LIBNAME argument to existing definitions.
33870 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
33871 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
33872 * config/avr/avr.c (DEF_BUILTIN): Same.
33873 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
33874 (avr_expand_builtin): Expand to a vanilla call if a libgcc
33875 implementation is available (DECL_ASSEMBLER_NAME is set).
33876 (avr_fold_absfx): New static function.
33877 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
33878 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
33879 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
33880 AVR_BUILTIN_ABSLLK.
33881 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
33882 (abshk, absk, abslk, absllk): Provide as static inline functions.
33884 2013-01-25 Marek Polacek <polacek@redhat.com>
33886 PR tree-optimization/56035
33887 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
33889 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
33891 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
33892 (*movtf_internal_rex64): Add (!o,C) alternative
33893 (*movxf_internal_rex64): Ditto.
33894 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
33896 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
33898 * doc/invoke.texi: fix typo.
33899 * doc/objc.texi: fix typo.
33901 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
33903 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
33904 for the first two alternatives.
33906 2013-01-24 Diego Novillo <dnovillo@google.com>
33908 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
33909 (ggc-zone.o): Remove.
33910 * configure.ac: Remove option --with-gc.
33911 * configure: Re-generate.
33912 * doc/install.texi: Remove documentation for --with-gc.
33913 * gengtype.c (write_enum_defn): Remove. Update all users.
33914 (write_Types_process_field): Remove generation of gt_e_* argument.
33915 (output_type_enum): Remove. Update all users.
33916 (write_enum_defn): Remove. Update all users.
33917 (enum alloc_zone): Remove. Update all users.
33918 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
33919 * ggc-common.c (ggc_splay_alloc): Remove first argument.
33920 Update all callers.
33921 (struct ptr_data): Remove field TYPE. Update all users.
33922 (gt_pch_note_object): Remove argument TYPE. Update all users.
33923 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
33925 * ggc-none.c (ggc_alloc_typed_stat): Remove.
33926 (struct alloc_zone): Remove.
33927 (ggc_internal_alloc_zone_stat): Remove.
33928 (ggc_internal_cleared_alloc_zone_stat): Remove.
33929 * ggc-page.c (ggc_alloc_typed_stat): Remove.
33930 (ggc_pch_count_object): Remove last argument. Update all users.
33931 (ggc_pch_alloc_object): Remove last argument. Update all users.
33932 (struct alloc_zone): Remove.
33933 * ggc-zone.c: Remove.
33934 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
33935 (struct alloc_zone): Remove.
33936 (ggc_alloc_typed_stat): Remove.
33937 (ggc_alloc_typed): Remove.
33938 (ggc_splay_alloc): Remove first argument.
33939 (rtl_zone): Remove. Update all users.
33940 (tree_zone): Remove. Update all users.
33941 (tree_id_zone): Remove. Update all users.
33942 (ggc_internal_zone_alloc_stat): Remove. Update all users.
33943 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
33944 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
33945 * tree-ssanames.c: Remove references to zone allocator in comments.
33947 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
33949 * config/avr/avr.c (avr_out_fract): Make register numbers that
33950 might be outside of source operand signed.
33952 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
33954 * config/i386/constraints.md (Yf): New constraint.
33955 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
33956 of f constraint to conditionaly disable x87 register preferences.
33957 (*movdf_internal): Ditto.
33958 (*movsf_internal): Ditto.
33960 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
33962 PR inline-asm/55934
33963 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
33964 that have operands with impossible constraints.
33965 Add a FIXME for a speed-up opportunity.
33966 * lra-constraints.c (process_alt_operands): Verify that a class
33967 selected from constraints on asms is valid for the operand mode.
33968 (curr_insn_transform): Remove incorrect comment.
33970 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
33972 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
33973 TOC operand is a valid symbol ref in the constant pool.
33975 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33977 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
33979 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
33982 * config/avr/stdfix.h: New file.
33983 * t-avr (stdfix-gcc.h): New rule to build it.
33984 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
33986 2013-01-23 Kostya Serebryany <kcc@google.com>
33988 * config/darwin.h: remove dependency on
33989 CoreFoundation (asan on Mac OS).
33991 2013-01-23 Jakub Jelinek <jakub@redhat.com>
33994 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
33995 instead of cmpdi_operand for first comparison operand.
33996 Don't assert that comparison operands aren't both constants.
33998 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
34000 * doc/install.texi (Downloading the Source): Update references to
34001 downloading separate components.
34003 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
34005 * doc/extend.texi (__int128): Improve grammar.
34007 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
34010 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
34011 alternative to (o,r).
34012 (*movdi_internal_rex64): Remove (!o,n) alternative.
34013 (DImode immediate->memory splitter): Remove.
34014 (DImode immediate->memory peephole2): Remove.
34015 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
34016 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
34017 alternative to (!o,*r).
34018 (*movtf_internal_sse): New pattern.
34019 (*movxf_internal_rex64): New pattern.
34020 (*movxf_internal): Disable for TARGET_64BIT.
34021 (*movdf_internal_rex64): Remove (!o,F) alternative.
34023 2013-01-22 Jakub Jelinek <jakub@redhat.com>
34025 PR middle-end/56074
34026 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
34027 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
34028 * tree-vect-loop-manip.c (find_loop_location): Also ignore
34029 stmt locations where LOCATION_LOCUS of the stmt location is
34030 UNKNOWN_LOCATION or BUILTINS_LOCATION.
34033 * config/i386/i386.md (UNSPEC_STOS): New.
34034 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
34035 *strsetqi_1): Add UNSPEC_STOS.
34037 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
34040 * doc/invoke.texi: Remove left over -Wsynth example.
34042 2013-01-21 Jakub Jelinek <jakub@redhat.com>
34044 PR tree-optimization/56051
34045 * fold-const.c (fold_binary_loc): Don't fold
34046 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
34047 a narrowing conversion, or widening conversion from signed
34050 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
34052 PR rtl-optimization/56023
34053 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
34054 dependent on debug instruction.
34056 2013-01-21 Martin Jambor <mjambor@suse.cz>
34058 PR middle-end/56022
34059 * function.c (allocate_struct_function): Call
34060 invoke_set_current_function_hook earlier.
34062 2013-01-21 Jakub Jelinek <jakub@redhat.com>
34064 * reload1.c (init_reload): Only initialize reload_obstack
34065 during the first call.
34067 2013-01-21 Marek Polacek <polacek@redhat.com>
34069 * cfgloop.c (verify_loop_structure): Fix up grammar.
34071 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
34073 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
34074 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
34076 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34079 * config/arm/marvell-pj4.md: Update copyright year.
34080 Fix up use of alu to alu_reg and simple_alu_imm.
34082 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
34084 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
34086 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
34089 * lra-constraints.c (curr_insn_transform): Don't reuse original
34090 insn for secondary memory move when memory mode should be different.
34092 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34094 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
34095 atomic_storedi_1): New patterns.
34097 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
34099 btver2 pipeline descriptions.
34100 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
34102 * config/i386/i386.md (btver2_decode): New type attributes.
34103 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
34105 * config/i386/btver2.md: New file describing btver2 pipelines.
34107 2013-01-19 Andrew Pinski <apinski@cavium.com>
34109 PR tree-optimization/52631
34110 * tree-ssa-sccvn (visit_use): Before looking up the original
34111 statement, try looking up the simplified expression.
34113 2013-01-19 Anthony Green <green@moxielogic.com>
34115 * config/moxie/moxie.c (moxie_expand_prologue): Set
34116 current_function_static_stack_size.
34118 2013-01-18 Jakub Jelinek <jakub@redhat.com>
34120 PR tree-optimization/56029
34121 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
34122 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
34124 2013-01-18 Sharad Singhai <singhai@google.com>
34126 PR tree-optimization/55995
34127 * dumpfile.c (dump_loc): Print location only if available.
34128 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
34130 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
34133 * lra-constraints.c (curr_insn_transform): Reuse original insn for
34134 secondary memory move.
34135 (inherit_reload_reg): Use rclass instead of cl for
34136 check_secondary_memory_needed_p.
34138 2013-01-18 Jakub Jelinek <jakub@redhat.com>
34140 PR middle-end/56015
34141 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
34142 the case where writing real complex part of target modifies op1.
34144 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
34146 * config/aarch64/aarch64-simd.md
34147 (aarch64_vcond_internal<mode>): Handle unordered cases.
34148 * config/aarch64/iterators.md (v_cmp_result): New.
34150 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
34151 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34153 * config/arm/marvell-pj4.md: New file.
34154 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
34155 * config/arm/arm.md (generic_sched): Add marvell_pj4.
34156 (generic_vfp): Likewise.
34157 * config/arm/arm-cores.def: Add marvell-pj4.
34158 * config/arm/arm-tune.md: Regenerate.
34159 * config/arm/arm-tables.opt: Regenerate.
34160 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
34161 * doc/invoke.texi: Document marvell-pj4.
34163 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
34165 * config/aarch64/arm_neon.h: Map scalar types to standard types.
34167 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
34172 * var-tracking.c (negative_power_of_two_p): New.
34173 (global_get_addr_cache, local_get_addr_cache): New.
34174 (get_addr_from_global_cache, get_addr_from_local_cache): New.
34175 (vt_canonicalize_addr): Rewrite using the above. Adjust the
34177 (vt_stack_offset_p): Remove.
34178 (vt_canon_true_dep): Always canonicalize loc's address.
34179 (clobber_overlapping_mems): Make sure we have a MEM.
34180 (local_get_addr_clear_given_value): New.
34181 (val_reset): Clear local cached entries.
34182 (compute_bb_dataflow): Create and release the local cache.
34183 Disable duplicate MEMs clobbering.
34184 (emit_notes_in_bb): Clobber MEMs likewise.
34185 (vt_emit_notes): Create and release the local cache.
34186 (vt_initialize, vt_finalize): Create and release the global
34187 cache, respectively.
34188 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
34190 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
34192 PR libmudflap/53359
34193 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
34194 not found in the symtab.
34196 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
34199 PR rtl-optimization/55547
34200 PR rtl-optimization/53827
34203 * alias.c (offset_overlap_p): New, factored out of...
34204 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
34205 the conservative special case for symbolic constants. Don't
34206 adjust zero sizes on alignment.
34208 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
34210 PR rtl-optimization/52573
34211 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
34212 REG_UNUSED for the same register.
34214 2013-01-17 Richard Biener <rguenther@suse.de>
34215 Marek Polacek <polacek@redhat.com>
34217 PR rtl-optimization/55833
34218 * loop-unswitch.c (unswitch_loops): Move loop verification...
34219 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
34220 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
34221 Set it to true when we're removing a loop from hierarchy tree in
34222 an irreducible region.
34223 (fix_bb_placements): Adjust caller.
34224 (fix_loop_placements): Likewise.
34226 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
34228 * config/avr/builtins.def (DEF_BUILTIN): Factor out
34229 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
34230 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
34231 Remove ID. Adjust comments.
34232 * config/avr/avr-c.c (avr_builtin_name): Remove.
34233 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
34234 * config/avr/avr.c (avr_tolower): New static function.
34235 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
34236 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
34237 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
34240 2013-01-17 Jan Hubicka <jh@suse.cz>
34242 PR tree-optimization/55273
34243 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
34245 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
34248 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
34249 store through atomic_store<mode>_1.
34250 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
34252 2013-01-17 Martin Jambor <mjambor@suse.cz>
34254 PR tree-optimizations/55264
34255 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
34256 for virtual methods.
34257 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
34258 virtual methods before inlining is over.
34259 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
34261 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
34264 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
34266 PR rtl-optimization/56005
34267 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
34268 pending reads for prefetch.
34270 2013-01-16 Ian Bolton <ian.bolton@arm.com>
34272 * config/aarch64/aarch64.md
34273 (*cstoresi_neg_uxtw): New pattern.
34274 (*cmovsi_insn_uxtw): New pattern.
34275 (*<optab>si3_uxtw): New pattern.
34276 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
34277 (*<optab>si3_insn_uxtw): New pattern.
34278 (*bswapsi2_uxtw): New pattern.
34280 2013-01-16 Richard Biener <rguenther@suse.de>
34282 * tree-inline.c (tree_function_versioning): Remove set but
34283 never used variable.
34285 2013-01-16 Richard Biener <rguenther@suse.de>
34287 PR tree-optimization/55964
34288 * tree-flow.h (rename_variables_in_loop): Remove.
34289 (rename_variables_in_bb): Likewise.
34290 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
34291 (copy_loop_before): Adjust and delete update-ssa status.
34292 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
34293 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
34294 (rename_variables_in_loop): Remove.
34295 (slpeel_update_phis_for_duplicate_loop): Likewise.
34296 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
34297 use available cfg machinery instead of duplicating it.
34298 Update PHI nodes and perform poor-mans SSA update here.
34299 (slpeel_tree_peel_loop_to_edge): Adjust.
34301 2013-01-16 Richard Biener <rguenther@suse.de>
34303 PR tree-optimization/54767
34304 PR tree-optimization/53465
34305 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
34306 (vrp_visit_phi_node): For PHI arguments coming via backedges
34307 drop all symbolical range information.
34308 (execute_vrp): Compute backedges.
34310 2013-01-16 Richard Biener <rguenther@suse.de>
34312 * doc/install.texi: Update CLooG and ISL requirements to
34315 2013-01-16 Christian Bruel <christian.bruel@st.com>
34318 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
34319 (broken_move): Handle UNSPECV_SP_SWITCH_B.
34320 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
34322 2013-01-16 DJ Delorie <dj@redhat.com>
34324 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
34325 (UNSPECV_SP_SWITCH_E): New.
34326 (sp_switch_1): Change to an unspec.
34327 (sp_switch_2): Change to an unspec. Don't use post-inc when we
34330 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
34332 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
34333 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
34334 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
34335 (expand_mem_thread_fence): Ditto.
34336 (expand_mem_signal_fence): Ditto.
34337 (expand_atomic_load): Ditto.
34338 (expand_atomic_store): Ditto.
34340 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
34342 PR rtl-optimization/55547
34343 PR rtl-optimization/53827
34346 * alias.c (memrefs_conflict_p): Set sizes to negative after
34349 2013-01-15 Jakub Jelinek <jakub@redhat.com>
34352 * function.c (thread_prologue_and_epilogue_insns): Always
34353 add crtl->drap_reg to set_up_by_prologue.set, even if
34354 stack_realign_drap is false.
34356 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34358 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
34359 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
34360 *call): Fix indention.
34362 2013-01-15 Tom de Vries <tom@codesourcery.com>
34365 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
34368 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
34370 PR rtl-optimization/55153
34371 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
34373 2013-01-15 Martin Jambor <mjambor@suse.cz>
34375 PR tree-optimization/55920
34376 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
34377 accesses as grp_to_be_debug_replaced.
34379 2013-01-15 Jakub Jelinek <jakub@redhat.com>
34381 PR tree-optimization/55920
34382 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
34383 there is non-useless type conversion needed from debug rhs to lhs,
34384 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
34386 2013-01-15 Joseph Myers <joseph@codesourcery.com>
34387 Mikael Pettersson <mikpe@it.uu.se>
34390 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
34392 (ASM_OUTPUT_CASE_LABEL): Remove.
34393 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
34394 * final.c (shorten_branches): Update alignment of labels before
34395 jump tables if CASE_VECTOR_SHORTEN_MODE.
34397 2013-01-15 Richard Biener <rguenther@suse.de>
34400 * system.h: Do not include gmp.h for building host tools.
34402 2013-01-15 Richard Biener <rguenther@suse.de>
34404 PR middle-end/55882
34405 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
34406 account for bitpos when computing alignment.
34408 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
34410 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
34411 (ix86_target_macros_internal): Likewise.
34413 * config/i386/i386.c (m_CORE2I7): Removed.
34414 (m_CORE_HASWELL): New macro.
34415 (m_CORE_ALL): Likewise.
34416 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
34417 (initial_ix86_arch_features): Likewise.
34418 (processor_target_table): Initializations for Core avx2.
34419 (cpu_names): New names "core-avx2".
34420 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
34421 PROCESSOR_CORE_HASWELL.
34422 (ix86_issue_rate): New case.
34423 (ia32_multipass_dfa_lookahead): Likewise.
34424 (ix86_sched_init_global): Likewise.
34426 * config/i386/i386.h (TARGET_HASWELL): New macro.
34427 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
34428 (processor_type): New PROCESSOR_HASWELL.
34430 2013-01-15 Jakub Jelinek <jakub@redhat.com>
34432 PR tree-optimization/55955
34433 * tree-vect-loop.c (vectorizable_reduction): Give up early on
34434 *SHIFT_EXPR and *ROTATE_EXPR codes.
34436 PR tree-optimization/48766
34437 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
34438 -ftrapv disable -fwrapv.
34440 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
34443 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
34444 etc. to 1 and not to __flash.
34445 Use LL suffix for __INT24_MAX__ with -mint8.
34446 Use ULL suffix for __UINT24_MAX__ with -mint8.
34448 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
34450 * config/avr/avr-arch.h
34451 (struct base_arch_s): Use typedef avr_arch_t instead.
34452 (struct arch_info_s): Use typedef avr_arch_info_t instead.
34453 (struct mcu_type_s): Use typedef avr_mcu_t instead.
34454 * config/avr/avr.c: Same.
34455 * config/avr/avr-devices.c: Same.
34456 * config/avr/driver-avr.c: Same.
34457 * config/avr/gen-avr-mmcu-texi.c: Same.
34458 * config/avr/avr-mcus.def: Adjust comment.
34460 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
34462 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
34463 * config/aarch64/iterators.md (VALLDI): New.
34465 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
34466 Andi Kleen <ak@linux.intel.com>
34469 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
34470 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
34473 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
34475 * config/avr/avr-stdint.h: Remove trailing blanks.
34476 * config/avr/avr-log.h: Same.
34477 * config/avr/avr-arch.h: Same.
34478 * config/avr/avr-devices.c: Same.
34479 * config/avr/avr-dimode.md: Same.
34480 * config/avr/predicates.md: Same.
34481 * config/avr/avr-c.c: Same. And fix typo.
34483 * config/avr/avr-protos.h: Same. And:
34484 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
34485 (init_cumulative_args): Rename to avr_init_cumulative_args.
34486 (expand_prologue): Rename to avr_expand_prologue.
34487 (expand_epilogue): Rename to avr_expand_epilogue.
34488 (adjust_insn_length): Rename to avr_adjust_insn_length.
34489 (notice_update_cc): Rename to avr_notice_update_cc.
34490 (final_prescan_insn): Rename to avr_final_prescan_insn.
34491 * config/avr/avr.c: Same.
34492 * config/avr/avr.h: Same.
34493 * config/avr/avr.md: Remove trailing blanks.
34494 (prologue): Use avr_expand_prologue.
34495 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
34497 2013-01-14 Richard Biener <rguenther@suse.de>
34499 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
34500 verify_location, collect_subblocks): New functions.
34501 (verify_gimple_in_cfg): Verify that locations only reference
34502 BLOCKs in the functions BLOCK tree.
34504 2013-01-14 Richard Biener <rguenther@suse.de>
34506 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
34508 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
34510 (insert_out_of_ssa_copy_on_edge): Likewise.
34511 (rewrite_close_phi_out_of_ssa): Likewise.
34512 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
34514 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
34515 propagated constants.
34516 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
34519 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
34521 * config/avr/avr-modes.def: Add GPL copyright notice.
34523 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
34525 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
34526 MEMMODEL_MASK to determine memory model.
34527 (atomic_store<mode>): Ditto from operands[2].
34528 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
34530 2013-01-13 Jakub Jelinek <jakub@redhat.com>
34533 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
34534 (fold_gimple_assign): Don't call unshare_expr here.
34535 (fold_ctor_reference): Call unshare_expr.
34537 2013-01-13 Terry Guo <terry.guo@arm.com>
34539 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
34540 * doc/fragments.texi: Document MULTILIB_REUSE.
34541 * gcc.c (multilib_reuse): New internal spec.
34542 (set_multilib_dir): Also search multilib from multilib_reuse.
34543 * genmultilib (tmpmultilib3): Refactor code.
34544 (tmpmultilib4): Ditto.
34545 (multilib_reuse): New multilib argument.
34547 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
34549 * Makefile.in: Update copyright.
34551 2013-01-12 Tom de Vries <tom@codesourcery.com>
34553 PR middle-end/55890
34554 * calls.c (expand_call): Check if arg_nr is valid.
34556 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
34558 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
34559 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
34560 documentation. Add missing '__' in front of
34561 __builtin_ia32_packssdw256.
34563 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34566 * config/s390/s390.c (s390_preferred_reload_class): Do not return
34567 NO_REGS for larl operands.
34568 (s390_reload_larl_operand): Use s390_load_address instead of
34571 2013-01-11 Richard Biener <rguenther@suse.de>
34573 * tree-cfg.c (verify_node_sharing_1): Split out from ...
34574 (verify_node_sharing): ... here.
34575 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
34577 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
34579 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
34580 Substitute TREECHECKING.
34581 * configure: Regenerate.
34582 * Makefile.in (TREECHECKING): New.
34584 2013-01-11 Richard Guenther <rguenther@suse.de>
34586 PR tree-optimization/44061
34587 * tree-vrp.c (extract_range_basic): Compute zero as
34588 value-range for __builtin_constant_p of function parameters.
34590 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
34592 Update copyright years.
34594 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
34596 PR rtl-optimization/55672
34597 * lra-eliminations.c (mark_not_eliminable): Permit addition with
34598 const to be eliminable.
34600 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
34602 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
34603 * configure: Regenerate.
34605 2013-01-10 Richard Biener <rguenther@suse.de>
34607 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
34609 2013-01-10 Richard Biener <rguenther@suse.de>
34612 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
34613 locations for virtual PHI arguments.
34614 (rewrite_update_phi_arguments): Likewise.
34616 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
34618 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
34621 2013-01-10 Jakub Jelinek <jakub@redhat.com>
34623 PR tree-optimization/55921
34624 * tree-complex.c (expand_complex_asm): New function.
34625 (expand_complex_operations_1): Call it for GIMPLE_ASM.
34627 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34630 * config/s390/s390.c (s390_symref_operand_p)
34631 (s390_loadrelative_operand_p): Merge the two functions.
34632 (s390_check_qrst_address, print_operand_address): Add parameters
34633 to s390_loadrelative_operand_p invokation.
34634 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
34635 (s390_reload_larl_operand, s390_secondary_reload): Use
34636 s390_loadrelative_operand_p instead of s390_symref_operand_p.
34637 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
34639 2013-01-09 Mike Stump <mikestump@comcast.net>
34641 * dse.c (record_store): Remove unnecessary assert.
34643 2013-01-09 Jan Hubicka <jh@suse.cz>
34645 PR tree-optimization/55569
34646 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
34647 * cfgloop.h (scale_loop_profile): Likewise.
34649 2013-01-09 Jan Hubicka <jh@suse.cz>
34652 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
34654 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
34656 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
34658 PR middle-end/55114
34659 * expr.h (maybe_emit_group_store): Declare.
34660 * expr.c (maybe_emit_group_store): New function.
34661 * builtins.c (expand_builtin_int_roundingfn): Call it.
34662 (expand_builtin_int_roundingfn_2): Likewise.
34664 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
34666 PR rtl-optimization/55829
34667 * lra-constraints.c (match_reload): Add code for absent output.
34668 (curr_insn_transform): Add code for reloads of matched inputs
34671 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
34673 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
34674 attribute of movddup insn to DF.
34675 (*vec_interleave_lowv2df): Ditto.
34676 (vec_dupv2df): Ditto.
34678 2013-01-09 Jan Hubicka <jh@suse.cz>
34680 PR tree-optimiation/55875
34681 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
34682 EVERY_ITERATION parameter.
34683 (number_of_iterations_exit): Check if exit is executed every iteration.
34684 (idx_infer_loop_bounds): Similarly here.
34685 (n_of_executions_at_most): Simplify
34686 to only test for cases where statement is dominated by the
34687 particular bound; handle correctly the "postdominance" test.
34688 (scev_probably_wraps_p): Use max loop iterations info
34689 as a global bound first.
34691 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
34692 Nick Clifton <nickc@redhat.com>
34694 * config/v850/v850.md (cbranchsf4): New pattern.
34695 (cstoresf4): New pattern.
34696 (cbranchdf4): New pattern.
34697 (cstoredf4): New pattern.
34698 (movsicc): Disallow floating point comparisons.
34699 (cmpsf_le_insn): Fix order of operators.
34700 (cmpsf_lt_insn): Likewise.
34701 (cmpsf_eq_insn): Likewise.
34702 (cmpdf_le_insn): Likewise.
34703 (cmpdf_lt_insn): Likewise.
34704 (cmpdf_eq_insn): Likewise.
34705 (cmpsf_ge_insn): Use LE comparison.
34706 (cmpdf_ge_insn): Likewise.
34707 (cmpsf_gt_insn): Use LT comparison.
34708 (cmpdf_gt_insn): Likewise.
34709 (cmpsf_ne_insn): Delete pattern.
34710 (cmpdf_ne_insn): Delete pattern.
34711 * config/v850/v850.c (v850_gen_float_compare): Use
34712 gen_cmpdf_eq_insn for NE comparison.
34713 (v850_float_z_comparison_operator)
34714 (v850_float_nz_comparison_operator): Move from here ...
34715 * config/v850/predicates.md: ... to here. Move GT and GE
34716 comparisons into v850_float_z_comparison_operator.
34717 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
34719 (v850_float_nz_comparison_operator): Likewise.
34721 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34723 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
34724 with calls to gen_insvsi/gen_insvdi.
34726 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
34728 * config/i386/i386.c (initial_ix86_tune_features): Set up
34729 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
34731 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
34732 Jakub Jelinek <jakub@redhat.com>
34734 PR tree-optimization/48189
34735 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
34736 If nitercst is 0, don't predict the exit edge.
34738 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34740 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
34741 in asm_fprintf with reg_names.
34742 (aarch64_print_operand_address): Likewise.
34743 (aarch64_return_addr): Likewise.
34744 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
34746 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34748 * config/pa/pa.h (VAL_U6_BITS_P): Define.
34749 (INT_U6_BITS): Likewise.
34750 * config/pa/predicates.md (uint6_operand): New predicate.
34751 (shift5_operand, shift6_operand): Likewise.
34752 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
34754 (lshrdi3): Use shift6_operand.
34755 (shrpsi4, shrpdi4): New insn patterns.
34756 (extzv): Delete expander.
34757 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
34758 predicates in unamed zero extract patterns. Tighten common constraint.
34759 (extv): Delete expander.
34760 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
34761 predicates in unamed sign extract patterns. Tighten common constraint.
34762 (insv): Delete expander.
34763 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
34764 predicates in unamed insert patterns. Tighten common constraint.
34765 Change uint32_operand predicate to uint6_operand predicate in unamed
34766 DImode pattern to insert constant values of type 1...1xxxx.
34768 2013-01-04 Jan Hubicka <jh@suse.cz>
34770 PR tree-optimization/55823
34771 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
34774 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34775 Uros Bizjak <ubizjak@gmail.com>
34777 PR rtl-optimization/55845
34778 * df-problems.c (can_move_insns_across): Stop scanning at
34779 volatile_insn_p source instruction or give up if
34780 across_from .. across_to range contains any volatile_insn_p
34783 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
34785 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
34786 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
34788 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
34789 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
34791 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34794 * asan.c (asan_clear_shadow): New function.
34795 (asan_emit_stack_protection): Use it.
34797 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
34799 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
34800 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
34801 with tab instead of space.
34803 2013-01-08 Nick Clifton <nickc@redhat.com>
34805 * config/rl78/rl78.c (rl78_expand_prologue): Always select
34806 register bank 0 at the start of an interrupt handler.
34807 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
34810 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
34812 * config/aarch64/aarch64-simd.md
34813 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
34814 (aarch64_simd_bsl): Likewise.
34815 (aarch64_vcond_internal<mode>): Likewise.
34816 (vcond<mode><mode>): Likewise.
34817 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
34818 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
34820 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
34822 * config/aarch64/aarch64-builtins.c
34823 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
34825 2013-01-08 Martin Jambor <mjambor@suse.cz>
34828 * tree-sra.c (analyze_access_subtree): Return true also after
34829 potentially creating a debug-only replacement.
34831 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34833 PR middle-end/55890
34834 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
34836 PR tree-optimization/54120
34837 * tree-vrp.c (range_fits_type_p): Don't allow
34838 src_precision < precision from signed vr to unsigned_p
34839 if vr->min or vr->max is negative.
34840 (simplify_float_conversion_using_ranges): Test can_float_p
34841 against CODE_FOR_nothing.
34843 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34844 Richard Biener <rguenther@suse.de>
34846 PR middle-end/55851
34847 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
34848 types instead of just INTEGER_TYPE types.
34850 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
34852 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
34855 2013-01-07 Steve Ellcey <sellcey@mips.com>
34858 * config/mips/mips.opt: Change mad to mmad to match documentation.
34860 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34863 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
34864 .progmemx.data now.
34866 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34869 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
34870 (avr_addrspace_t): Add .section_name field.
34871 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
34873 (avr_addrspace): Same. Initialize .section_name. Remove last
34874 NULL entry. Put __memx into .progmemx.data.
34875 (progmem_section_prefix): Remove.
34876 (avr_asm_init_sections): No need to initialize progmem_section.
34877 (avr_asm_named_section): Use avr_addrspace[].section_name to get
34878 section name prefix.
34879 (avr_asm_select_section): Ditto. And use get_unnamed_section to
34880 retrieve the progmem section.
34881 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
34882 boundary to run over avr_addrspace[].
34883 (avr_register_target_pragmas): Ditto.
34885 2013-01-06 Jakub Jelinek <jakub@redhat.com>
34887 * varasm.c (output_constant_def_contents): For asan_protect_global
34888 protected strings, adjust DECL_ALIGN if needed, before testing for
34890 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
34891 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
34893 (output_object_block): For asan protected decls, emit asan padding
34894 after their contents.
34895 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
34896 (asan_finish_file): Test it here instead.
34898 2013-01-07 Nick Clifton <nickc@redhat.com>
34899 Matthias Klose <doko@debian.org>
34900 Doug Kwan <dougkwan@google.com>
34901 H.J. Lu <hongjiu.lu@intel.com>
34904 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
34906 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
34908 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
34910 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
34912 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
34914 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34917 * doc/install.texi (Cross-Compiler-Specific Options): Document
34920 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
34922 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
34923 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
34924 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
34925 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
34926 vqmovun_high_s64): Fix source operand number and update copyright.
34928 2013-01-07 Richard Biener <rguenther@suse.de>
34930 PR middle-end/55890
34931 * gimple.h (gimple_call_builtin_p): New overload.
34932 * gimple.c (validate_call): New function.
34933 (gimple_call_builtin_p): Likewise.
34934 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34935 Use gimple_call_builtin_p.
34936 (find_func_clobbers): Likewise.
34937 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
34938 (strlen_optimize_stmt): Likewise.
34940 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
34942 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
34943 (vld1q_dup_*): Likewise.
34944 (vld1_*): Likewise.
34945 (vld1q_*): Likewise.
34946 (vld1_lane_*): Likewise.
34947 (vld1q_lane_*): Likewise.
34949 2013-01-07 Richard Biener <rguenther@suse.de>
34951 * lto-streamer.h (LTO_minor_version): Bump to 2.
34953 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
34955 * config/aarch64/aarch64-protos.h
34956 (aarch64_const_double_zero_rtx_p): Rename to...
34957 (aarch64_float_const_zero_rtx_p): ...this.
34958 (aarch64_float_const_representable_p): New.
34959 (aarch64_output_simd_mov_immediate): Likewise.
34960 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
34961 move immediate case.
34962 * config/aarch64/aarch64.c
34963 (aarch64_const_double_zero_rtx_p): Rename to...
34964 (aarch64_float_const_zero_rtx_p): ...this.
34965 (aarch64_print_operand): Allow printing of new constants.
34966 (aarch64_valid_floating_const): New.
34967 (aarch64_legitimate_constant_p): Check for valid floating-point
34969 (aarch64_simd_valid_immediate): Likewise.
34970 (aarch64_vect_float_const_representable_p): New.
34971 (aarch64_float_const_representable_p): Likewise.
34972 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
34973 (aarch64_output_simd_mov_immediate): New.
34974 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
34975 (*movdf_aarch64): Likewise.
34976 * config/aarch64/constraints.md (Ufc): New.
34977 (Y): call aarch64_float_const_zero_rtx.
34978 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
34980 2013-01-07 Richard Biener <rguenther@suse.de>
34982 PR tree-optimization/55888
34983 PR tree-optimization/55862
34984 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
34985 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
34986 not if it is contained therein.
34988 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34990 * config/avr/t-avr: Typo.
34992 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34995 * config/avr/t-avr: Don't automatically rebuild
34996 $(srcdir)/config/avr/t-multilib
34997 $(srcdir)/config/avr/avr-tables.opt
34998 $(srcdir)/doc/avr-mmcu.texi
34999 (avr-mcus): New phony target to build them on request.
35000 (s-avr-mlib, s-avr-mmcu-texi): Remove.
35001 * avr/avr-mcus.def: Adjust comments.
35003 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
35005 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
35007 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
35009 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
35011 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
35013 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
35015 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
35017 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
35018 to generate profiling.
35019 * config/rs6000/aix64.h (LIB_SPEC): Same.
35021 2013-01-04 Andrew Pinski <apinski@cavium.com>
35023 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
35025 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
35027 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
35029 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
35031 (ix86_expand_move): Ditto.
35032 (ix86_zero_extend_to_Pmode): Ditto.
35033 (ix86_expand_call): Ditto.
35034 (ix86_expand_special_args_builtin): Ditto.
35035 (ix86_expand_builtin): Ditto.
35037 2013-01-04 Richard Biener <rguenther@suse.de>
35039 PR tree-optimization/55862
35040 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
35041 translating them through PHI nodes.
35043 2013-01-04 Martin Jambor <mjambor@suse.cz>
35045 PR tree-optimization/55755
35046 * tree-sra.c (sra_modify_assign): Do not check that an access has no
35047 children when trying to avoid producing a VIEW_CONVERT_EXPR.
35049 2013-01-04 Marek Polacek <polacek@redhat.com>
35051 PR middle-end/55859
35052 * opts.c (default_options_optimization): Clarify error message.
35054 2013-01-04 Richard Biener <rguenther@suse.de>
35056 PR middle-end/55863
35057 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
35060 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35063 * config/pa/pa.md (movsi): Revert previous change.
35064 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
35067 2013-01-03 Richard Henderson <rth@redhat.com>
35069 * config/i386/i386.c (ix86_expand_move): Always assign to op1
35070 after eliminating TLS symbols.
35072 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
35075 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
35076 * graphite-poly.c (debug_gmp_value): Likewise.
35078 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
35081 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
35082 selected code model, define __code_mode_small__, __code_model_medium__,
35083 __code_model_large__, __code_model_32__ or __code_model_kernel__.
35084 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
35085 xchg temporary register with %k. Declare temporary register as
35087 [__x86_64__]: For medium and large code models, preserve %rbx register.
35089 2013-01-03 Richard Biener <rguenther@suse.de>
35091 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
35092 (dump_subscript): Adjust.
35093 (finalize_ddr_dependent): Do not dump redundant info.
35094 (analyze_siv_subscript): Adjust.
35095 (subscript_dependence_tester): Likewise.
35096 (compute_affine_dependence): Likewise.
35098 2013-01-03 Richard Biener <rguenther@suse.de>
35101 2013-01-03 Richard Biener <rguenther@suse.de>
35103 PR tree-optimization/55857
35104 * tree-vect-stmts.c (vectorizable_load): Do not setup
35105 re-alignment for invariant loads.
35107 2013-01-02 Richard Biener <rguenther@suse.de>
35109 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
35110 invariant load do not generate a vector load from the scalar location.
35112 2013-01-03 Richard Biener <rguenther@suse.de>
35114 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
35115 for not vectorizing.
35116 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
35117 not build INDIRECT_REFs, call get_name once only.
35118 (vect_create_data_ref_ptr): Likewise. Dump base object kind
35119 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
35121 2013-01-03 Richard Biener <rguenther@suse.de>
35123 PR tree-optimization/55857
35124 * tree-vect-stmts.c (vectorizable_load): Do not setup
35125 re-alignment for invariant loads.
35127 2013-01-03 Richard Biener <rguenther@suse.de>
35130 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
35131 prefer a built-in decl.
35133 2013-01-03 Jakub Jelinek <jakub@redhat.com>
35135 * gcc.c (process_command): Update copyright notice dates.
35136 * gcov.c (print_version): Likewise.
35137 * gcov-dump.c (print_version): Likewise.
35139 PR rtl-optimization/55838
35140 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
35141 iv0.step, iv1.step and step.
35143 2013-01-03 Jakub Jelinek <jakub@redhat.com>
35144 Marc Glisse <marc.glisse@inria.fr>
35146 PR tree-optimization/55832
35147 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
35148 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
35149 integer_{one,zero}_node.
35151 2013-01-03 Jakub Jelinek <jakub@redhat.com>
35154 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
35155 * var-tracking.c (reverse_op): Don't add reverse ops to
35156 VALUEs that have already
35157 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
35159 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
35161 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
35163 2013-01-02 Teresa Johnson <tejohnson@google.com>
35165 * dumpfile.c (dump_loc): Print filename with location.
35166 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
35167 new location_t parameter to emit complete unroll message with
35168 new dump framework.
35169 (canonicalize_loop_induction_variables): Compute loops location
35170 and pass to try_unroll_loop_completely.
35171 * loop-unroll.c (report_unroll_peel): New function.
35172 (peel_loops_completely): Use new dump format with location
35173 for main dumpfile message, and invoke report_unroll_peel on success.
35174 (decide_unrolling_and_peeling): Ditto.
35175 (decide_peel_once_rolling): Remove old dumpfile message subsumed
35176 by report_unroll_peel.
35177 (decide_peel_completely): Ditto.
35178 (decide_unroll_constant_iterations): Ditto.
35179 (decide_unroll_runtime_iterations): Ditto.
35180 (decide_peel_simple): Ditto.
35181 (decide_unroll_stupid): Ditto.
35182 * cfgloop.c (get_loop_location): New function.
35183 * cfgloop.h (get_loop_location): Declare.
35185 2013-01-02 Sriraman Tallam <tmsriram@google.com>
35187 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
35190 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35192 PR middle-end/55198
35193 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
35194 BLKmode objects when EXPAND_MEMORY is specified.
35196 2013-01-02 Sriraman Tallam <tmsriram@google.com>
35198 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
35200 (fold_builtin_cpu): Do not share cpu model decls across statements.
35202 2013-01-02 Jason Merrill <jason@redhat.com>
35205 * tree.c (build_array_type_1): Revert earlier change.
35207 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
35209 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
35211 * config/aarch64/aarch64-tune.md: Re-generate.
35213 2013-01-02 Richard Biener <rguenther@suse.de>
35215 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
35216 invariant load do not generate a vector load from the scalar location.
35218 2013-01-02 Richard Biener <rguenther@suse.de>
35221 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
35222 * configure: Regenerate.
35224 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35226 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
35227 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
35228 (expand_builtin_int_roundingfn_2): Keep the original target around
35229 for the fallback case.
35231 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35233 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
35234 to be clear for sign changes.
35236 2013-01-01 Jan Hubicka <jh@suse.cz>
35238 * ipa-inline-analysis.c: Fix formatting.
35240 2013-01-01 Jakub Jelinek <jakub@redhat.com>
35242 PR tree-optimization/55831
35243 * tree-vect-loop.c (get_initial_def_for_induction): Use
35244 gsi_after_labels instead of gsi_start_bb.
35246 Copyright (C) 2013 Free Software Foundation, Inc.
35248 Copying and distribution of this file, with or without modification,
35249 are permitted in any medium without royalty provided the copyright
35250 notice and this notice are preserved.