]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Eliminate BASIC_BLOCK macro.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2
3 * basic-block.h (BASIC_BLOCK): Eliminate macro.
4
5 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
6 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
7 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
8 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
9 * caller-save.c (insert_one_insn): Likewise.
10 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
11 * cfgexpand.c (add_scope_conflicts): Likewise.
12 * cfghooks.c (verify_flow_info): Likewise.
13 * cfgloop.c (flow_loops_find): Likewise.
14 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
15 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
16 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
17 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
18 * cse.c (cse_main): Likewise.
19 * dce.c (fast_dce): Likewise.
20 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
21 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
22 df_bb_replace, df_dump_region): Likewise.
23 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
24 df_live_bb_local_compute, df_chain_remove_problem)
25 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
26 df_md_bb_local_compute, df_md_local_compute,
27 df_md_transfer_function): Likewise.
28 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
29 df_reorganize_refs_by_insn, df_bb_refs_collect,
30 df_record_entry_block_defs, df_update_entry_block_defs,
31 df_record_exit_block_uses): Likewise.
32 * dominance.c (nearest_common_dominator_for_set): Likewise.
33 * gcse.c (hoist_code): Likewise.
34 * graph.c (draw_cfg_nodes_no_loops): Likewise.
35 * ipa-inline-analysis.c (param_change_prob,
36 estimate_function_body_sizes): Likewise.
37 * ipa-split.c (dominated_by_forbidden): Likewise.
38 * loop-unroll.c (apply_opt_in_copies): Likewise.
39 * lower-subreg.c (decompose_multiword_subregs): Likewise.
40 * lra-lives.c (lra_create_live_ranges): Likewise.
41 * predict.c (propagate_freq): Likewise.
42 * regrename.c (regrename_analyze): Likewise.
43 * regstat.c (regstat_bb_compute_ri,
44 regstat_bb_compute_calls_crossed): Likewise.
45 * resource.c (mark_target_live_regs): Likewise.
46 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
47 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
48 * sched-rgn.c (debug_region, dump_region_dot, too_large,
49 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
50 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
51 * sched-vis.c (debug_bb_n_slim): Likewise.
52 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
53 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
54 * sel-sched.c (remove_insns_that_need_bookkeeping)
55 (current_region_empty_p, sel_region_init,
56 simplify_changed_insns): Likewise.
57 * trans-mem.c (execute_tm_mark, execute_tm_edges,
58 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
59 * tree-cfg.c (make_edges, end_recording_case_labels,
60 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
61 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
62 gimple_purge_all_dead_eh_edges,
63 gimple_purge_all_dead_abnormal_call_edges): Likewise.
64 * tree-cfgcleanup.c (fixup_noreturn_call,
65 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
66 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
67 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
68 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
69 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
70 * tree-ssa-live.c (live_worklist): Likewise.
71 * tree-ssa-loop-manip.c (compute_live_loop_exits,
72 add_exit_phis_var, find_uses_to_rename, copy_phi_node_args): Likewise.
73 * tree-ssa-pre.c (compute_antic): Likewise.
74 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests): Likewise.
75 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
76 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
77 same_succ_flush_bbs, update_worklist, set_cluster,
78 same_phi_alternatives, find_clusters_1, apply_clusters,
79 update_debug_stmts): Likewise.
80 * tree-ssa-threadupdate.c (mark_threaded_blocks,
81 thread_through_all_blocks): Likewise.
82 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
83 * tree-vrp.c (find_assert_locations): Likewise.
84
85 2013-12-09 David Malcolm <dmalcolm@redhat.com>
86
87 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
88
89 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
90 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
91 (expunge_block): Likewise.
92 * cfgrtl.c (create_basic_block_structure): Likewise.
93 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
94 * sel-sched.c (create_block_for_bookkeeping): Likewise.
95 * tree-cfg.c (create_bb): Likewise.
96
97 2013-12-09 David Malcolm <dmalcolm@redhat.com>
98
99 * basic-block.h (profile_status_for_function): Rename to...
100 (profile_status_for_fn): ...this.
101
102 * cfg.c (check_bb_profile): Update for renaming.
103 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
104 * lto-streamer-in.c (input_cfg): Likewise.
105 * lto-streamer-out.c (output_cfg): Likewise.
106 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
107 maybe_hot_bb_p, probably_never_executed)
108 (handle_missing_profiles): Likewise.
109 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
110 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
111
112 2013-12-09 David Malcolm <dmalcolm@redhat.com>
113
114 * basic-block.h (label_to_block_map_for_function): Rename to...
115 (label_to_block_map_for_fn): ...this.
116
117 * lto-streamer-in.c (input_cfg): Update for renaming.
118 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
119
120 2013-12-09 David Malcolm <dmalcolm@redhat.com>
121
122 * basic-block.h (last_basic_block_for_function): Rename to...
123 (last_basic_block_for_fn): ...this.
124
125 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
126 last_basic_block_for_function to last_basic_block_for_fn.
127 * lto-streamer-in.c (input_cfg): Likewise.
128 * lto-streamer-out.c (output_cfg): Likewise.
129 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
130 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
131 Likewise.
132
133 2013-12-09 David Malcolm <dmalcolm@redhat.com>
134
135 * basic-block.h (basic_block_info_for_function): Rename to...
136 (basic_block_info_for_fn): ...this.
137 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
138 (BASIC_BLOCK_FOR_FN): ...this.
139 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
140 (SET_BASIC_BLOCK_FOR_FN): ...this.
141
142 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
143 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
144 * ipa-utils.c (ipa_merge_profiles): Likewise.
145 * lto-streamer-in.c (make_new_block): Update for renaming of
146 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
147 (input_cfg): Update for renamings.
148 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
149 (dump_function_to_file): Update for renaming of
150 basic_block_info_for_function to basic_block_info_for_fn.
151
152 2013-12-09 Richard Biener <rguenther@suse.de>
153
154 PR middle-end/38474
155 * tree-ssa-structalias.c (set_union_with_increment): Remove
156 unreachable code.
157 (do_complex_constraint): Call set_union_with_increment with
158 the solution delta, not the full solution.
159 (make_transitive_closure_constraints): Merge the two
160 constraints.
161
162 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
163
164 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
165 more address validation checks.
166
167 2013-12-09 Marek Polacek <polacek@redhat.com>
168
169 PR sanitizer/59415
170 * vtable-verify.c (verify_bb_vtables): Check the return value
171 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
172
173 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
174
175 * config/arm/arm.md (generic_sched): Add cortexa12.
176 (generic_vfp): Likewise.
177 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
178 (arm_cortex_a12_tune): New tuning struct.
179 * config/arm/arm-cores.def: Add cortex-a12.
180 * config/arm/arm-tables.opt: Regenerate.
181 * config/arm/arm-tune.md: Likewise.
182 * config/arm/bpabi.h: Add cortex-a12.
183 * doc/invoke.texi: Document -mcpu=cortex-a12.
184
185 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
186
187 * doc/install.texi (Prerequisites): Explicitly mention C library
188 and its headers for multilib builds.
189
190 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
191
192 PR target/52898
193 PR target/51697
194 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
195 OPT_mcbranchdi entry.
196 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
197 emit a warning.
198 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
199 and TARGET_CMPEQDI_T variables.
200 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
201
202 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
203
204 * config/linux.h: Fix typo in a comment.
205
206 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
207
208 * config.gcc (*linux*): Split libc selection from Android support.
209 Add libc selection to all *linux* targets. Add Android support to
210 architectures that support it.
211 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
212 (mips*-*-linux*): Add Android support.
213
214 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
215 Maxim Kuvyrkov <maxim@kugelworks.com>
216
217 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
218 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
219 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
220 to linux.h.
221 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
222 to linux.h.
223 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
224 Define appropriately for Linux and uClinux targets.
225
226 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
227
228 * config/linux.c (linux_has_ifunc_p): Use correct test.
229
230 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
231
232 * config/linux.c (linux_android_has_ifunc_p): Rename to
233 linux_has_ifunc_p.
234 (linux_android_libc_has_function): Rename to linux_libc_has_function.
235 * config/linux-protos.h (linux_android_has_ifunc_p,)
236 (linux_android_libc_has_function): Update declarations.
237 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
238 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
239
240 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
241
242 * linux-android.c: Rename to linux.c.
243 * t-linux-android: Rename to t-linux. Update references
244 to linux-android.c
245 * config.gcc: Update references to t-linux-android and linux-android.o.
246
247 2013-12-07 Alan Modra <amodra@gmail.com>
248
249 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
250 alternative.
251
252 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
253
254 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
255
256 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
257
258 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
259 constraint.
260
261 2013-12-06 Caroline Tice <cmtice@google.com>
262
263 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
264 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
265 vtable pointer with the results of the verification call, rather than
266 only the uses in the next statement.
267
268 2013-12-06 Andrew Pinski <apinski@cavium.com>
269
270 PR target/59092
271 * config/aarch64/aarch64.md (trap): New pattern.
272
273 2013-12-06 Jakub Jelinek <jakub@redhat.com>
274
275 PR tree-optimization/59388
276 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
277 gimplify tem after stmt rather than before it.
278
279 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
280 (get_references_in_stmt): Don't record operand addresses, but
281 operands themselves.
282 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
283 Adjust for the pos -> ref change.
284
285 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
286
287 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
288
289 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
290 (processor_alias_table): Likewise.
291 (ix86_option_override_internal): Likewise.
292 * config/i386/i386.h (target_cpu_default): Replace
293 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
294
295 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
296
297 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
298
299 PR target/59405
300 * config/i386/i386.c (type_natural_mode): Properly handle
301 size 8 for !TARGET_64BIT.
302
303 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
304
305 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
306 vec::release.
307
308 2013-12-06 Ian Bolton <ian.bolton@arm.com>
309 Mark Mitchell <mark@codesourcery.com>
310
311 PR target/59091
312 * config/arm/arm.md (trap): New pattern.
313 * config/arm/types.md: Added a type for trap.
314
315 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
316
317 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
318
319 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
320
321 PR target/59316
322 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
323 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
324 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
325 (TARGET_BUILTIN_DECL): Define.
326 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
327 (sparc32_initialize_trampoline): Adjust call to gen_flush.
328 (enum sparc_builtins): New enumeral type.
329 (sparc_builtins): New static array.
330 (sparc_builtins_icode): Likewise.
331 (def_builtin): Accept a separate icode and save the result.
332 (def_builtin_const): Likewise.
333 (sparc_fpu_init_builtins): New function.
334 (sparc_vis_init_builtins): Pass the builtin code.
335 (sparc_init_builtins): Call it if TARGET_FPU.
336 (sparc_builtin_decl): New function.
337 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
338 (sparc_handle_vis_mul8x16): Use the builtin code.
339 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
340 and SPARC_BUILTIN_PDISTN.
341 (compound_expr): New helper function.
342 (sparc_atomic_assign_expand_fenv): New function.
343 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
344 and UNSPECV_STFSR.
345 (flush, flushdi): Merge into single pattern.
346 (ldfsr): New instruction.
347 (stfsr): Likewise.
348
349 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
350
351 * asan.c: Remove struct tags when referring to class varpool_node.
352 * cgraph.h: Likewise.
353 * cgraphbuild.c: Likewise.
354 * cgraphunit.c: Likewise.
355 * dbxout.c: Likewise.
356 * dwarf2out.c: Likewise.
357 * gimple-fold.c: Likewise.
358 * ipa-devirt.c: Likewise.
359 * ipa-ref-inline.h: Likewise.
360 * ipa-ref.h: Likewise.
361 * ipa-reference.c: Likewise.
362 * ipa-utils.c: Likewise.
363 * ipa.c: Likewise.
364 * lto-cgraph.c: Likewise.
365 * lto-streamer-out.c: Likewise.
366 * lto-streamer.h: Likewise.
367 * passes.c: Likewise.
368 * toplev.c: Likewise.
369 * tree-eh.c: Likewise.
370 * tree-emutls.c: Likewise.
371 * tree-pass.h: Likewise.
372 * tree-ssa-structalias.c: Likewise.
373 * tree-vectorizer.c: Likewise.
374 * tree.c: Likewise.
375 * varasm.c: Likewise.
376 * varpool.c: Likewise.
377
378 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
379
380 * cgraphunit.c: Remove struct tags when referring to class
381 ipa_opt_pass_d or class opt_pass.
382 * function.h: Likewise.
383 * lto-cgraph.c: Likewise.
384 * pass_manager.h: Likewise.
385 * passes.c: Likewise.
386 * tree-pass.h: Likewise.
387
388 2013-12-06 Richard Biener <rguenther@suse.de>
389
390 PR tree-optimization/59058
391 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
392 (LOOP_VINFO_NITERSM1): New macro.
393 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
394 the vector loop entry test in terms of scalar latch executions.
395 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
396 * tree-vect-loop.c (vect_get_loop_niters): Also return the
397 number of latch executions.
398 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
399 (vect_analyze_loop_form): Likewise.
400 (vect_generate_tmps_on_preheader): Compute the number of
401 vectorized iterations differently.
402
403 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
404
405 * config/score/score.c (score_force_temporary): Delete function.
406 (score_split_symbol): Ditto.
407 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
408 parentheses to silence ambiguity warning and reindent.
409
410 2013-12-05 Marek Polacek <polacek@redhat.com>
411
412 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
413
414 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
415
416 * config.gcc: Support --with-cpu=ia.
417
418 * config/i386/i386.c (cpu_names): Add "ia".
419 (processor_alias_table): Likewise.
420 (ix86_option_override_internal): Disallow -march=ia.
421 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
422
423 * doc/invoke.texi: Document -mtune=ia.
424
425 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
426
427 PR rtl-optimization/59317
428 * lra-constraints.c (in_class_p): Don't ignore insn with constant
429 as a source.
430
431 2013-12-05 Martin Jambor <mjambor@suse.cz>
432
433 PR ipa/58253
434 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
435 non-BLKmode in their naturally aligned type.
436
437 2013-12-05 Marek Polacek <polacek@redhat.com>
438
439 PR sanitizer/59333
440 PR sanitizer/59397
441 * ubsan.c: Include rtl.h and expr.h.
442 (ubsan_encode_value): Add new parameter. If expanding, assign
443 a stack slot for DECL_RTL of the temporary and call expand_assignment.
444 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
445 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
446 * ubsan.h (ubsan_encode_value): Adjust declaration.
447 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
448 ubsan_build_overflow_builtin above expand_normal call. Surround
449 this call with push_temp_slots and pop_temp_slots.
450 (ubsan_expand_si_overflow_neg_check): Likewise.
451 (ubsan_expand_si_overflow_mul_check): Likewise.
452
453 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
454
455 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
456 the get_alternative_base call with flag_expensive_optimizations.
457 (alloc_cand_and_find_basis): Likewise.
458
459 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
460
461 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
462 vec_select for overlapping register lanes.
463
464 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
465
466 * config/i386/i386.c (ix86_expand_builtin): Generate
467 reg for readflags built-in when optimizing.
468 * config/i386/i386.md (*pushfl<mode>): Rename to ...
469 (pushfl<mode>2): This. Fix iterator.
470 (*popfl<mode>): Rename to ...
471 (*popfl<mode>1): This. Fix iterator.
472
473 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
474
475 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
476 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
477 (ix86_init_mmx_sse_builtins): Define
478 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
479 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
480 (ix86_expand_builtin): Expand them.
481 * config/i386/ia32intrin.h (__readeflags): New.
482 (__writeeflags): Ditto.
483 * gcc/config/i386/i386.md (*pushfl<mode>): Ditto.
484 (*popfl<mode>1): Ditto.
485
486 2013-12-05 Richard Biener <rguenther@suse.de>
487
488 PR tree-optimization/59374
489 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
490 Commonize known and unknown dependence case fixing the allowed
491 read-write dependence case and dropping code that should not matter.
492
493 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
494
495 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
496 generation of predicated version.
497 (epilogue_deallocate_stack): Ditto.
498 (prologue_allocate_stack_pr): Add explicit predicated version.
499 (epilogue_deallocate_stack_pr): Ditto.
500 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
501
502 2013-12-05 Alan Modra <amodra@gmail.com>
503
504 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
505 build != host.
506 <recursive call for build != host>: Clear GMPINC. Don't bother
507 saving CFLAGS.
508
509 2013-12-04 Jakub Jelinek <jakub@redhat.com>
510 Marek Polacek <polacek@redhat.com>
511
512 * opts.c (common_handle_option): Handle
513 -fsanitize=signed-integer-overflow.
514 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
515 negv<mode>3, negv<mode>3_1): Define expands.
516 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
517 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
518 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
519 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
520 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
521 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
522 PROB_ALWAYS): Define.
523 (ubsan_build_overflow_builtin): Declare.
524 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
525 internal functions.
526 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
527 (ubsan_build_overflow_builtin): New function.
528 (instrument_si_overflow): Likewise.
529 (ubsan_pass): Add signed integer overflow checking.
530 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
531 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
532 * internal-fn.c: Include ubsan.h and target.h.
533 (ubsan_expand_si_overflow_addsub_check): New function.
534 (ubsan_expand_si_overflow_neg_check): Likewise.
535 (ubsan_expand_si_overflow_mul_check): Likewise.
536 (expand_UBSAN_CHECK_ADD): Likewise.
537 (expand_UBSAN_CHECK_SUB): Likewise.
538 (expand_UBSAN_CHECK_MUL): Likewise.
539 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
540 (-A) + B -> B - A when doing the signed integer overflow checking.
541 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
542 Define.
543 * tree-vrp.c (extract_range_basic): Handle internal calls.
544 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
545 optabs.
546 * asan.c: Include predict.h.
547 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
548 * predict.c: Move the PROB_* macros...
549 * predict.h (enum br_predictor): ...here.
550 (PROB_LIKELY, PROB_UNLIKELY): Define.
551 * trans-mem.c: Include predict.h.
552 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
553 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
554
555 2013-12-04 Jeff Law <law@redhat.com>
556
557 * common.opt: Split up -fisolate-erroneous-paths into
558 -fisolate-erroneous-paths-dereference and
559 -fisolate-erroneous-paths-attribute.
560 * invoke.texi: Corresponding changes.
561 * gimple.c (infer_nonnull_range): Add and use new arguments to control
562 what kind of statements can be used to infer a non-null range.
563 * gimple.h (infer_nonnull_range): Update prototype.
564 * tree-vrp.c (infer_value_range): Corresponding changes.
565 * opts.c (default_options_table): Update due to option split.
566 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
567 (find_implicit_erroneous_behaviour): Pass additional arguments
568 to infer_nonnull_range.
569 (find_explicit_erroneous_behaviour): Similarly.
570 (gate_isolate_erroneous_paths): Check both of the new options.
571
572 2013-12-04 Jeff Law <law@redhat.com>
573
574 * expr.c (expand_assignment): Update comments.
575
576 2013-12-04 Tobias Burnus <burnus@net-b.de>
577
578 PR debug/37132
579 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
580 * tree.def (NAMELIST_DECL): Add.
581 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
582 * tree.c (initialize_tree_contains_struct): Add asserts for it.
583 * dwarf2out.c (gen_namelist_decl): New function.
584 (gen_decl_die, dwarf2out_decl): Call it.
585 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
586 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
587 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
588 call.
589 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
590
591 2013-12-03 Xinliang David Li <davidxl@google.com>
592
593 * tree-ssa-structalias.c (constraint_set_union): Change return type
594 from void to bool.
595 (merge_node_constraints): Ditto.
596 (unify_nodes): Update changed set when constraints set changes.
597
598 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
599
600 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
601 -fsanitize=address.
602 * configure: Regenerated.
603
604 * gdbasan.in: New file.
605
606 2013-12-04 Jakub Jelinek <jakub@redhat.com>
607
608 PR rtl-optimization/58726
609 * combine.c (force_to_mode): Fix comment typo. Don't destructively
610 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
611
612 2013-12-04 Jakub Jelinek <jakub@redhat.com>
613 Uros Bizjak <ubizjak@gmail.com>
614
615 PR target/59163
616 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
617 !TARGET_AVX there is misaligned MEM operand with vector mode
618 and get_attr_ssememalign is 0, return false.
619 (ix86_expand_special_args_builtin): Add get_pointer_alignment
620 computed alignment and for non-temporal loads/stores also
621 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
622 * config/i386/sse.md
623 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
624 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
625 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
626 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
627 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
628 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
629 *vec_interleave_highv2df, *vec_interleave_lowv2df,
630 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
631 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
632 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
633 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
634 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
635 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
636 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
637 * config/i386/i386.md (ssememalign): New define_attr.
638
639 2013-12-04 Jakub Jelinek <jakub@redhat.com>
640
641 PR tree-optimization/59355
642 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
643 * opts.c (common_handle_option): Fix comment spelling.
644
645 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
646
647 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
648 (name_expansions): New static variable.
649 (alt_base_map): Ditto.
650 (get_alternative_base): New function.
651 (find_basis_for_candidate): For CAND_REF, optionally call
652 find_basis_for_base_expr with the returned value from
653 get_alternative_base.
654 (record_potential_basis): Add new parameter 'base' of type 'tree';
655 add an assertion of non-NULL base; use base to set node->base_expr.
656 (alloc_cand_and_find_basis): Update; call record_potential_basis
657 for CAND_REF with the returned value from get_alternative_base.
658 (replace_refs): Dump details on the replacing.
659 (execute_strength_reduction): Call pointer_map_create for
660 alt_base_map; call free_affine_expand_cache with &name_expansions.
661
662 2013-12-03 Wei Mi <wmi@google.com>
663
664 PR rtl-optimization/59020
665 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
666 (sched_analyze_insn): Call try_group_insn.
667 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
668 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
669 (group_insns_for_macro_fusion): Removed.
670 (sched_init): Remove calling group_insns_for_macro_fusion.
671
672 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
673
674 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
675 typo in macro name.
676 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
677
678 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
679
680 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
681 LR_REGNUM.
682 (aarch64_can_eliminate): Don't check elimination source when
683 frame_pointer_required is false.
684
685 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
686
687 * config/avr/avr.c (avr_option_override): Warn if asked to generate
688 position independent code.
689 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
690
691 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
692
693 PR target/59363
694 * config/i386/i386.c (emit_memset): Adjust destination address
695 after gen_strset.
696 (expand_setmem_epilogue): Likewise.
697
698 2013-12-03 Marek Polacek <polacek@redhat.com>
699
700 PR middle-end/56344
701 * calls.c (expand_call): Disallow passing huge arguments by value.
702
703 2013-12-03 Jakub Jelinek <jakub@redhat.com>
704
705 PR tree-optimization/59362
706 * tree-object-size.c (object_sizes): Change into array of
707 vec<unsigned HOST_WIDE_INT>.
708 (compute_builtin_object_size): Check computed bitmap for
709 non-NULL instead of object_sizes. Call safe_grow on object_sizes
710 vector if new SSA_NAMEs appeared.
711 (init_object_sizes): Check computed bitmap for non-NULL.
712 Call safe_grow on object_sizes elements instead of initializing
713 it with XNEWVEC.
714 (fini_object_sizes): Call release on object_sizes elements, don't
715 set it to NULL.
716
717 PR middle-end/59011
718 * gimplify.c (nonlocal_vla_vars): New variable.
719 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
720 nonlocal_vla_vars chain.
721 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
722 if outer_bind has DECL_INITIAL (current_function_decl) block.
723
724 PR target/58864
725 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
726 New functions.
727 * expr.h (struct saved_pending_stack_adjust): New type.
728 (save_pending_stack_adjust, restore_pending_stack_adjust): New
729 prototypes.
730 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
731 and get_last_insn before do_pending_stack_adjust, call
732 restore_pending_stack_adjust after delete_insns_since.
733 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
734 before calling emit_conditional_move.
735 * expmed.c (expand_sdiv_pow2): Likewise.
736 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
737
738 2013-12-02 Jeff Law <law@redhat.com>
739
740 PR tree-optimization/59322
741 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
742 Remove code which copied jump threading paths.
743
744 2013-12-02 Sriraman Tallam <tmsriram@google.com>
745
746 PR target/58944
747 * config/i386/i386.opt (ix86_arch_string): Mark this variable
748 for saving in cl_target_option.
749 (ix86_tune_string): Ditto.
750 (ix86_cmodel): Ditto.
751 (ix86_abi): Ditto.
752 (ix86_asm_dialect): Ditto.
753 (ix86_branch_cost): Ditto.
754 (ix86_dump_tunes): Ditto.
755 (ix86_force_align_arg_pointer): Ditto.
756 (ix86_force_drap): Ditto.
757 (ix86_incoming_stack_boundary_arg): Ditto.
758 (ix86_pmode): Ditto.
759 (ix86_preferred_stack_boundary_arg): Ditto.
760 (ix86_recip_name): Ditto.
761 (ix86_regparm): Ditto.
762 (ix86_section_threshold): Ditto.
763 (ix86_sse2avx): Ditto.
764 (ix86_stack_protector_guard): Ditto.
765 (ix86_stringop_alg): Ditto.
766 (ix86_tls_dialect): Ditto.
767 (ix86_tune_ctrl_string): Ditto.
768 (ix86_tune_memcpy_strategy): Ditto.
769 (ix86_tune_memset_strategy): Ditto.
770 (ix86_tune_no_default): Ditto.
771 (ix86_veclibabi_type): Ditto.
772 * config/i386/i386.c (function_specific_save): Save the above
773 variables in gcc_options to cl_target_option.
774 (function_specific_restore): Do the reverse done in
775 function_specific_save.
776 (ix86_valid_target_attribute_tree): Change ix86_arch_string
777 and ix86_tune_string to use the opts structure.
778 (ix86_option_override_internal):Change
779 ix86_incoming_stack_boundary_arg to
780 opts->x_ix86_incoming_stack_boundary_arg
781
782 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
783
784 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
785 in #ifndef IN_LIBGCC2 / #endif.
786
787 2013-12-02 Jakub Jelinek <jakub@redhat.com>
788
789 PR tree-optimization/59358
790 * tree-vrp.c (union_ranges): To check for the partially overlapping
791 ranges or adjacent ranges, also compare *vr0max with vr1max.
792
793 2013-12-02 Sterling Augustine  <saugustine@google.com>
794
795 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
796 when there isn't a skeleton die.
797
798 2013-12-02 Marek Polacek <polacek@redhat.com>
799
800 PR sanitizer/59353
801 * doc/invoke.texi: Document -fsanitize=return.
802
803 2013-12-02 Tobias Burnus <burnus@net-b.de>
804 Manuel López-Ibáñez <manu@gcc.gnu.org>
805
806 PR middle-end/59257
807 * doc/invoke.texi: Add missing @opindex.
808 (-fsanitize=): Use @gcctabopt instead of @itemize.
809
810 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
811
812 Fix C++0x memory model for unaligned fields in packed, aligned(4)
813 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
814 targets like arm-none-eabi.
815 * expr.c (expand_assignment): Handle normal fields like bit regions.
816
817 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
818
819 PR target/58115
820 * function.c (invoke_set_current_function_hook): Call
821 targetm.set_current_function after setting this_fn_optabs.
822
823 2013-12-02 Richard Biener <rguenther@suse.de>
824
825 PR tree-optimization/59139
826 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
827 code in get_val_for.
828 (get_val_for): Use gcc_checking_asserts.
829
830 2013-12-02 Richard Biener <rguenther@suse.de>
831
832 PR middle-end/59199
833 * tree-ssa-operands.c (opf_implicit): Remove.
834 (opf_address_taken): New flag.
835 (get_expr_operands): Remove early out, pass down opf_address_taken for
836 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
837 (get_indirect_ref_operands): Rename to ...
838 (get_mem_ref_operands): ... this.
839 (get_asm_expr_operands): Rename to ...
840 (get_asm_stmt_operands): ... this.
841
842 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
843
844 * ipa-inline.c (check_callers): Add missed pointer de-reference.
845
846 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
847
848 PR tree-optimization/59356
849 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
850 offset computation using the precision of the index type.
851
852 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
853
854 PR target/58785
855 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
856 when rclass is GENERAL_REGS.
857
858 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
859
860 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
861 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
862
863 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
864
865 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
866 identifier node.
867
868 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
869
870 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
871
872 2013-11-30 Paulo Matos <pmatos@broadcom.com>
873 Eric Botcazou <ebotcazou@adacore.com>
874
875 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
876 as applied to nonzero_sign_valid when last_set_mode has less precision
877 than mode.
878
879 2013-11-30 Tobias Burnus <burnus@net-b.de>
880
881 PR sanitizer/59275
882 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
883 environment variable and link to a list with flags.
884 (-fsanitize=thread): Ditto and update link.
885
886 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
887
888 PR rtl-optimization/59340
889 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
890
891 Revert
892 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
893
894 * lra.c (lra): Set lra_in_progress before check_rtl call.
895 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
896 adding clobber regs when LRA is running.
897
898 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
899
900 PR target/59289
901 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
902
903 2013-11-29 Richard Biener <rguenther@suse.de>
904
905 PR middle-end/59208
906 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
907 free_stmt_operands, update_stmt_operands): Add struct function
908 argument.
909 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
910 function argument from fini_ssa_operands, verify_ssa_operands,
911 free_stmt_operands and update_stmt_operands everywhere.
912 * tree-ssanames.h (release_ssa_name_fn): New.
913 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
914 * tree-ssanames.c (release_ssa_name): Rename to ...
915 (release_ssa_name_fn): ... this and add struct function argument.
916 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
917 (update_stmt_fn): New function.
918 * tree-cfg.c (move_block_to_fn): Adjust.
919 * tree-if-conv.c (free_bb_predicate): Likewise.
920 * tree-ssa.c (verify_ssa): Likewise.
921 (delete_tree_ssa): Likewise.
922 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
923 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
924 update_stmt_fn instead of update_stmt.
925
926 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
927
928 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
929 for LRA.
930
931 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
932
933 * config/arm/arm.md (store_minmaxsi): Use only when
934 optimize_function_for_size_p.
935
936 2013-11-29 Jakub Jelinek <jakub@redhat.com>
937 Yury Gribov <y.gribov@samsung.com>
938
939 PR sanitizer/59063
940 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
941 * gcc.c: Using libsanitizer spec instead of explicit libs.
942
943 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
944
945 Reverted:
946 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
947 * cgraph.h (varpool_node): Add need_bounds_init field.
948 * lto-cgraph.c (lto_output_varpool_node): Output
949 need_bounds_init value.
950 (input_varpool_node): Read need_bounds_init value.
951 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
952
953 Reverted:
954 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
955 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
956 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
957 (gen_type_die_with_usage): Skip pointer bounds.
958 (dwarf2out_global_decl): Likewise.
959
960 Reverted:
961 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
962 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
963 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
964 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
965 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
966 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
967 (gimple_call_with_bounds_p): New.
968 (gimple_call_set_with_bounds): New.
969 (gimple_call_num_nobnd_args): Remove.
970 (gimple_call_nobnd_arg): Remove.
971 * tree.h (CALL_WITH_BOUNDS_P): New.
972 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
973
974 Reverted:
975 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
976 * common.opt (fcheck-pointer-bounds): Move to ...
977 * c-family/c.opt: ... here.
978 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
979 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
980 * langhooks.h (lang_hooks): Remove chkp_supported field.
981 * toplev.c (process_options): Remove chkp_supported check.
982
983 Reverted:
984 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
985 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
986 * tree.h (POINTER_BOUNDS_P): New.
987 (BOUNDED_TYPE_P): New.
988 (BOUNDED_P): New.
989 (pointer_bounds_type_node): New.
990 * tree.c (build_common_tree_nodes): Initialize
991 pointer_bounds_type_node.
992 * gimple.h (gimple_call_get_nobnd_arg_index): New.
993 (gimple_call_num_nobnd_args): New.
994 (gimple_call_nobnd_arg): New.
995 (gimple_return_retbnd): New.
996 (gimple_return_set_retbnd): New
997 * gimple.c (gimple_build_return): Increase number of ops
998 for return statement.
999 (gimple_call_get_nobnd_arg_index): New.
1000 * gimple-pretty-print.c (dump_gimple_return): Print second op.
1001
1002 Reverted:
1003 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
1004 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
1005 with "chkp ctor" and "bnd_legacy" attributes.
1006 * gimplify.c (gimplify_init_constructor): Avoid infinite
1007 loop during gimplification of bounds initializer.
1008
1009 Reverted:
1010 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
1011 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
1012 (handle_bnd_legacy): New.
1013 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
1014 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
1015 attributes.
1016
1017 Reverted:
1018 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
1019 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
1020 (BT_FN_PTR_CONST_PTR): New.
1021 (BT_FN_CONST_PTR_CONST_PTR): New.
1022 (BT_FN_PTR_CONST_PTR_SIZE): New.
1023 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
1024 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
1025 (BT_FN_VOID_CONST_PTR_SIZE): New.
1026 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
1027 * chkp-builtins.def: New.
1028 * builtins.def: include chkp-builtins.def.
1029 (DEF_CHKP_BUILTIN): New.
1030 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
1031 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
1032 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
1033 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
1034 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
1035 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
1036 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
1037 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
1038 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
1039 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
1040 * common.opt (fcheck-pointer-bounds): New.
1041 * toplev.c (process_options): Check Pointer Bounds Checker is
1042 supported.
1043 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
1044
1045 Reverted:
1046 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
1047 * target.def (builtin_chkp_function): New.
1048 (chkp_bound_type): New.
1049 (chkp_bound_mode): New.
1050 (fn_abi_va_list_bounds_size): New.
1051 (load_bounds_for_arg): New.
1052 (store_bounds_for_arg): New.
1053 * targhooks.h (default_load_bounds_for_arg): New.
1054 (default_store_bounds_for_arg): New.
1055 (default_fn_abi_va_list_bounds_size): New.
1056 (default_chkp_bound_type): New.
1057 (default_chkp_bound_mode): New.
1058 (default_builtin_chkp_function): New.
1059 * targhooks.c (default_load_bounds_for_arg): New.
1060 (default_store_bounds_for_arg): New.
1061 (default_fn_abi_va_list_bounds_size): New.
1062 (default_chkp_bound_type): New.
1063 (default_chkp_bound_mode); New.
1064 (default_builtin_chkp_function): New.
1065 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
1066 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
1067 (TARGET_STORE_BOUNDS_FOR_ARG): New.
1068 (TARGET_BUILTIN_CHKP_FUNCTION): New.
1069 (TARGET_CHKP_BOUND_TYPE): New.
1070 (TARGET_CHKP_BOUND_MODE): New.
1071 * doc/tm.texi: Regenerated.
1072 * langhooks.h (lang_hooks): Add chkp_supported field.
1073 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
1074 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
1075
1076 Reverted:
1077 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
1078 * config/i386/constraints.md (B): New.
1079 (Ti): New.
1080 (Tb): New.
1081 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
1082 * config/i386/i386-modes.def (BND32): New.
1083 (BND64): New.
1084 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
1085 * config/i386/i386.c (isa_opts): Add mmpx.
1086 (regclass_map): Add bound registers.
1087 (dbx_register_map): Likewise.
1088 (dbx64_register_map): Likewise.
1089 (svr4_dbx_register_map): Likewise.
1090 (PTA_MPX): New.
1091 (ix86_option_override_internal): Support MPX ISA.
1092 (ix86_conditional_register_usage): Support bound registers.
1093 (print_reg): Likewise.
1094 (ix86_code_end): Add MPX bnd prefix.
1095 (output_set_got): Likewise.
1096 (ix86_output_call_insn): Likewise.
1097 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
1098 (ix86_print_operand_punct_valid_p): Likewise.
1099 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
1100 UNSPEC_BNDMK_ADDR.
1101 (ix86_class_likely_spilled_p): Add bound regs support.
1102 (ix86_hard_regno_mode_ok): Likewise.
1103 (x86_order_regs_for_local_alloc): Likewise.
1104 (ix86_bnd_prefixed_insn_p): New.
1105 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
1106 (FIXED_REGISTERS): Add bound registers.
1107 (CALL_USED_REGISTERS): Likewise.
1108 (REG_ALLOC_ORDER): Likewise.
1109 (HARD_REGNO_NREGS): Likewise.
1110 (TARGET_MPX): New.
1111 (VALID_BND_REG_MODE): New.
1112 (FIRST_BND_REG): New.
1113 (LAST_BND_REG): New.
1114 (reg_class): Add BND_REGS.
1115 (REG_CLASS_NAMES): Likewise.
1116 (REG_CLASS_CONTENTS): Likewise.
1117 (BND_REGNO_P): New.
1118 (ANY_BND_REG_P): New.
1119 (BNDmode): New.
1120 (HI_REGISTER_NAMES): Add bound registers.
1121 * config/i386/i386.md (UNSPEC_BNDMK): New.
1122 (UNSPEC_BNDMK_ADDR): New.
1123 (UNSPEC_BNDSTX): New.
1124 (UNSPEC_BNDLDX): New.
1125 (UNSPEC_BNDLDX_ADDR): New.
1126 (UNSPEC_BNDCL): New.
1127 (UNSPEC_BNDCU): New.
1128 (UNSPEC_BNDCN): New.
1129 (UNSPEC_MPX_FENCE): New.
1130 (BND0_REG): New.
1131 (BND1_REG): New.
1132 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
1133 (length_immediate): Likewise.
1134 (prefix_0f): Likewise.
1135 (memory): Likewise.
1136 (prefix_rep): Check for bnd prefix.
1137 (length_nobnd): New.
1138 (length): Use length_nobnd if specified.
1139 (BND): New.
1140 (bnd_ptr): New.
1141 (BNDCHECK): New.
1142 (bndcheck): New.
1143 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
1144 (*jcc_2): Likewise.
1145 (jump): Likewise.
1146 (simple_return_internal): Likewise.
1147 (simple_return_pop_internal): Likewise.
1148 (*indirect_jump): Add MPX bnd prefix.
1149 (*tablejump_1): Likewise.
1150 (simple_return_internal_long): Likewise.
1151 (simple_return_indirect_internal): Likewise.
1152 (<mode>_mk): New.
1153 (*<mode>_mk): New.
1154 (mov<mode>): New.
1155 (*mov<mode>_internal_mpx): New.
1156 (<mode>_<bndcheck>): New.
1157 (*<mode>_<bndcheck>): New.
1158 (<mode>_ldx): New.
1159 (*<mode>_ldx): New.
1160 (<mode>_stx): New.
1161 (*<mode>_stx): New.
1162 * config/i386/predicates.md (lea_address_operand): Rename to...
1163 (address_no_seg_operand): ... this.
1164 (address_mpx_no_base_operand): New.
1165 (address_mpx_no_index_operand): New.
1166 (bnd_mem_operator): New.
1167 * config/i386/i386.opt (mmpx): New.
1168 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
1169 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
1170
1171 Reverted:
1172 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
1173 * mode-classes.def (MODE_POINTER_BOUNDS): New.
1174 * tree.def (POINTER_BOUNDS_TYPE): New.
1175 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
1176 (POINTER_BOUNDS_MODE): New.
1177 (make_pointer_bounds_mode): New.
1178 * machmode.h (POINTER_BOUNDS_MODE_P): New.
1179 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
1180 (layout_type): Support POINTER_BOUNDS_TYPE.
1181 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
1182 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
1183 (type_contains_placeholder_1): Likewise.
1184 * tree.h (POINTER_BOUNDS_TYPE_P): New.
1185 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
1186 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
1187
1188 2013-11-29 Richard Biener <rguenther@suse.de>
1189
1190 PR middle-end/59338
1191 * tree-cfg.c (verify_expr): Restrict bounds verification of
1192 BIT_FIELD_REF arguments to non-aggregate typed base objects.
1193
1194 2013-11-29 Richard Biener <rguenther@suse.de>
1195
1196 PR tree-optimization/59334
1197 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
1198 in previous commit.
1199
1200 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1201 Richard Biener <rguenther@suse.de>
1202
1203 PR lto/59326
1204 * omp-low.c (simd_clone_create): Return NULL if for definition
1205 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
1206 before calling cgraph_function_versioning.
1207 (expand_simd_clones): Look for "omp declare simd" attribute first.
1208 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
1209 Punt if node->global.inlined_to.
1210 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
1211 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
1212 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
1213
1214 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1215
1216 PR lto/59326
1217 * tree-core.h (enum omp_clause_schedule_kind): Add
1218 OMP_CLAUSE_SCHEDULE_LAST.
1219 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
1220 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
1221 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
1222 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
1223 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
1224 (DFS_write_tree_body): Handle OMP_CLAUSE.
1225 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
1226 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
1227 (write_ts_omp_clause_tree_pointers): New function.
1228 (streamer_write_tree_body): Call it for OMP_CLAUSE.
1229 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
1230 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
1231 (unpack_value_fields): Call it for OMP_CLAUSE.
1232 (streamer_alloc_tree): Handle OMP_CLAUSE.
1233 (lto_input_ts_omp_clause_tree_pointers): New function.
1234 (streamer_read_tree_body): Call it for OMP_CLAUSE.
1235
1236 2013-11-29 Joseph Myers <joseph@codesourcery.com>
1237
1238 * doc/implement-c.texi: Document C11 implementation-defined
1239 behavior. Refer to -ffp-contract=fast for contraction behavior.
1240 * doc/invoke.texi (-std=c99, std=c11): Update description of
1241 completeness.
1242 (-std=gnu99): Don't mention as future default.
1243 (-std=gnu11): Mention as intended future default.
1244 * doc/standards.texi: Update descriptions of C99 and C11 support.
1245 Limit statement about C99 facilities for freestanding
1246 implementations to some platforms only.
1247
1248 2013-11-28 Jakub Jelinek <jakub@redhat.com>
1249
1250 PR middle-end/59327
1251 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
1252
1253 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
1254
1255 PR target/57293
1256 * ira.h (ira_setup_eliminable_regset): Remove parameter.
1257 * ira.c (ira_setup_eliminable_regset): Ditto. Add
1258 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
1259 Don't call lra_init_elimination.
1260 (ira): Call ira_setup_eliminable_regset without arguments.
1261 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
1262 from ira_setup_eliminable_regset call.
1263 * gcse.c (calculate_bb_reg_pressure): Ditto.
1264 * haifa-sched.c (sched_init): Ditto.
1265 * lra.h (lra_init_elimination): Remove the prototype.
1266 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
1267 used_insn_alternative upper.
1268 (lra_eliminate_regs_1): Add one more parameter.
1269 (lra-eliminate): Ditto.
1270 * lra.c (lra_invalidate_insn_data): Set sp_offset.
1271 (setup_sp_offset): New.
1272 (lra_process_new_insns): Call setup_sp_offset.
1273 (lra): Add argument to lra_eliminate calls.
1274 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
1275 (get_equiv_with_elimination): New.
1276 (process_addr_reg): Call get_equiv_with_elimination instead of
1277 get_equiv_substitution.
1278 (equiv_address_substitution): Ditto.
1279 (loc_equivalence_change_p): Ditto.
1280 (loc_equivalence_callback, lra_constraints): Ditto.
1281 (curr_insn_transform): Ditto. Print the sp offset
1282 (process_alt_operands): Prevent stack pointer reloads.
1283 (lra_constraints): Remove one argument from lra_eliminate call.
1284 Move it up. Mark used hard regs bfore it. Use
1285 get_equiv_with_elimination instead of get_equiv_substitution.
1286 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
1287 assert for param values combination. Use sp offset. Add argument
1288 to lra_eliminate_regs_1 calls.
1289 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
1290 (curr_sp_change): New static var.
1291 (mark_not_eliminable): Add parameter. Update curr_sp_change.
1292 Don't prevent elimination to sp if we can calculate its change.
1293 Pass the argument to mark_not_eliminable calls.
1294 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
1295 argument to lra_eliminate_regs_1 call.
1296 (update_reg_eliminate): Move calculation of hard regs for spill
1297 lower. Switch off lra_in_progress temporarily to generate regs
1298 involved into elimination.
1299 (lra_init_elimination): Rename to init_elimination. Make it
1300 static. Set up insn sp offset, check the offsets at the end of BBs.
1301 (process_insn_for_elimination): Add parameter. Pass its value to
1302 eliminate_regs_in_insn.
1303 (lra_eliminate): : Add parameter. Pass its value to
1304 process_insn_for_elimination. Add assert for param values
1305 combination. Call init_elimination. Don't update offsets in
1306 equivalence substitutions.
1307 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
1308 for created stack slot.
1309 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
1310 onto stack slot.
1311
1312 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1313
1314 * config/arm/iterators.md (vrint_conds): New int attribute.
1315 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
1316 (smax<mode>3): Likewise.
1317 (smin<mode>3): Likewise.
1318
1319 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
1320
1321 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
1322 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
1323 * tree-ssanames.h (set_range_info): Add range_type argument.
1324 (duplicate_ssa_name_range_info): Likewise.
1325 * tree-ssanames.c (set_range_info): Take the range type as argument
1326 and store it in SSA_NAME_ANTI_RANGE_P.
1327 (duplicate_ssa_name_range_info): Likewise.
1328 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
1329 (set_nonzero_bits): Update call to set_range_info.
1330 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
1331 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1332 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
1333 (vrp_finalize): Likewise, passing anti-ranges directly.
1334
1335 2013-11-28 Richard Biener <rguenther@suse.de>
1336
1337 PR tree-optimization/59330
1338 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
1339 and fix delayed marking of free calls not necessary.
1340
1341 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
1342
1343 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
1344 is_gimple_reg_type.
1345 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
1346
1347 2013-11-28 Terry Guo <terry.guo@arm.com>
1348
1349 * config/arm/arm.c (v7m_extra_costs): New table.
1350 (arm_v7m_tune): Use it.
1351
1352 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1353
1354 * config/sol2.h (TIME_LIBRARY): Define.
1355
1356 2013-11-28 Richard Biener <rguenther@suse.de>
1357
1358 PR lto/59323
1359 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
1360 CONST_DECLs in function context are not indexable.
1361
1362 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
1363
1364 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
1365 not optimized for size.
1366
1367 2013-11-28 Jakub Jelinek <jakub@redhat.com>
1368
1369 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
1370 fields.
1371 (expand_stack_vars): For -fsanitize=address, use (and set initially)
1372 data->asan_base as base for vars and update asan_alignb.
1373 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
1374 Pass them to asan_emit_stack_protection.
1375 * asan.c (asan_detect_stack_use_after_return): New variable.
1376 (asan_emit_stack_protection): Add pbase and alignb arguments.
1377 Implement use after return sanitization.
1378 * asan.h (asan_emit_stack_protection): Adjust prototype.
1379 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
1380
1381 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1382
1383 * common.opt: Introduced a new option -fsimd-cost-model.
1384 * doc/invoke.texi: Introduced a new openmp-simd warning and
1385 a new -fsimd-cost-model option.
1386 * tree-vectorizer.h (unlimited_cost_model): Interface updated
1387 to rely on the particular loop info.
1388 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
1389 (vect_peeling_hash_choose_best_peeling): Ditto.
1390 (vect_enhance_data_refs_alignment): Ditto.
1391 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
1392 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
1393 plus added openmp-simd warining.
1394
1395 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
1396
1397 PR rtl-optimization/59311
1398 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
1399 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
1400
1401 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
1402
1403 * var-tracking.c (track_expr_p): Do not track declarations for parts
1404 of tracked parameters.
1405 (add_stores): Do not track values for tracked parameters passed in
1406 multiple locations.
1407 (vt_get_decl_and_offset): Handle PARALLEL.
1408 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
1409
1410 2013-11-27 Jeff Law <law@redhat.com>
1411
1412 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
1413 clobber the loop structure thread_block was unsuccessful. If
1414 thread_block was unsuccessful, cleanup appropriately.
1415
1416 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
1417
1418 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
1419 (score_char_to_class): Likewise.
1420
1421 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
1422
1423 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
1424 the overflow bit set.
1425
1426 2013-11-27 Richard Biener <rguenther@suse.de>
1427
1428 PR middle-end/58723
1429 * cgraphbuild.c (build_cgraph_edges): Do not build edges
1430 for internal calls.
1431 (rebuild_cgraph_edges): Likewise.
1432 * ipa-inline-analysis.c (estimate_function_body_sizes):
1433 Skip internal calls.
1434 * tree-inline.c (estimate_num_insns): Estimate size of internal
1435 calls as 0.
1436 (gimple_expand_calls_inline): Do not try inline-expanding
1437 internal calls.
1438 * lto-streamer-in.c (input_cfg): Stream loop safelen,
1439 force_vect and simduid.
1440 (input_struct_function_base): Stream has_force_vect_loops
1441 and has_simduid_loops.
1442 (input_function): Adjust.
1443 * lto-streamer-out.c (output_cfg): Stream loop safelen,
1444 force_vect and simduid.
1445 (output_struct_function_base): Stream has_force_vect_loops
1446 and has_simduid_loops.
1447
1448 2013-11-27 Kai Tietz <ktietz@redhat.com>
1449
1450 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
1451 pointer cast.
1452
1453 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
1454
1455 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
1456 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
1457
1458 2013-11-27 Marek Polacek <polacek@redhat.com>
1459
1460 PR sanitizer/59306
1461 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
1462 instead of walk_gimple_op.
1463 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
1464
1465 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
1466 Jakub Jelinek <jakub@redhat.com>
1467
1468 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
1469 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
1470 (struct cgraph_node): Add simdclone and simd_clones fields.
1471 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
1472 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
1473 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1474 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
1475 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1476 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
1477 * doc/tm.texi: Regenerated.
1478 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
1479 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
1480 attribute is present.
1481 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
1482 (simd_clone_vector_of_formal_parm_types): New function.
1483 (simd_clone_struct_alloc, simd_clone_struct_copy,
1484 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
1485 simd_clone_compute_base_data_type, simd_clone_mangle,
1486 simd_clone_create, simd_clone_adjust_return_type,
1487 create_tmp_simd_array, simd_clone_adjust_argument_types,
1488 simd_clone_init_simd_arrays): New functions.
1489 (struct modify_stmt_info): New type.
1490 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
1491 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
1492 functions.
1493 (pass_data_omp_simd_clone): New variable.
1494 (pass_omp_simd_clone): New class.
1495 (make_pass_omp_simd_clone): New function.
1496 * passes.def (pass_omp_simd_clone): New.
1497 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1498 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
1499 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
1500 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
1501 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
1502 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
1503 * tree-vect-data-refs.c: Include cgraph.h.
1504 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
1505 and find_data_references_in_bb, if find_data_references_in_stmt
1506 fails, still allow calls to #pragma omp declare simd functions
1507 in #pragma omp simd loops unless they contain data references among
1508 the call arguments or in lhs.
1509 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1510 calls with no lhs.
1511 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
1512 without lhs.
1513 * tree-vectorizer.h (enum stmt_vec_info_type): Add
1514 call_simd_clone_vec_info_type.
1515 (struct _stmt_vec_info): Add simd_clone_fndecl field.
1516 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
1517 * tree-vect-stmts.c: Include tree-ssa-loop.h,
1518 tree-scalar-evolution.h and cgraph.h.
1519 (vectorizable_call): Handle calls without lhs. Assert
1520 !stmt_can_throw_internal instead of failing for it. Don't update
1521 EH stuff.
1522 (struct simd_call_arg_info): New.
1523 (vectorizable_simd_clone_call): New function.
1524 (vect_transform_stmt): Call it.
1525 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
1526 calls without lhs.
1527 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
1528 if cgraph_function_with_gimple_body_p is true.
1529
1530 2013-11-27 Tom de Vries <tom@codesourcery.com>
1531 Marc Glisse <marc.glisse@inria.fr>
1532
1533 PR middle-end/59037
1534 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
1535 BIT_FIELD_REF.
1536 * gimple-fold.c (gimple_fold_indirect_ref): Same.
1537 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
1538 out-of-bounds.
1539
1540 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
1541
1542 PR middle-end/59138
1543 * expr.c (emit_group_store): Don't write past the end of the structure.
1544 (store_bit_field): Fix formatting.
1545
1546 2013-11-27 Richard Biener <rguenther@suse.de>
1547
1548 PR tree-optimization/59288
1549 * tree-vect-loop.c (get_initial_def_for_induction): Do not
1550 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
1551
1552 2013-11-27 Marek Polacek <polacek@redhat.com>
1553
1554 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
1555 for a decl, recreate that decl. Save into the hash table VAR_DECLs
1556 rather than ADDR_EXPRs.
1557
1558 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1559
1560 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
1561
1562 2013-11-26 David Malcolm <dmalcolm@redhat.com>
1563
1564 * gengtype.c (struct seen_tag): New.
1565 (already_seen_tag): New.
1566 (mark_tag_as_seen): New.
1567 (walk_subclasses): Support having multiple subclasses using the
1568 same tag by tracking which tags have already been seen, and using
1569 this to avoid adding duplicate cases to the "switch" statement.
1570 The call to already_seen_tag introduces an O(N^2) when running
1571 gengtype on N, the number of tags, due to the repeated linear
1572 search, but currently max(N) is relatively small (the number of
1573 GSS codes, which is 26).
1574 (walk_type): Pass in a seen_tag for use by the walk_subclasses
1575 recursion.
1576
1577 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
1578 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
1579 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
1580 GIMPLE_OMP_RETURN happens to share the data layout of
1581 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
1582 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
1583 underlying GSS value from GSS_OMP_PARALLEL to
1584 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
1585 not directly related; they merely share in-memory layout.
1586 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
1587 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
1588
1589 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
1590 Rename to...
1591 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
1592 ...these.
1593 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
1594 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
1595 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
1596 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
1597 ...these.
1598
1599 * gimple.h (gimple_statement_resx): New subclass of
1600 gimple_statement_eh_ctrl, with the invariant that
1601 stmt->code == GIMPLE_RESX.
1602 (gimple_statement_eh_dispatch): New subclass of
1603 gimple_statement_eh_ctrl, with the invariant that
1604 stmt->code == GIMPLE_EH_DISPATH.
1605
1606 (gimple_statement_omp_parallel): The existing class expressed
1607 a layout (GSS_OMP_PARALLEL), but the codes with that layout
1608 are not all related, so it makes more sense for this class to
1609 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
1610 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
1611 rename the existing gimple_statement_omp_parallel class to...
1612 (gimple_statement_omp_parallel_layout): ...this, expressing
1613 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
1614 (gimple_statement_omp_taskreg): New subclass of
1615 gimple_statement_omp_parallel_layout, expressing the invariant
1616 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
1617 as used by the various gimple_omp_taskreg_ accessors.
1618 (gimple_statement_omp_parallel): Reintroduce this class, this time
1619 as a subclass of gimple_statement_omp_taskreg to express the
1620 invariant stmt->code == GIMPLE_OMP_PARALLEL.
1621 (gimple_statement_omp_target) New class, subclassing
1622 gimple_statement_omp_parallel_layout, to express the invariant
1623 stmt->code == GIMPLE_OMP_TARGET.
1624 (gimple_statement_omp_task): Update to inherit from
1625 gimple_statement_omp_taskreg rather than
1626 gimple_statement_omp_parallel.
1627
1628 (gimple_statement_omp_single): Rename to...
1629 (gimple_statement_omp_single_layout): ...this, expressing the
1630 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
1631 (gimple_statement_omp_single): ...and reintroduce this name as
1632 a subclass of gimple_statement_omp_single_layout, expressing
1633 the invariant that code == GIMPLE_OMP_SINGLE.
1634 (gimple_statement_omp_teams): New class, subclassing
1635 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
1636
1637 (gimple_statement_omp_atomic_store): Rename to...
1638 (gimple_statement_omp_atomic_store_layout): ...this, expressing
1639 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
1640 (gimple_statement_omp_atomic_store): ...and reintroduce this
1641 name as a subclass of gimple_statement_omp_atomic_store_layout
1642 with code == GIMPLE_OMP_ATOMIC_STORE.
1643 (gimple_statement_omp_return): New class, subclassing
1644 gimple_statement_omp_atomic_store_layout for the code
1645 GIMPLE_OMP_RETURN.
1646
1647 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
1648 (is_a_helper <gimple_statement_resx>::test): New.
1649 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
1650 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
1651 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1652 (is_a_helper <gimple_statement_omp_return>::test): New.
1653 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
1654 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
1655 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1656 GIMPLE_OMP_TARGET.
1657 (is_a_helper <gimple_statement_omp_target>::test): New.
1658 (is_a_helper <gimple_statement_omp_single>::test): Only check
1659 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1660 (is_a_helper <gimple_statement_omp_teams>::test): New.
1661
1662 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
1663 (is_a_helper <const gimple_statement_resx>::test): New.
1664 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
1665 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
1666 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1667 (is_a_helper <const gimple_statement_omp_return>::test): New.
1668 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
1669 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
1670 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1671 GIMPLE_OMP_TARGET.
1672 (is_a_helper <const gimple_statement_omp_target>::test): New.
1673 (is_a_helper <const gimple_statement_omp_single>::test): Only
1674 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1675 (is_a_helper <const gimple_statement_omp_teams>::test): New.
1676
1677 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
1678 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
1679 gimple_statement_omp_atomic_store with downcasts to
1680 gimple_statement_omp_return, thus requiring that the code be
1681 GIMPLE_OMP_RETURN.
1682 (gimple_resx_region, gimple_resx_set_region): Replace bogus
1683 downcasts to gimple_statement_eh_ctrl with downcasts to
1684 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
1685 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
1686 Replace bogus downcasts to const gimple_statement_eh_ctrl with
1687 downcasts to gimple_statement_eh_dispatch, thus requiring that
1688 the code be GIMPLE_EH_DISPATCH.
1689 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
1690 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
1691 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
1692 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
1693 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
1694 gimple_statement_omp_parallel with downcasts to
1695 gimple_statement_omp_taskreg, thus requiring that the code be
1696 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
1697 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
1698 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
1699 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
1700 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
1701 gimple_omp_target_set_data_arg): Replace bogus downcasts to
1702 gimple_statement_omp_parallel with downcasts to
1703 gimple_statement_omp_target, thus requiring that the code be
1704 GIMPLE_OMP_TARGET.
1705 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
1706 gimple_omp_teams_set_clauses): Replace bogus downcasts to
1707 gimple_statement_omp_single with downcasts to
1708 gimple_statement_omp_teams, thus requiring that the code be
1709 GIMPLE_OMP_TEAMS.
1710
1711 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
1712 gimple_statement_resx.
1713 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
1714 gimple_statement_eh_dispatch.
1715
1716 2013-11-26 Jakub Jelinek <jakub@redhat.com>
1717
1718 PR tree-optimization/59014
1719 * tree-vrp.c (register_edge_assert_for_1): Don't look
1720 through conversions from non-integral types or through
1721 narrowing conversions.
1722
1723 PR target/59229
1724 * config/i386/i386.c (device_alg): Fix up formatting.
1725 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
1726 similarly to count && count < epilogue_size_needed. Fix up
1727 comment typo.
1728 * builtins.c (determine_block_size): Fix comment typo.
1729
1730 PR sanitizer/59258
1731 * ubsan.c (ubsan_source_location): Don't add any location
1732 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
1733 (ubsan_create_data): Strip block info from LOC.
1734
1735 PR middle-end/59273
1736 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
1737 if there isn't optab handler for the corresponding vector PLUS_EXPR.
1738
1739 PR rtl-optimization/59166
1740 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
1741 DF_REF_LOC in validate_change call.
1742 (split_live_ranges_for_shrink_wrap): Likewise.
1743
1744 PR middle-end/59150
1745 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
1746 of references to constant size types in simd loops, defer emitting
1747 initializer for the new_var, emit it later on only if not using
1748 SIMD arrays for it.
1749
1750 PR middle-end/59152
1751 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
1752 for the inner loop if collapse_bb is non-NULL.
1753 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
1754
1755 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
1756
1757 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
1758 a constant immediate before force_reg.
1759
1760 2013-11-26 Richard Biener <rguenther@suse.de>
1761
1762 PR tree-optimization/59245
1763 * tree-vrp.c (set_value_range): Assert that we don't have
1764 overflowed constants (but our infinities).
1765 (set_value_range_to_value): Drop all overflow flags.
1766 (vrp_visit_phi_node): Likewise.
1767 (vrp_visit_assignment_or_call): Use set_value_range_to_value
1768 to set a constant range.
1769
1770 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1771
1772 PR target/59290
1773 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
1774 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
1775 for zero_extend case.
1776
1777 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
1778
1779 PR bootstrap/55552
1780 * configure.ac (install_gold_as_default): New. Set to yes for
1781 --disable-ld or --enable-gold=default.
1782 (gcc_cv_ld_gold_srcdir): New.
1783 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
1784 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
1785 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1786 * configure: Regenerated.
1787
1788 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
1789 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1790 (original) [collect-ld && -fuse-ld=bfd]: Set to
1791 $ORIGINAL_LD_BFD_FOR_TARGET.
1792 (original) [collect-ld && -fuse-ld=gold]: Set to
1793 $ORIGINAL_LD_GOLD_FOR_TARGET.
1794 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
1795 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
1796
1797 2013-11-26 Terry Guo <terry.guo@arm.com>
1798
1799 * config/arm/arm.c (require_pic_register): Handle high pic base
1800 register for thumb-1.
1801 (arm_load_pic_register): Also initialize high pic base register.
1802 * doc/invoke.texi: Update documentation for option -mpic-register.
1803
1804 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
1805
1806 PR target/58314
1807 PR target/50751
1808 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
1809 Prefix function names with 'sh_'. Make them non-static.
1810 * config/sh/sh-protos.h (sh_disp_addr_displacement,
1811 sh_max_mov_insn_displacement): Add declarations.
1812 * config/sh/constraints.md (Q): Reject QImode.
1813 (Sdd): Use match_code "mem".
1814 (Snd): Fix erroneous matching of non-memory operands.
1815 * config/sh/predicates.md (short_displacement_mem_operand): New
1816 predicate.
1817 (general_movsrc_operand): Disallow PC relative QImode loads.
1818 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
1819 (*movqi, *movhi): Merge both insns into...
1820 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
1821 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
1822 on the operand types.
1823
1824 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
1825
1826 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1827 Remove unused variable save_config.
1828 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
1829 assert.
1830
1831 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1832
1833 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
1834 using other intrinsics.
1835 (vtbx3_<psu>8): Likewise.
1836
1837 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1838
1839 * config/aarch64/aarch64-builtins.c
1840 (aarch64_types_bsl_p_qualifiers): New.
1841 (aarch64_types_bsl_s_qualifiers): Likewise.
1842 (aarch64_types_bsl_u_qualifiers): Likewise.
1843 (TYPES_BSL_P): Likewise.
1844 (TYPES_BSL_S): Likewise.
1845 (TYPES_BSL_U): Likewise.
1846 (BUILTIN_VALLDIF): Likewise.
1847 (BUILTIN_VDQQH): Likewise.
1848 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
1849 * config/aarch64/aarch64-simd.md
1850 (aarch64_simd_bsl<mode>_internal): Handle more modes.
1851 (aarch64_simd_bsl<mode>): Likewise.
1852 * config/aarch64/arm_neon.h
1853 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
1854 * config/aarch64/iterators.md (VALLDIF): New.
1855 (Vbtype): Handle more modes.
1856
1857 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1858
1859 * config/aarch64/aarch64-builtins.c
1860 (aarch64_type_qualifiers): Add qualifier_poly.
1861 (aarch64_build_scalar_type): Also build Poly types.
1862 (aarch64_build_vector_type): Likewise.
1863 (aarch64_build_type): Likewise.
1864 (aarch64_build_signed_type): New.
1865 (aarch64_build_unsigned_type): Likewise.
1866 (aarch64_build_poly_type): Likewise.
1867 (aarch64_init_simd_builtins): Also handle Poly types.
1868
1869 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1870
1871 * config/aarch64/aarch64-builtins.c
1872 (VAR1): Use new naming scheme for aarch64_builtins.
1873 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
1874
1875 2013-11-26 Richard Biener <rguenther@suse.de>
1876
1877 PR tree-optimization/59287
1878 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1879 Remove no longer necessary special-casing of union accesses.
1880
1881 2013-11-26 Richard Biener <rguenther@suse.de>
1882
1883 * pretty-print.c (output_buffer::~output_buffer): Really
1884 free the obstacks.
1885
1886 2013-11-25 Jeff Law <law@redhat.com>
1887
1888 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
1889 invalidate loop information.
1890
1891 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1892
1893 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
1894
1895 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1896
1897 PR target/53976
1898 PR target/59243
1899 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
1900 comments.
1901 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
1902 previously visited basic blocks before recursing instead of only one
1903 basic block.
1904
1905 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1906
1907 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
1908 * config/aarch64/aarch64-cores.def (cortex-a53):
1909 Use cortexa53 tuning struct.
1910
1911 2013-11-25 Andrew Macleod <amacleod@redhat.com>
1912
1913 PR bootstrap/59260
1914 * fold-const.c: Include hash-table.h.
1915
1916 2013-11-25 Marek Polacek <polacek@redhat.com>
1917
1918 PR sanitizer/59258
1919 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1920
1921 2013-11-25 Richard Biener <rguenther@suse.de>
1922
1923 * tree-dfa.c: Remove unused convert.h include.
1924
1925 2013-11-25 Terry Guo <terry.guo@arm.com>
1926
1927 * doc/invoke.texi (-mslow-flash-data): Document new option.
1928 * config/arm/arm.opt (mslow-flash-data): New option.
1929 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
1930 Declare it.
1931 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1932 are disabled.
1933 (arm_disable_literal_pool): Declare it.
1934 * config/arm/arm.c (arm_disable_literal_pool): New variable.
1935 (arm_option_override): Handle new option.
1936 (thumb2_legitimate_address_p): Don't allow symbol references when
1937 literal pools are disabled.
1938 (arm_max_const_double_inline_cost): New function.
1939 * config/arm/arm.md (types.md): Include it before ...
1940 (use_literal_pool): New attribute.
1941 (enabled): Use new attribute.
1942 (split pattern): Replace symbol+offset with MOVW/MOVT.
1943
1944 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1945
1946 PR bootstrap/59279
1947 Revert previous commit.
1948
1949 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1950
1951 * jump.c (reset_insn_reg_label_operand_notes): New function,
1952 split out from ...
1953 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
1954 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1955 split out from ...
1956 (delete_dead_jumptables): ... here. Handle cfglayout mode.
1957 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1958 expensive CFG cleanup is called for.
1959 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1960 (cfg_layout_finalize): Delete dead jump tables before re-building
1961 the insns chain.
1962 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1963 basic blocks, not before.
1964 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1965
1966 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1967 insns chain of a scheduling extended basic block, they cannot appear
1968 there in cfglayout mode.
1969
1970 2013-11-24 Tobias Burnus <burnus@net-b.de>
1971
1972 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1973
1974 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1975
1976 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1977 for little endian.
1978
1979 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
1980
1981 * graphite-sese-to-poly.c: Don't include extra "expr.h".
1982
1983 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1984
1985 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1986
1987 2013-11-23 David Edelson <dje.gcc@gmail.com>
1988 Andrew Dixie <andrewd@gentrack.com>
1989
1990 PR target/33704
1991 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1992 (COLLECT_SHARED_FINI_FUNC): Define.
1993
1994 * collect2.c (aix_shared_initname): Declare.
1995 (aix_shared_fininame): Declare.
1996 (symkind): Add SYM_AIXI and SYM_AIXD.
1997 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1998 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1999 (aixlazy_flag): Parse.
2000 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
2001 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
2002
2003 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
2004
2005 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
2006 (rs6000_xcoff_select_section): Place decls with stricter alignment
2007 into named sections.
2008 (rs6000_xcoff_unique_section): Allow unique sections for
2009 uninitialized data with strict alignment.
2010
2011 2013-11-23 Jakub Jelinek <jakub@redhat.com>
2012
2013 PR tree-optimization/59154
2014 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
2015 rhs1 of a cast and new_op is invariant, fold_convert it.
2016 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
2017 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
2018
2019 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
2020
2021 PR target/56788
2022 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
2023 Declare as MULTI_ARG_1_SF instruction.
2024 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
2025 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
2026 from *xop_vmfrcz_<mode>.
2027 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
2028 to merge scalar result with __A.
2029 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
2030 result with __A.
2031
2032 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
2033
2034 * gimplify.h (recalculate_side_effects): Delete.
2035 * gimplify.c (recalculate_side_effects): Make static and add comment.
2036
2037 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
2038
2039 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
2040 for the destination of a define_peephole2. Likewise register_operand
2041 rather than arith_reg_operand. Remove constraints from
2042 define_peephole2s.
2043
2044 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
2045
2046 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
2047 Delete.
2048 (mn10300_store_multiple_operation_p): Declare.
2049 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
2050 Rename to...
2051 (mn10300_store_multiple_operation_p): ...this and remove mode
2052 argument.
2053 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
2054 Define.
2055
2056 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
2057
2058 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
2059 (pop_multiple_operation): Delete.
2060 (analyze_push_multiple_operation): Declare.
2061 (analyze_pop_multiple_operation): Declare.
2062 * config/bfin/bfin.c (push_multiple_operation): Rename to...
2063 (analyze_push_multiple_operation): ...this and remove mode argument.
2064 (pop_multiple_operation): Rename to...
2065 (analyze_pop_multiple_operation): ...this and remove mode argument.
2066 * config/bfin/predicates.md (push_multiple_operation): Define.
2067 (pop_multiple_operation): Likewise.
2068
2069 2013-11-23 Alan Modra <amodra@gmail.com>
2070
2071 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
2072
2073 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2074
2075 PR sanitizer/59061
2076 * common.opt (static-liblsan): Add.
2077 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
2078 Define.
2079 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
2080 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
2081 SANITIZE_RETURN.
2082 * opts.c (common_handle_option): Handle -fsanitize=leak.
2083 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
2084 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
2085 (LIBUBSAN_EARLY_SPEC): Remove.
2086 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
2087 (SANITIZER_SPEC): Add -fsanitize=leak handling.
2088 (sanitize_spec_function): Handle %sanitize(leak).
2089 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
2090
2091 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
2092 Jakub Jelinek <jakub@redhat.com>
2093
2094 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
2095 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
2096 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
2097 (ipa_modify_formal_parameters): Adjust caller. Remove
2098 synth_parm_prefix argument. Use operator enum instead of bit fields.
2099 Add assert for properly handling vector of references. Handle
2100 creating brand new parameters.
2101 (ipa_modify_call_arguments): Use operator enum instead of bit
2102 fields.
2103 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
2104 used.
2105 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
2106 New functions.
2107 (ipa_dump_param_adjustments): Rename reduction to new_decl.
2108 Use operator enum instead of bit fields.
2109 * ipa-prop.h (enum ipa_parm_op): New.
2110 (struct ipa_parm_adjustment): New field op. Rename reduction
2111 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
2112 and copy_param.
2113 (ipa_modify_formal_parameters): Remove last argument.
2114 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
2115 ipa_get_adjustment_candidate): New prototypes.
2116 * tree-sra.c (turn_representatives_into_adjustments): Use operator
2117 enum. Set arg_prefix.
2118 (get_adjustment_for_base): Use operator enum.
2119 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
2120 ipa-prop.c.
2121 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
2122 (ipa_sra_modify_function_body): Same. No longer static.
2123 (sra_ipa_reset_debug_stmts): Use operator enum.
2124 (modify_function): Do not pass prefix argument.
2125
2126 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2127
2128 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
2129 (ubsan_pass): Ignore clobber stmts.
2130
2131 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
2132 * opts.c (common_handle_option): Add -fsanitize=return.
2133 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
2134 or it into SANITIZE_UNDEFINED.
2135
2136 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
2137 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
2138 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
2139 Don't instrument accesses to VAR_DECLs which are known to fit
2140 into their bounds and the vars are known to have shadow bytes
2141 indicating allowed access.
2142 (asan_dynamic_init_call): New function.
2143 (asan_add_global): If vnode->dynamically_initialized,
2144 set __has_dynamic_init to 1 instead of 0.
2145 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
2146 * asan.h (asan_dynamic_init_call): New prototype.
2147 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
2148
2149 2013-11-22 Martin Jambor <mjambor@suse.cz>
2150
2151 PR rtl-optimization/10474
2152 * ira.c (interesting_dest_for_shprep_1): New function.
2153 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
2154 also check parallels.
2155
2156 2013-11-22 Jeff Law <law@redhat.com>
2157
2158 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
2159 NULL for RHS, which we used to invalidate equivalences.
2160 (record_temporary_equivalences_from_phis): New bitmap arguments
2161 and a boolean indicating if we have passed a backedge. If we
2162 have passed a backedge, then set the appropriate bit in the
2163 bitmaps for the SRC & DEST of PHIs creating equivalences.
2164 (invalidate_equivalences, dummy_simplify): New functions.
2165 (cond_arg_set_in_b): Remove.
2166 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
2167 arguments and a boolean indicating if we have passed a backedge.
2168 If we have passed a backedge, then perform invalidations as needed.
2169 (thread_around_empty_blocks): If we have seen a backedge, then
2170 use the dummy simplify routine.
2171 (thread_through_normal_block): Likewise. Pass bitmaps and
2172 backedge status to children. Do not pessimize so much when
2173 traversing backedges in the CFG.
2174 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
2175 If we have seen a backedge, then use the dummy simplify routine.
2176 Do not pessimize so much when traversing backedges.
2177
2178 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
2179
2180 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
2181 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
2182
2183 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
2184
2185 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
2186 PTA_PCLMUL and PTA_RDRND for Silvermont.
2187 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
2188 for Silvermont.
2189
2190 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
2191
2192 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2193
2194 * hooks.h (hook_uint_mode_0): Add Prototype.
2195 * hooks.c (hook_uint_mode_0): New default function.
2196 * target.def (atomic_align_for_mode): New target hook.
2197 * tree.c (build_atomic_base): Add alignment override parameter.
2198 (build_common_tree_nodes): Use atomic alignment override.
2199 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
2200 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
2201
2202 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2203
2204 * gimple.h: Remove all includes.
2205 (recalculate_side_effects): Move prototype to gimplify.h.
2206 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
2207 * gengtype.c (open_base_files): Add gimple.h include list.
2208 * gimplify.h (recalculate_side_effects): Relocate prototype here.
2209 * gimple.c: Adjust include list.
2210 (recalculate_side_effects): Move to gimplify.c.
2211 * gimplify.c: Adjust include list.
2212 (recalculate_side_effects): Relocate from gimple.c.
2213 * alias.c: Add required include files removed from gimple.h.
2214 * asan.c: Likewise.
2215 * builtins.c: Likewise.
2216 * calls.c: Likewise.
2217 * cfgexpand.c: Likewise.
2218 * cfgloop.c: Likewise.
2219 * cfgloopmanip.c: Likewise.
2220 * cgraphbuild.c: Likewise.
2221 * cgraph.c: Likewise.
2222 * cgraphclones.c: Likewise.
2223 * cgraphunit.c: Likewise.
2224 * cilk-common.c: Likewise.
2225 * data-streamer.c: Likewise.
2226 * data-streamer-in.c: Likewise.
2227 * data-streamer-out.c: Likewise.
2228 * dse.c: Likewise.
2229 * dwarf2out.c: Likewise.
2230 * emit-rtl.c: Likewise.
2231 * except.c: Likewise.
2232 * expr.c: Likewise.
2233 * fold-const.c: Likewise.
2234 * function.c: Likewise.
2235 * gimple-builder.c: Likewise.
2236 * gimple-expr.c: Likewise.
2237 * gimple-fold.c: Likewise.
2238 * gimple-iterator.c: Likewise.
2239 * gimple-low.c: Likewise.
2240 * gimple-pretty-print.c: Likewise.
2241 * gimple-ssa-isolate-paths.c: Likewise.
2242 * gimple-ssa-strength-reduction.c: Likewise.
2243 * gimple-streamer-in.c: Likewise.
2244 * gimple-streamer-out.c: Likewise.
2245 * gimple-walk.c: Likewise.
2246 * gimplify-me.c: Likewise.
2247 * graphite-blocking.c: Likewise.
2248 * graphite.c: Likewise.
2249 * graphite-clast-to-gimple.c: Likewise.
2250 * graphite-dependences.c: Likewise.
2251 * graphite-interchange.c: Likewise.
2252 * graphite-optimize-isl.c: Likewise.
2253 * graphite-poly.c: Likewise.
2254 * graphite-scop-detection.c: Likewise.
2255 * graphite-sese-to-poly.c: Likewise.
2256 * internal-fn.c: Likewise.
2257 * ipa.c: Likewise.
2258 * ipa-cp.c: Likewise.
2259 * ipa-devirt.c: Likewise.
2260 * ipa-inline-analysis.c: Likewise.
2261 * ipa-inline.c: Likewise.
2262 * ipa-profile.c: Likewise.
2263 * ipa-prop.c: Likewise.
2264 * ipa-pure-const.c: Likewise.
2265 * ipa-reference.c: Likewise.
2266 * ipa-split.c: Likewise.
2267 * ipa-utils.c: Likewise.
2268 * langhooks.c: Likewise.
2269 * lto-cgraph.c: Likewise.
2270 * lto-compress.c: Likewise.
2271 * lto-opts.c: Likewise.
2272 * lto-section-in.c: Likewise.
2273 * lto-section-out.c: Likewise.
2274 * lto-streamer.c: Likewise.
2275 * lto-streamer-in.c: Likewise.
2276 * lto-streamer-out.c: Likewise.
2277 * omp-low.c: Likewise.
2278 * opts-global.c: Likewise.
2279 * passes.c: Likewise.
2280 * predict.c: Likewise.
2281 * profile.c: Likewise.
2282 * sese.c: Likewise.
2283 * stmt.c: Likewise.
2284 * stor-layout.c: Likewise.
2285 * symtab.c: Likewise.
2286 * targhooks.c: Likewise.
2287 * toplev.c: Likewise.
2288 * tracer.c: Likewise.
2289 * trans-mem.c: Likewise.
2290 * tree-affine.c: Likewise.
2291 * tree.c: Likewise.
2292 * tree-call-cdce.c: Likewise.
2293 * tree-cfg.c: Likewise.
2294 * tree-cfgcleanup.c: Likewise.
2295 * tree-chrec.c: Likewise.
2296 * tree-complex.c: Likewise.
2297 * tree-data-ref.c: Likewise.
2298 * tree-dfa.c: Likewise.
2299 * tree-eh.c: Likewise.
2300 * tree-emutls.c: Likewise.
2301 * tree-if-conv.c: Likewise.
2302 * tree-inline.c: Likewise.
2303 * tree-into-ssa.c: Likewise.
2304 * tree-loop-distribution.c: Likewise.
2305 * tree-nested.c: Likewise.
2306 * tree-nrv.c: Likewise.
2307 * tree-object-size.c: Likewise.
2308 * tree-outof-ssa.c: Likewise.
2309 * tree-parloops.c: Likewise.
2310 * tree-phinodes.c: Likewise.
2311 * tree-predcom.c: Likewise.
2312 * tree-pretty-print.c: Likewise.
2313 * tree-profile.c: Likewise.
2314 * tree-scalar-evolution.c: Likewise.
2315 * tree-sra.c: Likewise.
2316 * tree-ssa-address.c: Likewise.
2317 * tree-ssa-alias.c: Likewise.
2318 * tree-ssa.c: Likewise.
2319 * tree-ssa-ccp.c: Likewise.
2320 * tree-ssa-coalesce.c: Likewise.
2321 * tree-ssa-copy.c: Likewise.
2322 * tree-ssa-copyrename.c: Likewise.
2323 * tree-ssa-dce.c: Likewise.
2324 * tree-ssa-dom.c: Likewise.
2325 * tree-ssa-dse.c: Likewise.
2326 * tree-ssa-forwprop.c: Likewise.
2327 * tree-ssa-ifcombine.c: Likewise.
2328 * tree-ssa-live.c: Likewise.
2329 * tree-ssa-loop.c: Likewise.
2330 * tree-ssa-loop-ch.c: Likewise.
2331 * tree-ssa-loop-im.c: Likewise.
2332 * tree-ssa-loop-ivcanon.c: Likewise.
2333 * tree-ssa-loop-ivopts.c: Likewise.
2334 * tree-ssa-loop-manip.c: Likewise.
2335 * tree-ssa-loop-niter.c: Likewise.
2336 * tree-ssa-loop-prefetch.c: Likewise.
2337 * tree-ssa-loop-unswitch.c: Likewise.
2338 * tree-ssa-math-opts.c: Likewise.
2339 * tree-ssanames.c: Likewise.
2340 * tree-ssa-operands.c: Likewise.
2341 * tree-ssa-phiopt.c: Likewise.
2342 * tree-ssa-phiprop.c: Likewise.
2343 * tree-ssa-pre.c: Likewise.
2344 * tree-ssa-propagate.c: Likewise.
2345 * tree-ssa-reassoc.c: Likewise.
2346 * tree-ssa-sccvn.c: Likewise.
2347 * tree-ssa-sink.c: Likewise.
2348 * tree-ssa-strlen.c: Likewise.
2349 * tree-ssa-structalias.c: Likewise.
2350 * tree-ssa-tail-merge.c: Likewise.
2351 * tree-ssa-ter.c: Likewise.
2352 * tree-ssa-threadedge.c: Likewise.
2353 * tree-ssa-threadupdate.c: Likewise.
2354 * tree-ssa-uncprop.c: Likewise.
2355 * tree-ssa-uninit.c: Likewise.
2356 * tree-stdarg.c: Likewise.
2357 * tree-streamer.c: Likewise.
2358 * tree-streamer-in.c: Likewise.
2359 * tree-streamer-out.c: Likewise.
2360 * tree-switch-conversion.c: Likewise.
2361 * tree-tailcall.c: Likewise.
2362 * tree-vect-data-refs.c: Likewise.
2363 * tree-vect-generic.c: Likewise.
2364 * tree-vect-loop.c: Likewise.
2365 * tree-vect-loop-manip.c: Likewise.
2366 * tree-vectorizer.c: Likewise.
2367 * tree-vect-patterns.c: Likewise.
2368 * tree-vect-slp.c: Likewise.
2369 * tree-vect-stmts.c: Likewise.
2370 * tree-vrp.c: Likewise.
2371 * tsan.c: Likewise.
2372 * ubsan.c: Likewise.
2373 * value-prof.c: Likewise.
2374 * varpool.c: Likewise.
2375 * var-tracking.c: Likewise.
2376 * vtable-verify.c: Likewise.
2377 * config/darwin.c: Likewise.
2378 * config/aarch64/aarch64-builtins.c: Likewise.
2379 * config/aarch64/aarch64.c: Likewise.
2380 * config/alpha/alpha.c: Likewise.
2381 * config/i386/i386.c: Likewise.
2382 * config/i386/winnt.c: Likewise.
2383 * config/ia64/ia64.c: Likewise.
2384 * config/m32c/m32c.c: Likewise.
2385 * config/mep/mep.c: Likewise.
2386 * config/mips/mips.c: Likewise.
2387 * config/rs6000/rs6000.c: Likewise.
2388 * config/s390/s390.c: Likewise.
2389 * config/sh/sh.c: Likewise.
2390 * config/sparc/sparc.c: Likewise.
2391 * config/spu/spu.c: Likewise.
2392 * config/stormy16/stormy16.c: Likewise.
2393 * config/tilegx/tilegx.c: Likewise.
2394 * config/tilepro/tilepro.c: Likewise.
2395 * config/xtensa/xtensa.c: Likewise.
2396
2397 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
2398
2399 PR target/59216
2400 * arm.md (negdi_extendsidi): Fix invalid split.
2401
2402 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
2403
2404 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
2405 (vmov_n_f64): Likewise.
2406 (vmov_n_p8): Likewise.
2407 (vmov_n_p16): Likewise.
2408 (vmov_n_s8): Likewise.
2409 (vmov_n_s16): Likewise.
2410 (vmov_n_s32): Likewise.
2411 (vmov_n_s64): Likewise.
2412 (vmov_n_u8): Likewise.
2413 (vmov_n_u16): Likewise.
2414 (vmov_n_u32): Likewise.
2415 (vmov_n_u64): Likewise.
2416 (vmovq_n_f32): Likewise.
2417 (vmovq_n_f64): Likewise.
2418 (vmovq_n_p8): Likewise.
2419 (vmovq_n_p16): Likewise.
2420 (vmovq_n_s8): Likewise.
2421 (vmovq_n_s16): Likewise.
2422 (vmovq_n_s32): Likewise.
2423 (vmovq_n_s64): Likewise.
2424 (vmovq_n_u8): Likewise.
2425 (vmovq_n_u16): Likewise.
2426 (vmovq_n_u32): Likewise.
2427 (vmovq_n_u64): Likewise.
2428
2429 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2430
2431 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
2432 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
2433 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
2434 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
2435 and also change to float UNSPEC.
2436 (reduc_maxmin_uns>_<mode>): Remove V2DI.
2437 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
2438 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
2439 result access for big-endian.
2440 (__LANE0): New macro used to fix up lane access of 'across-lanes'
2441 intrinsics for big-endian.
2442 * config/aarch64/iterators.md (VDQV): Add V2DI.
2443 (VDQV_S): New.
2444 (vp): New mode attribute.
2445
2446 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2447
2448 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
2449 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
2450 big-endian.
2451
2452 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2453
2454 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
2455 for big-endian element order.
2456 (aarch64_simd_vec_setv2di): Likewise.
2457 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
2458 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
2459 (vec_extract): Expand using aarch64_get_lane.
2460 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
2461
2462 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2463
2464 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
2465 and stores to be ABI compliant.
2466
2467 2013-11-22 David Malcolm <dmalcolm@redhat.com>
2468
2469 * input.h (input_line): Remove.
2470 (input_filename): Likewise.
2471 (in_system_header): Likewise.
2472 * tree.h (EXPR_LOC_OR_HERE): Remove.
2473 * config/bfin/bfin.c (output_file_start): Remove use of
2474 input_filename macro.
2475 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
2476 * gimplify.c (internal_get_tmp_var): Likewise.
2477 EXPR_LOC_OR_HERE macro.
2478 (shortcut_cond_expr): Likewise.
2479 * tree-diagnostic.c (diagnostic_report_current_function): Remove
2480 use of input_filename macro.
2481 * tree.c (get_file_function_name): Likewise.
2482
2483 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
2484
2485 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
2486
2487 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2488
2489 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
2490 (same sized) elements even if the type of the CONSTRUCTOR has
2491 vector mode and target is a REG.
2492
2493 2013-11-22 Richard Biener <rguenther@suse.de>
2494
2495 Revert
2496 2013-11-21 Richard Biener <rguenther@suse.de>
2497
2498 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2499 nb_iterations_upper_bound by one.
2500
2501 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
2502
2503 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
2504 for Silvermont.
2505
2506 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
2507 core-avx-i, core-avx2 and slm.
2508
2509 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
2510
2511 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
2512
2513 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
2514
2515 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
2516 (stzx_24_<mode>): Likewise mra_operand.
2517
2518 2013-11-22 Jeff Law <law@redhat.com>
2519
2520 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
2521 (thread_block_1): Do not cancel jump threads which go from
2522 inside a loop, through the header, then back inside the loop.
2523 (bb_ends_with_multiway_branch): New function.
2524 (thread_through_all_blocks): Handle threading cases which start
2525 in a loop through the loop header to a point in the loop.
2526
2527 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
2528 jump thread path properly.
2529
2530 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
2531
2532 * vec.h (auto_vec): New class.
2533 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
2534 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
2535 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
2536 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
2537 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
2538 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
2539 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
2540 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
2541 appropriate instead of vec for local variables.
2542
2543 2013-11-21 Teresa Johnson <tejohnson@google.com>
2544
2545 PR target/59233
2546 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
2547 not understood by old_insns_match_p.
2548
2549 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
2550
2551 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
2552 little endian change.
2553 (vec_pack_sfix_trunc_v2df): Likewise.
2554 (vec_pack_ufix_trunc_v2df): Likewise.
2555 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
2556 double checking of endianness.
2557
2558 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2559
2560 * tree-vect-generic.c (optimize_vector_constructor): New function.
2561 (expand_vector_operations_1): Call it.
2562
2563 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
2564
2565 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
2566 ix86_zero_extend_to_Pmode where appropriate.
2567 (ix86_expand_builtin): Ditto.
2568
2569 2013-11-21 Cary Coutant <ccoutant@google.com>
2570
2571 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
2572 (add_linkage_name): Don't add linkage name for -g1.
2573 (decls_for_scope): Process subblocks for -g1.
2574 (dwarf2out_source_line): Output line tables for -g1.
2575 (dwarf2out_finish): Likewise.
2576 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
2577 unused scopes for -g1.
2578 * opts.c (common_handle_option): Handle -g same as -g2.
2579 * doc/invoke.texi: Update description for -g1.
2580
2581 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
2582
2583 * doc/extend.texi: Document htm builtins.
2584
2585 2013-11-21 Jeff Law <law@redhat.com>
2586
2587 PR tree-optimization/59221
2588 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
2589 temporary equivalences when threading through joiner blocks.
2590
2591 2013-11-21 Joseph Myers <joseph@codesourcery.com>
2592
2593 PR rtl-optimization/55950
2594 * real.c (real_sqrt): Remove function.
2595 * real.h (real_sqrt): Remove prototype.
2596 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
2597 SQRT using real_sqrt.
2598
2599 2013-11-21 Richard Biener <rguenther@suse.de>
2600
2601 PR tree-optimization/59058
2602 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
2603 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
2604 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
2605 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
2606 (NITERS_KNOWN_P): Fold into ...
2607 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
2608 (LOOP_VINFO_PEELING_FOR_NITER): Add.
2609 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
2610 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2611 (vect_do_peeling_for_alignment): Re-use precomputed niter
2612 instead of re-emitting it.
2613 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2614 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2615 * tree-vect-loop.c (vect_get_loop_niters): Use
2616 number_of_latch_executions.
2617 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
2618 (vect_analyze_loop_form): Simplify.
2619 (vect_analyze_loop_operations): Move epilogue peeling code ...
2620 (vect_analyze_loop_2): ... here and adjust it to compute
2621 LOOP_VINFO_PEELING_FOR_NITER.
2622 (vect_estimate_min_profitable_iters): Use
2623 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2624 (vect_build_loop_niters): Emit on the preheader.
2625 (vect_generate_tmps_on_preheader): Likewise.
2626 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
2627 of recomputing it. Adjust.
2628
2629 2013-11-21 Richard Biener <rguenther@suse.de>
2630
2631 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
2632 LOC_LINE): Remove wrappers and fix all users.
2633 (struct _loop_vec_info): Remove loop_line_number member.
2634 (LOOP_VINFO_LOC): Remove.
2635 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
2636 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
2637 and LOC_LINE.
2638
2639 2013-11-21 Richard Biener <rguenther@suse.de>
2640
2641 * tree-ssa-forwprop.c (simplify_vce): New function.
2642 (ssa_forward_propagate_and_combine): Call it.
2643
2644 2013-11-21 Richard Biener <rguenther@suse.de>
2645
2646 * tree-vect-loop-manip.c (vect_build_loop_niters,
2647 vect_generate_tmps_on_preheader): Move ...
2648 * tree-vect-loop.c (vect_build_loop_niters,
2649 vect_generate_tmps_on_preheader): ... here and simplify.
2650 (vect_transform_loop): Call them here and pass down results
2651 to consumers.
2652 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
2653 Get niter variables from caller.
2654 (vect_do_peeling_for_alignment): Likewise.
2655 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
2656 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
2657 Adjust prototypes.
2658
2659 2013-11-21 Richard Biener <rguenther@suse.de>
2660
2661 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2662 nb_iterations_upper_bound by one.
2663
2664 2013-11-21 Richard Biener <rguenther@suse.de>
2665
2666 PR tree-optimization/59058
2667 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
2668 (build_size_arg_loc): Apply niter adjustment here.
2669 (generate_memset_builtin): Adjust.
2670 (generate_memcpy_builtin): Likewise.
2671 (classify_partition): Do not use number_of_exit_cond_executions
2672 but record whether niter needs to be adjusted.
2673
2674 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
2675
2676 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
2677 could throw.
2678
2679 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
2680
2681 PR target/53976
2682 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
2683 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
2684 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
2685 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
2686 sh_optimize_sett_clrt pass.o to extra_objs.
2687
2688 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2689
2690 * cfg.c (dump_edge_info): Remove redundant comment.
2691 * cfgcleanup.c (outgoing_edges_match): Reword reference to
2692 EXIT_BLOCK_PTR in comment.
2693 (try_optimize_cfg): Likewise.
2694 * cfgrtl.c (last_bb_in_partition): Likewise.
2695 * cgraph.c (cgraph_node_cannot_return): Likewise.
2696 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2697 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
2698 * ipa-split.c (consider_split): Likewise.
2699 * profile.c (find_spanning_tree): Likewise.
2700 * sched-int.h (common_sched_info_def.add_block): Likewise.
2701 * dominance.c (calc_dfs_tree_nonrec): Reword references in
2702 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
2703 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
2704 in comments to now removed ENTRY_BLOCK_PTR macro.
2705 (tree_forwarder_block_p): Reword reference in comment to
2706 EXIT_BLOCK_PTR.
2707 * tree-inline.c (copy_cfg_body): Reword references in comments to
2708 now removed ENTRY_BLOCK_PTR macro.
2709 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2710 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
2711 a comma to the comment to clarify the meaning.
2712
2713 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
2714
2715 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
2716 Move to gimplify.c.
2717 (free_gimplify_stack): Add prototype.
2718 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
2719 (struct gimplify_ctx): Relocate here.
2720 (gimplify_ctxp): Make static.
2721 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
2722 list of struct gimplify_ctx.
2723 (push_gimplify_context): Add default parameters and allocate a struct
2724 from the pool.
2725 (pop_gimplify_context): Free a struct back to the pool.
2726 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2727 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
2728 use a local 'struct gimplify_ctx'.
2729 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
2730 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2731 Likewise.
2732 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2733 lower_omp_ordered, lower_omp_critical, lower_omp_for,
2734 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
2735 lower_omp_teams, execute_lower_omp): Likewise.
2736 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
2737 * tree-inline.c (optimize_inline_calls): Likewise.
2738
2739 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2740
2741 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
2742 (vsx_extract_<mode>): Likewise.
2743 (*vsx_extract_<mode>_one_le): New LE variant on
2744 *vsx_extract_<mode>_zero.
2745 (vsx_extract_v4sf): Adjust for little endian.
2746
2747 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
2748
2749 PR rtl-optimization/59133
2750 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
2751 new pseudos.
2752 (lra_create_new_reg_with_unique_value): Pass new argument value.
2753 (lra_emit_add, lra_emit_move): Ditto.
2754 * lra-constraints.c (in_class_p): Add check for move for a new insn.
2755 (change_class): Rename to lra_change_class. Move to lra-int.h.
2756 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
2757 change_class.
2758 (process_addr_reg, process_addr): Ditto.
2759 (curr_insn_transform): Ditto. Add check on old pseudo for
2760 optional reload.
2761 * lra-int.h (lra_get_regno_hard_regno): Move below.
2762 (lra_change_class): Renamed change_class from lra.c.
2763
2764 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2765
2766 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
2767 the children of a NULL pointer.
2768
2769 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2770
2771 * lra.c (lra): Set lra_in_progress before check_rtl call.
2772 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2773 adding clobber regs when LRA is running.
2774
2775 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2776
2777 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
2778 restriction for ISA_MIPS32R2.
2779 (ISA_HAS_LXC1_SXC1): New macro.
2780 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
2781 (ISA_HAS_NMADD4_NMSUB4): Likewise.
2782 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
2783 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
2784 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
2785 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
2786 (*<ANYF:storex>_<P:mode>): Likewise.
2787
2788 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2789
2790 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
2791 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
2792 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
2793 * config/mips/mips.md (recip_condition): Remove mode attribute.
2794 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
2795 <recip_condition>.
2796 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
2797
2798 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2799
2800 PR target/59207
2801 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
2802 Make sure neg2_ovf is set before being used.
2803
2804 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
2805
2806 * plugin.def: Add comment about register_callback and
2807 invoke_plugin_callbacks_full.
2808
2809 * plugin.c (register_callback, invoke_plugin_callbacks_full):
2810 Handle PLUGIN_INCLUDE_FILE event.
2811
2812 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2813
2814 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
2815 allow subregs of TDmode in FPRs of smaller size in little-endian.
2816 (rs6000_split_multireg_move): When splitting an access to TDmode
2817 in FPRs, do not use simplify_gen_subreg.
2818
2819 2013-11-20 Joseph Myers <joseph@codesourcery.com>
2820
2821 PR middle-end/21718
2822 * real.c: Remove comment about decimal string conversion and
2823 rounding errors.
2824 (real_from_string): Use MPFR to convert nonzero decimal constant
2825 to REAL_VALUE_TYPE.
2826
2827 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2828
2829 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
2830 endianness of the D registers for the legacy encodings.
2831
2832 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
2833
2834 PR rtl-optimization/54300
2835 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
2836 outputs in a single-set are killed from the value chains.
2837
2838 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2839
2840 * cgraph.h (varpool_node): Add need_bounds_init field.
2841 * lto-cgraph.c (lto_output_varpool_node): Output
2842 need_bounds_init value.
2843 (input_varpool_node): Read need_bounds_init value.
2844 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2845
2846 2013-11-20 Jan Hubicka <jh@suse.cz>
2847
2848 * opts.c (finish_options): Imply -ffat-lto-objects with
2849 -fno-use-linker-plugin.
2850 * common.opt (fuse-linker-plugin): Add var.
2851
2852 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2853
2854 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2855 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2856 (gen_type_die_with_usage): Skip pointer bounds.
2857 (dwarf2out_global_decl): Likewise.
2858
2859 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2860
2861 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
2862 from all insns.
2863
2864 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
2865
2866 PR target/57756
2867 * config/i386/i386.c (ix86_option_override_internal): Add missed
2868 argument prefix for 'ix86_fpmath'.
2869 * config/i386/ssemath.h: Add missed definition of
2870 TARGET_FPMATH_DEFAULT_P macros.
2871
2872 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2873 Mike Stump <mikestump@comcast.net>
2874 Richard Sandiford <rdsandiford@googlemail.com>
2875
2876 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
2877 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2878 tree_fits_shwi_p or tree_fits_uhwi_p.
2879 * builtins.c (fold_builtin_powi): Likewise.
2880 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
2881 Likewise.
2882 * dbxout.c (dbxout_symbol): Likewise.
2883 * expr.c (expand_expr_real_1): Likewise.
2884 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
2885 (fold_binary_loc): Likewise.
2886 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
2887 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2888 * omp-low.c (lower_omp_for_lastprivate): Likewise.
2889 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2890 * stor-layout.c (compute_record_mode): Likewise.
2891 * tree-cfg.c (verify_expr): Likewise.
2892 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2893 * tree-pretty-print.c (dump_array_domain): Likewise.
2894 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
2895 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2896 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
2897 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2898 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2899 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
2900 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2901 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
2902 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
2903 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
2904 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
2905 (create_variable_info_for_1): Likewise.
2906 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2907 (vect_verify_datarefs_alignment): Likewise.
2908 (vect_analyze_data_ref_accesses): Likewise.
2909 (vect_prune_runtime_alias_test_list): Likewise.
2910 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
2911
2912 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2913
2914 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2915 overflow. Use tree_to_shwi.
2916
2917 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2918
2919 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2920 HOST_WIDE_INTs when folding (x >> c) << c.
2921
2922 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2923 Dominik Vogt <vogt@linux.vnet.ibm.com>
2924
2925 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2926 int comparisons with an out of range condition code.
2927 (s390_optimize_nonescaping_tx): Skip empty BBs.
2928 Generate the new tbegin RTX when removing the FPR clobbers (with
2929 two SETs).
2930 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
2931 result before doing the retry calculations.
2932 (s390_init_builtins): Make tbegin "returns_twice" and tabort
2933 "noreturn".
2934 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2935 the TDB setting part of an tbegin.
2936 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2937 ("tx_assist"): Set unused argument to an immediate zero instead of
2938 loading zero into a GPR and pass it as argument.
2939 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2940 Remove inline and related attributes.
2941 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2942 (__TM_is_illegal, __TM_is_footprint_exceeded)
2943 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2944
2945 2013-11-20 Richard Biener <rguenther@suse.de>
2946
2947 PR lto/59035
2948 * lto-opts.c (lto_write_options): Write defaults only if
2949 they were not explicitely specified. Also write
2950 -ffp-contract default.
2951 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2952 conservatively.
2953 (run_gcc): Pass through -ffp-contract.
2954
2955 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2956
2957 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2958
2959 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2960
2961 * gcc/config/aarch64/aarch64-builtins.c
2962 (aarch64_simd_itype): Remove.
2963 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2964 (VAR1): Use qualifiers.
2965 (aarch64_build_scalar_type): New.
2966 (aarch64_build_vector_type): Likewise.
2967 (aarch64_build_type): Likewise.
2968 (aarch64_init_simd_builtins): Refactor, remove special cases,
2969 consolidate main loop.
2970 (aarch64_simd_expand_args): Likewise.
2971
2972 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2973
2974 PR c/53001
2975 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2976
2977 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
2978
2979 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2980
2981 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2982
2983 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2984 to "vec<>" instances.
2985 (build_pretty_printer): Register the vec<>* prettyprinter.
2986
2987 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2988
2989 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2990 (GdbSubprinter.handles_type): New.
2991 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2992 (GdbSubprinterRegex): New subclass of GdbSubprinter.
2993 (GdbPrettyPrinters.add_printer): Remove in favor of...
2994 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2995 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2996 (GdbPrettyPrinters.__call__): Update search for subprinter
2997 to use handles_type method.
2998 (build_pretty_printer): Update registration of subprinters to
2999 use the new API above, supporting multiple spelling of each type,
3000 and allowing for future regex-based subprinters.
3001
3002 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3003
3004 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
3005 V16QI vector splat case for little endian.
3006
3007 2013-11-19 Jeff Law <law@redhat.com>
3008
3009 * tree-ssa-threadedge.c (thread_across_edge): After threading
3010 through a joiner, allow threading a normal block requiring duplication.
3011
3012 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
3013 jump threading requests that would muck up the loop structures.
3014
3015 * tree-ssa-threadupdate.c: Fix trailing whitespace.
3016 * tree-ssa-threadupdate.h: Likewise.
3017
3018 2013-11-19 Mike Stump <mikestump@comcast.net>
3019
3020 * gdbinit.in: Add pmz to print out mpz values.
3021
3022 2013-11-20 Jan Hubicka <jh@suse.cz>
3023
3024 * common.opt (ffat-lto-objects): Disable by default.
3025 * doc/invoke.texi (fat-lto-objects): Update documentation.
3026 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
3027
3028 2013-11-19 Martin Jambor <mjambor@suse.cz>
3029
3030 PR rtl-optimization/59099
3031 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
3032 here.
3033 (ira): Move init_reg_equiv and call to
3034 split_live_ranges_for_shrink_wrap up, remove analyses around call
3035 to find_moveable_pseudos.
3036
3037 2013-11-20 Alan Modra <amodra@gmail.com>
3038
3039 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
3040 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
3041 to strict alignment on older processors when little-endian.
3042 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
3043 for ELFv2.
3044
3045 2013-11-19 Teresa Johnson <tejohnson@google.com>
3046
3047 * common/config/i386/i386-common.c: Enable
3048 -freorder-blocks-and-partition at -O2 and up for x86.
3049 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
3050 * opts.c (finish_options): Only warn if
3051 -freorder-blocks-and-partition was set on command line.
3052
3053 2013-11-19 Sriraman Tallam <tmsriram@google.com>
3054
3055 * final.c (final_scan_insn): Emit a label for the split
3056 cold function part. Label name is formed by suffixing
3057 the original function name with "cold".
3058
3059 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3060
3061 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
3062 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
3063 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
3064 (EXIT_BLOCK_PTR_FOR_FN): ...this.
3065 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
3066 cfun be explicit.
3067 (EXIT_BLOCK_PTR): Likewise.
3068 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
3069 (FOR_ALL_BB_FN): Update for renaming of
3070 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
3071
3072 * cfg.c (init_flow): Likewise.
3073 (check_bb_profile): Likewise.
3074 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
3075 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
3076 * cfghooks.c (account_profile_record): Likewise.
3077 * cfgloop.c (init_loops_structure): Likewise.
3078 * cgraphbuild.c (record_eh_tables): Likewise.
3079 (compute_call_stmt_bb_frequency): Likewise.
3080 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
3081 * lto-streamer-in.c (input_cfg): Likewise.
3082 * predict.c (maybe_hot_frequency_p): Likewise.
3083 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3084 * tree-inline.c (initialize_cfun): Likewise.
3085 (copy_cfg_body): Likewise.
3086 (copy_body): Likewise.
3087 (tree_function_versioning): Likewise.
3088
3089 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
3090 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3091 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
3092 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
3093 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3094 (connect_traces): Likewise.
3095 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
3096 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
3097 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
3098 macro.
3099 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
3100 EXIT_BLOCK_PTR.
3101 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
3102 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
3103 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
3104 (rotate_loop): Likewise.
3105 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
3106 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
3107 EXIT_BLOCK_PTR.
3108 (alloc_aux_for_edges): Likewise.
3109 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
3110 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
3111 EXIT_BLOCK_PTR.
3112 (compact_blocks): Likewise.
3113 (clear_edges): Likewise.
3114 * cfganal.c (single_pred_before_succ_order): Remove usage of
3115 ENTRY_BLOCK_PTR macro.
3116 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
3117 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
3118 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
3119 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
3120 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
3121 EXIT_BLOCK_PTR.
3122 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
3123 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
3124 EXIT_BLOCK_PTR.
3125 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
3126 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
3127 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
3128 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3129 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
3130 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
3131 EXIT_BLOCK_PTR.
3132 (print_edge_list): Likewise.
3133 (create_edge_list): Likewise.
3134 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
3135 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
3136 EXIT_BLOCK_PTR.
3137 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
3138 macro.
3139 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
3140 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3141 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
3142 (try_optimize_cfg): Likewise.
3143 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
3144 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
3145 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
3146 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
3147 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
3148 (try_forward_edges): Likewise.
3149 (try_simplify_condjump): Likewise.
3150 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
3151 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3152 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
3153 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
3154 EXIT_BLOCK_PTR.
3155 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
3156 (expand_gimple_tailcall): Likewise.
3157 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
3158 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3159 (tidy_fallthru_edges): Likewise.
3160 (verify_flow_info): Likewise.
3161 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
3162 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
3163 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
3164 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
3165 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
3166 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
3167 (get_loop_body_in_dom_order): Likewise.
3168 (get_loop_body): Likewise.
3169 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
3170 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3171 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
3172 macro.
3173 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
3174 (fix_bb_placement): Likewise.
3175 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
3176 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3177 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
3178 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
3179 EXIT_BLOCK_PTR.
3180 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
3181 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
3182 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3183 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
3184 macro.
3185 (fixup_fallthru_exit_predecessor): Remove uses of macros:
3186 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3187 (fixup_reorder_chain): Likewise.
3188 (relink_block_chain): Likewise.
3189 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
3190 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
3191 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
3192 (force_one_exit_fallthru): Likewise.
3193 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
3194 EXIT_BLOCK_PTR.
3195 (rtl_verify_edges): Likewise.
3196 (commit_edge_insertions): Likewise.
3197 (commit_one_edge_insertion): Likewise.
3198 (rtl_split_edge): Likewise.
3199 (force_nonfallthru_and_redirect): Likewise.
3200 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
3201 (skip_insns_after_block): Likewise.
3202 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
3203 EXIT_BLOCK_PTR.
3204 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
3205 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
3206 EXIT_BLOCK_PTR.
3207 (contains_no_active_insn_p): Likewise.
3208 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3209 (entry_of_function): Likewise.
3210 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
3211 (fixup_new_cold_bb): Likewise.
3212 (patch_jump_insn): Likewise.
3213 (try_redirect_by_replacing_jump): Likewise.
3214 (block_label): Likewise.
3215 (could_fall_through): Likewise.
3216 (can_fallthru): Likewise.
3217 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
3218 ENTRY_BLOCK_PTR macro.
3219 (rebuild_cgraph_edges): Likewise.
3220 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
3221 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3222 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
3223 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
3224 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
3225 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
3226 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
3227 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
3228 macro.
3229 (reg_nonzero_bits_for_combine): Likewise.
3230 (set_nonzero_bits_and_sign_copies): Likewise.
3231 (combine_instructions): Likewise.
3232 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
3233 EXIT_BLOCK_PTR.
3234 (bypass_conditional_jumps): Likewise.
3235 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
3236 (find_implicit_sets): Likewise.
3237 (cprop_jump): Likewise.
3238 * cse.c (cse_cc_succs): Likewise.
3239 (cse_find_path): Likewise.
3240 * df-problems.c (df_lr_confluence_0): Likewise.
3241 * df-scan.c (df_entry_block_defs_collect): Remove usage of
3242 ENTRY_BLOCK_PTR macro.
3243 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
3244 * dominance.c (iterate_fix_dominators): Remove usage of
3245 ENTRY_BLOCK_PTR macro.
3246 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3247 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
3248 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
3249 EXIT_BLOCK_PTR.
3250 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
3251 macro.
3252 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
3253 EXIT_BLOCK_PTR.
3254 * domwalk.c (cmp_bb_postorder): Likewise.
3255 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
3256 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
3257 macro.
3258 (sjlj_emit_function_enter): Likewise.
3259 * final.c (compute_alignments): Likewise.
3260 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
3261 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3262 (reposition_prologue_and_epilogue_notes): Remove usage of
3263 EXIT_BLOCK_PTR macro.
3264 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
3265 EXIT_BLOCK_PTR.
3266 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
3267 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
3268 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
3269 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
3270 (compute_code_hoist_vbeinout): Likewise.
3271 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
3272 (pre_expr_reaches_here_p_work): Likewise.
3273 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
3274 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
3275 EXIT_BLOCK_PTR.
3276 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
3277 ENTRY_BLOCK_PTR macro.
3278 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
3279 macro.
3280 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
3281 ENTRY_BLOCK_PTR macro.
3282 * graphite-scop-detection.c (build_scops): Likewise.
3283 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
3284 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
3285 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
3286 macro.
3287 (unlink_bb_notes): Likewise.
3288 (create_check_block_twin): Likewise.
3289 (init_before_recovery): Likewise.
3290 (sched_extend_bb): Likewise.
3291 (priority): Likewise.
3292 * hw-doloop.c (reorder_loops): Likewise.
3293 (discover_loop): Likewise.
3294 * ifcvt.c (dead_or_predicable): Remove uses of macros:
3295 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3296 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
3297 (block_has_only_trap): Likewise.
3298 (cond_exec_find_if_block): Likewise.
3299 (merge_if_block): Likewise.
3300 * ipa-inline-analysis.c (param_change_prob): Remove usage of
3301 ENTRY_BLOCK_PTR macro.
3302 (record_modified): Likewise.
3303 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
3304 EXIT_BLOCK_PTR macro.
3305 (local_pure_const): Likewise.
3306 * ipa-split.c (split_function): Remove uses of macros:
3307 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3308 (find_split_points): Likewise.
3309 (consider_split): Likewise.
3310 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
3311 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
3312 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
3313 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
3314 * ira-emit.c (entered_from_non_parent_p): Remove usage of
3315 ENTRY_BLOCK_PTR macro.
3316 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
3317 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
3318 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
3319 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3320 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
3321 macro.
3322 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
3323 EXIT_BLOCK_PTR.
3324 (compute_farthest): Likewise.
3325 (compute_available): Likewise.
3326 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
3327 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
3328 EXIT_BLOCK_PTR.
3329 (compute_earliest): Likewise.
3330 (compute_antinout_edge): Likewise.
3331 * loop-iv.c (simplify_using_initial_values): Remove usage of
3332 ENTRY_BLOCK_PTR macro.
3333 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
3334 macro.
3335 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
3336 macro.
3337 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
3338 macro.
3339 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
3340 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3341 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
3342 macro.
3343 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
3344 macro.
3345 * lto-streamer-out.c (output_cfg): Likewise.
3346 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
3347 EXIT_BLOCK_PTR.
3348 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
3349 * mode-switching.c (optimize_mode_switching): Likewise.
3350 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
3351 * modulo-sched.c (rest_of_handle_sms): Likewise.
3352 (canon_loop): Likewise.
3353 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
3354 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
3355 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3356 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
3357 macro.
3358 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
3359 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
3360 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
3361 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
3362 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
3363 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
3364 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
3365 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
3366 (gimple_predict_edge): Likewise.
3367 (probably_never_executed): Likewise.
3368 * profile.c (find_spanning_tree): Remove uses of macros:
3369 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3370 (branch_prob): Likewise.
3371 (compute_branch_probabilities): Likewise.
3372 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
3373 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
3374 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
3375 (set_bb_counts): Likewise.
3376 (correct_negative_edge_counts): Likewise.
3377 (get_exec_counts): Likewise.
3378 (instrument_values): Likewise.
3379 (instrument_edges): Likewise.
3380 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
3381 EXIT_BLOCK_PTR.
3382 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
3383 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
3384 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3385 (reg_to_stack): Likewise.
3386 * regs.h (REG_N_SETS): Likewise.
3387 * reload.c (find_dummy_reload): Likewise.
3388 (combine_reloads): Likewise.
3389 (push_reload): Likewise.
3390 * reload1.c (has_nonexceptional_receiver): Remove usage of
3391 EXIT_BLOCK_PTR macro.
3392 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
3393 macro.
3394 (find_basic_block): Likewise.
3395 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
3396 (schedule_ebbs): Likewise.
3397 * sched-int.h (sel_sched_p): Likewise.
3398 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
3399 macro.
3400 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
3401 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
3402 EXIT_BLOCK_PTR.
3403 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
3404 (extend_rgns): Likewise.
3405 (find_single_block_region): Likewise.
3406 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
3407 ENTRY_BLOCK_PTR macro.
3408 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
3409 (sel_create_recovery_block): Likewise.
3410 (bb_ends_ebb_p): Likewise.
3411 (sel_bb_end): Likewise.
3412 (sel_bb_head): Likewise.
3413 (free_lv_sets): Likewise.
3414 (init_lv_sets): Likewise.
3415 (tidy_control_flow): Likewise.
3416 (maybe_tidy_empty_bb): Likewise.
3417 * sel-sched-ir.h (_succ_iter_cond): Likewise.
3418 (_succ_iter_start): Likewise.
3419 (sel_bb_empty_or_nop_p): Likewise.
3420 (get_loop_exit_edges_unique_dests): Likewise.
3421 (inner_loop_header_p): Likewise.
3422 * sel-sched.c (create_block_for_bookkeeping): Likewise.
3423 (find_block_for_bookkeeping): Likewise.
3424 * store-motion.c (remove_reachable_equiv_notes): Likewise.
3425 (insert_store): Likewise.
3426 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
3427 ENTRY_BLOCK_PTR macro.
3428 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
3429 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
3430 (gate_tm_init): Likewise.
3431 (tm_region_init): Likewise.
3432 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
3433 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3434 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
3435 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
3436 EXIT_BLOCK_PTR.
3437 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
3438 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
3439 EXIT_BLOCK_PTR.
3440 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
3441 macro.
3442 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
3443 EXIT_BLOCK_PTR.
3444 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
3445 macro.
3446 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3447 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
3448 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
3449 (build_gimple_cfg): Likewise.
3450 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
3451 (gimple_can_merge_blocks_p): Likewise.
3452 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
3453 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3454 * tree-complex.c (update_parameter_components): Remove usage of
3455 ENTRY_BLOCK_PTR macro.
3456 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
3457 EXIT_BLOCK_PTR macro.
3458 * tree-inline.c (tree_function_versioning): Remove uses of macros:
3459 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3460 (delete_unreachable_blocks_update_callgraph): Likewise.
3461 (initialize_cfun): Likewise.
3462 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
3463 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
3464 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
3465 * tree-into-ssa.c (update_ssa): Likewise.
3466 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
3467 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
3468 (rewrite_into_ssa): Likewise.
3469 (rewrite_debug_stmt_uses): Likewise.
3470 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
3471 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3472 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
3473 ENTRY_BLOCK_PTR macro.
3474 * tree-scalar-evolution.h (block_before_loop): Likewise.
3475 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
3476 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
3477 EXIT_BLOCK_PTR.
3478 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
3479 macro.
3480 (propagate_dereference_distances): Remove uses of macros:
3481 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3482 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
3483 macro.
3484 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
3485 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
3486 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
3487 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
3488 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3489 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
3490 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
3491 (mark_control_dependent_edges_necessary): Remove uses of macros:
3492 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3493 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
3494 ENTRY_BLOCK_PTR macro.
3495 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
3496 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
3497 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3498 (calculate_live_on_exit): Likewise.
3499 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3500 (loe_visit_block): Likewise.
3501 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
3502 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3503 (live_on_entry): Likewise.
3504 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
3505 EXIT_BLOCK_PTR macro.
3506 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
3507 ENTRY_BLOCK_PTR macro.
3508 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
3509 (bound_difference): Likewise.
3510 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
3511 of EXIT_BLOCK_PTR macro.
3512 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
3513 of ENTRY_BLOCK_PTR macro.
3514 * tree-ssa-math-opts.c (register_division_in): Likewise.
3515 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
3516 * tree-ssa-pre.c (compute_avail): Likewise.
3517 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
3518 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
3519 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
3520 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
3521 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
3522 EXIT_BLOCK_PTR.
3523 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
3524 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
3525 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3526 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
3527 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
3528 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
3529 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
3530 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
3531 (find_pdom): Likewise.
3532 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
3533 * tree-stdarg.c (reachable_at_most_once): Likewise.
3534 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
3535 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3536 (eliminate_tail_call): Likewise.
3537 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
3538 macro.
3539 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
3540 * var-tracking.c (vt_initialize): Remove uses of macros:
3541 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3542 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
3543 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
3544 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
3545 EXIT_BLOCK_PTR.
3546 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
3547 macro.
3548 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3549 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
3550 of EXIT_BLOCK_PTR macro.
3551 * config/arm/arm.c (require_pic_register): Remove usage of
3552 ENTRY_BLOCK_PTR macro.
3553 (arm_r3_live_at_start_p): Likewise.
3554 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
3555 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3556 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
3557 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
3558 ENTRY_BLOCK_PTR macro.
3559 * config/i386/i386.c (ix86_count_insn): Likewise.
3560 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
3561 (ix86_pad_short_function): Likewise.
3562 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
3563 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
3564 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
3565 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
3566 (ix86_expand_epilogue): Likewise.
3567 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
3568 (ia64_expand_prologue): Likewise.
3569
3570 2013-11-19 Catherine Moore <clm@codesourcery.com>
3571
3572 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
3573 * config/mips/mips.opt (mfix-rm7000): New option.
3574 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
3575 * config/mips/mips.c (mips_reorg_process_insns): Disable
3576 noreorder for TARGET_FIX_RM7000.
3577
3578 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
3579
3580 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
3581
3582 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3583
3584 * config/arm/arm.c (arm_new_rtx_costs):
3585 Handle narrow mode add-shifts properly.
3586 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
3587 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
3588 Declare extern.
3589
3590 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
3591
3592 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
3593
3594 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3595
3596 * config/rs6000/vector.md ("mov<mode>"): Do not call
3597 rs6000_emit_le_vsx_move to move into or out of GPRs.
3598 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
3599 source and destination are not GPR hard regs.
3600
3601 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3602
3603 * basic-block.h (n_edges_for_function): Rename macro to...
3604 (n_edges_for_fn): ...this.
3605 (n_edges): Eliminate macro as work towards making uses of
3606 cfun be explicit.
3607
3608 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
3609 to "n_edges_for_fn".
3610
3611 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
3612 (clear_edges): Likewise.
3613 (free_edge): Likewise.
3614 * cfghooks.c (dump_flow_info): Likewise.
3615 * cprop.c (is_too_expensive): Likewise.
3616 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3617 * gcse.c (is_too_expensive): Likewise.
3618 (prune_insertions_deletions): Likewise.
3619 * mcf.c (create_fixup_graph): Likewise.
3620 * sched-rgn.c (haifa_find_rgns): Likewise.
3621 * tree-cfg.c (gimple_dump_cfg): Likewise.
3622 * var-tracking.c (variable_tracking_main_1): Likewise.
3623
3624 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3625
3626 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
3627 length lines.
3628
3629 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3630
3631 * config/aarch64/aarch64.md
3632 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
3633
3634 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3635
3636 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
3637
3638 2013-11-19 Joseph Myers <joseph@codesourcery.com>
3639
3640 * varasm.c (align_variable): Give error instead of warning for
3641 unsupported alignment.
3642 (assemble_noswitch_variable): Likewise.
3643
3644 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3645
3646 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
3647 cb_file_change.
3648
3649 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
3650
3651 * loop-doloop.c (doloop_optimize_loops): Remove unused
3652 loop iterator argument from FOR_EACH_LOOP.
3653
3654 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3655
3656 Convert gimple types from a union to C++ inheritance.
3657 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
3658 * coretypes.h (union gimple_statement_d): Remove declaration.
3659 (gimple): Convert from being a "union gimple_statement_d *"
3660 to a "struct gimple_statement_base *".
3661 (const_gimple): Likewise (with "const").
3662 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
3663 (ggc_alloc_cleared_gimple_statement_stat): ...this.
3664 * gimple-pretty-print.c (debug): Change parameter from a
3665 "gimple_statement_d &" to a "gimple_statement_base &".
3666 (debug): Change parameter from a "gimple_statement_d *" to
3667 a "gimple_statement_base *".
3668 * gimple-pretty-print.h (debug): Update declarations as above.
3669 * gimple.c (gimple_alloc_stat): Update for renaming of
3670 ggc_alloc_cleared_gimple_statement_d_stat to
3671 ggc_alloc_cleared_gimple_statement_stat.
3672 * gimple.h: Include "is-a.h" for use by is_a_helper
3673 specializations in followup autogenerated patch.
3674 (struct gimple statement_base): Make this type usable as a base
3675 class by adding "desc", "tag" and "variable_size" to GTY, thus
3676 using opting-in to gengtype's support for simple inheritance.
3677 (gimple_statement_with_ops_base): Convert to a subclass of
3678 gimple_statement_base, dropping initial "gsbase" field. Note that
3679 this type is abstract, with no GSS_ value, and thus no GTY tag value.
3680 (gimple_statement_with_ops): Convert to a subclass of
3681 gimple_statement_with_ops_base, dropping initial "opbase" field.
3682 Add tag value to GTY marking. Update marking of op field to
3683 reflect how num_ops field is accessed via inheritance.
3684 (gimple_statement_with_memory_ops_base): Convert to a subclass of
3685 gimple_statement_with_ops_base, dropping initial "opbase" field.
3686 Add tag value to GTY marking.
3687 (gimple_statement_with_memory_ops): Convert to a subclass of
3688 public gimple_statement_with_memory_ops_base, dropping initial
3689 "membase" field. Add tag value to GTY marking. Update marking
3690 of op field to reflect how num_ops field is accessed via inheritance.
3691 (gimple_statement_call): Analogous changes that also update the
3692 marking of the "u" union.
3693 (gimple_statement_omp): Convert to a subclass of
3694 gimple_statement_base, dropping initial "gsbase" field, adding
3695 tag value to GTY marking.
3696 (gimple_statement_bind): Likewise.
3697 (gimple_statement_catch): Likewise.
3698 (gimple_statement_eh_filter): Likewise.
3699 (gimple_statement_eh_else): Likewise.
3700 (gimple_statement_eh_mnt): Likewise.
3701 (gimple_statement_phi): Likewise.
3702 (gimple_statement_eh_ctrl): Likewise.
3703 (gimple_statement_try): Likewise.
3704 (gimple_statement_wce): Likewise.
3705 (gimple_statement_asm): Convert to a subclass of
3706 gimple_statement_with_memory_ops_base, dropping initial
3707 "membase" field, adding tag value to GTY marking, and updating
3708 marking of op field.
3709 (gimple_statement_omp_critical): Convert to a subclass of
3710 gimple_statement_omp, dropping initial "omp" field, adding tag
3711 value to GTY marking.
3712 (gimple_statement_omp_for): Likewise.
3713 (gimple_statement_omp_parallel): Likewise.
3714 (gimple_statement_omp_task): Convert to a subclass of
3715 gimple_statement_omp_parallel, dropping initial "par" field,
3716 adding tag value to GTY marking.
3717 (gimple_statement_omp_sections): Convert to a subclass of
3718 gimple_statement_omp, dropping initial "omp" field, adding
3719 tag value to GTY marking.
3720 (gimple_statement_omp_continue): Convert to a subclass of
3721 gimple_statement_base, dropping initial "gsbase" field, adding
3722 tag value to GTY marking.
3723 (gimple_statement_omp_single): Convert to a subclass of
3724 gimple_statement_omp, dropping initial "omp" field, adding
3725 tag value to GTY marking.
3726 (gimple_statement_omp_atomic_load): Convert to a subclass of
3727 gimple_statement_base, dropping initial "gsbase" field, adding
3728 tag value to GTY marking.
3729 (gimple_statement_omp_atomic_store): Convert to a subclass of
3730 gimple_statement_base, dropping initial "gsbase" field, adding
3731 tag value to GTY marking.
3732 (gimple_statement_transaction): Convert to a subclass of
3733 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
3734 field, adding tag value to GTY marking.
3735 (union gimple_statement_d): Remove.
3736 * system.h (CONST_CAST_GIMPLE): Update to use
3737 "struct gimple_statement_base *" rather than
3738 "union gimple_statement_d *".
3739 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
3740 gimple_statement_d to gimple_statement_base.
3741
3742 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
3743 (gimple_set_use_ops): Port from union to usage of as_a.
3744 (gimple_set_vuse): Likewise.
3745 (gimple_set_vdef): Likewise.
3746 (gimple_call_internal_fn): Port from union to a static_cast,
3747 given that the type has already been asserted.
3748 (gimple_omp_body_ptr): Port from unchecked union usage to
3749 a static_cast.
3750 (gimple_omp_set_body): Likewise.
3751
3752 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
3753 gimple types to a true class hierarchy.
3754 (update_call_edge_frequencies): Likewise.
3755 (gsi_insert_seq_nodes_before): Likewise.
3756 (gsi_insert_seq_nodes_after): Likewise.
3757 (gsi_split_seq_after): Likewise.
3758 (gsi_set_stmt): Likewise.
3759 (gsi_split_seq_before): Likewise.
3760 (gsi_remove): Likewise.
3761 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
3762 (gsi_next): Likewise.
3763 (gsi_prev): Likewise.
3764 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
3765 * gimple-ssa.h (gimple_vuse_op): Likewise.
3766 (gimple_vdef_op): Likewise.
3767 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
3768 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3769 * gimple.c (gimple_set_code): Likewise.
3770 (gimple_alloc_stat): Likewise.
3771 (gimple_set_subcode): Likewise.
3772 (gimple_build_call_internal_1): Likewise.
3773 (gimple_check_failed): Likewise.
3774 (gimple_call_flags): Likewise.
3775 (gimple_set_bb): Likewise.
3776 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
3777 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
3778 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
3779 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
3780 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
3781 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
3782 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
3783 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
3784 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
3785 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
3786 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
3787 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
3788 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
3789 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
3790 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
3791 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
3792 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
3793 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
3794 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
3795 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
3796 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
3797 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
3798 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
3799 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
3800 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
3801 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
3802 Likewise.
3803 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
3804 Likewise.
3805 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
3806 Likewise.
3807 (is_a_helper <const gimple_statement_omp_atomic_store>
3808 (const_gimple)): Likewise.
3809 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
3810 Likewise.
3811 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
3812 Likewise.
3813 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
3814 Likewise.
3815 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
3816 Likewise.
3817 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
3818 Likewise.
3819 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
3820 Likewise.
3821 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
3822 Likewise.
3823 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
3824 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
3825 Likewise.
3826 (gimple_seq_last): Update for conversion of gimple types to a true
3827 class hierarchy.
3828 (gimple_seq_set_last): Likewise.
3829 (gimple_code): Likewise.
3830 (gimple_bb): Likewise.
3831 (gimple_block): Likewise.
3832 (gimple_set_block): Likewise.
3833 (gimple_location): Likewise.
3834 (gimple_location_ptr): Likewise.
3835 (gimple_set_location): Likewise.
3836 (gimple_no_warning_p): Likewise.
3837 (gimple_set_no_warning): Likewise.
3838 (gimple_set_visited): Likewise.
3839 (gimple_visited_p): Likewise.
3840 (gimple_set_plf): Likewise.
3841 (gimple_plf): Likewise.
3842 (gimple_set_uid): Likewise.
3843 (gimple_uid): Likewise.
3844 (gimple_init_singleton): Likewise.
3845 (gimple_modified_p): Likewise.
3846 (gimple_set_modified): Likewise.
3847 (gimple_expr_code): Likewise.
3848 (gimple_has_volatile_ops): Likewise.
3849 (gimple_set_has_volatile_ops): Likewise.
3850 (gimple_omp_subcode): Likewise.
3851 (gimple_omp_set_subcode): Likewise.
3852 (gimple_omp_return_set_nowait): Likewise.
3853 (gimple_omp_section_set_last): Likewise.
3854 (gimple_omp_parallel_set_combined_p): Likewise.
3855 (gimple_omp_atomic_set_need_value): Likewise.
3856 (gimple_omp_atomic_set_seq_cst): Likewise.
3857 (gimple_num_ops): Likewise.
3858 (gimple_set_num_ops): Likewise.
3859 (gimple_assign_nontemporal_move_p): Likewise.
3860 (gimple_assign_set_nontemporal_move): Likewise.
3861 (gimple_assign_rhs_code): Likewise.
3862 (gimple_assign_set_rhs_code): Likewise.
3863 (gimple_call_internal_p): Likewise.
3864 (gimple_call_with_bounds_p): Likewise.
3865 (gimple_call_set_with_bounds): Likewise.
3866 (gimple_call_set_tail): Likewise.
3867 (gimple_call_tail_p): Likewise.
3868 (gimple_call_set_return_slot_opt): Likewise.
3869 (gimple_call_return_slot_opt_p): Likewise.
3870 (gimple_call_set_from_thunk): Likewise.
3871 (gimple_call_from_thunk_p): Likewise.
3872 (gimple_call_set_va_arg_pack): Likewise.
3873 (gimple_call_va_arg_pack_p): Likewise.
3874 (gimple_call_set_nothrow): Likewise.
3875 (gimple_call_set_alloca_for_var): Likewise.
3876 (gimple_call_alloca_for_var_p): Likewise.
3877 (gimple_call_copy_flags): Likewise.
3878 (gimple_cond_code): Likewise.
3879 (gimple_cond_set_code): Likewise.
3880 (gimple_cond_make_false): Likewise.
3881 (gimple_cond_make_true): Likewise.
3882 (gimple_asm_volatile_p): Likewise.
3883 (gimple_asm_set_volatile): Likewise.
3884 (gimple_asm_set_input): Likewise.
3885 (gimple_asm_input_p): Likewise.
3886 (gimple_try_kind): Likewise.
3887 (gimple_try_set_kind): Likewise.
3888 (gimple_try_catch_is_cleanup): Likewise.
3889 (gimple_try_set_catch_is_cleanup): Likewise.
3890 (gimple_wce_cleanup_eh_only): Likewise.
3891 (gimple_wce_set_cleanup_eh_only): Likewise.
3892 (gimple_debug_bind_p): Likewise.
3893 (gimple_debug_source_bind_p): Likewise.
3894 (gimple_omp_for_set_kind): Likewise.
3895 (gimple_omp_for_set_combined_p): Likewise.
3896 (gimple_omp_for_set_combined_into_p): Likewise.
3897 (gimple_omp_target_set_kind): Likewise.
3898 (gimple_transaction_subcode): Likewise.
3899 (gimple_transaction_set_subcode): Likewise.
3900 (gimple_predict_predictor): Likewise.
3901 (gimple_predict_set_predictor): Likewise.
3902 (gimple_predict_outcome): Likewise.
3903 (gimple_predict_set_outcome): Likewise.
3904 (gimple_transaction_set_label): Likewise.
3905 (gimple_transaction_set_body): Likewise.
3906 (gimple_transaction_label_ptr): Likewise.
3907 (gimple_transaction_label): Likewise.
3908 (gimple_transaction_body_ptr): Likewise.
3909 (gimple_omp_continue_set_control_use): Likewise.
3910 (gimple_omp_continue_control_use_ptr): Likewise.
3911 (gimple_omp_continue_control_use): Likewise.
3912 (gimple_omp_continue_set_control_def): Likewise.
3913 (gimple_omp_continue_control_def_ptr): Likewise.
3914 (gimple_omp_continue_control_def): Likewise.
3915 (gimple_omp_atomic_load_rhs_ptr): Likewise.
3916 (gimple_omp_atomic_load_rhs): Likewise.
3917 (gimple_omp_atomic_load_set_rhs): Likewise.
3918 (gimple_omp_atomic_load_lhs_ptr): Likewise.
3919 (gimple_omp_atomic_load_lhs): Likewise.
3920 (gimple_omp_atomic_load_set_lhs): Likewise.
3921 (gimple_omp_atomic_store_val_ptr): Likewise.
3922 (gimple_omp_atomic_store_val): Likewise.
3923 (gimple_omp_atomic_store_set_val): Likewise.
3924 (gimple_omp_for_cond): Likewise.
3925 (gimple_omp_for_set_cond): Likewise.
3926 (gimple_omp_sections_set_control): Likewise.
3927 (gimple_omp_sections_control_ptr): Likewise.
3928 (gimple_omp_sections_control): Likewise.
3929 (gimple_omp_sections_set_clauses): Likewise.
3930 (gimple_omp_sections_clauses_ptr): Likewise.
3931 (gimple_omp_sections_clauses): Likewise.
3932 (gimple_omp_teams_set_clauses): Likewise.
3933 (gimple_omp_teams_clauses_ptr): Likewise.
3934 (gimple_omp_teams_clauses): Likewise.
3935 (gimple_omp_target_set_data_arg): Likewise.
3936 (gimple_omp_target_data_arg_ptr): Likewise.
3937 (gimple_omp_target_data_arg): Likewise.
3938 (gimple_omp_target_set_child_fn): Likewise.
3939 (gimple_omp_target_child_fn_ptr): Likewise.
3940 (gimple_omp_target_child_fn): Likewise.
3941 (gimple_omp_target_set_clauses): Likewise.
3942 (gimple_omp_target_clauses_ptr): Likewise.
3943 (gimple_omp_target_clauses): Likewise.
3944 (gimple_omp_single_set_clauses): Likewise.
3945 (gimple_omp_single_clauses_ptr): Likewise.
3946 (gimple_omp_single_clauses): Likewise.
3947 (gimple_omp_task_set_arg_align): Likewise.
3948 (gimple_omp_task_arg_align_ptr): Likewise.
3949 (gimple_omp_task_arg_align): Likewise.
3950 (gimple_omp_task_set_arg_size): Likewise.
3951 (gimple_omp_task_arg_size_ptr): Likewise.
3952 (gimple_omp_task_arg_size): Likewise.
3953 (gimple_omp_task_set_copy_fn): Likewise.
3954 (gimple_omp_task_copy_fn_ptr): Likewise.
3955 (gimple_omp_task_copy_fn): Likewise.
3956 (gimple_omp_task_set_data_arg): Likewise.
3957 (gimple_omp_task_data_arg_ptr): Likewise.
3958 (gimple_omp_task_data_arg): Likewise.
3959 (gimple_omp_task_set_child_fn): Likewise.
3960 (gimple_omp_task_child_fn_ptr): Likewise.
3961 (gimple_omp_task_child_fn): Likewise.
3962 (gimple_omp_task_set_clauses): Likewise.
3963 (gimple_omp_task_clauses_ptr): Likewise.
3964 (gimple_omp_task_clauses): Likewise.
3965 (gimple_omp_parallel_set_data_arg): Likewise.
3966 (gimple_omp_parallel_data_arg_ptr): Likewise.
3967 (gimple_omp_parallel_data_arg): Likewise.
3968 (gimple_omp_parallel_set_child_fn): Likewise.
3969 (gimple_omp_parallel_child_fn_ptr): Likewise.
3970 (gimple_omp_parallel_child_fn): Likewise.
3971 (gimple_omp_parallel_set_clauses): Likewise.
3972 (gimple_omp_parallel_clauses_ptr): Likewise.
3973 (gimple_omp_parallel_clauses): Likewise.
3974 (gimple_omp_for_set_pre_body): Likewise.
3975 (gimple_omp_for_pre_body_ptr): Likewise.
3976 (gimple_omp_for_set_incr): Likewise.
3977 (gimple_omp_for_incr_ptr): Likewise.
3978 (gimple_omp_for_incr): Likewise.
3979 (gimple_omp_for_set_final): Likewise.
3980 (gimple_omp_for_final_ptr): Likewise.
3981 (gimple_omp_for_final): Likewise.
3982 (gimple_omp_for_set_initial): Likewise.
3983 (gimple_omp_for_initial_ptr): Likewise.
3984 (gimple_omp_for_initial): Likewise.
3985 (gimple_omp_for_set_index): Likewise.
3986 (gimple_omp_for_index_ptr): Likewise.
3987 (gimple_omp_for_index): Likewise.
3988 (gimple_omp_for_collapse): Likewise.
3989 (gimple_omp_for_set_clauses): Likewise.
3990 (gimple_omp_for_clauses_ptr): Likewise.
3991 (gimple_omp_for_clauses): Likewise.
3992 (gimple_omp_critical_set_name): Likewise.
3993 (gimple_omp_critical_name_ptr): Likewise.
3994 (gimple_omp_critical_name): Likewise.
3995 (gimple_eh_dispatch_set_region): Likewise.
3996 (gimple_eh_dispatch_region): Likewise.
3997 (gimple_resx_set_region): Likewise.
3998 (gimple_resx_region): Likewise.
3999 (gimple_phi_set_arg): Likewise.
4000 (gimple_phi_arg): Likewise.
4001 (gimple_phi_set_result): Likewise.
4002 (gimple_phi_result_ptr): Likewise.
4003 (gimple_phi_result): Likewise.
4004 (gimple_phi_num_args): Likewise.
4005 (gimple_phi_capacity): Likewise.
4006 (gimple_wce_set_cleanup): Likewise.
4007 (gimple_wce_cleanup_ptr): Likewise.
4008 (gimple_try_set_cleanup): Likewise.
4009 (gimple_try_set_eval): Likewise.
4010 (gimple_try_cleanup_ptr): Likewise.
4011 (gimple_try_eval_ptr): Likewise.
4012 (gimple_eh_else_set_e_body): Likewise.
4013 (gimple_eh_else_set_n_body): Likewise.
4014 (gimple_eh_else_e_body_ptr): Likewise.
4015 (gimple_eh_else_n_body_ptr): Likewise.
4016 (gimple_eh_must_not_throw_set_fndecl): Likewise.
4017 (gimple_eh_must_not_throw_fndecl): Likewise.
4018 (gimple_eh_filter_set_failure): Likewise.
4019 (gimple_eh_filter_set_types): Likewise.
4020 (gimple_eh_filter_failure_ptr): Likewise.
4021 (gimple_eh_filter_types_ptr): Likewise.
4022 (gimple_eh_filter_types): Likewise.
4023 (gimple_catch_set_handler): Likewise.
4024 (gimple_catch_set_types): Likewise.
4025 (gimple_catch_handler_ptr): Likewise.
4026 (gimple_catch_types_ptr): Likewise.
4027 (gimple_catch_types): Likewise.
4028 (gimple_asm_string): Likewise.
4029 (gimple_asm_set_label_op): Likewise.
4030 (gimple_asm_label_op): Likewise.
4031 (gimple_asm_set_clobber_op): Likewise.
4032 (gimple_asm_clobber_op): Likewise.
4033 (gimple_asm_set_output_op): Likewise.
4034 (gimple_asm_output_op_ptr): Likewise.
4035 (gimple_asm_output_op): Likewise.
4036 (gimple_asm_set_input_op): Likewise.
4037 (gimple_asm_input_op_ptr): Likewise.
4038 (gimple_asm_input_op): Likewise.
4039 (gimple_asm_nlabels): Likewise.
4040 (gimple_asm_nclobbers): Likewise.
4041 (gimple_asm_noutputs): Likewise.
4042 (gimple_asm_ninputs): Likewise.
4043 (gimple_bind_set_block): Likewise.
4044 (gimple_bind_block): Likewise.
4045 (gimple_bind_add_seq): Likewise.
4046 (gimple_bind_add_stmt): Likewise.
4047 (gimple_bind_set_body): Likewise.
4048 (gimple_bind_body_ptr): Likewise.
4049 (gimple_bind_append_vars): Likewise.
4050 (gimple_bind_set_vars): Likewise.
4051 (gimple_bind_vars): Likewise.
4052 (gimple_call_clobber_set): Likewise.
4053 (gimple_call_use_set): Likewise.
4054 (gimple_call_set_internal_fn): Likewise.
4055 (gimple_call_set_fntype): Likewise.
4056 (gimple_call_fntype): Likewise.
4057 (gimple_omp_return_lhs_ptr): Likewise.
4058 (gimple_omp_return_lhs): Likewise.
4059 (gimple_omp_return_set_lhs): Likewise.
4060 (gimple_omp_taskreg_set_data_arg): Likewise.
4061 (gimple_omp_taskreg_data_arg_ptr): Likewise.
4062 (gimple_omp_taskreg_data_arg): Likewise.
4063 (gimple_omp_taskreg_set_child_fn): Likewise.
4064 (gimple_omp_taskreg_child_fn_ptr): Likewise.
4065 (gimple_omp_taskreg_child_fn): Likewise.
4066 (gimple_omp_taskreg_set_clauses): Likewise.
4067 (gimple_omp_taskreg_clauses_ptr): Likewise.
4068 (gimple_omp_taskreg_clauses): Likewise.
4069 (gimple_vuse): Likewise.
4070 (gimple_vdef): Likewise.
4071 (gimple_vuse_ptr): Likewise.
4072 (gimple_vdef_ptr): Likewise.
4073 * tree-inline.c (copy_debug_stmt): Likewise.
4074 * tree-phinodes.c (make_phi_node): Likewise.
4075
4076 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
4077 (is_a_helper <gimple_statement_with_ops>::test): New.
4078 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
4079 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
4080
4081 * gimple-streamer-in.c (input_gimple_stmt): Port from union
4082 access to use of as_a.
4083 * gimple.c (gimple_build_asm_1): Likewise.
4084 (gimple_build_try): Likewise. Also, return a specific subclass
4085 rather than just gimple.
4086 (gimple_build_resx): Port from union access to use of as_a.
4087 (gimple_build_eh_dispatch): Likewise.
4088 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
4089 now that gengtype no longer provides a typed allocator function.
4090 (gimple_copy): Likewise.
4091 * gimple.h (gimple_build_try): Return a specific subclass rather
4092 than just gimple.
4093 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
4094 with subclass access by making use of new return type of
4095 gimple_build_try.
4096 * tree-phinodes.c: (allocate_phi_node): Return a
4097 "gimple_statement_phi *" rather than just a gimple.
4098 (resize_phi_node): Likewise.
4099 (make_phi_node): Replace union access with subclass access by
4100 making use of new return type of allocate_phi_node.
4101 (reserve_phi_args_for_new_edge): Replace union access with as_a.
4102 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
4103 than just a gimple.
4104 (remove_phi_args): Update for change to remove_phi_arg_num.
4105
4106 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
4107 code field to reflect inheritance, rather than embedding of
4108 the base gimple type.
4109
4110 2013-11-19 Richard Biener <rguenther@suse.de>
4111
4112 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
4113 and destructor and make fel_next a member function.
4114 (fel_next): Transform into ...
4115 (loop_iterator::next): ... this.
4116 (fel_init): Transform into ...
4117 (loop_iterator::loop_iterator): ... this.
4118 (loop_iterator::~loop_iterator): New.
4119 (FOR_EACH_LOOP): Remove loop-iterator argument.
4120 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
4121 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
4122 graphite-clast-to-gimple.c, graphite-scop-detection.c,
4123 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
4124 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
4125 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
4126 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
4127 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
4128 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
4129 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
4130 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
4131 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
4132 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
4133 FOR_EACH_LOOP_BREAK with break.
4134
4135 2013-11-19 Richard Biener <rguenther@suse.de>
4136
4137 PR tree-optimization/59164
4138 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4139 Uncomment assert.
4140 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
4141 whether we can create an epilogue loop to reflect thecases where
4142 we create one.
4143
4144 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
4145
4146 * graphite-sese-to-poly.c: Include expr.h.
4147
4148 2013-11-19 Richard Biener <rguenther@suse.de>
4149
4150 PR middle-end/58956
4151 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
4152 loads into stmts that may clobber it.
4153
4154 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
4155
4156 * cgraphunit.c (symtab_terminator): New variable.
4157 (queued_nodes): Renamed from first. Use symtab_terminator as
4158 initializer.
4159 (analyze_functions): Adjust accordingly.
4160 (cgraph_process_new_functions): Return void.
4161 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
4162
4163 2013-11-19 Marek Polacek <polacek@redhat.com>
4164
4165 * opts.c (common_handle_option): Add -fsanitize=null option.
4166 Turn off -fdelete-null-pointer-checks option when doing the
4167 NULL pointer checking.
4168 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
4169 * tree-pass.h (make_pass_ubsan): Declare.
4170 (make_pass_sanopt): Declare.
4171 * timevar.def (TV_TREE_UBSAN): New timevar.
4172 * passes.def: Add pass_sanopt and pass_ubsan.
4173 * ubsan.h (ubsan_null_ckind): New enum.
4174 (ubsan_mismatch_data): New struct.
4175 (ubsan_expand_null_ifn): Declare.
4176 (ubsan_create_data): Adjust declaration.
4177 (ubsan_type_descriptor): Likewise.
4178 * asan.c: Include "ubsan.h".
4179 (pass_data_sanopt): New pass.
4180 (execute_sanopt): New function.
4181 (gate_sanopt): Likewise.
4182 (make_pass_sanopt): Likewise.
4183 (class pass_sanopt): New class.
4184 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
4185 gimple-iterator.h and cfgloop.h.
4186 (PROB_VERY_UNLIKELY): Define.
4187 (tree_type_map_hash): New function.
4188 (ubsan_type_descriptor): Add new parameter.
4189 Improve type name generation.
4190 (ubsan_create_data): Add new parameter. Add pointer data into
4191 ubsan structure.
4192 (ubsan_expand_null_ifn): New function.
4193 (instrument_member_call): Likewise.
4194 (instrument_mem_ref): Likewise.
4195 (instrument_null): Likewise.
4196 (ubsan_pass): Likewise.
4197 (gate_ubsan): Likewise.
4198 (make_pass_ubsan): Likewise.
4199 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
4200 (class pass_ubsan): New class.
4201 (pass_data_ubsan): New pass.
4202 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
4203 * internal-fn.c (expand_UBSAN_NULL): New function.
4204 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
4205 even when !flag_toplevel_reorder.
4206 * internal-fn.def (UBSAN_NULL): New.
4207
4208 2013-11-19 Jan Hubicka <jh@suse.cz>
4209
4210 * cgraph.c (cgraph_create_indirect_edge): Use
4211 get_polymorphic_call_info.
4212 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
4213 maybe_in_construction and maybe_derived_type.
4214 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
4215 (ipa_dummy_polymorphic_call_context): New global var.
4216 (possible_polymorphic_call_targets): Add context paramter.
4217 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
4218 (possible_polymorphic_call_target_p): Likewise.
4219 (get_polymorphic_call_info): New function.
4220 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
4221 (add_type_duplicate): Remove forgotten debug output.
4222 (method_class_type): Add sanity check.
4223 (maybe_record_node): Add FINALP parameter.
4224 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
4225 by info by get_binfo_at_offset.
4226 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
4227 parameters; pass them to record-binfo.
4228 (polymorphic_call_target_d): Add context and FINAL.
4229 (polymorphic_call_target_hasher::hash): Hash context.
4230 (polymorphic_call_target_hasher::equal): Compare context.
4231 (free_polymorphic_call_targets_hash):
4232 (get_class_context): New function.
4233 (contains_type_p): New function.
4234 (get_polymorphic_call_info): New function.
4235 (walk_bases): New function.
4236 (possible_polymorphic_call_targets): Add context parameter; honnor it.
4237 (dump_possible_polymorphic_call_targets): Dump context.
4238 (possible_polymorphic_call_target_p): Add context.
4239 (update_type_inheritance_graph): Update comment.s
4240 (ipa_set_jf_known_type): Assert that compoentn type is known.
4241 (ipa_note_param_call): Do not tamper with offsets.
4242 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
4243 outer type.
4244 (update_indirect_edges_after_inlining): Likewise.
4245 (ipa_write_indirect_edge_info): Stream new fields.
4246 (ipa_read_indirect_edge_info): Stream in new fields.
4247
4248 2013-11-19 Jan Hubicka <jh@suse.cz>
4249
4250 * tree-pretty-print.c (dump_generic_node): Print class type of
4251 OBJ_TYPE_REF.
4252
4253 2013-11-19 Joey Ye <joey.ye@arm.com>
4254
4255 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
4256 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
4257 for new option.
4258 * config/arm/arm.c (arm_option_override): By default disable
4259 -marm-pic-data-is-text-relative.
4260 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
4261 (arm_assemble_integer): Likewise.
4262 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
4263 New macro to initialize -marm-pic-data-is-text-relative.
4264
4265 2013-11-19 Bin Cheng <bin.cheng@arm.com>
4266
4267 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
4268 (address_cost_data): New field.
4269 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
4270 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
4271
4272 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
4273
4274 * config/aarch64/aarch64.md: Remove v8type from all insns.
4275
4276 2013-11-19 Richard Biener <rguenther@suse.de>
4277
4278 PR tree-optimization/57517
4279 * tree-predcom.c (combinable_refs_p): Verify the combination
4280 is always executed when the refs are.
4281
4282 2013-11-19 Jeff Law <law@redhat.com>
4283
4284 * tree-ssa-threadupdate.c: Include ssa-iterators.h
4285 (copy_phi_arg_into_existing_phi): New function.
4286 (any_remaining_duplicated_blocks): Likewise.
4287 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
4288 blocks on a jump threading path.
4289
4290 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
4291 thread through a joiner which has the latch edge.
4292
4293 2013-11-19 Jan Hubicka <jh@suse.cz>
4294
4295 * md.texi (setmem): Document new parameter.
4296 * optabs.c (maybe_gen_insn): Support 9 operands.
4297 * builtins.c (determine_block_size): Add probable_max_size;
4298 support anti-ranges.
4299 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
4300 probable_max_size.
4301 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
4302 emit_block_move, clear_storage_hints, set_storage_via_setmem):
4303 Likewise.
4304 * expr.h (emit_block_move_hints, clear_storage_hints,
4305 set_storage_via_setmem): Update prototype.
4306 * i386.md (setmem, movmem patterns): Add 9th operand.
4307 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
4308 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
4309 argument; pass it to decide_alg.
4310
4311 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4312
4313 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
4314 (n_basic_blocks_for_fn): ...this.
4315
4316 (n_basic_blocks): Eliminate macro as work towards making uses of
4317 cfun be explicit.
4318
4319 * cfgloop.c (init_loops_structure): Update for renaming of
4320 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
4321 * graph.c (draw_cfg_nodes_no_loops): Likewise.
4322 * ipa-utils.c (ipa_merge_profiles): Likewise.
4323 * lto-streamer-in.c (make_new_block): Likewise.
4324 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
4325 (dump_function_to_file): Likewise.
4326
4327 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
4328 macro with "n_basic_blocks_for_fn (cfun)".
4329 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
4330 (duplicate_computed_gotos): Likewise.
4331 (reorder_basic_blocks): Likewise.
4332 * bt-load.c (augment_live_range): Likewise.
4333 * cfg.c (expunge_block): Likewise.
4334 (compact_blocks): Likewise.
4335 * cfganal.c (single_pred_before_succ_order): Likewise.
4336 (compute_idf): Likewise.
4337 (flow_dfs_compute_reverse_init): Likewise.
4338 (pre_and_rev_post_order_compute): Likewise.
4339 (pre_and_rev_post_order_compute_fn): Likewise.
4340 (inverted_post_order_compute): Likewise.
4341 (post_order_compute): Likewise.
4342 (print_edge_list): Likewise.
4343 (find_unreachable_blocks): Likewise.
4344 (mark_dfs_back_edges): Likewise.
4345 * cfgcleanup.c (try_optimize_cfg): Likewise.
4346 (try_forward_edges): Likewise.
4347 * cfghooks.c (dump_flow_info): Likewise.
4348 * cfgloop.c (verify_loop_structure): Likewise.
4349 (get_loop_body): Likewise.
4350 (flow_loops_find): Likewise.
4351 * cfgloopmanip.c (add_loop): Likewise.
4352 (remove_path): Likewise.
4353 (find_path): Likewise.
4354 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
4355 (rtl_verify_bb_layout): Likewise.
4356 (entry_of_function): Likewise.
4357 (rtl_create_basic_block): Likewise.
4358 * coverage.c (coverage_compute_cfg_checksum): Likewise.
4359 * cprop.c (one_cprop_pass): Likewise.
4360 (is_too_expensive): Likewise.
4361 * df-core.c (df_compute_cfg_image): Likewise.
4362 (df_compact_blocks): Likewise.
4363 (df_worklist_dataflow_doublequeue): Likewise.
4364 * dominance.c (calculate_dominance_info): Likewise.
4365 (calc_dfs_tree): Likewise.
4366 (calc_dfs_tree_nonrec): Likewise.
4367 (init_dom_info): Likewise.
4368 * domwalk.c (cmp_bb_postorder): Likewise.
4369 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4370 (generate_setjmp_warnings): Likewise.
4371 * fwprop.c (build_single_def_use_links): Likewise.
4372 * gcse.c (is_too_expensive): Likewise.
4373 (one_code_hoisting_pass): Likewise.
4374 (one_pre_gcse_pass): Likewise.
4375 * graphite.c (graphite_initialize): Likewise.
4376 * haifa-sched.c (haifa_sched_init): Likewise.
4377 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
4378 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
4379 * ira-build.c (ira_build): Likewise.
4380 * lcm.c (compute_nearerout): Likewise.
4381 (compute_available): Likewise.
4382 (compute_laterin): Likewise.
4383 (compute_antinout_edge): Likewise.
4384 * lra-lives.c (lra_create_live_ranges): Likewise.
4385 * lra.c (has_nonexceptional_receiver): Likewise.
4386 * mcf.c (create_fixup_graph): Likewise.
4387 * profile.c (branch_prob): Likewise.
4388 * reg-stack.c (convert_regs_2): Likewise.
4389 * regrename.c (regrename_analyze): Likewise.
4390 * reload1.c (has_nonexceptional_receiver): Likewise.
4391 * reorg.c (dbr_schedule): Likewise.
4392 * sched-deps.c (sched_deps_init): Likewise.
4393 * sched-ebb.c (schedule_ebbs): Likewise.
4394 * sched-rgn.c (extend_regions): Likewise.
4395 (schedule_insns): Likewise.
4396 (sched_rgn_init): Likewise.
4397 (extend_rgns): Likewise.
4398 (haifa_find_rgns): Likewise.
4399 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
4400 (sel_recompute_toporder): Likewise.
4401 * sel-sched.c (run_selective_scheduling): Likewise.
4402 * store-motion.c (one_store_motion_pass): Likewise.
4403 (remove_reachable_equiv_notes): Likewise.
4404 * tracer.c (tracer): Likewise.
4405 (tail_duplicate): Likewise.
4406 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
4407 (dump_cfg_stats): Likewise.
4408 (gimple_dump_cfg): Likewise.
4409 (create_bb): Likewise.
4410 (build_gimple_cfg): Likewise.
4411 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
4412 * tree-inline.c (optimize_inline_calls): Likewise.
4413 (fold_marked_statements): Likewise.
4414 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
4415 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4416 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4417 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
4418 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4419 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
4420 * tree-ssa-pre.c (do_pre): Likewise.
4421 (init_pre): Likewise.
4422 (compute_avail): Likewise.
4423 * tree-ssa-reassoc.c (init_reassoc): Likewise.
4424 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
4425 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
4426 (init_worklist): Likewise.
4427 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
4428 * var-tracking.c (variable_tracking_main_1): Likewise.
4429 (vt_find_locations): Likewise.
4430 (vt_stack_adjustments): Likewise.
4431 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
4432 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
4433
4434 2013-11-18 Jan Hubicka <jh@suse.cz>
4435
4436 * profile.c (compute_branch_probabilities): Do not sanity check
4437 run_max.
4438
4439 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
4440
4441 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
4442 GET_MODE_PRECISION.
4443 * fold-const.c (fold_single_bit_test_into_sign_test)
4444 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
4445
4446 2013-11-18 Teresa Johnson <tejohnson@google.com>
4447
4448 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
4449 cfglayout after bb reordering.
4450 * passes.def: Move compgotos before bb reordering since it goes into
4451 cfglayout.
4452
4453 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
4454
4455 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
4456 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
4457 static.
4458 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
4459 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
4460 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
4461 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
4462 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
4463 Remove all_lto_gen_passes.
4464 * passes.c (pass_manager::dump_passes): Remove its use.
4465 (pass_manager::register_pass): Likewise.
4466 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
4467 (pass_manager::pass_manager): Don't initialize or use it.
4468 (write_lto): New static function.
4469 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
4470 instead of using all_lto_gen_passes.
4471 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
4472 pass_ipa_lto_finish_out): Delete.
4473 * tree-pass.h (make_pass_ipa_lto_gimple_out,
4474 make_pass_ipa_lto_finish_out): Don't declare.
4475
4476 2013-11-18 Jeff Law <law@redhat.com>
4477
4478 * tree-ssa-threadupdate.c (redirection_data): Record two
4479 duplicated blocks instead of just one.
4480 (local_info): Explain why we don't create a template for the
4481 second duplicated block in a thread path.
4482 (create_block_for_threading): Accept argument indicating array
4483 index into redirection_data to store its result.
4484 (lookup_redirection_data): Initialize both duplicate blocks.
4485 (ssa_create_duplicates): If a jump threading path needs multiple
4486 blocks duplicated, then duplicate them.
4487 (ssa_fix_duplicate_block_edges): Corresponding changes.
4488 (ssa_fixup_template_block, thread_single_edge): Likewise.
4489
4490 2013-11-18 Marek Polacek <polacek@redhat.com>
4491
4492 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
4493
4494 2013-11-18 Andrew Pinski <apinski@cavium.com>
4495 Steve Ellcey <sellcey@mips.com>
4496
4497 PR target/56552
4498 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
4499 type restriction from equality_operator on conditonal move.
4500 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
4501 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
4502
4503 2013-11-18 Jeff Law <law@redhat.com>
4504
4505 * tree-ssa-threadupdate.c: Fix file block comment.
4506 Fix minor indention issue.
4507
4508 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
4509
4510 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
4511 ix86_address_subreg_operand. Move subreg checks to
4512 ix86_validate_address_register. Move address override check to
4513 ix86_legitimate_address_p.
4514 (ix86_validate_address_register): New function.
4515 (ix86_legitimate_address_p): Call ix86_validate_address_register
4516 to validate base and index registers. Add address override check
4517 from ix86_decompose_address.
4518 (ix86_decompose_address): Remove.
4519
4520 2013-11-18 Richard Biener <rguenther@suse.de>
4521
4522 PR tree-optimization/59125
4523 PR tree-optimization/54570
4524 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
4525 is not complete do not treat component-references with offset zero
4526 but different fields as equal.
4527 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
4528 (compute_object_sizes): Apply TLC. Propagate the constant
4529 results into all uses and fold their stmts.
4530 * passes.def (pass_all_optimizations): Move pass_object_sizes
4531 after the first pass_forwprop and before pass_fre.
4532
4533 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4534
4535 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4536 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4537 (tree_ctz): Remove cast to unsigned type.
4538 * builtins.c (fold_builtin_memory_op): Likewise.
4539 * dwarf2out.c (descr_info_loc): Likewise.
4540 * godump.c (go_output_typedef): Likewise.
4541 * omp-low.c (expand_omp_simd): Likewise.
4542 * stor-layout.c (excess_unit_span): Likewise.
4543 * tree-object-size.c (addr_object_size): Likewise.
4544 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4545 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4546 (simplify_rotate): Likewise.
4547 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
4548 (handle_pointer_plus): Likewise.
4549 * tree-switch-conversion.c (check_range): Likewise.
4550 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
4551 * tsan.c (instrument_builtin_call): Likewise.
4552 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
4553 * trans-mem.c (tm_log_add): Likewise.
4554 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
4555 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
4556 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
4557 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
4558
4559 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4560
4561 * tree.h (host_integerp, tree_low_cst): Delete.
4562 * tree.c (host_integerp, tree_low_cst): Delete.
4563
4564 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4565
4566 * expr.h: Update comments to refer to tree_to_[su]hwi rather
4567 than tree_low_cst.
4568 * fold-const.c (fold_binary_loc): Likewise.
4569 * expr.c (store_constructor): Use tree_to_uhwi rather than
4570 tree_low_cst.
4571 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
4572 * stmt.c (emit_case_dispatch_table): Likewise.
4573 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4574
4575 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4576
4577 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
4578 config/aarch64/aarch64.c, config/alpha/predicates.md,
4579 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
4580 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
4581 config/mep/mep-pragma.c, config/mips/mips.c,
4582 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
4583 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
4584 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
4585 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
4586 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
4587 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
4588 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
4589 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
4590 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
4591 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
4592
4593 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4594
4595 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
4596 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
4597 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
4598 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
4599 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
4600 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
4601 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
4602 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
4603 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
4604 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
4605 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
4606
4607 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4608
4609 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
4610 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
4611
4612 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4613
4614 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
4615 than host_integerp.
4616
4617 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4618
4619 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
4620 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
4621 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
4622 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
4623 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
4624 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
4625 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
4626 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
4627 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
4628 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
4629 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
4630 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
4631 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
4632 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
4633 tree_fits_uhwi_p throughout.
4634
4635 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4636
4637 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
4638 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
4639 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
4640 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
4641 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
4642 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
4643 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
4644 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
4645 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
4646 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4647 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
4648 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
4649 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4650 throughout.
4651
4652 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4653
4654 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
4655 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
4656
4657 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
4658
4659 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
4660 flag if it kills its address, not its post-increment.
4661
4662 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
4663
4664 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
4665 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
4666 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
4667 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
4668 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
4669 (gimple_call_with_bounds_p): New.
4670 (gimple_call_set_with_bounds): New.
4671 (gimple_call_num_nobnd_args): Remove.
4672 (gimple_call_nobnd_arg): Remove.
4673 * tree.h (CALL_WITH_BOUNDS_P): New.
4674 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
4675
4676 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
4677
4678 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
4679 (symtab_node_name): Rename to symtab_node::name.
4680 (cgraph_node_asm_name): Remove.
4681 (varpool_node_asm_name): Remove.
4682 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
4683 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
4684 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
4685 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
4686 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
4687
4688 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4689
4690 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
4691 * config/arm/arm.c (arm_cortex_a53_tune): New.
4692 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
4693
4694 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4695
4696 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
4697 (case ${target}): Add bdver4.
4698 * config/i386/bdver3.md: Add bdver4.
4699 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4700 -march=native recognize bdver4 processors.
4701 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4702 bdver4 def_and_undef
4703 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
4704 (m_BDVER4): New definition.
4705 (m_AMD_MULTIPLE): Includes m_BDVER4.
4706 (processor_target_table): Add bdver4 entry.
4707 (static const char *const cpu_names): Add bdver4 entry.
4708 (software_prefetching_beneficial_p): Add bdver3.
4709 (ix86_option_override_internal): Add bdver4 instruction sets.
4710 (ix86_issue_rate): Add bdver4.
4711 (ix86_adjust_cost): Add bdver4.
4712 (ia32_multipass_dfa_lookahead): Add bdver4.
4713 (enum processor_model): Add M_AMDFAM15H_BDVER4.
4714 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
4715 (has_dispatch): Add bdver4.
4716 * config/i386/i386.h (TARGET_BDVER4): New definition.
4717 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
4718 (enum processor_type): Add PROCESSOR_BDVER4.
4719 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
4720 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
4721 * doc/extend.texi: Add details about bdver4.
4722 * doc/invoke.texi: Add details about bdver4. Add
4723 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
4724
4725 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4726
4727 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
4728 sdmode_stack_slot also in little-endian mode.
4729
4730 2013-11-17 Jan Hubicka <jh@suse.cz>
4731
4732 * doc/md.texi (setmem, movstr): Update documentation.
4733 * builtins.c (determine_block_size): New function.
4734 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
4735 (expand_builtin_memset_args): Use it and pass it to
4736 set_storage_via_setmem.
4737 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
4738 parameters; update call to expander.
4739 (emit_block_move_hints): Add min_size/max_size parameters.
4740 (clear_storage_hints): Likewise.
4741 (set_storage_via_setmem): Likewise.
4742 (clear_storage): Update.
4743 * expr.h (emit_block_move_hints, clear_storage_hints,
4744 set_storage_via_setmem): Update prototypes.
4745 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
4746 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4747 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4748 * i386.md (movmem, setmem): Pass parameters.
4749
4750 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
4751
4752 PR target/59153
4753 * config/i386/i386.c (ix86_address_subreg_operand): Do not
4754 reject non-integer subregs.
4755 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
4756 Move check for invalid x32 constant addresses ...
4757 (ix86_legitimate_address_p): ... here.
4758
4759 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4760
4761 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
4762 parameter and use it in REG_FRAME_RELATED_EXPR note.
4763 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
4764 parameter.
4765 (rs6000_emit_prologue): Likewise, but for little endian VSX
4766 stores, pass the source register of the store instead.
4767
4768 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
4769
4770 * gimple.h: Reorder prototypes to match .c declaration order, and
4771 remove protyotypes for functions not in gimple.c.
4772 (LABEL): Move to tree-into-ssa.c.
4773 * gimple.c: Remove unused prototypes.
4774 (get_base_address): Move to tree.c.
4775 * tree.c (get_base_address): Relocate from gimple.c.
4776 * builtins.h (validate_gimple_arglist): Add prototype.
4777 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
4778 * cfgexpand.h: New File.
4779 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
4780 * tree.h (build_addr): Move to tree-nested.h.
4781 * tree-nested.h: New File.
4782 (build_addr, lower_nested_functions, insert_field_into_struct): Add
4783 prototypes.
4784 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
4785 * ipa-inline-analysis.c: Include cfgexpand.h.
4786 * cgraphunit.c: Include tree-nested.h.
4787 * omp-low.c: Likewise.
4788 * tree-parloops.c: Likewise.
4789 * gimple-low.h: Likewise.
4790 * tree-profile.h: Likewise.
4791 * expr.c: Include cfgexpand.h.
4792 * tree-affine.c: Likewise.
4793 * tree-ssa.c: Likewise.
4794 * tree-ssa-loop-im.c: Include trans-mem.h.
4795 * tree-ssa-tail-merge.c: Likewise.
4796 * value-prof.c: Include builtins.h and tree-nested.h.
4797 * tree-into-ssa.c (LABEL): Define here.
4798
4799 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4800
4801 * config/arc/arc.c (arc_predicate_delay_insns): New function.
4802 (pass_data_arc_predicate_delay_insns): New pass_data instance.
4803 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
4804 (make_pass_arc_predicate_delay_insns): New function.
4805 (arc_init): Register pass_arc_predicate_delay_insns if
4806 flag_delayed_branch is active.
4807
4808 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4809
4810 * config/arc/constraints.md (Rcq): Simplify register number test.
4811
4812 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4813
4814 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
4815
4816 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
4817
4818 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
4819 is null.
4820
4821 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4822
4823 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
4824 * gimple-pretty-print.c (dump_omp_for): Add case for
4825 GF_OMP_FOR_KIND_CILKSIMD.
4826 * gimple.h (enum gf_mask): Restructure entries to add
4827 GF_OMP_FOR_KIND_CILKSIMD.
4828 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
4829 (gimplify_omp_for): Handle CILK_SIMD.
4830 (gimplify_expr): Add ccase for CILK_SIMD.
4831 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
4832 (build_outer_var_ref): Same.
4833 (check_omp_nesting_restrictions): Same.
4834 (lower_rec_input_clauses): Same.
4835 (lower_lastprivate_clauses): Same.
4836 (expand_omp_for): Same.
4837 (execute_expand_omp): Check flag_enable_cilkplus.
4838 (execute_lower_omp): Same.
4839 (diagnose_sb_0): Handle CILK_SIMD.
4840 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
4841 (setjmp_or_longjmp_p): New.
4842 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
4843 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
4844 * tree.def: Add tree code for CILK_SIMD.
4845
4846 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4847
4848 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
4849 Remove.
4850 (altivec_vperm_<mode>): Revert earlier little endian change.
4851 (*altivec_vperm_<mode>_internal): Remove.
4852 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
4853 (*altivec_vperm_<mode>_uns_internal): Remove.
4854 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
4855
4856 2013-11-15 Jeff Law <law@redhat.com>
4857
4858 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
4859 has_abnormal_or_outgoing_edge. Check for EH edges as well.
4860 * gimple-ssa-isolate-paths.c
4861 (find_implicit_erroneous_behaviour): Corresponding changes.
4862 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
4863 (find_explicit_erroneous_behaviour): Likewise.
4864
4865 2013-11-15 Jeff Law <law@redhat.com>
4866
4867 * ifcvt.c (find_cond_trap): Properly handle case where
4868 trap_bb == else_bb.
4869
4870 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
4871
4872 * configure: Regenerate.
4873
4874 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
4875
4876 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
4877 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
4878 where it is incorrect or missing.
4879
4880 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4881
4882 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
4883 host_integerp test.
4884 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4885 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
4886 constant.
4887 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
4888 pair with a TREE_CODE test and TREE_INT_CST_LOW.
4889 * tree-vect-generic.c (expand_vector_divmod): Likewise.
4890
4891 2013-11-15 Richard Biener <rguenther@suse.de>
4892
4893 PR tree-optimization/50262
4894 * tree-ssa-alias.h (struct pt_solution): Split
4895 vars_contains_global into vars_contains_nonlocal,
4896 vars_contains_escaped and vars_contains_escaped_heap.
4897 * tree-ssa-structalias.c (label_visit): Expand comment.
4898 (handle_lhs_call): Adjust comment.
4899 (set_uids_in_ptset): Set the new flags appropriately.
4900 (pt_solution_set): Adjust.
4901 (pt_solution_set_var): Likewise.
4902 (pt_solution_ior_into): Likewise.
4903 (pt_solution_includes_global): Likewise.
4904 (pt_solutions_intersect_1): Optimize escaped handling.
4905 (compute_points_to_sets): Remove heap variable globalization.
4906 (ipa_escaped_pt): Adjust initializer.
4907 (pass_data_ipa_pta): Do not run TODO_update_ssa.
4908 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
4909 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
4910
4911 2013-11-15 Richard Biener <rguenther@suse.de>
4912
4913 * tree-loop-distribution.c (tree_loop_distribution): Make sure
4914 to distribute all stores.
4915
4916 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4917
4918 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4919
4920 2013-11-15 Joseph Myers <joseph@codesourcery.com>
4921
4922 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4923 * configure.ac: Determine target_header_dir earlier.
4924 (--with-glibc-version): New configure option.
4925 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4926 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4927 * configure: Regenerate.
4928 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4929 native toolchains for default.
4930 (--with-glibc-version): Document.
4931
4932 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
4933
4934 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4935
4936 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
4937
4938 * lto-streamer-in.c (input function): Call cgraph_create_node if
4939 cgraph_get_node failed.
4940
4941 2013-11-14 Olivier Hainque <hainque@adacore.com>
4942
4943 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4944 defer allocation of DECL_IGNORED_P variables at toplevel unless really
4945 small. Factorize size threshold computation from the existing one.
4946 (expand_used_vars): Refine comment.
4947
4948 2013-11-14 Cong Hou <congh@google.com>
4949
4950 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4951 address field as it can be obtained from dr. Rename the struct.
4952 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4953 steps of data references during sort.
4954 (vect_prune_runtime_alias_test_list): Adjust with the change to
4955 struct dr_with_seg_len.
4956 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4957 Adjust with the change to struct dr_with_seg_len.
4958
4959 2013-11-14 Jeff Law <law@redhat.com>
4960
4961 PR middle-end/59127
4962 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4963 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4964 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4965 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4966 edges, then ignore it. If the statement exhibiting erroneous
4967 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4968 then we can not optimize.
4969 (find_explicit_erroneous_behaviour): Likewise.
4970
4971 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
4972
4973 * gimplify-me.h: New file. Add prototypes.
4974 * gimplify.h: Don't include gimple.h.
4975 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4976 Relocate from gimple.h.
4977 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4978 is_gimple_sizepos): Move to gimplify.h.
4979 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4980 (enum gsi_iterator_update): Move to gimple-iterator.h.
4981 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4982 * gimplify-me.c: New File.
4983 (force_gimple_operand_1, force_gimple_operand,
4984 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4985 gimple_regimplify_operands): Relocate from gimplify.c.
4986 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4987 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4988 gimple_regimplify_operands): Move to gimplify-me.c.
4989 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4990 from gimple.h.
4991 * Makefile.in (OBJS): Add gimplify-me.o
4992 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4993 required.
4994 * cfgloopmanip.c: Likewise.
4995 * cgraphunit.c: Likewise.
4996 * cilk-common.c: Likewise.
4997 * fold-const.c: Likewise.
4998 * function.c: Likewise.
4999 * gimple-expr.c: Likewise.
5000 * gimple-fold.c: Likewise.
5001 * gimple-ssa-strength-reduction.c: Likewise.
5002 * gimple.c: Likewise.
5003 * graphite-clast-to-gimple.c: Likewise.
5004 * graphite-sese-to-poly.c: Likewise.
5005 * ipa-prop.c: Likewise.
5006 * ipa-split.c: Likewise.
5007 * ipa.c: Likewise.
5008 * langhooks.c: Likewise.
5009 * omp-low.c: Likewise.
5010 * sese.c: Likewise.
5011 * stor-layout.c: Likewise.
5012 * targhooks.c: Likewise.
5013 * trans-mem.c: Likewise.
5014 * tree-affine.c: Likewise.
5015 * tree-cfg.c: Likewise.
5016 * tree-cfgcleanup.c: Likewise.
5017 * tree-complex.c: Likewise.
5018 * tree-if-conv.c: Likewise.
5019 * tree-inline.c: Likewise.
5020 * tree-loop-distribution.c: Likewise.
5021 * tree-nested.c: Likewise.
5022 * tree-parloops.c: Likewise.
5023 * tree-predcom.c: Likewise.
5024 * tree-profile.c: Likewise.
5025 * tree-scalar-evolution.c: Likewise.
5026 * tree-sra.c: Likewise.
5027 * tree-ssa-address.c: Likewise.
5028 * tree-ssa-ccp.c: Likewise.
5029 * tree-ssa-dce.c: Likewise.
5030 * tree-ssa-forwprop.c: Likewise.
5031 * tree-ssa-ifcombine.c: Likewise.
5032 * tree-ssa-loop-im.c: Likewise.
5033 * tree-ssa-loop-ivopts.c: Likewise.
5034 * tree-ssa-loop-manip.c: Likewise.
5035 * tree-ssa-loop-niter.c: Likewise.
5036 * tree-ssa-loop-prefetch.c: Likewise.
5037 * tree-ssa-loop-unswitch.c: Likewise.
5038 * tree-ssa-math-opts.c: Likewise.
5039 * tree-ssa-phiopt.c: Likewise.
5040 * tree-ssa-phiprop.c: Likewise.
5041 * tree-ssa-pre.c: Likewise.
5042 * tree-ssa-propagate.c: Likewise.
5043 * tree-ssa-reassoc.c: Likewise.
5044 * tree-ssa-sccvn.c: Likewise.
5045 * tree-ssa-strlen.c: Likewise.
5046 * tree-ssa.c: Likewise.
5047 * tree-switch-conversion.c: Likewise.
5048 * tree-tailcall.c: Likewise.
5049 * tree-vect-data-refs.c: Likewise.
5050 * tree-vect-generic.c: Likewise.
5051 * tree-vect-loop-manip.c: Likewise.
5052 * tree-vect-loop.c: Likewise.
5053 * tree-vect-patterns.c: Likewise.
5054 * tree-vect-stmts.c: Likewise.
5055 * tree.c: Likewise.
5056 * tsan.c: Likewise.
5057 * value-prof.c: Likewise.
5058 * config/aarch64/aarch64.c: Likewise.
5059 * config/alpha/alpha.c: Likewise.
5060 * config/darwin.c: Likewise.
5061 * config/i386/i386.c: Likewise.
5062 * config/ia64/ia64.c: Likewise.
5063 * config/mep/mep.c: Likewise.
5064 * config/mips/mips.c: Likewise.
5065 * config/rs6000/rs6000.c: Likewise.
5066 * config/s390/s390.c: Likewise.
5067 * config/sh/sh.c: Likewise.
5068 * config/sparc/sparc.c: Likewise.
5069 * config/spu/spu.c: Likewise.
5070 * config/stormy16/stormy16.c: Likewise.
5071 * config/tilegx/tilegx.c: Likewise.
5072 * config/tilepro/tilepro.c: Likewise.
5073 * config/xtensa/xtensa.c: Likewise.
5074
5075 2013-11-14 Diego Novillo <dnovillo@google.com>
5076
5077 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
5078
5079 2013-11-14 Diego Novillo <dnovillo@google.com>
5080
5081 * tree.h: Include fold-const.h.
5082 (aggregate_value_p): Moved to function.h.
5083 (alloca_call_p): Moved to calls.h.
5084 (allocate_struct_function): Moved to function.h.
5085 (apply_tm_attr): Moved to attribs.h.
5086 (array_at_struct_end_p): Moved to expr.h.
5087 (array_ref_element_size): Moved to tree-dfa.h.
5088 (array_ref_low_bound): Moved to tree-dfa.h.
5089 (array_ref_up_bound): Moved to tree.h.
5090 (assemble_alias): Moved to cgraph.h.
5091 (bit_from_pos): Moved to stor-layout.h.
5092 (build_addr): Moved to tree-nested.h.
5093 (build_duplicate_type): Moved to tree-inline.h.
5094 (build_fold_addr_expr): Moved to fold-const.h.
5095 (build_fold_addr_expr_with_type): Moved to fold-const.h.
5096 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
5097 (build_fold_indirect_ref): Moved to fold-const.h.
5098 (build_fold_indirect_ref_loc): Moved to fold-const.h.
5099 (build_personality_function): Moved to tree.h.
5100 (build_range_check): Moved to fold-const.h.
5101 (build_simple_mem_ref): Moved to fold-const.h.
5102 (build_simple_mem_ref_loc): Moved to fold-const.h.
5103 (build_tm_abort_call): Moved to trans-mem.h.
5104 (byte_from_pos): Moved to stor-layout.h.
5105 (call_expr_flags): Moved to calls.h.
5106 (can_move_by_pieces): Moved to expr.h.
5107 (categorize_ctor_elements): Moved to expr.h.
5108 (change_decl_assembler_name): Moved to gcc-symtab.h.
5109 (combine_comparisons): Moved to fold-const.h.
5110 (complete_ctor_at_level_p): Moved to tree.h.
5111 (component_ref_field_offset): Moved to tree-dfa.h.
5112 (compute_builtin_object_size): Moved to tree-object-size.h.
5113 (compute_record_mode): Moved to stor-layout.h.
5114 (constant_boolean_node): Moved to fold-const.h.
5115 (constructor_static_from_elts_p): Moved to varasm.h.
5116 (cxx11_attribute_p): Moved to attribs.h.
5117 (debug_body): Moved to print-tree.h.
5118 (debug_find_tree): Moved to tree-inline.h.
5119 (debug_fold_checksum): Moved to fold-const.h.
5120 (debug_head): Moved to print-tree.h.
5121 (debug_head): Moved to print-tree.h.
5122 (debug_raw): Moved to print-tree.h.
5123 (debug_tree): Moved to print-tree.h.
5124 (debug_vec_tree): Moved to print-tree.h.
5125 (debug_verbose): Moved to print-tree.h.
5126 (debug_verbose): Moved to print-tree.h.
5127 (decl_attributes): Moved to attribs.h.
5128 (decl_binds_to_current_def_p): Moved to varasm.h.
5129 (decl_default_tls_model): Moved to varasm.h.
5130 (decl_replaceable_p): Moved to varasm.h.
5131 (div_if_zero_remainder): Moved to fold-const.h.
5132 (double_int mem_ref_offset): Moved to fold-const.h.
5133 (dump_addr): Moved to print-tree.h.
5134 (element_precision): Moved to machmode.h.
5135 (expand_dummy_function_end): Moved to function.h.
5136 (expand_function_end): Moved to function.h.
5137 (expand_function_start): Moved to function.h.
5138 (expand_label): Moved to stmt.h.
5139 (expr_first): Moved to tree-iterator.h.
5140 (expr_last): Moved to tree-iterator.h.
5141 (finalize_size_functions): Moved to stor-layout.h.
5142 (finish_builtin_struct): Moved to stor-layout.h.
5143 (finish_record_layout): Moved to stor-layout.h.
5144 (fixup_signed_type): Moved to stor-layout.h.
5145 (fixup_unsigned_type): Moved to stor-layout.h.
5146 (flags_from_decl_or_type): Moved to calls.h.
5147 (fold): Moved to fold-const.h.
5148 (fold_abs_const): Moved to fold-const.h.
5149 (fold_binary): Moved to fold-const.h.
5150 (fold_binary_loc): Moved to fold-const.h.
5151 (fold_binary_to_constant): Moved to fold-const.h.
5152 (fold_build1): Moved to fold-const.h.
5153 (fold_build1_initializer_loc): Moved to fold-const.h.
5154 (fold_build1_loc): Moved to fold-const.h.
5155 (fold_build1_stat_loc): Moved to fold-const.h.
5156 (fold_build2): Moved to fold-const.h.
5157 (fold_build2_initializer_loc): Moved to fold-const.h.
5158 (fold_build2_loc): Moved to fold-const.h.
5159 (fold_build2_stat_loc): Moved to fold-const.h.
5160 (fold_build3): Moved to fold-const.h.
5161 (fold_build3_loc): Moved to fold-const.h.
5162 (fold_build3_stat_loc): Moved to fold-const.h.
5163 (fold_build_call_array): Moved to fold-const.h.
5164 (fold_build_call_array_initializer): Moved to fold-const.h.
5165 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
5166 (fold_build_call_array_loc): Moved to fold-const.h.
5167 (fold_build_cleanup_point_expr): Moved to fold-const.h.
5168 (fold_convert): Moved to fold-const.h.
5169 (fold_convert_loc): Moved to fold-const.h.
5170 (fold_convertible_p): Moved to fold-const.h.
5171 (fold_defer_overflow_warnings): Moved to fold-const.h.
5172 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
5173 (fold_fma): Moved to fold-const.h.
5174 (fold_ignored_result): Moved to fold-const.h.
5175 (fold_indirect_ref): Moved to fold-const.h.
5176 (fold_indirect_ref_1): Moved to fold-const.h.
5177 (fold_indirect_ref_loc): Moved to fold-const.h.
5178 (fold_read_from_constant_string): Moved to fold-const.h.
5179 (fold_real_zero_addition_p): Moved to fold-const.h.
5180 (fold_single_bit_test): Moved to fold-const.h.
5181 (fold_strip_sign_ops): Moved to fold-const.h.
5182 (fold_ternary): Moved to fold-const.h.
5183 (fold_ternary_loc): Moved to fold-const.h.
5184 (fold_unary): Moved to tree-data-ref.h.
5185 (fold_unary_ignore_overflow): Moved to fold-const.h.
5186 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
5187 (fold_unary_loc): Moved to fold-const.h.
5188 (fold_unary_to_constant): Moved to fold-const.h.
5189 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
5190 (fold_undefer_overflow_warnings): Moved to fold-const.h.
5191 (folding_initializer): Moved to fold-const.h.
5192 (free_temp_slots): Moved to function.h.
5193 (generate_setjmp_warnings): Moved to function.h.
5194 (get_attribute_name): Moved to attribs.h.
5195 (get_identifier): Moved to stringpool.h.
5196 (get_identifier_with_length): Moved to stringpool.h.
5197 (get_inner_reference): Moved to tree.h.
5198 (gimple_alloca_call_p): Moved to calls.h.
5199 (gimplify_parameters): Moved to function.h.
5200 (highest_pow2_factor): Moved to expr.h.
5201 (indent_to): Moved to print-tree.h.
5202 (init_attributes): Moved to attribs.h.
5203 (init_dummy_function_start): Moved to function.h.
5204 (init_function_start): Moved to function.h.
5205 (init_inline_once): Moved to tree-inline.h.
5206 (init_object_sizes): Moved to tree-object-size.h.
5207 (init_temp_slots): Moved to function.h.
5208 (init_tree_optimization_optabs): Moved to optabs.h.
5209 (initialize_sizetypes): Moved to stor-layout.h.
5210 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
5211 (initializer_constant_valid_p): Moved to varasm.h.
5212 (int_const_binop): Moved to fold-const.h.
5213 (internal_reference_types): Moved to stor-layout.h.
5214 (invert_tree_comparison): Moved to fold-const.h.
5215 (invert_truthvalue): Moved to fold-const.h.
5216 (invert_truthvalue_loc): Moved to fold-const.h.
5217 (is_tm_ending_fndecl): Moved to trans-mem.h.
5218 (is_tm_may_cancel_outer): Moved to trans-mem.h.
5219 (is_tm_pure): Moved to trans-mem.h.
5220 (is_tm_safe): Moved to trans-mem.h.
5221 (layout_decl): Moved to stor-layout.h.
5222 (layout_type): Moved to stor-layout.h.
5223 (lookup_attribute_spec): Moved to attribs.h.
5224 (make_accum_type): Moved to stor-layout.h.
5225 (make_decl_one_only): Moved to varasm.h.
5226 (make_decl_rtl): Moved to tree.h.
5227 (make_decl_rtl_for_debug): Moved to varasm.h.
5228 (make_fract_type): Moved to stor-layout.h.
5229 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
5230 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
5231 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
5232 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
5233 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
5234 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
5235 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
5236 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
5237 (make_range): Moved to fold-const.h.
5238 (make_range_step): Moved to fold-const.h.
5239 (make_sat_signed_accum_type): Moved to stor-layout.h.
5240 (make_sat_signed_fract_type): Moved to stor-layout.h.
5241 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
5242 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
5243 (make_signed_accum_type): Moved to stor-layout.h.
5244 (make_signed_fract_type): Moved to stor-layout.h.
5245 (make_signed_type): Moved to stor-layout.h.
5246 (make_unsigned_accum_type): Moved to stor-layout.h.
5247 (make_unsigned_fract_type): Moved to stor-layout.h.
5248 (make_unsigned_type): Moved to stor-layout.h.
5249 (mark_decl_referenced): Moved to varasm.h.
5250 (mark_referenced): Moved to varasm.h.
5251 (may_negate_without_overflow_p): Moved to fold-const.h.
5252 (maybe_get_identifier): Moved to stringpool.h.
5253 (merge_ranges): Moved to fold-const.h.
5254 (merge_weak): Moved to varasm.h.
5255 (mode_for_size_tree): Moved to stor-layout.h.
5256 (multiple_of_p): Moved to fold-const.h.
5257 (must_pass_in_stack_var_size): Moved to calls.h.
5258 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
5259 (native_encode_expr): Moved to fold-const.h.
5260 (native_interpret_expr): Moved to fold-const.h.
5261 (non_lvalue): Moved to fold-const.h.
5262 (non_lvalue_loc): Moved to fold-const.h.
5263 (normalize_offset): Moved to stor-layout.h.
5264 (normalize_rli): Moved to stor-layout.h.
5265 (notice_global_symbol): Moved to varasm.h.
5266 (omit_one_operand): Moved to fold-const.h.
5267 (omit_one_operand_loc): Moved to fold-const.h.
5268 (omit_two_operands): Moved to fold-const.h.
5269 (omit_two_operands_loc): Moved to fold-const.h.
5270 (operand_equal_p): Moved to tree-data-ref.h.
5271 (parse_input_constraint): Moved to stmt.h.
5272 (parse_output_constraint): Moved to stmt.h.
5273 (place_field): Moved to stor-layout.h.
5274 (pop_function_context): Moved to function.h.
5275 (pop_temp_slots): Moved to function.h.
5276 (pos_from_bit): Moved to stor-layout.h.
5277 (preserve_temp_slots): Moved to function.h.
5278 (print_node): Moved to print-tree.h.
5279 (print_node_brief): Moved to print-tree.h.
5280 (print_rtl): Moved to rtl.h.
5281 (process_pending_assemble_externals): Moved to varasm.h.
5282 (ptr_difference_const): Moved to fold-const.h.
5283 (push_function_context): Moved to function.h.
5284 (push_struct_function): Moved to function.h.
5285 (push_temp_slots): Moved to function.h.
5286 (record_tm_replacement): Moved to trans-mem.h.
5287 (relayout_decl): Moved to stor-layout.h.
5288 (resolve_asm_operand_names): Moved to stmt.h.
5289 (resolve_unique_section): Moved to varasm.h.
5290 (rli_size_so_far): Moved to stor-layout.h.
5291 (rli_size_unit_so_far): Moved to stor-layout.h.
5292 (round_down): Moved to fold-const.h.
5293 (round_down_loc): Moved to fold-const.h.
5294 (round_up): Moved to fold-const.h.
5295 (round_up_loc): Moved to fold-const.h.
5296 (set_decl_incoming_rtl): Moved to emit-rtl.h.
5297 (set_decl_rtl): Moved to tree.h.
5298 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
5299 (set_user_assembler_name): Moved to varasm.h.
5300 (setjmp_call_p): Moved to calls.h.
5301 (size_binop): Moved to fold-const.h.
5302 (size_binop_loc): Moved to fold-const.h.
5303 (size_diffop): Moved to fold-const.h.
5304 (size_diffop_loc): Moved to fold-const.h.
5305 (size_int_kind): Moved to fold-const.h.
5306 (stack_protect_epilogue): Moved to function.h.
5307 (start_record_layout): Moved to stor-layout.h.
5308 (supports_one_only): Moved to varasm.h.
5309 (swap_tree_comparison): Moved to fold-const.h.
5310 (tm_malloc_replacement): Moved to trans-mem.h.
5311 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
5312 (tree build_invariant_address): Moved to fold-const.h.
5313 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
5314 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
5315 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
5316 (tree_expr_nonnegative_p): Moved to fold-const.h.
5317 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
5318 (tree_output_constant_def): Moved to varasm.h.
5319 (tree_overlaps_hard_reg_set): Moved to stmt.h.
5320 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
5321 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
5322 (tree_swap_operands_p): Moved to fold-const.h.
5323 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
5324 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
5325 (update_alignment_for_field): Moved to stor-layout.h.
5326 (use_register_for_decl): Moved to function.h.
5327 (variable_size): Moved to rtl.h.
5328 (vector_type_mode): Moved to stor-layout.h.
5329 * cgraph.h: Corresponding changes.
5330 * emit-rtl.h: Corresponding changes.
5331 * expr.h: Corresponding changes.
5332 * function.h: Corresponding changes.
5333 * optabs.h: Corresponding changes.
5334 * trans-mem.h: Corresponding changes.
5335 Protect against multiple inclusion.
5336 * tree-inline.h: Corresponding changes.
5337 * tree-iterator.h: Corresponding changes.
5338 * tree-dfa.h: Include expr.h.
5339 * tree-ssanames.h: Include stringpool.h.
5340 * attribs.h: New file.
5341 * calls.h: New file.
5342 * fold-const.h: New file.
5343 * gcc-symtab.h: New file.
5344 * print-rtl.h: New file.
5345 * print-tree.h: New file.
5346 * stmt.h: New file.
5347 * stor-layout.h: New file.
5348 * strinpool.h: New file.
5349 * tree-nested.h: New file
5350 * tree-object-size.h: New file.
5351 * varasm.h: New file.
5352
5353 2013-11-14 Diego Novillo <dnovillo@google.com>
5354
5355 * alias.c: Include varasm.h.
5356 Include expr.h.
5357 * asan.c: Include calls.h.
5358 Include stor-layout.h.
5359 Include varasm.h.
5360 * attribs.c: Include stringpool.h.
5361 Include attribs.h.
5362 Include stor-layout.h.
5363 * builtins.c: Include stringpool.h.
5364 Include stor-layout.h.
5365 Include calls.h.
5366 Include varasm.h.
5367 Include tree-object-size.h.
5368 * calls.c: Include stor-layout.h.
5369 Include varasm.h.
5370 Include stringpool.h.
5371 Include attribs.h.
5372 * cfgexpand.c: Include stringpool.h.
5373 Include varasm.h.
5374 Include stor-layout.h.
5375 Include stmt.h.
5376 Include print-tree.h.
5377 * cgraph.c: Include varasm.h.
5378 Include calls.h.
5379 Include print-tree.h.
5380 * cgraphclones.c: Include stringpool.h.
5381 Include function.h.
5382 Include emit-rtl.h.
5383 Move inclusion of rtl.h earlier in the file.
5384 * cgraphunit.c: Include varasm.h.
5385 Include stor-layout.h.
5386 Include stringpool.h.
5387 * cilk-common.c: Include stringpool.h.
5388 Include stor-layout.h.
5389 * combine.c: Include stor-layout.h.
5390 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
5391 Include stringpool.h.
5392 Include calls.h.
5393 * config/aarch64/aarch64.c: Include stringpool.h.
5394 Include stor-layout.h.
5395 Include calls.h.
5396 Include varasm.h.
5397 * config/alpha/alpha.c: Include stor-layout.h.
5398 Include calls.h.
5399 Include varasm.h.
5400 * config/arc/arc.c: Include varasm.h.
5401 Include stor-layout.h.
5402 Include stringpool.h.
5403 Include calls.h.
5404 * config/arm/arm.c: Include stringpool.h.
5405 Include stor-layout.h.
5406 Include calls.h.
5407 Include varasm.h.
5408 * config/avr/avr-c.c: Include stor-layout.h.
5409 * config/avr/avr-log.c: Include print-tree.h.
5410 * config/avr/avr.c: Include print-tree.h.
5411 Include calls.h.
5412 Include stor-layout.h.
5413 Include stringpool.h.
5414 * config/bfin/bfin.c: Include varasm.h.
5415 Include calls.h.
5416 * config/c6x/c6x.c: Include stor-layout.h.
5417 Include varasm.h.
5418 Include calls.h.
5419 Include stringpool.h.
5420 * config/cr16/cr16.c: Include stor-layout.h.
5421 Include calls.h.
5422 * config/cris/cris.c: Include varasm.h.
5423 Include stor-layout.h.
5424 Include calls.h.
5425 Include stmt.h.
5426 * config/darwin.c: Include stringpool.h.
5427 Include varasm.h.
5428 Include stor-layout.h.
5429 * config/epiphany/epiphany.c: Include stor-layout.h.
5430 Include varasm.h.
5431 Include calls.h.
5432 Include stringpool.h.
5433 * config/fr30/fr30.c: Include stor-layout.h.
5434 Include varasm.h.
5435 * config/frv/frv.c: Include varasm.h.
5436 Include stor-layout.h.
5437 Include stringpool.h.
5438 * config/h8300/h8300.c: Include stor-layout.h.
5439 Include varasm.h.
5440 Include calls.h.
5441 Include stringpool.h.
5442 * config/i386/i386.c: Include stringpool.h.
5443 Include attribs.h.
5444 Include calls.h.
5445 Include stor-layout.h.
5446 Include varasm.h.
5447 * config/i386/winnt-cxx.c: Include stringpool.h.
5448 Include attribs.h.
5449 * config/i386/winnt.c: Include stringpool.h.
5450 Include varasm.h.
5451 * config/ia64/ia64-c.c: Include stringpool.h.
5452 * config/ia64/ia64.c: Include stringpool.h.
5453 Include stor-layout.h.
5454 Include calls.h.
5455 Include varasm.h.
5456 * config/iq2000/iq2000.c: Include stor-layout.h.
5457 Include calls.h.
5458 Include varasm.h.
5459 * config/lm32/lm32.c: Include calls.h.
5460 * config/m32c/m32c.c: Include stor-layout.h.
5461 Include varasm.h.
5462 Include calls.h.
5463 * config/m32r/m32r.c: Include stor-layout.h.
5464 Include varasm.h.
5465 Include stringpool.h.
5466 Include calls.h.
5467 * config/m68k/m68k.c: Include calls.h.
5468 Include stor-layout.h.
5469 Include varasm.h.
5470 * config/mcore/mcore.c: Include stor-layout.h.
5471 Include varasm.h.
5472 Include stringpool.h.
5473 Include calls.h.
5474 * config/mep/mep.c: Include varasm.h.
5475 Include calls.h.
5476 Include stringpool.h.
5477 Include stor-layout.h.
5478 * config/microblaze/microblaze.c: Include varasm.h.
5479 Include stor-layout.h.
5480 Include calls.h.
5481 * config/mips/mips.c: Include varasm.h.
5482 Include stringpool.h.
5483 Include stor-layout.h.
5484 Include calls.h.
5485 * config/mmix/mmix.c: Include varasm.h.
5486 Include stor-layout.h.
5487 Include calls.h.
5488 * config/mn10300/mn10300.c: Include stor-layout.h.
5489 Include varasm.h.
5490 Include calls.h.
5491 * config/moxie/moxie.c: Include stor-layout.h.
5492 Include varasm.h.
5493 Include calls.h.
5494 * config/msp430/msp430.c: Include stor-layout.h.
5495 Include calls.h.
5496 * config/nds32/nds32.c: Include stor-layout.h.
5497 Include varasm.h.
5498 Include calls.h.
5499 * config/pa/pa.c: Include stor-layout.h.
5500 Include stringpool.h.
5501 Include varasm.h.
5502 Include calls.h.
5503 * config/pdp11/pdp11.c: Include stor-layout.h.
5504 Include varasm.h.
5505 Include calls.h.
5506 * config/picochip/picochip.c: Include calls.h.
5507 Include stor-layout.h.
5508 Include stringpool.h.
5509 Include varasm.h.
5510 * config/rl78/rl78.c: Include varasm.h.
5511 Include stor-layout.h.
5512 Include calls.h.
5513 * config/rs6000/rs6000-c.c: Include stor-layout.h.
5514 Include stringpool.h.
5515 * config/rs6000/rs6000.c: Include stringpool.h.
5516 Include stor-layout.h.
5517 Include calls.h.
5518 Include print-tree.h.
5519 Include varasm.h.
5520 * config/rx/rx.c: Include varasm.h.
5521 Include stor-layout.h.
5522 Include calls.h.
5523 * config/s390/s390.c: Include print-tree.h.
5524 Include stringpool.h.
5525 Include stor-layout.h.
5526 Include varasm.h.
5527 Include calls.h.
5528 * config/score/score.c: Include stringpool.h.
5529 Include calls.h.
5530 Include varasm.h.
5531 Include stor-layout.h.
5532 * config/sh/sh-c.c: Include stringpool.h.
5533 Include attribs.h.h.
5534 * config/sh/sh.c: Include stringpool.h.
5535 Include stor-layout.h.
5536 Include calls.h.
5537 Include varasm.h.
5538 * config/sol2-c.c: Include stringpool.h.
5539 Include attribs.h.
5540 * config/sol2-cxx.c: Include stringpool.h.
5541 * config/sol2.c: Include stringpool.h.
5542 Include varasm.h.
5543 * config/sparc/sparc.c: Include stringpool.h.
5544 Include stor-layout.h.
5545 Include calls.h.
5546 Include varasm.h.
5547 * config/spu/spu-c.c: Include stringpool.h.
5548 * config/spu/spu.c: Include stringpool.h.
5549 Include stor-layout.h.
5550 Include calls.h.
5551 Include varasm.h.
5552 * config/stormy16/stormy16.c: Include stringpool.h.
5553 Include stor-layout.h.
5554 Include varasm.h.
5555 Include calls.h.
5556 * config/tilegx/tilegx.c: Include stringpool.h.
5557 Include stor-layout.h.
5558 Include varasm.h.
5559 Include calls.h.
5560 * config/tilepro/tilepro.c: Include stringpool.h.
5561 Include stor-layout.h.
5562 Include varasm.h.
5563 Include calls.h.
5564 * config/v850/v850-c.c: Include stringpool.h.
5565 Include attribs.h.
5566 * config/v850/v850.c: Include stringpool.h.
5567 Include stor-layout.h.
5568 Include varasm.h.
5569 Include calls.h.
5570 * config/vax/vax.c: Include calls.h.
5571 Include varasm.h.
5572 * config/vms/vms.c: Include stringpool.h.
5573 * config/vxworks.c: Include stringpool.h.
5574 * config/xtensa/xtensa.c: Include stringpool.h.
5575 Include stor-layout.h.
5576 Include calls.h.
5577 Include varasm.h.
5578 * convert.c: Include stor-layout.h.
5579 * coverage.c: Include stringpool.h.
5580 Include stor-layout.h.
5581 * dbxout.c: Include varasm.h.
5582 Include stor-layout.h.
5583 * dojump.c: Include stor-layout.h.
5584 * dse.c: Include stor-layout.h.
5585 * dwarf2asm.c: Include stringpool.h.
5586 Include varasm.h.
5587 * dwarf2cfi.c: Include stor-layout.h.
5588 * dwarf2out.c: Include rtl.h.
5589 Include stringpool.h.
5590 Include stor-layout.h.
5591 Include varasm.h.
5592 Include function.h.
5593 Include emit-rtl.h.
5594 Move inclusion of rtl.h earlier in the file.
5595 * emit-rtl.c: Include varasm.h.
5596 * except.c: Include stringpool.h.
5597 Include stor-layout.h.
5598 * explow.c: Include stor-layout.h.
5599 * expmed.c: Include stor-layout.h.
5600 * expr.c: Include stringpool.h.
5601 Include stor-layout.h.
5602 Include attribs.h.
5603 Include varasm.h.
5604 * final.c: Include varasm.h.
5605 * fold-const.c: Include stor-layout.h.
5606 Include calls.h.
5607 Include tree-iterator.h.
5608 * function.c: Include stor-layout.h.
5609 Include varasm.h.
5610 Include stringpool.h.
5611 * genattrtab.c (write_header): Emit includes for varasm.h,
5612 stor-layout.h and calls.h.
5613 * genautomata.c (main): Likewise.
5614 * genemit.c: Likewise.
5615 * genopinit.c: Likewise.
5616 * genoutput.c (output_prologue): Likewise.
5617 * genpeep.c: Likewise.
5618 * genpreds.c (write_insn_preds_c): Likewise.
5619 * gengtype.c (open_base_files): Add stringpool.h.
5620 * gimple-expr.c: Include stringpool.h.
5621 Include stor-layout.h.
5622 * gimple-fold.c: Include stringpool.h.
5623 Include expr.h.
5624 Include stmt.h.
5625 Include stor-layout.h.
5626 * gimple-low.c: Include tree-nested.h.
5627 Include calls.h.
5628 * gimple-pretty-print.c: Include stringpool.h.
5629 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
5630 Include expr.h.
5631 * gimple-walk.c: Include stmt.h.
5632 * gimple.c: Include calls.h.
5633 Include stmt.h.
5634 Include stor-layout.h.
5635 * gimplify.c: Include stringpool.h.
5636 Include calls.h.
5637 Include varasm.h.
5638 Include stor-layout.h.
5639 Include stmt.h.
5640 Include print-tree.h.
5641 Include expr.h.
5642 * gimplify-me.c: Include stmt.h
5643 Include stor-layout.h
5644 * internal-fn.c: Include stor-layout.h.
5645 * ipa-devirt.c: Include print-tree.h.
5646 Include calls.h.
5647 * ipa-inline-analysis.c: Include stor-layout.h.
5648 Include stringpool.h.
5649 Include print-tree.h.
5650 * ipa-inline.c: Include trans-mem.h.
5651 Include calls.h.
5652 * ipa-prop.c: Include expr.h.
5653 Include stor-layout.h.
5654 Include print-tree.h.
5655 * ipa-pure-const.c: Include print-tree.h.
5656 Include calls.h.
5657 * ipa-reference.c: Include calls.h.
5658 * ipa-split.c: Include stringpool.h.
5659 Include expr.h.
5660 Include calls.h.
5661 * ipa.c: Include calls.h.
5662 Include stringpool.h.
5663 * langhooks.c: Include stringpool.h.
5664 Include attribs.h.
5665 * lto-cgraph.c: Include stringpool.h.
5666 * lto-streamer-in.c: Include stringpool.h.
5667 * lto-streamer-out.c: Include stor-layout.h.
5668 Include stringpool.h.
5669 * omp-low.c: Include stringpool.h.
5670 Include stor-layout.h.
5671 Include expr.h.
5672 * optabs.c: Include stor-layout.h.
5673 Include stringpool.h.
5674 Include varasm.h.
5675 * passes.c: Include varasm.h.
5676 * predict.c: Include calls.h.
5677 * print-rtl.c: Include print-tree.h.
5678 * print-tree.c: Include varasm.h.
5679 Include print-rtl.h.
5680 Include stor-layout.h.
5681 * realmpfr.c: Include stor-layout.h.
5682 * reg-stack.c: Include varasm.h.
5683 * sdbout.c: Include varasm.h.
5684 Include stor-layout.h.
5685 * simplify-rtx.c: Include varasm.h.
5686 * stmt.c: Include varasm.h.
5687 Include stor-layout.h.
5688 * stor-layout.c: Include stor-layout.h.
5689 Include stringpool.h.
5690 Include varasm.h.
5691 Include print-tree.h.
5692 * symtab.c: Include rtl.h.
5693 Include print-tree.h.
5694 Include varasm.h.
5695 Include function.h.
5696 Include emit-rtl.h.
5697 * targhooks.c: Include stor-layout.h.
5698 Include varasm.h.
5699 * toplev.c: Include varasm.h.
5700 Include tree-inline.h.
5701 * trans-mem.c: Include calls.h.
5702 Include function.h.
5703 Include rtl.h.
5704 Include emit-rtl.h.
5705 * tree-affine.c: Include expr.h.
5706 * tree-browser.c: Include print-tree.h.
5707 * tree-call-cdce.c: Include stor-layout.h.
5708 * tree-cfg.c: Include trans-mem.h.
5709 Include stor-layout.h.
5710 Include print-tree.h.
5711 * tree-complex.c: Include stor-layout.h.
5712 * tree-data-ref.c: Include expr.h.
5713 * tree-dfa.c: Include stor-layout.h.
5714 * tree-eh.c: Include expr.h.
5715 Include calls.h.
5716 * tree-emutls.c: Include stor-layout.h.
5717 Include varasm.h.
5718 * tree-if-conv.c: Include stor-layout.h.
5719 * tree-inline.c: Include stor-layout.h.
5720 Include calls.h.
5721 * tree-loop-distribution.c: Include stor-layout.h.
5722 * tree-nested.c: Include stringpool.h.
5723 Include stor-layout.h.
5724 * tree-object-size.c: Include tree-object-size.h.
5725 * tree-outof-ssa.c: Include stor-layout.h.
5726 * tree-parloops.c: Include stor-layout.h.
5727 Include tree-nested.h.
5728 * tree-pretty-print.c: Include stor-layout.h.
5729 Include expr.h.
5730 * tree-profile.c: Include varasm.h.
5731 Include tree-nested.h.
5732 * tree-scalar-evolution.c: Include expr.h.
5733 * tree-sra.c: Include stor-layout.h.
5734 * tree-ssa-address.c: Include stor-layout.h.
5735 * tree-ssa-ccp.c: Include stor-layout.h.
5736 * tree-ssa-dce.c: Include calls.h.
5737 * tree-ssa-dom.c: Include stor-layout.h.
5738 * tree-ssa-forwprop.c: Include stor-layout.h.
5739 * tree-ssa-ifcombine.c: Include stor-layout.h.
5740 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
5741 * tree-ssa-loop-niter.c: Include calls.h.
5742 Include expr.h.
5743 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
5744 * tree-ssa-math-opts.c: Include stor-layout.h.
5745 * tree-ssa-operands.c: Include stmt.h.
5746 Include print-tree.h.
5747 * tree-ssa-phiopt.c: Include stor-layout.h.
5748 * tree-ssa-reassoc.c: Include stor-layout.h.
5749 * tree-ssa-sccvn.c: Include stor-layout.h.
5750 * tree-ssa-sink.c: Include stor-layout.h.
5751 * tree-ssa-strlen.c: Include stor-layout.h.
5752 * tree-ssa-structalias.c: Include stor-layout.h.
5753 Include stmt.h.
5754 * tree-ssa-tail-merge.c: Include stor-layout.h.
5755 Include trans-mem.h.
5756 * tree-ssa-uncprop.c: Include stor-layout.h.
5757 * tree-ssa.c: Include stor-layout.h.
5758 * tree-ssanames.c: Include stor-layout.h.
5759 * tree-streamer-in.c: Include stringpool.h.
5760 * tree-streamer-out.c: Include stor-layout.h.
5761 * tree-switch-conversion.c: Include varasm.h.
5762 Include stor-layout.h.
5763 * tree-tailcall.c: Include stor-layout.h.
5764 * tree-vect-data-refs.c: Include stor-layout.h.
5765 * tree-vect-generic.c: Include stor-layout.h.
5766 * tree-vect-loop.c: Include stor-layout.h.
5767 * tree-vect-patterns.c: Include stor-layout.h.
5768 * tree-vect-slp.c: Include stor-layout.h.
5769 * tree-vect-stmts.c: Include stor-layout.h.
5770 * tree-vectorizer.c: Include stor-layout.h.
5771 * tree-vrp.c: Include stor-layout.h.
5772 Include calls.h.
5773 * tree.c: Include stor-layout.h.
5774 Include calls.h.
5775 Include attribs.h.
5776 Include varasm.h.
5777 * tsan.c: Include expr.h.
5778 * ubsan.c: Include stor-layout.h.
5779 Include stringpool.h.
5780 * value-prof.c: Include tree-nested.h.
5781 Include calls.h.
5782 * var-tracking.c: Include varasm.h.
5783 Include stor-layout.h.
5784 * varasm.c: Include stor-layout.h.
5785 Include stringpool.h.
5786 Include gcc-symtab.h.
5787 Include varasm.h.
5788 * varpool.c: Include varasm.h.
5789 * vmsdbgout.c: Include varasm.h.
5790 * xcoffout.c: Include varasm.h.
5791
5792 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
5793
5794 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
5795 use (.&-4) idiom.
5796
5797 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5798
5799 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
5800
5801 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5802 Alan Modra <amodra@gmail.com>
5803
5804 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
5805 (RS6000_SAVE_TOC): Remove.
5806 (RS6000_TOC_SAVE_SLOT): New macro.
5807 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
5808 (rs6000_parm_start): Use it.
5809 (rs6000_function_arg_advance_1): Likewise.
5810 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
5811 (rs6000_emit_epilogue): Likewise.
5812 (rs6000_call_aix): Likewise.
5813 (rs6000_output_function_prologue): Do not save/restore r11
5814 around calling _mcount for ABI_ELFv2.
5815
5816 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5817 Alan Modra <amodra@gmail.com>
5818
5819 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
5820 Add prototype.
5821 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
5822 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
5823 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
5824 (rs6000_function_parms_need_stack): Likewise.
5825 (rs6000_reg_parm_stack_space): Likewise.
5826 (rs6000_function_arg): Do not replace BLKmode by Pmode when
5827 returning a register argument.
5828
5829 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5830 Michael Gschwind <mkg@us.ibm.com>
5831
5832 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
5833 (ALTIVEC_ARG_MAX_RETURN): Likewise.
5834 (FUNCTION_VALUE_REGNO_P): Use them.
5835 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
5836 (rs6000_return_in_msb): New function.
5837 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
5838 Handle aggregates of up to 16 bytes for ELFv2.
5839 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
5840
5841 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5842 Michael Gschwind <mkg@us.ibm.com>
5843
5844 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5845 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5846 (rs6000_discover_homogeneous_aggregate): Likewise.
5847 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5848 (rs6000_function_arg_advance_1): Likewise.
5849 (rs6000_function_arg): Likewise.
5850 (rs6000_arg_partial_bytes): Likewise.
5851 (rs6000_psave_function_arg): Handle BLKmode arguments.
5852
5853 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5854 Michael Gschwind <mkg@us.ibm.com>
5855
5856 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5857 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5858 (rs6000_discover_homogeneous_aggregate): Likewise.
5859 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5860 (rs6000_function_arg_advance_1): Likewise.
5861 (rs6000_function_arg): Likewise.
5862 (rs6000_arg_partial_bytes): Likewise.
5863 (rs6000_psave_function_arg): Handle BLKmode arguments.
5864
5865 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5866
5867 * config/rs6000/rs6000.c (machine_function): New member
5868 r2_setup_needed.
5869 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
5870 (rs6000_output_mi_thunk): Set r2_setup_needed.
5871 (rs6000_output_function_prologue): Output global entry point
5872 prologue and local entry point marker if needed for ABI_ELFv2.
5873 Output -mprofile-kernel code here.
5874 (output_function_profiler): Do not output -mprofile-kernel
5875 code here; moved to rs6000_output_function_prologue.
5876 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
5877
5878 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
5879 (rs6000_output_function_entry): Likewise.
5880 (rs6000_assemble_integer): Likewise.
5881 (rs6000_elf_encode_section_info): Likewise.
5882 (rs6000_elf_declare_function_name): Do not create dot symbols
5883 or .opd section for ABI_ELFv2.
5884
5885 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
5886 (rs6000_trampoline_init): Likewise.
5887 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
5888
5889 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
5890 for function descriptors in ABI_ELFv2.
5891
5892 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
5893 on ABI_AIX only, not ABI_ELFv2.
5894 ("*call_value_indirect_aix<mode>"): Likewise.
5895 ("*call_indirect_elfv2<mode>"): New pattern.
5896 ("*call_value_indirect_elfv2<mode>"): Likewise.
5897
5898 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
5899 check for function descriptors in ABI_ELFv2.
5900 ("current_file_function_operand"): Likewise.
5901
5902 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
5903 (toc): Undefine.
5904 (FUNC_NAME): Define ELFv2 variant.
5905 (JUMP_TARGET): Likewise.
5906 (FUNC_START): Likewise.
5907 (HIDDEN_FUNC): Likewise.
5908 (FUNC_END): Likeiwse.
5909
5910 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5911
5912 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5913 and --with-abi=elfv2.
5914 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5915 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5916 (mabi=elfv2): Likewise.
5917 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5918 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5919 if !RS6000_BI_ARCH.
5920 (ELFv2_ABI_CHECK): New macro.
5921 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5922 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5923 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5924 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5925 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5926
5927 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5928 (debug_stack_info): Likewise.
5929 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5930 (rs6000_legitimize_tls_address): Likewise.
5931 (rs6000_conditional_register_usage): Likewise.
5932 (rs6000_emit_move): Likewise.
5933 (init_cumulative_args): Likewise.
5934 (rs6000_function_arg_advance_1): Likewise.
5935 (rs6000_function_arg): Likewise.
5936 (rs6000_arg_partial_bytes): Likewise.
5937 (rs6000_output_function_entry): Likewise.
5938 (rs6000_assemble_integer): Likewise.
5939 (rs6000_savres_strategy): Likewise.
5940 (rs6000_stack_info): Likewise.
5941 (rs6000_function_ok_for_sibcall): Likewise.
5942 (rs6000_emit_load_toc_table): Likewise.
5943 (rs6000_savres_routine_name): Likewise.
5944 (ptr_regno_for_savres): Likewise.
5945 (rs6000_emit_prologue): Likewise.
5946 (rs6000_emit_epilogue): Likewise.
5947 (rs6000_output_function_epilogue): Likewise.
5948 (output_profile_hook): Likewise.
5949 (output_function_profiler): Likewise.
5950 (rs6000_trampoline_size): Likewise.
5951 (rs6000_trampoline_init): Likewise.
5952 (rs6000_elf_output_toc_section_asm_op): Likewise.
5953 (rs6000_elf_encode_section_info): Likewise.
5954 (rs6000_elf_reloc_rw_mask): Likewise.
5955 (rs6000_elf_declare_function_name): Likewise.
5956 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5957 except that rs6000_compat_align_parm is always assumed false.
5958 (rs6000_gimplify_va_arg): Likewise.
5959 (rs6000_call_aix): Update comment.
5960 (rs6000_sibcall_aix): Likewise.
5961 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5962 Treat ABI_ELFv2 the same as ABI_AIX.
5963 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5964 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5965 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5966 ("load_toc_aix_si"): Likewise.
5967 ("load_toc_aix_di"): Likewise.
5968 ("call"): Likewise.
5969 ("call_value"): Likewise.
5970 ("*call_local_aix<mode>"): Likewise.
5971 ("*call_value_local_aix<mode>"): Likewise.
5972 ("*call_nonlocal_aix<mode>"): Likewise.
5973 ("*call_value_nonlocal_aix<mode>"): Likewise.
5974 ("*call_indirect_aix<mode>"): Likewise.
5975 ("*call_value_indirect_aix<mode>"): Likewise.
5976 ("sibcall"): Likewise.
5977 ("sibcall_value"): Likewise.
5978 ("*sibcall_aix<mode>"): Likewise.
5979 ("*sibcall_value_aix<mode>"): Likewise.
5980 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5981 ("current_file_function_operand"): Likewise.
5982
5983 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5984
5985 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5986 by making use of the fact that for vector / floating point arguments
5987 passed both in VRs/FPRs and in the fixed parameter area, the partial
5988 bytes mechanism is in fact not used.
5989
5990 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5991
5992 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5993 (rs6000_finish_function_arg): Likewise.
5994 (rs6000_function_arg): Use rs6000_psave_function_arg and
5995 rs6000_finish_function_arg to handle both vector and floating
5996 point arguments that are also passed in GPRs / the stack.
5997
5998 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5999
6000 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
6001 (USE_ALTIVEC_FOR_ARG_P): Likewise.
6002 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
6003 (rs6000_function_arg_advance_1):Likewise.
6004 (rs6000_darwin64_record_arg_recurse): Likewise.
6005 (rs6000_function_arg): Likewise.
6006 (rs6000_arg_partial_bytes): Likewise.
6007
6008 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6009
6010 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
6011 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
6012 (rs6000_savres_strategy): Likewise.
6013 (rs6000_return_addr): Likewise.
6014 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
6015 testing for ABI_V4 (since ABI_DARWIN is impossible here).
6016 (rs6000_emit_prologue): Likewise.
6017 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
6018 (rs6000_elf_declare_function_name): Remove duplicated test.
6019 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
6020 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
6021 ("load_toc_v4_PIC_1_normal"): Likewise.
6022 ("load_toc_v4_PIC_1_476"): Likewise.
6023 ("load_toc_v4_PIC_1b"): Likewise.
6024 ("load_toc_v4_PIC_1b_normal"): Likewise.
6025 ("load_toc_v4_PIC_1b_476"): Likewise.
6026 ("load_toc_v4_PIC_2"): Likewise.
6027 ("load_toc_v4_PIC_3b"): Likewise.
6028 ("load_toc_v4_PIC_3c"): Likewise.
6029 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
6030 (RS6000_SAVE_AREA): Likewise.
6031 (FP_ARG_MAX_REG): Likewise.
6032 (RETURN_ADDRESS_OFFSET): Likewise.
6033 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
6034 of ABI_AIX.
6035 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
6036 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
6037
6038 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6039
6040 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
6041 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
6042 Create call insn directly instead of via various gen_... routines.
6043 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
6044 (rs6000_sibcall_aix): New function.
6045 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
6046 (TOC_SAVE_OFFSET_64BIT): Likewise.
6047 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
6048 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
6049 (AIX_FUNC_DESC_SC_32BIT): Likewise.
6050 (AIX_FUNC_DESC_SC_64BIT): Likewise.
6051 ("call" expander): Call rs6000_call_aix.
6052 ("call_value" expander): Likewise.
6053 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
6054 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
6055 ("*call_indirect_aix<mode>"): ... by this insn pattern.
6056 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
6057 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
6058 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
6059 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
6060 ("*call_nonlocal_aix<mode>"): ... this pattern.
6061 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
6062 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
6063 ("*call_local_aix<mode>"): New insn pattern.
6064 ("*call_value_local_aix<mode>"): Likewise.
6065 ("sibcall" expander): Call rs6000_sibcall_aix.
6066 ("sibcall_value" expander): Likewise. Move earlier in file.
6067 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
6068 ("*sibcall_aix<mode>"): ... this pattern.
6069 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
6070 ("*sibcall_value_aix<mode>"): ... this pattern.
6071 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
6072 (rs6000_call_aix): Add prototype.
6073 (rs6000_sibcall_aix): Likewise.
6074
6075 2013-11-14 Jakub Jelinek <jakub@redhat.com>
6076
6077 PR sanitizer/59122
6078 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
6079 isn't confused by the artificial decl.
6080
6081 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6082
6083 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
6084 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
6085 Instead, add USEs of all modified call-saved CR fields to the
6086 insn storing the result to the stack slot, and provide an
6087 appropriate REG_FRAME_RELATED_EXPR for that insn.
6088 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
6089 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
6090
6091 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6092 Alan Modra <amodra@gmail.com>
6093
6094 * function.c (assign_parms): Use all.reg_parm_stack_space instead
6095 of re-evaluating REG_PARM_STACK_SPACE target macro.
6096 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
6097 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
6098 (assign_parm_find_entry_rtl): Update call.
6099 * calls.c (initialize_argument_information): Update call.
6100 (emit_library_call_value_1): Likewise.
6101 * expr.h (locate_and_pad_parm): Update prototype.
6102
6103 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6104
6105 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
6106 arguments.
6107
6108 2013-11-14 DJ Delorie <dj@redhat.com>
6109
6110 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
6111 to 16 bits.
6112
6113 2013-11-14 Jeff Law <law@redhat.com>
6114
6115 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
6116 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
6117
6118 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6119
6120 * doc/invoke.texi: Update documentation for AArch64's -mcpu
6121 and -mtune options.
6122
6123 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6124
6125 * config/aarch64/aarch64-cores.def (example-1): Remove.
6126 (example-2): Likewise.
6127 * config/aarch64/aarch64-tune.md: Regenerate.
6128 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
6129 (generic_sched): Remove "large", "small".
6130 * config/aarch64/large.md: Delete.
6131 * config/aarch64/small.md: Delete.
6132
6133 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6134
6135 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
6136 * config/aarch64/aarch64-tune.md: Regenerate.
6137 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
6138 (generic_sched): "no" if we are tuning for cortexa15.
6139 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
6140 relative path.
6141
6142 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6143
6144 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
6145 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
6146 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
6147 (all_cores): Use cortexa53 when tuning for "generic".
6148 (aarch64_override_options): Fix comment.
6149 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
6150 * config/aarch64/aarch64-generic.md: Delete.
6151
6152 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6153
6154 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
6155
6156 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6157
6158 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
6159 (generic_rtx_cost_table): Remove.
6160 (aarch64_rtx_costs): Use fields from cpu_cost_table.
6161 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
6162 insn_extra_cost.
6163 (cpu_rtx_cost_table): Remove.
6164
6165 2013-11-14 Julian Brown <julian@codesourcery.com>
6166 Joey Ye <joey.ye@arm.com>
6167
6168 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
6169 (arm_v7m_tune): New.
6170 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
6171 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
6172 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
6173 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
6174
6175 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
6176
6177 PR target/57491
6178 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
6179 flag setting.
6180
6181 2013-11-14 Jakub Jelinek <jakub@redhat.com>
6182 Uros Bizjak <ubizjak@gmail.com>
6183
6184 PR target/59101
6185 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
6186 operands[2] satisfies_constraint_Z that might have bit 31 set.
6187
6188 2013-11-13 Jeff Law <law@redhat.com>
6189
6190 PR tree-optimization/59102
6191 * gimple-ssa-isolate-paths.c
6192 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
6193 gimple assignment before looking at gimple_assign_lhs.
6194
6195 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
6196
6197 * ira.c: Add comment about threads at the top of file.
6198
6199 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
6200
6201 * ira-color.c (coalesce_allocnos): Don't allocate and free
6202 sorted_copies.
6203
6204 2013-11-14 Tom de Vries <tom@codesourcery.com>
6205
6206 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
6207 equality for GIMPLE_ASSIGN.
6208
6209 2013-11-14 Tom de Vries <tom@codesourcery.com>
6210
6211 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
6212 function out of ...
6213 (gimple_equal_p): ... here.
6214
6215 2013-11-14 Tom de Vries <tom@codesourcery.com>
6216
6217 * trans-mem.c (is_tm_ending): New function.
6218 * gimple.h (is_tm_ending): Declare.
6219 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
6220 BUILT_IN_TM_COMMIT.
6221 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
6222
6223 2013-11-14 Tom de Vries <tom@codesourcery.com>
6224
6225 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
6226
6227 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
6228
6229 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
6230 (struct walk_stmt_info): Relocate here from gimple.h.
6231 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
6232 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
6233 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
6234 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
6235 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
6236 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
6237 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
6238 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
6239 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
6240 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
6241 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
6242 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
6243 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
6244 (struct walk_stmt_info): Move to gimple-walk.h.
6245 (gimple_seq_set_location): Move to gimple.c
6246 * gimple-walk.c: New File.
6247 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
6248 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
6249 walk_stmt_load_store_ops): Relocate here from gimple.c.
6250 * gimple-iterator.c: Include gimple-iterator.h.
6251 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
6252 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
6253 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
6254 gimple-walk.c.
6255 (gimple_seq_set_location): Relocate from gimple.h.
6256 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
6257 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
6258 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
6259 * Makefile.in (OBJS): Add gimple-walk.o
6260 * asan.c: Update Include list as required for gimple-iterator.h and
6261 gimple-walk.h.
6262 * cfgexpand.c: Likewise.
6263 * cfgloop.c: Likewise.
6264 * cfgloopmanip.c: Likewise.
6265 * cgraph.c: Likewise.
6266 * cgraphbuild.c: Likewise.
6267 * cgraphunit.c: Likewise.
6268 * gimple-fold.c: Likewise.
6269 * gimple-low.c: Likewise.
6270 * gimple-pretty-print.c: Likewise.
6271 * gimple-ssa-isolate-paths.c: Likewise.
6272 * gimple-ssa-strength-reduction.c: Likewise.
6273 * gimple-streamer-in.c: Likewise.
6274 * gimple-streamer-out.c: Likewise.
6275 * gimplify.c: Likewise.
6276 * graphite-blocking.c: Likewise.
6277 * graphite-clast-to-gimple.c: Likewise.
6278 * graphite-dependences.c: Likewise.
6279 * graphite-interchange.c: Likewise.
6280 * graphite-optimize-isl.c: Likewise.
6281 * graphite-poly.c: Likewise.
6282 * graphite-scop-detection.c: Likewise.
6283 * graphite-sese-to-poly.c: Likewise.
6284 * graphite.c: Likewise.
6285 * ipa-inline-analysis.c: Likewise.
6286 * ipa-profile.c: Likewise.
6287 * ipa-prop.c: Likewise.
6288 * ipa-pure-const.c: Likewise.
6289 * ipa-split.c: Likewise.
6290 * lto-streamer-in.c: Likewise.
6291 * lto-streamer-out.c: Likewise.
6292 * omp-low.c: Likewise.
6293 * predict.c: Likewise.
6294 * profile.c: Likewise.
6295 * sese.c: Likewise.
6296 * tracer.c: Likewise.
6297 * trans-mem.c: Likewise.
6298 * tree-call-cdce.c: Likewise.
6299 * tree-cfg.c: Likewise.
6300 * tree-cfgcleanup.c: Likewise.
6301 * tree-complex.c: Likewise.
6302 * tree-data-ref.c: Likewise.
6303 * tree-dfa.c: Likewise.
6304 * tree-eh.c: Likewise.
6305 * tree-emutls.c: Likewise.
6306 * tree-if-conv.c: Likewise.
6307 * tree-inline.c: Likewise.
6308 * tree-into-ssa.c: Likewise.
6309 * tree-loop-distribution.c: Likewise.
6310 * tree-nested.c: Likewise.
6311 * tree-nrv.c: Likewise.
6312 * tree-object-size.c: Likewise.
6313 * tree-outof-ssa.c: Likewise.
6314 * tree-parloops.c: Likewise.
6315 * tree-predcom.c: Likewise.
6316 * tree-profile.c: Likewise.
6317 * tree-scalar-evolution.c: Likewise.
6318 * tree-sra.c: Likewise.
6319 * tree-ssa-ccp.c: Likewise.
6320 * tree-ssa-coalesce.c: Likewise.
6321 * tree-ssa-copy.c: Likewise.
6322 * tree-ssa-copyrename.c: Likewise.
6323 * tree-ssa-dce.c: Likewise.
6324 * tree-ssa-dom.c: Likewise.
6325 * tree-ssa-dse.c: Likewise.
6326 * tree-ssa-forwprop.c: Likewise.
6327 * tree-ssa-ifcombine.c: Likewise.
6328 * tree-ssa-live.c: Likewise.
6329 * tree-ssa-loop-ch.c: Likewise.
6330 * tree-ssa-loop-im.c: Likewise.
6331 * tree-ssa-loop-ivcanon.c: Likewise.
6332 * tree-ssa-loop-ivopts.c: Likewise.
6333 * tree-ssa-loop-manip.c: Likewise.
6334 * tree-ssa-loop-niter.c: Likewise.
6335 * tree-ssa-loop-prefetch.c: Likewise.
6336 * tree-ssa-loop.c: Likewise.
6337 * tree-ssa-math-opts.c: Likewise.
6338 * tree-ssa-phiopt.c: Likewise.
6339 * tree-ssa-phiprop.c: Likewise.
6340 * tree-ssa-pre.c: Likewise.
6341 * tree-ssa-propagate.c: Likewise.
6342 * tree-ssa-reassoc.c: Likewise.
6343 * tree-ssa-sink.c: Likewise.
6344 * tree-ssa-strlen.c: Likewise.
6345 * tree-ssa-structalias.c: Likewise.
6346 * tree-ssa-tail-merge.c: Likewise.
6347 * tree-ssa-ter.c: Likewise.
6348 * tree-ssa-threadedge.c: Likewise.
6349 * tree-ssa-threadupdate.c: Likewise.
6350 * tree-ssa-uncprop.c: Likewise.
6351 * tree-ssa-uninit.c: Likewise.
6352 * tree-ssa.c: Likewise.
6353 * tree-stdarg.c: Likewise.
6354 * tree-switch-conversion.c: Likewise.
6355 * tree-tailcall.c: Likewise.
6356 * tree-vect-data-refs.c: Likewise.
6357 * tree-vect-generic.c: Likewise.
6358 * tree-vect-loop-manip.c: Likewise.
6359 * tree-vect-loop.c: Likewise.
6360 * tree-vect-patterns.c: Likewise.
6361 * tree-vect-slp.c: Likewise.
6362 * tree-vect-stmts.c: Likewise.
6363 * tree-vectorizer.c: Likewise.
6364 * tree-vrp.c: Likewise.
6365 * tree.c: Likewise.
6366 * tsan.c: Likewise.
6367 * value-prof.c: Likewise.
6368 * vtable-verify.c: Likewise.
6369
6370 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
6371
6372 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
6373 fix.
6374
6375 2013-11-13 Jeff Law <law@redhat.com>
6376
6377 * PR middle-end/59119
6378 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
6379 function, extracted from gimple_ssa_isolate_erroneous_paths.
6380 (find_explicit_erroneous_behaviour): Similarly.
6381 (insert_trap_and_remove_trailing_statements): Remove statements
6382 in reverse order.
6383
6384 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
6385
6386 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
6387 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
6388 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
6389 looking at INSN_CODE.
6390 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
6391 active_insn_p object, respect basic block boundaries.
6392 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
6393 follows immediately after the jump table data label.
6394 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
6395 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
6396 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
6397
6398 2013-11-13 Teresa Johnson <tejohnson@google.com>
6399
6400 PR ipa/58862
6401 * predict.c (drop_profile): Error is currently too strict.
6402 (handle_missing_profiles): Pass call_count to drop_profile.
6403
6404 2013-11-13 Teresa Johnson <tejohnson@google.com>
6405
6406 PR ipa/58862
6407 * ipa-inline.c (edge_badness): Fix overflow.
6408
6409 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
6410
6411 PR rtl-optimization/59036
6412 * ira-color.c (struct allocno_color_data): Add new members
6413 first_thread_allocno, next_thread_allocno, thread_freq.
6414 (sorted_copies): New static var.
6415 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
6416 (allocno_thread_conflict_p, merge_threads)
6417 (form_threads_from_copies, form_threads_from_bucket)
6418 (form_threads_from_colorable_allocno, init_allocno_threads): New
6419 functions.
6420 (bucket_allocno_compare_func): Add comparison by thread frequency
6421 and threads.
6422 (add_allocno_to_ordered_bucket): Rename to
6423 add_allocno_to_ordered_colorable_bucket. Remove parameter.
6424 (push_only_colorable): Call form_threads_from_bucket.
6425 (color_pass): Call init_allocno_threads. Use
6426 consideration_allocno_bitmap instead of coloring_allocno_bitmap
6427 for nuillify allocno color data.
6428 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
6429 (coalesce_allocnos): Use static sorted copies.
6430
6431 2013-11-13 Jakub Jelinek <jakub@redhat.com>
6432
6433 * passes.c (execute_todo): Don't call do_per_function if
6434 flags are zero.
6435 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
6436 execute_function_dump if dump_file is NULL.
6437
6438 2013-11-13 Martin Jambor <mjambor@suse.cz>
6439
6440 * cgraph.c (cgraph_get_create_node): Do what
6441 cgraph_get_create_real_symbol_node used to do.
6442 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
6443 call cgraph_get_create_node.
6444 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
6445 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
6446 cgraph_get_create_node. Assert we get a node.
6447
6448 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
6449
6450 * config/aarch64/aarch64-simd.md (vec_extract): New.
6451
6452 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
6453
6454 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
6455 the constraint.
6456
6457 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
6458
6459 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
6460 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
6461 or if optimization is enabled.
6462 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
6463 require that all the names based on a PARM_DECL or a RESULT_DECL that
6464 isn't ignored for debug info be coalesced.
6465
6466 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6467
6468 * config/c6x/c6x.c: Include "gimple-expr.h".
6469
6470 2013-11-13 Richard Biener <rguenther@suse.de>
6471
6472 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
6473 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
6474 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
6475 dealing with type mismatches inside component reference chains.
6476
6477 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
6478
6479 PR tree-optimization/59077
6480 * ipa-pure-const.c (better_state): Update *state.
6481
6482 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
6483
6484 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
6485 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
6486 Update offset calculations.
6487
6488 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
6489
6490 PR ada/35998
6491 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
6492 for fields. Do not add the attribute if the size is negative.
6493
6494 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6495
6496 * config/arm/arm.c: Include aarch-cost-tables.h.
6497 (generic_extra_costs): Move from here...
6498 * config/arm/aarch-cost-tables.h: ... To here. New file.
6499
6500 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
6501 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6502 Sergey Lega <sergey.s.lega@intel.com>
6503 Anna Tikhonova <anna.tikhonova@intel.com>
6504 Ilya Tocar <ilya.tocar@intel.com>
6505 Andrey Turetskiy <andrey.turetskiy@intel.com>
6506 Ilya Verbin <ilya.verbin@intel.com>
6507 Kirill Yukhin <kirill.yukhin@intel.com>
6508 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6509
6510 * config/i386/i386.c (ix86_print_operand): Support z-masking.
6511 * config/i386/predicate.md (const_0_to_4_operand): New.
6512 (const_0_to_5_operand): Ditto.
6513 * config/i386/sse.md (UNSPEC_COMPRESS): New.
6514 (UNSPEC_COMPRESS_STORE): Ditto.
6515 (UNSPEC_EXPAND): Ditto.
6516 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
6517 (define_mode_attr ssescalarsize): Ditto.
6518 (avx512f_load<mode>_mask): Ditto.
6519 (avx512f_store<mode>_mask): Ditto.
6520 (avx512f_storedqu<mode>_mask): Ditto.
6521 (avx512f_vmcmp<mode>3_mask): Ditto.
6522 (avx512f_fmadd_<mode>_mask): Ditto.
6523 (avx512f_fmadd_<mode>_mask3): Ditto.
6524 (avx512f_fmsub_<mode>_mask): Ditto.
6525 (avx512f_fmsub_<mode>_mask3): Ditto.
6526 (avx512f_fnmadd_<mode>_mask): Ditto.
6527 (avx512f_fnmadd_<mode>_mask3): Ditto.
6528 (avx512f_fnmsub_<mode>_mask): Ditto.
6529 (avx512f_fnmsub_<mode>_mask3): Ditto.
6530 (avx512f_fmaddsub_<mode>_mask): Ditto.
6531 (avx512f_fmaddsub_<mode>_mask3): Ditto.
6532 (avx512f_fmsubadd_<mode>_mask): Ditto.
6533 (avx512f_fmsubadd_<mode>_mask3): Ditto.
6534 (vec_unpacku_float_lo_v16si): Ditto.
6535 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
6536 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
6537 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
6538 (vec_extract_lo_<mode>_maskm): Ditto.
6539 (vec_extract_hi_<mode>_maskm): Ditto.
6540 (avx512f_vternlog<mode>_mask): Ditto.
6541 (avx512f_shufps512_mask): Ditto.
6542 (avx512f_fixupimm<mode>_mask): Ditto.
6543 (avx512f_shufpd512_mask): Ditto.
6544 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
6545 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
6546 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
6547 (ashr<mode>3<mask_name>): Ditto.
6548 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
6549 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
6550 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
6551 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
6552 (avx512f_pshufdv3_mask): Ditto.
6553 (avx512f_perm<mode>_mask): Ditto.
6554 (avx512f_vpermi2var<mode>3_mask): Ditto.
6555 (avx512f_vpermt2var<mode>3_mask): Ditto.
6556 (avx512f_compress<mode>_mask): Ditto.
6557 (avx512f_compressstore<mode>_mask): Ditto.
6558 (avx512f_expand<mode>_mask): Ditto.
6559 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
6560 to support masking.
6561 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
6562 (<plusminus_insn><mode>3<mask_name>): Ditto.
6563 (*<plusminus_insn><mode>3<mask_name>): Ditto.
6564 (mul<mode>3<mask_name>): Ditto.
6565 (*mul<mode>3<mask_name>): Ditto.
6566 (<sse>_div<mode>3<mask_name>): Ditto.
6567 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
6568 (<sse>_sqrt<mode>2<mask_name>): Ditto.
6569 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
6570 (<code><mode>3<mask_name>/smaxmin): Ditto.
6571 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
6572 (*<code><mode>3<mask_name>/smaxmin): Ditto.
6573 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
6574 (ufloatv16siv16sf2<mask_name>): Ditto.
6575 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
6576 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
6577 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
6578 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
6579 (ufloatv8siv8df<mask_name>): Ditto.
6580 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
6581 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
6582 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
6583 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
6584 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
6585 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
6586 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
6587 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
6588 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
6589 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
6590 (vec_extract_lo_<mode><mask_name>): Ditto.
6591 (vec_extract_hi_<mode><mask_name>): Ditto.
6592 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
6593 (avx512f_movddup512<mask_name>): Ditto.
6594 (avx512f_unpcklpd512<mask_name>): Ditto.
6595 (*avx512f_unpcklpd512<mask_name>): Ditto.
6596 (*avx512f_vmscalef<mode>): Ditto.
6597 (avx512f_scalef<mode><mask_name>): Ditto.
6598 (avx512f_getexp<mode><mask_name>): Ditto.
6599 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
6600 (avx512f_rndscale<mode><mask_name>): Ditto.
6601 (avx512f_shufps512_1<mask_name>): Ditto.
6602 (avx512f_shufpd512_1<mask_name>): Ditto.
6603 (<plusminus_insn><mode>3<mask_name>): Ditto.
6604 (*<plusminus_insn><mode>3<mask_name>): Ditto.
6605 (vec_widen_umult_even_v16si<mask_name>): Ditto.
6606 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
6607 (vec_widen_smult_even_v16si<mask_name>): Ditto.
6608 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
6609 (mul<mode>3<mask_name>): Ditto.
6610 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
6611 (<shift_insn><mode>3<mask_name>): Ditto.
6612 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
6613 (avx512f_<rotate><mode><mask_name>): Ditto.
6614 (<code><mode>3<mask_name>/maxmin): Ditto.
6615 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
6616 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
6617 (*andnot<mode>3<mask_name>): Ditto.
6618 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
6619 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
6620 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
6621 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
6622 (vec_set_lo_<mode><mask_name>): Ditto.
6623 (vec_set_hi_<mode><mask_name>): Ditto.
6624 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
6625 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
6626 (avx512f_pshufd_1<mask_name>): Ditto.
6627 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
6628 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
6629 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
6630 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
6631 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
6632 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
6633 (avx512er_exp2<mode><mask_name>): Ditto.
6634 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
6635 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
6636 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
6637 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
6638 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
6639 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
6640 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
6641 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
6642 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
6643 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
6644 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
6645 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
6646 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
6647 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
6648 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
6649 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
6650 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
6651 (avx512f_getmant<mode><mask_name>): Ditto.
6652 (clz<mode>2<mask_name>): Ditto.
6653 (<mask_codefor>conflict<mode><mask_name>): Ditto.
6654 (*srcp14<mode>): Remove visibility.
6655 (*rsqrt14<mode>): Ditto.
6656 (*fma_fmsub_<mode>): Ditto.
6657 (*fma_fnmadd_<mode>): Ditto.
6658 (*avx512f_rndscale<mode>): Ditto.
6659 * config/i386/subst.md: New file.
6660
6661 2013-11-13 Joseph Myers <joseph@codesourcery.com>
6662
6663 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
6664 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
6665 (atomic_load_explicit, atomic_exchange_explicit)
6666 (atomic_compare_exchange_strong_explicit)
6667 (atomic_compare_exchange_weak_explicit): Use __auto_type to
6668 declare variable initialized with PTR argument.
6669
6670 2013-11-12 Jeff Law <law@redhat.com>
6671
6672 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
6673 backedge_seen_p. Set, use and pass it to children appropriately.
6674 (thread_through_normal_block): Similarly.
6675 (thread_across_edge): Similarly.
6676
6677 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
6678 memory references as volatile.
6679 (insert_trap_and_remove_trailing_statements): Fix comment.
6680
6681 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
6682
6683 PR other/58712
6684 * ira-costs.c (record_operand_costs): Check operands number for
6685 the single set.
6686
6687 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6688
6689 PR target/59054
6690 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
6691 constraints that would allow DImode into the traditional Altivec
6692 registers, but cause undesirable code generation when loading 0 as
6693 a constant.
6694 (movdi_internal64): Likewise.
6695 (cmp<mode>_fpr): Do not use %x for CR register output.
6696 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
6697 -mallow-upper-sf debug switches are used.
6698
6699 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
6700
6701 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
6702 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
6703 Relocate prototypes from gimple.h.
6704 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
6705 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
6706 from gimple.h.
6707 * gimple.h: Move some prototypes to gimplify.h.
6708 (gimple_predicate, enum fallback, enum gimplify_status): Move to
6709 gimplify.h.
6710 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
6711 Relocate from gimpify.c.
6712 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6713 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
6714 is_gimple_reg_rhs) Relocate from gimplify.c.
6715 * gimplify.c (mark_addressable): Move to gimple-expr.c.
6716 (gimple_seq_add_stmt_without_update): Move to gimple.c.
6717 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6718 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
6719 is_gimple_reg_rhs): Move to gimple-expr.c.
6720 (should_carry_location_p): Move to gimple.c.
6721 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
6722 to gimple.h.
6723 (annotate_one_with_location, annotate_all_with_location_after,
6724 annotate_all_with_location): Move to gimple.c.
6725 (compare_case_labels, sort_case_labels,
6726 preprocess_case_label_vec_for_gimple): Move to gimple.c.
6727 (rhs_predicate_for): Make static.
6728 (gimplify_assign): Relocate from gimple.c.
6729 * gimple.c (gimplify_assign): Move to gimplify.c.
6730 (gimple_seq_add_stmt_without_update, should_carry_location_p,
6731 annotate_one_with_location, annotate_all_with_location_after,
6732 annotate_all_with_location, compare_case_labels, sort_case_labels,
6733 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
6734 * tree.h (unshare_expr, unshare_expr_without_location,
6735 mark_addressable): Move prototypes to gimplify.h.
6736 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
6737 tmp_var_id_num
6738 * asan.c: Include gimplify.h rather than gimple.h.
6739 * cfgloopmanip.c: Likewise.
6740 * cgraphunit.c: Likewise.
6741 * cilk-common.c: Likewise.
6742 * dwarf2out.c: Dont include gimple.h.
6743 * fold-const.c: Include gimplify.h rather than gimple.h.
6744 * function.c: Likewise.
6745 * gimple-fold.c: Likewise.
6746 * gimple-ssa-strength-reduction.c: Likewise.
6747 * graphite-clast-to-gimple.c: Likewise.
6748 * graphite-sese-to-poly.c: Likewise.
6749 * ipa-prop.c: Likewise.
6750 * ipa-split.c: Likewise.
6751 * ipa.c: Likewise.
6752 * langhooks.c: Dont include gimple.h.
6753 * loop-init.c: Include gimplify.h rather than gimple.h.
6754 * omp-low.c: Likewise.
6755 * sese.c: Likewise.
6756 * stor-layout.c: Likewise.
6757 * targhooks.c: Likewise.
6758 * trans-mem.c: Likewise.
6759 * tree-affine.c: Likewise.
6760 * tree-cfg.c: Likewise.
6761 * tree-cfgcleanup.c: Likewise.
6762 * tree-complex.c: Likewise.
6763 * tree-if-conv.c: Likewise.
6764 * tree-inline.c: Likewise.
6765 * tree-iterator.c: Likewise.
6766 * tree-loop-distribution.c: Likewise.
6767 * tree-nested.c: Likewise.
6768 * tree-parloops.c: Likewise.
6769 * tree-predcom.c: Likewise.
6770 * tree-profile.c: Likewise.
6771 * tree-scalar-evolution.c: Likewise.
6772 * tree-sra.c: Likewise.
6773 * tree-ssa-address.c: Likewise.
6774 * tree-ssa-ccp.c: Likewise.
6775 * tree-ssa-dce.c: Likewise.
6776 * tree-ssa-forwprop.c: Likewise.
6777 * tree-ssa-ifcombine.c: Likewise.
6778 * tree-ssa-loop-im.c: Likewise.
6779 * tree-ssa-loop-ivopts.c: Likewise.
6780 * tree-ssa-loop-manip.c: Likewise.
6781 * tree-ssa-loop-niter.c: Likewise.
6782 * tree-ssa-loop-prefetch.c: Likewise.
6783 * tree-ssa-loop-unswitch.c: Likewise.
6784 * tree-ssa-math-opts.c: Likewise.
6785 * tree-ssa-phiopt.c: Likewise.
6786 * tree-ssa-phiprop.c: Likewise.
6787 * tree-ssa-pre.c: Likewise.
6788 * tree-ssa-propagate.c: Likewise.
6789 * tree-ssa-reassoc.c: Likewise.
6790 * tree-ssa-sccvn.c: Likewise.
6791 * tree-ssa-strlen.c: Likewise.
6792 * tree-ssa.c: Likewise.
6793 * tree-switch-conversio: Likewise.n.c
6794 * tree-tailcall.c: Likewise.
6795 * tree-vect-data-refs.c: Likewise.
6796 * tree-vect-generic.c: Likewise.
6797 * tree-vect-loop-manip.c: Likewise.
6798 * tree-vect-loop.c: Likewise.
6799 * tree-vect-patterns.c: Likewise.
6800 * tree-vect-stmts.c: Likewise.
6801 * tsan.c: Likewise.
6802 * value-prof.c: Likewise.
6803 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
6804 * config/alpha/alpha.c: Likewise.
6805 * config/darwin.c: Likewise.
6806 * config/i386/i386.c: Likewise.
6807 * config/ia64/ia64.c: Likewise.
6808 * config/mep/mep.c: Likewise.
6809 * config/mips/mips.c: Likewise.
6810 * config/rs6000/rs6000.c: Likewise.
6811 * config/s390/s390.c: Likewise.
6812 * config/sh/sh.c: Likewise.
6813 * config/sparc/sparc.c: Likewise.
6814 * config/spu/spu.c: Likewise.
6815 * config/stormy16/stormy16.c: Likewise.
6816 * config/tilegx/tilegx.c: Likewise.
6817 * config/tilepro/tilepro.c: Likewise.
6818 * config/xtensa/xtensa.c: Likewise.
6819
6820 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
6821
6822 * tree.c (grow_tree_vec_stat): New function ...
6823 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
6824 and macro front-end.
6825
6826 2013-11-12 Marek Polacek <polacek@redhat.com>
6827
6828 * final.c (update_alignments): Initialize label to NULL_RTX.
6829
6830 2013-11-12 Jeff Law <law@redhat.com>
6831
6832 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
6833 (insert_trap_and_remove_trailing_statements): New argument OP which
6834 is the NULL pointer. Emit the trap after the load/store through
6835 the NULL pointer. Simplify the RHS of a store through a NULL pointer
6836 when trivial to do so.
6837 (isolate_path): Corresponding changes.
6838 (gimple_ssa_isolate_erroneous_path): Likewise.
6839
6840 2013-11-12 Teresa Johnson <tejohnson@google.com>
6841 Jan Hubicka <jh@suse.cz>
6842
6843 * predict.c (drop_profile): New function.
6844 (handle_missing_profiles): Ditto.
6845 (counts_to_freqs): Don't overwrite estimated frequencies
6846 when function has no profile counts.
6847 * predict.h (handle_missing_profiles): Declare.
6848 * tree-inline.c (freqs_to_counts): New function.
6849 (copy_cfg_body): Invoke freqs_to_counts as needed.
6850 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
6851
6852 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6853
6854 PR target/59088
6855 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
6856 Set for m_HASWELL.
6857 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
6858
6859 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6860
6861 PR target/59084
6862 * config/i386/i386.c (ix86_option_override_internal): Check
6863 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
6864 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
6865 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
6866 MASK_AVX256_SPLIT_UNALIGNED_STORE.
6867
6868 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
6869 Clear m_COREI7_AVX and update comments.
6870 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
6871
6872 2013-11-12 Martin Jambor <mjambor@suse.cz>
6873
6874 PR rtl-optimization/10474
6875 * ira.c (interesting_dest_for_shprep): New function.
6876 (split_live_ranges_for_shrink_wrap): Likewise.
6877 (find_moveable_pseudos): Move calculation of dominance info,
6878 df_analysios and the final anlyses to...
6879 (ira): ...here, call split_live_ranges_for_shrink_wrap.
6880
6881 2013-11-12 Bin Cheng <bin.cheng@arm.com>
6882
6883 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
6884 Handle type conversion.
6885
6886 2013-11-11 Martin Liska <marxin.liska@gmail.com>
6887 Jan Hubicka <jh@suse.cz>
6888
6889 * cgraph.c (dump_cgraph_node): Profile dump added.
6890 * cgraph.h (struct cgraph_node): New time profile variable added.
6891 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
6892 * gcov-io.h (gcov_type): New profiler type introduced.
6893 * ipa-profile.c (lto_output_node): Streaming for time profile added.
6894 (input_node): Time profiler is read from LTO stream.
6895 * predict.c (maybe_hot_count_p): Hot prediction changed.
6896 * profile.c (instrument_values): New case for time profiler added.
6897 (compute_value_histograms): Read of time profile.
6898 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
6899 * tree-profile.c (init_ic_make_global_vars): Time profiler
6900 function added.
6901 (gimple_init_edge_profiler): TP function instrumentation.
6902 (gimple_gen_time_profiler): New.
6903 * value-prof.c (gimple_add_histogram_value): Support for time profiler
6904 added.
6905 (dump_histogram_value): TP type added to dumps.
6906 (visit_hist): More sensitive check that takes TP into account.
6907 (gimple_find_values_to_profile): TP instrumentation.
6908 * value-prof.h (hist_type): New histogram type added.
6909 (struct histogram_value_t): Pointer to struct function added.
6910 * libgcc/Makefile.in: New GCOV merge function for TP added.
6911 * libgcov.c: function_counter variable introduced.
6912 (_gcov_merge_time_profile): New.
6913 (_gcov_time_profiler): New.
6914
6915 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
6916 Jeff Law <law@redhat.com>
6917
6918 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6919 ao_ref_init_from_ptr_and_size for builtins.
6920
6921 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
6922 H.J. Lu <hongjiu.lu@intel.com>
6923
6924 PR target/58853
6925 * config/i386/x86-tune.def
6926 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6927 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6928 * config/i386/i386.h
6929 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6930 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
6931 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6932 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6933 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6934 misaligned_prologue_used. Check that
6935 desired_aling <= epilogue_size_needed.
6936
6937 2013-11-11 Cong Hou <congh@google.com>
6938
6939 PR tree-optimization/59050
6940 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6941
6942 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6943
6944 PR middle-end/59049
6945 * expmed.c (emit_store_flag): Fail for const-const comparison.
6946
6947 2013-11-11 Tristan Gingold <gingold@adacore.com>
6948 Eric Botcazou <ebotcazou@adacore.com>
6949
6950 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6951 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6952 * tree.def (CONSTRUCTOR): Likewise.
6953 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
6954 * gimplify.c (gimplify_init_constructor): Do not clear the object when
6955 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6956
6957 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
6958
6959 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6960 diagnostic_finish.
6961
6962 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6963
6964 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6965 comparisons.
6966
6967 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6968
6969 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6970
6971 2013-11-08 Jeff Law <law@redhat.com>
6972
6973 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6974 threading paths first, then perform PHI node checks if applicable.
6975
6976 2013-11-10 Karlson2k <k2k@narod.ru>
6977 Kai Tietz <ktietz@redhat.com>
6978
6979 PR plugin/52872
6980 * configure.ac: Adding for exported symbols check
6981 and for rdynamic-check executable-extension.
6982 * configure: Regenerated.
6983
6984 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
6985
6986 * mode-switching.c (optimize_mode_switching): Mark block as
6987 nontransparent, if last_mode at block exit is different from no_mode.
6988
6989 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6990
6991 * function.c (NAME__MAIN): Move to...
6992 * cfgexpand.c (NAME__MAIN): ...here.
6993
6994 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
6995
6996 * target.def (can_use_doloop_p): New hook.
6997 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6998 * doc/tm.texi: Regenerate.
6999 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
7000 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
7001 * hooks.c (hook_bool_dint_dint_uint_true): New function.
7002 * targhooks.h (can_use_doloop_if_innermost): Declare.
7003 * targhooks.c (can_use_doloop_if_innermost): New function.
7004 * target.h: Include double-int.h.
7005 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
7006 Remove iteration count, maximum iteration count, loop depth and
7007 enter-at-top inputs from doloop_begin and doloop_end.
7008 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
7009 interface.
7010 * config/arc/arc.c (arc_can_use_doloop_p): New function.
7011 (TARGET_CAN_USE_DOLOOP_P): Define.
7012 * config/arm/thumb2.md (doloop_end): Update for new interface.
7013 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
7014 * config/bfin/bfin.md (doloop_end): Update for new interface.
7015 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
7016 (TARGET_CAN_USE_DOLOOP_P): Define.
7017 * config/c6x/c6x.md (doloop_end): Update for new interface.
7018 * config/ia64/ia64.md (doloop_end): Update for new interface.
7019 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
7020 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
7021 interface.
7022 * config/mep/mep.c (mep_emit_doloop): Likewise.
7023 (TARGET_CAN_USE_DOLOOP_P): Define.
7024 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
7025 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
7026 * config/s390/s390.md (doloop_end): Update for new interface.
7027 * config/sh/sh.md (doloop_end): Likewise.
7028 * config/spu/spu.md (doloop_end): Likewise.
7029 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
7030 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
7031 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
7032 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
7033 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
7034 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
7035 interface.
7036 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
7037
7038 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
7039
7040 PR other/59055
7041 * doc/extend.texi: Move Cilk Plus Builtins node before Other
7042 Builtins node.
7043
7044 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
7045 Joseph Myers <joseph@codesourcery.com>
7046
7047 * ginclude/stdatomic.h: New file.
7048 * Makefile.in (USER_H): Add stdatomic.h.
7049
7050 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7051
7052 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
7053 comparisons.
7054
7055 2013-11-08 Jeff Law <law@redhat.com>
7056
7057 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
7058 * tree-ssa-threadupdate.c (delete_thread_path): New function.
7059 (ssa_redirect_edges, thread_block_1): Use it.
7060 (thread_through_loop_header, mark_threaded_blocks): Likewise.
7061 (thread_through_all_blocks, register_jump_thread): Likewise.
7062 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
7063
7064 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
7065
7066 * config/arm/aarch-common.c
7067 (search_term): New typedef.
7068 (shift_rtx_costs): New array.
7069 (arm_rtx_shift_left_p): New.
7070 (arm_find_sub_rtx_with_search_term): Likewise.
7071 (arm_find_sub_rtx_with_code): Likewise.
7072 (arm_early_load_addr_dep): Add sanity checking.
7073 (arm_no_early_alu_shift_dep): Likewise.
7074 (arm_no_early_alu_shift_value_dep): Likewise.
7075 (arm_no_early_mul_dep): Likewise.
7076 (arm_no_early_store_addr_dep): Likewise.
7077
7078 2013-11-08 Richard Biener <rguenther@suse.de>
7079
7080 PR tree-optimization/59047
7081 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
7082
7083 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
7084
7085 * common.opt (fcheck-pointer-bounds): Move to ...
7086 * c-family/c.opt: ... here.
7087 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
7088 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
7089 * langhooks.h (lang_hooks): Remove chkp_supported field.
7090 * toplev.c (process_options): Remove chkp_supported check.
7091
7092 2013-11-08 Richard Biener <rguenther@suse.de>
7093
7094 PR tree-optimization/59038
7095 PR tree-optimization/58955
7096 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
7097 previous change. Handle known dependences correctly.
7098
7099 2013-11-08 Tom de Vries <tom@codesourcery.com>
7100
7101 * config/rs6000/t-xilinx: Remove duplicate contents.
7102
7103 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
7104 Joseph Myers <joseph@codesourcery.com>
7105
7106 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
7107 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
7108 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
7109 (struct tree_base): Add atomic_flag field.
7110 * tree.h (TYPE_ATOMIC): New accessor macro.
7111 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
7112 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
7113 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
7114 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
7115 * tree.c (set_type_quals): Set TYPE_ATOMIC.
7116 (find_atomic_core_type): New function.
7117 (build_qualified_type): Adjust alignment for qualified types.
7118 (build_atomic_base): New function
7119 (build_common_tree_nodes): Build atomicQI_type_node,
7120 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
7121 atomicTI_type_node.
7122 * print-tree.c (print_node): Print atomic qualifier.
7123 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
7124 * target.def (atomic_assign_expand_fenv): New hook.
7125 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
7126 * doc/tm.texi: Regenerate.
7127 * targhooks.c (default_atomic_assign_expand_fenv): New function.
7128 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
7129 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
7130 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
7131 function type.
7132 * config/i386/i386.c (enum ix86_builtins): Add
7133 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
7134 IX86_BUILTIN_FNCLEX.
7135 (bdesc_special_args): Add __builtin_ia32_fnstenv,
7136 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
7137 (ix86_expand_builtin): Handle the new built-in functions.
7138 (ix86_atomic_assign_expand_fenv): New function.
7139 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
7140 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
7141 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
7142 (fnstenv, fldenv, fnstsw, fnclex): New insns.
7143
7144 2013-11-07 Steve Ellcey <sellcey@mips.com>
7145
7146 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
7147 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
7148 (MULTILIB_DIRNAMES): Add fp64 directory.
7149 (MULTILIB_EXCEPTIONS): Add new exclusions.
7150
7151 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
7152
7153 * gimplify.c (gimple_regimplify_operands): Do not set
7154 SSA_NAME_DEF_STMT.
7155 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
7156 (rewrite_close_phi_out_of_ssa): Same.
7157 (rewrite_phi_out_of_ssa): Same.
7158 (rewrite_degenerate_phi): Same.
7159 (handle_scalar_deps_crossing_scop_limits): Same.
7160 * tree-if-conv.c (predicate_scalar_phi): Same.
7161 * tree-parloops.c (create_loads_for_reductions): Same.
7162 (create_final_loads_for_reduction): Same.
7163 (create_loads_and_stores_for_name): Same.
7164 (transform_to_exit_first_loop): Same.
7165 (create_parallel_loop): Same.
7166 * tree-ssa-loop-im.c
7167 (move_computations_dom_walker::before_dom_children): Same.
7168 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
7169 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
7170 * tree-ssa-propagate.c (substitute_and_fold): Same.
7171 * tree-vect-loop.c (vect_finalize_reduction): Same.
7172 * tree-vect-stmts.c (vectorizable_call): Same.
7173
7174 2013-11-07 Mike Stump <mikestump@comcast.net>
7175
7176 * config/pdp11/pdp11.c: Include dbxout.h.
7177 * config/picochip/picochip.c: Likewise.
7178
7179 2013-11-07 Cong Hou <congh@google.com>
7180
7181 PR tree-optimization/56764
7182 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7183 Combine alias checks if it is possible to amortize the runtime
7184 overhead. Return the number of alias checks after merging.
7185 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7186 Use the function vect_create_cond_for_alias_checks () to check
7187 the number of alias checks.
7188
7189 2013-11-07 Jeff Law <law@redhat.com>
7190
7191 * varpool.c (ctor_for_folding): Fix typo in comment.
7192
7193 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
7194
7195 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
7196 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
7197
7198 2013-11-07 Jeff Law <law@redhat.com>
7199
7200 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
7201
7202 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
7203 No longer check if we have __builtin_trap, assume it's available.
7204
7205 2013-11-07 Diego Novillo <dnovillo@google.com>
7206
7207 * attribs.c (lookup_scoped_attribute_spec): Make static.
7208 (get_attribute_namespace): Likewise.
7209 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
7210 (validate_arglist): Move earlier in the file. Make static.
7211 (expand_stack_restore): Move from stmt.c
7212 (expand_stack_save): Move from stmt.c
7213 (rewrite_call_expr_array): Move earlier in the file.
7214 (rewrite_call_expr_valist): Likewise.
7215 * cfgexpand.c: Include hard-reg-set.h before tree.h
7216 Include recog.h.
7217 Include output.h.
7218 (expand_asm_loc): Move from stmt.c.
7219 (n_occurrences): Move from stmt.c.
7220 (check_operand_nalternatives): Move from stmt.c.
7221 (tree_conflicts_with_clobbers_p): Move from stmt.c.
7222 (expand_asm_operands): Move from stmt.c
7223 (expand_asm_stmt): Move from stmt.c
7224 (expand_computed_goto): Move from stmt.c
7225 (expand_goto): Move from stmt.c
7226 (expand_null_return_1): Move from stmt.c
7227 (expand_null_return): Move from stmt.c
7228 (expand_value_return): Move from stmt.c
7229 (expand_return): Move from stmt.c
7230 (expand_main_function): Move from function.c
7231 (stack_protect_prologue): Move from function.c
7232 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
7233 (build_function_decl_skip_args): Move from tree.c.
7234 * explow.c (tree_expr_size): Move from tree.c.
7235 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
7236 (fields_length): Move from tree.c.
7237 * fold-const.c (size_low_cst): Move from tree.c.
7238 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
7239 (tree_expr_nonzero_p): Make static. Move earlier in the file.
7240 (fold_build3_initializer_loc): Remove.
7241 (tree_invalid_nonnegative_warnv_p): Make static.
7242 * function.c (expand_main_function): Move to cfgexpand.c.
7243 (stack_protect_prologue): Move to cfgexpand.c.
7244 (set_insn_locations): Move earlier in the file.
7245 * gimple-fold.c: Include langhooks.h.
7246 (truth_type_for): Move from tree.c.
7247 * print-tree.c (print_vec_tree): Remove.
7248 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
7249 (expand_goto): Move to cfgexpand.c.
7250 (n_occurrences): Move to cfgexpand.c.
7251 (expand_asm_loc): Move to cfgexpand.c
7252 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
7253 (expand_asm_operands): Move to cfgexpand.c.
7254 (expand_asm_stmt): Move to cfgexpand.c.
7255 (check_operand_nalternatives): Move to cfgexpand.c
7256 (expand_null_return): Move to cfgexpand.c.
7257 (expand_value_return): Move to cfgexpand.c.
7258 (expand_null_return_1): Move to cfgexpand.c.
7259 (expand_return): Move to cfgexpand.c.
7260 (expand_stack_save): Move to builtins.c.
7261 (expand_stack_restore): Move to builtins.c
7262 * symtab.c: Include output.h.
7263 (decl_assembler_name_hash): Move from tree.c.
7264 (decl_assembler_name_equal): Move from tree.c.
7265 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
7266 * tree-eh.c (in_array_bounds_p): Move from tree.c.
7267 (range_in_array_bounds_p): Move from tree.c.
7268 * tree-object-size.c (fini_object_sizes): Make static.
7269 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
7270 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
7271 * tree.c (decl_assembler_name_equal): Move to symtab.c.
7272 (tree_expr_size): Move to explow.c.
7273 (decl_assembler_name_hash): Move to symtab.c.
7274 (real_twop): Remove.
7275 (tree_expr_size): Move to explow.c.
7276 (stabilize_reference_1): Move earlier in the file. Make static.
7277 (omp_remove_redundant_declare_simd_attrs): Remove.
7278 (simple_cst_list_equal): Move earlier in the file. Make static.
7279 (size_low_cst): Move to fold-const.c.
7280 (build_type_no_quals): Remove.
7281 (build_function_type_skip_args): Move to cgraphclones.c.
7282 (build_function_decl_skip_args): Move to cgraphclones.c.
7283 (in_array_bounds_p): Move to tree-eh.c.
7284 (range_in_array_bounds_p): Move to tree-eh.c.
7285 (truth_type_for): Move to gimple-fold.c.
7286 (list_equal_p): Remove.
7287 * tree.h (decl_assembler_name_equal): Remove.
7288 (decl_assembler_name_hash): Remove.
7289 (truth_type_for): Remove.
7290 (build_type_no_quals): Remove.
7291 (build_function_decl_skip_args): Remove.
7292 (in_array_bounds_p): Remove.
7293 (range_in_array_bounds_p): Remove.
7294 (size_low_cst): Remove.
7295 (omp_remove_redundant_declare_simd_attrs): Remove.
7296 (tree_expr_size): Remove.
7297 (fields_length): Remove.
7298 (stabilize_reference_1): Remove.
7299 (expand_goto): Remove.
7300 (expand_stack_save): Remove.
7301 (expand_stack_restore): Remove.
7302 (expand_return): Remove.
7303 (fold_build3_initializer_loc): Remove.
7304 (tree_expr_nonzero_p): Remove.
7305 (tree_invalid_nonnegative_warnv_p): Remove.
7306 (tree_expr_nonzero_warnv_p): Remove.
7307 (fold_builtin_snprintf_chk): Remove.
7308 (validate_arglist): Remove.
7309 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
7310 (simple_cst_list_equal): Remove.
7311 (real_twop): Remove.
7312 (expand_main_function): Remove.
7313 (stack_protect_prologue): Remove.
7314 (print_vec_tree): Remove.
7315 (lookup_scoped_attribute_spec): Remove.
7316 (get_attribute_namespace): Remove.
7317 (expand_computed_goto): Remove.
7318 (expand_asm_stmt): Remove.
7319 (list_equal_p): Remove.
7320 (ssa_name_nonnegative_p): Remove.
7321 (fini_object_sizes): Remove.
7322 (addr_expr_of_non_mem_decl_p): Remove.
7323 (is_tm_safe_or_pure): Move to trans-mem.c.
7324 (more_const_call_expr_args_p): Remove.
7325 (save_vtable_map_decl): Remove.
7326
7327 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
7328
7329 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
7330 linker plugins, too.
7331
7332 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
7333 link to libgomp and its dependencies.
7334 * config/ia64/hpux.h (LIB_SPEC): Likewise.
7335 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7336 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
7337 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
7338
7339 2013-11-07 Jakub Jelinek <jakub@redhat.com>
7340
7341 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
7342 (determine_value_range): Add loop argument. Use get_range_info to
7343 improve range.
7344 (bound_difference): Adjust caller.
7345
7346 2013-11-07 Richard Biener <rguenther@suse.de>
7347 Jakub Jelinek <jakub@redhat.com>
7348
7349 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
7350 latches from header PHI arguments from the latch edge.
7351
7352 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
7353
7354 PR c++/58176
7355 * varasm.c (output_constant): Handle NULLPTR_TYPE.
7356
7357 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
7358
7359 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
7360 misaligned_prologue_used when it has been set.
7361
7362 2013-11-07 Yury Gribov <y.gribov@samsung.com>
7363 Jakub Jelinek <jakub@redhat.com>
7364
7365 PR sanitizer/59029
7366 * asan.c (get_mem_refs_of_builtin_call): Allow
7367 integer literals as addresses in instrumented builtins.
7368
7369 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7370
7371 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
7372 Explain why plus_constant is not used.
7373
7374 2013-11-07 Richard Biener <rguenther@suse.de>
7375
7376 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
7377 (canonicalize_value): ... this. Also handle stripping of
7378 TREE_OVERFLOW.
7379 (get_value, set_lattice_value, get_value_for_expr): Adjust.
7380 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
7381 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
7382
7383 2013-11-07 Richard Biener <rguenther@suse.de>
7384
7385 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
7386
7387 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
7388
7389 PR target/59034
7390 * config/i386/i386.md (push peepholer/splitter): Use Pmode
7391 with stack_pointer_rtx.
7392
7393 2013-11-07 Bin Cheng <bin.cheng@arm.com>
7394
7395 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
7396 using operand_equal_p.
7397
7398 2013-11-07 Bin Cheng <bin.cheng@arm.com>
7399
7400 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
7401 * tree-affine.c (get_inner_reference_aff): Return base.
7402 * tree-affine.h (get_inner_reference_aff): Change prototype.
7403
7404 2013-11-06 Tobias Burnus <burnus@net-b.de>
7405
7406 * doc/invoke.texi (Wdate-time): Fix typo.
7407
7408 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
7409
7410 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
7411 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
7412 fp_arith_reg_operand instead of arith_reg_operand.
7413
7414 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
7415
7416 * config/sh/sh.md (adddi3): Remove empty constraints.
7417 Remove can_create_pseudo_p and arith_reg_operand check.
7418 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
7419 Split before reload.
7420
7421 2013-11-06 Jeff Law <law@redhat.com>
7422 Tom Tromey <tromey@redhat.com>
7423
7424 * gdbinit.in: Disable strict type checking.
7425
7426 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
7427
7428 * tree-pass.h (make_pass_live_range_shrinkage): New external.
7429 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
7430 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
7431 (rest_of_handle_live_range_shrinkage): Ditto
7432 (class pass_live_range_shrinkage): Ditto.
7433 (pass_data_live_range_shrinkage): Ditto.
7434 (make_pass_live_range_shrinkage): Ditto.
7435 * sched-int.h (initialize_live_range_shrinkage): New prototype.
7436 (finish_live_range_shrinkage): Ditto.
7437 * sched-deps.c (create_insn_reg_set): Make void return value.
7438 * passes.def: Add pass_live_range_shrinkage.
7439 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
7440 * haifa-sched.c (live_range_shrinkage_p): New.
7441 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
7442 New functions.
7443 (rank_for_schedule): Add code for pressure relief through live
7444 range shrinkage.
7445 (schedule_insn): Print more debug info.
7446 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
7447 through live range shrinkage.
7448 * doc/invoke.texi (-flive-range-shrinkage): New.
7449 * common.opt (flive-range-shrinkage): New.
7450
7451 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
7452
7453 PR target/59021
7454 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
7455 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
7456 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
7457 RTXes that return in AVX256 register.
7458
7459 2013-11-06 Richard Biener <rguenther@suse.de>
7460
7461 PR tree-optimization/58653
7462 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
7463 (prepare_initializers_chain): Adjust.
7464
7465 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
7466
7467 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
7468 (gimple_in_transaction): Use bb_in_transaction.
7469 * basic-block.h (bb_in_transaction): Relocate here and rename.
7470 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
7471
7472 2013-11-06 Richard Biener <rguenther@suse.de>
7473
7474 * tree.c (drop_tree_overflow): New function.
7475 * tree.h (drop_tree_overflow): Declare.
7476 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
7477 * tree-vrp.c (range_int_cst_singleton_p): Use
7478 is_overflow_infinity instead of testing TREE_OVERFLOW.
7479 (extract_range_from_assert): Likewise.
7480 (zero_nonzero_bits_from_vr): Likewise.
7481 (extract_range_basic): Likewise.
7482 (register_new_assert_for): Use drop_tree_overflow.
7483 (vrp_visit_phi_node): Likewise.
7484
7485 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
7486
7487 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
7488 checking for leaf functions without dynamic stack allocation.
7489 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
7490 (ia64_expand_prologue): Likewise.
7491 * config/mips/mips.c (mips_expand_prologue): Likewise.
7492 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7493 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7494 (sparc_flat_expand_prologue): Likewise.
7495
7496 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
7497
7498 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
7499 (__ST3_LANE_FUNC): Likewise.
7500 (__ST4_LANE_FUNC): Likewise.
7501
7502 2013-11-06 Nick Clifton <nickc@redhat.com>
7503
7504 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
7505 name returned by msp430_mcu_name.
7506 (LIB_SPEC): If a -T option has not been specified then set a
7507 default, mcu-specific, linker script.
7508 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
7509 * config/msp430/msp430.c (msp430x_names): Likewise.
7510 Alpha sort the names for ease of comparison.
7511 (msp430_mcu_name): New function: Returns a string suitable for
7512 use as a C preprocessor symbol based upon the name of the MCU
7513 being targeted.
7514 (msp430_option_override): Accept msp430x and msp430xv2 as generic
7515 mcu names.
7516 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
7517
7518 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
7519 unless it is the last part of a spec substring.
7520 * doc/invoke.texi (Spec Files): Document space insertion
7521 behaviour of %*.
7522
7523 2013-11-06 Christian Bruel <christian.bruel@st.com>
7524
7525 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
7526 Factorize probabilities, Use adjust_address instead of
7527 adjust_automodify_address when possible. Enable for optimize.
7528 (sh_expand_strlen): New function.
7529 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
7530 * config/sh/sh.md (strlensi): New pattern.
7531 (UNSPEC_BUILTIN_STRLEN): Define.
7532
7533 2013-11-06 Jakub Jelinek <jakub@redhat.com>
7534
7535 PR middle-end/58970
7536 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
7537 (expand_assignment): If *bitpos is negative, set *offset
7538 and adjust *bitpos, so that it is not negative.
7539
7540 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7541
7542 * config/i386/bdver3.md : Added two additional decoder units
7543 to support issue rate of 4 and remodeled vector unit.
7544 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
7545 architectures is set to 4.
7546 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
7547 lookahead is set to 4 for BD architectures.
7548
7549 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7550
7551 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7552 Remove restriction against use of VSX instructions when generating
7553 code for little endian mode.
7554
7555 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7556
7557 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
7558 for both big and little endian.
7559 (mulv8hi3): Swap input operands for merge high and merge low
7560 instructions for little endian.
7561
7562 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7563
7564 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
7565 define_insn to define_expand that uses even patterns for big
7566 endian and odd patterns for little endian.
7567 (vec_widen_smult_even_v16qi): Likewise.
7568 (vec_widen_umult_even_v8hi): Likewise.
7569 (vec_widen_smult_even_v8hi): Likewise.
7570 (vec_widen_umult_odd_v16qi): Likewise.
7571 (vec_widen_smult_odd_v16qi): Likewise.
7572 (vec_widen_umult_odd_v8hi): Likewise.
7573 (vec_widen_smult_odd_v8hi): Likewise.
7574 (altivec_vmuleub): New define_insn.
7575 (altivec_vmuloub): Likewise.
7576 (altivec_vmulesb): Likewise.
7577 (altivec_vmulosb): Likewise.
7578 (altivec_vmuleuh): Likewise.
7579 (altivec_vmulouh): Likewise.
7580 (altivec_vmulesh): Likewise.
7581 (altivec_vmulosh): Likewise.
7582
7583 2013-11-05 Mike Stump <mikestump@comcast.net>
7584
7585 * Makefile.in (mostlyclean): Remove c-family objects.
7586
7587 2013-11-05 Ian Lance Taylor <iant@google.com>
7588
7589 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7590 If possible, add .cfi directives to record change to bx.
7591 * config/i386/i386.c (ix86_emit_cfi): New function.
7592 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
7593
7594 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
7595
7596 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
7597 immediately after a label for a tablejump pattern.
7598
7599 * config/arm/arm.c (is_jump_table): Remove.
7600 (create_fix_barrier): Use tablejump_p instead.
7601 (arm_reorg): Likewise.
7602 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
7603 (thumb2_output_casesi): Likewise.
7604 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
7605 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
7606 casesi_shift_media, casesi_load_media): Likewise.
7607 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
7608 * config/microblaze/microblaze.md: Likewise.
7609
7610 2013-11-05 Tobias Burnus <burnus@net-b.de>
7611
7612 * doc/invoke.texi (-Wdate-time): Document.
7613
7614 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
7615
7616 * double-int.c (lshift_double, rshift_double): Remove
7617 SHIFT_COUNT_TRUNCATED handling.
7618
7619 2013-11-05 Jeff Law <law@redhat.com>
7620
7621 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
7622 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
7623 * gimple-ssa-isolate-paths.c: New file.
7624 * gimple.c (check_loadstore): New function.
7625 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
7626 Verify OP is in the argument list and the argument corresponding
7627 to OP is a pointer type. Use operand_equal_p rather than
7628 pointer equality when testing if OP is on the nonnull list.
7629 Use check_loadstore rather than count_ptr_derefs. Handle
7630 GIMPLE_RETURN statements.
7631 * tree-vrp.c (infer_nonnull_range): Remove.
7632 * gimple.h (infer_nonnull_range): Declare.
7633 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
7634 * passes.def: Add pass_isolate_erroneous_paths.
7635 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
7636 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
7637 * tree-ssa.c (struct count_ptr_d): Remove.
7638 (count_ptr_derefs, count_uses_and_derefs): Remove.
7639 * tree-ssa.h (count_uses_and_derefs): Remove.
7640
7641 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7642
7643 PR rtl-optimization/58997
7644 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
7645 get_iv_value to be in iv->mode rather than iv->extend_mode.
7646 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
7647 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
7648 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
7649 mode.
7650
7651 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7652
7653 * gimple.h: Move some prototypes to gimple-expr.h and add to include
7654 list.
7655 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
7656 Move to gimple-expr.h.
7657 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
7658 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
7659 is_gimple_id, virtual_operand_p, is_gimple_addressable,
7660 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
7661 Relocate here.
7662 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
7663 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
7664 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
7665 is_gimple_address, is_gimple_invariant_address,
7666 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7667 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
7668 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
7669 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
7670 gimple_decl_printable_name, useless_type_conversion_p,
7671 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
7672 gimple-expr.[ch].
7673 * gimple-expr.c: New File.
7674 (useless_type_conversion_p, gimple_set_body, gimple_body,
7675 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
7676 gimple_can_coalesce_p, extract_ops_from_tree_1,
7677 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
7678 is_gimple_address, is_gimple_invariant_address,
7679 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7680 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
7681 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
7682 is_gimple_mem_ref_addr): Relocate here.
7683 * Makefile.in (OBJS): Add gimple-expr.o.
7684
7685 2013-11-05 David Malcolm <dmalcolm@redhat.com>
7686
7687 * gengtype-parse.c (struct_field_seq): Support empty structs.
7688
7689 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7690
7691 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
7692
7693 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7694
7695 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
7696 for !TARGET_80387.
7697 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
7698 _SOFT_FLOAT here.
7699 (LONG_DOUBLE_TYPE_SIZE): New define.
7700 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
7701
7702 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
7703
7704 PR c++/58724
7705 * doc/extend.texi [visibility ("visibility_type")]: Add example
7706 about visibility attribute on namespace declaration.
7707
7708 2013-11-05 Richard Biener <rguenther@suse.de>
7709
7710 PR ipa/58492
7711 * passes.def (all_passes): Start with pass_fixup_cfg again.
7712
7713 2013-11-05 Richard Biener <rguenther@suse.de>
7714
7715 PR tree-optimization/58955
7716 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
7717 edge direction.
7718
7719 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7720
7721 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
7722 little endian.
7723 (vec_pack_ufix_trunc_v2df): Likewise.
7724
7725 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
7726
7727 PR middle-end/58981
7728 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
7729 pattern, instead of word_mode.
7730
7731 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
7732 Pmode for size.
7733 (set_storage_via_setmem): Likewise.
7734
7735 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7736
7737 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
7738 gimple.h and the rest of the condition in eliminate_build.
7739 (eliminate_build): Call new routine.
7740 * gimple.h (phi_ssa_name_p): Delete.
7741
7742 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
7743
7744 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
7745 case of no prefix and reserving zero slots, because when that's the
7746 case we'll never get here.
7747 * vec.h (va_heap::reserve): Don't try and handle
7748 vec_prefix::calculate_allocation returning zero because that should
7749 never happen.
7750
7751 2013-11-05 Richard Biener <rguenther@suse.de>
7752
7753 PR middle-end/58941
7754 * tree-dfa.c (get_ref_base_and_extent): Merge common code
7755 in MEM_REF and TARGET_MEM_REF handling. Make sure to
7756 process trailing array detection before diving into the
7757 view-converted object (and possibly apply some extra offset).
7758
7759 2013-11-05 Joseph Myers <joseph@codesourcery.com>
7760
7761 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
7762 New function.
7763 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
7764
7765 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7766
7767 PR tree-optimization/58958
7768 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
7769 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7770
7771 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7772
7773 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
7774 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
7775
7776 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7777
7778 PR tree-optimization/58984
7779 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
7780 set *SIZE_P if non-NULL on success.
7781 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
7782 callers.
7783 (ipcp_transform_function): Likewise. Punt if size of access
7784 is different from TYPE_SIZE on v->value's type.
7785
7786 2013-11-05 Tobias Burnus <burnus@net-b.de>
7787
7788 * doc/invoke.texi (-fopenmp-simd): Document new option.
7789 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
7790 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
7791 * tree.c (attribute_value_equal): Ditto.
7792
7793 2013-11-04 Wei Mi <wmi@google.com>
7794
7795 * sched-rgn.c (add_branch_dependences): Keep insns in
7796 a SCHED_GROUP at the end of BB to remain their location.
7797
7798 2013-11-04 Wei Mi <wmi@google.com>
7799
7800 * config/i386/i386.c (memory_address_length): Extract a part
7801 of code to rip_relative_addr_p.
7802 (rip_relative_addr_p): New Function.
7803 (ix86_macro_fusion_p): Ditto.
7804 (ix86_macro_fusion_pair_p): Ditto.
7805 * config/i386/i386.h: Add new tune features about macro-fusion.
7806 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7807 * doc/tm.texi: Generated.
7808 * doc/tm.texi.in: Ditto.
7809 * haifa-sched.c (try_group_insn): New Function.
7810 (group_insns_for_macro_fusion): Ditto.
7811 (sched_init): Call group_insns_for_macro_fusion.
7812 * target.def: Add two hooks: macro_fusion_p and
7813 macro_fusion_pair_p.
7814
7815 2013-11-04 Kostya Serebryany <kcc@google.com>
7816
7817 Update to match the changed asan API.
7818 * asan.c (asan_function_start): New function.
7819 (asan_emit_stack_protection): Update the string stored in the
7820 stack red zone to match new API. Store the PC of the current
7821 function in the red zone.
7822 (asan_global_struct): Update the __asan_global definition to match
7823 the new API.
7824 (asan_add_global): Ditto.
7825 * asan.h (asan_function_start): New prototype.
7826 * final.c (final_start_function): Call asan_function_start.
7827 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
7828 to __asan_init_v3.
7829
7830 2013-11-04 Wei Mi <wmi@google.com>
7831
7832 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
7833 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
7834 * config/i386/i386.c (ix86_option_override_internal): Ditto.
7835 (ix86_issue_rate): Ditto.
7836 (ix86_adjust_cost): Ditto.
7837 (ia32_multipass_dfa_lookahead): Ditto.
7838 (ix86_sched_init_global): Ditto.
7839 (get_builtin_code_for_version): Ditto.
7840 * config/i386/i386.h (enum target_cpu_default): Ditto.
7841 (enum processor_type): Ditto.
7842 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7843
7844 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7845
7846 PR rtl-optimization/58967
7847 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
7848 !lra_in_progress for mode sizes bigger word.
7849
7850 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7851
7852 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
7853 arguments to merge instruction for little endian.
7854 (vec_widen_umult_lo_v16qi): Likewise.
7855 (vec_widen_smult_hi_v16qi): Likewise.
7856 (vec_widen_smult_lo_v16qi): Likewise.
7857 (vec_widen_umult_hi_v8hi): Likewise.
7858 (vec_widen_umult_lo_v8hi): Likewise.
7859 (vec_widen_smult_hi_v8hi): Likewise.
7860 (vec_widen_smult_lo_v8hi): Likewise.
7861
7862 2013-11-04 Ian Lance Taylor <iant@google.com>
7863
7864 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
7865 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
7866 builtins that take pointers.
7867 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
7868 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
7869 (run_gcc): Pass -fnon-call-exceptions.
7870
7871 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7872
7873 * optabs.c (expand_vec_perm): Revert one incorrect line from
7874 2013-10-31 change.
7875
7876 PR tree-optimization/58978
7877 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
7878 use_stmt by single_imm_use directly. Only call single_imm_use
7879 on SSA_NAMEs.
7880
7881 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7882
7883 PR rtl-optimization/58968
7884 * lra-spills.c (return_regno_p): New function.
7885 (lra_final_code_change): Use it.
7886
7887 2013-11-04 Joseph Myers <joseph@codesourcery.com>
7888
7889 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
7890 * target.def (float_exceptions_rounding_supported_p): New hook.
7891 * targhooks.c (default_float_exceptions_rounding_supported_p): New
7892 function.
7893 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
7894 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
7895 New @hook.
7896 * doc/tm.texi: Regenerate.
7897 * config.gcc (powerpc*-*-linux*): Set extra_objs.
7898 * config/rs6000/rs6000-linux.c: New file.
7899 * config/rs6000/rs6000-protos.h
7900 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
7901 * config/rs6000/linux.h
7902 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
7903 * config/rs6000/linux64.h
7904 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
7905 * config/rs6000/t-linux (rs6000-linux.o): New rule.
7906 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
7907
7908 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7909
7910 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
7911 Replace the define_insn_and_split with a define_insn and two
7912 define_splits, with the split after reload re-permuting the source
7913 register to its original value.
7914 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7915 (*vsx_le_perm_store_v8hi): Likewise.
7916 (*vsx_le_perm_store_v16qi): Likewise.
7917
7918 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7919
7920 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
7921 little endian.
7922
7923 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7924
7925 PR tree-optimization/58946
7926 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7927 bbs with bbinfo[idx].op != NULL before all blocks with
7928 bbinfo[idx].op == NULL.
7929
7930 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
7931
7932 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7933 (avr_dump_double_int_hex): Likewise.
7934 (avr_log_vadump): Remove %D and %X handling.
7935 * config/avr/avr.c (avr_double_int_push_digit): Delete.
7936 (avr_map_op_t): Change map from double_int to unsigned int.
7937 (avr_map_op): Update accordingly.
7938 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7939 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7940 unsigned ints rather than double_ints.
7941
7942 2013-11-03 Marek Polacek <polacek@redhat.com>
7943
7944 Implement -fsanitize=vla-bound.
7945 * opts.c (common_handle_option): Handle vla-bound.
7946 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7947 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7948 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7949
7950 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7951
7952 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7953 little endian.
7954
7955 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
7956
7957 * config/i386/constraints.md (Ts, Tv): New address constrains.
7958 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7959 constraint for address_no_seg_operand.
7960 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7961 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7962 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7963 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7964 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7965 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7966 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7967 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7968 constraint for vsib_address_operand.
7969
7970 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
7971
7972 * gcse.c (pre_delete): Remove references to regmove from comments.
7973 * recog.c: (validate_replace_rtx_1): Likewise.
7974 * config/rl78/rl78.c: Likewise.
7975 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7976 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7977 * common/config/mmix/mmix-common.c: Likewise.
7978
7979 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
7980
7981 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7982 * gimplify.c (gimplify_compound_lval): Likewise.
7983 * graphite-clast-to-gimple.c (gloog): Likewise.
7984 * graphite-dependences.c (loop_is_parallel_p): Likewise.
7985 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7986 (limit_scop); Likewise.
7987 (build_scops): Likewise.
7988 (dot_scop): Likewise.
7989 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7990 (build_scop_drs): Likewise.
7991 (insert_stmts): Likewise.
7992 (insert_out_of_ssa_copy): Likewise.
7993 (remove_phi): Likewise.
7994 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7995 * hw-doloop.c (discover_loop): Likewise.
7996 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7997 * tree-dfa.c (dump_enumerated_decls): Likewise.
7998 * tree-if-conv.c (if_convertable_loop_p): Likewise.
7999 * tree-inline.c (tree_function_versioning): Likewise.
8000 * tree-loop-distribution.c (build_rdg): Likewise.
8001 (rdg_flag_vertex_and_dependent): Likewise.
8002 (distribute_loop): Likewise.
8003 * tree-parloops.c (loop_parallel_p): Likewise.
8004 (eliminate_local_variables): Likewise.
8005 (separate_decls_in_region): Likewise.
8006 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
8007 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
8008 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
8009 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
8010 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
8011 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
8012 (vectorizable_condition): Likewise.
8013
8014 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
8015
8016 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
8017 * configure: Regenerate.
8018 * config/i386/i386.md (*movdi_internal): Change
8019 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
8020 (*movdf_internal): Ditto.
8021 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
8022 * config/i386/sse.md (vec_concatv2di): Output interunit movq
8023 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
8024
8025 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
8026
8027 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
8028 after comment.
8029
8030 2013-10-31 David Malcolm <dmalcolm@redhat.com>
8031
8032 Automated part of renaming of symtab_node_base to symtab_node.
8033
8034 Patch autogenerated by rename_symtab.py from
8035 https://github.com/davidmalcolm/gcc-refactoring-scripts
8036 revision 58bb219cc090b2f4516a9297d868c245495ee622
8037 with ChangeLog entry fixed up by hand.
8038
8039 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
8040 symtab_node.
8041 (cgraph_node_for_asm): Likewise.
8042 * cgraph.h (symtab_node_base): Likewise.
8043 (cgraph_node): Likewise.
8044 (varpool_node): Likewise.
8045 (is_a_helper <cgraph_node>::test): Likewise.
8046 (is_a_helper <varpool_node>::test): Likewise.
8047 (symtab_nodes): Likewise.
8048 (symtab_register_node): Likewise.
8049 (symtab_unregister_node): Likewise.
8050 (symtab_remove_node): Likewise.
8051 (symtab_get_node): Likewise.
8052 (symtab_node_for_asm): Likewise.
8053 (symtab_node_asm_name): Likewise.
8054 (symtab_node_name): Likewise.
8055 (symtab_insert_node_to_hashtable): Likewise.
8056 (symtab_add_to_same_comdat_group): Likewise.
8057 (symtab_dissolve_same_comdat_group_list): Likewise.
8058 (dump_symtab_node): Likewise.
8059 (debug_symtab_node): Likewise.
8060 (dump_symtab_base): Likewise.
8061 (verify_symtab_node): Likewise.
8062 (verify_symtab_base): Likewise.
8063 (symtab_used_from_object_file_p): Likewise.
8064 (symtab_alias_ultimate_target): Likewise.
8065 (symtab_resolve_alias): Likewise.
8066 (fixup_same_cpp_alias_visibility): Likewise.
8067 (symtab_for_node_and_aliases): Likewise.
8068 (symtab_nonoverwritable_alias): Likewise.
8069 (availability symtab_node_availability): Likewise.
8070 (symtab_semantically_equivalent_p): Likewise.
8071 (fixup_same_cpp_alias_visibility): Likewise.
8072 (symtab_prevail_in_asm_name_hash): Likewise.
8073 (cgraph): Likewise.
8074 (varpool): Likewise.
8075 (varpool_first_variable): Likewise.
8076 (varpool_next_variable): Likewise.
8077 (varpool_first_static_initializer): Likewise.
8078 (varpool_next_static_initializer): Likewise.
8079 (varpool_first_defined_variable): Likewise.
8080 (varpool_next_defined_variable): Likewise.
8081 (cgraph_first_defined_function): Likewise.
8082 (cgraph_next_defined_function): Likewise.
8083 (cgraph_first_function): Likewise.
8084 (cgraph_next_function): Likewise.
8085 (cgraph_first_function_with_gimple_body): Likewise.
8086 (cgraph_next_function_with_gimple_body): Likewise.
8087 (symtab_alias_target): Likewise.
8088 (symtab_real_symbol_p): Likewise.
8089 (symtab_can_be_discarded): Likewise.
8090 * cgraphbuild.c (mark_address): Likewise.
8091 (mark_load): Likewise.
8092 (mark_store): Likewise.
8093 * cgraphunit.c (decide_is_symbol_needed): Likewise.
8094 (first): Likewise.
8095 (enqueue_node): Likewise.
8096 (referred_to_p): Likewise.
8097 (cgraph_process_same_body_aliases): Likewise.
8098 (analyze_functions): Likewise.
8099 (handle_alias_pairs): Likewise.
8100 (output_weakrefs): Likewise.
8101 (compile): Likewise.
8102 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8103 * ipa-inline-analysis.c (inline_write_summary): Likewise.
8104 * ipa-prop.c (remove_described_reference): Likewise.
8105 (try_decrement_rdesc_refcount): Likewise.
8106 (ipa_edge_duplication_hook): Likewise.
8107 * ipa-ref.c (ipa_record_reference): Likewise.
8108 (ipa_maybe_record_reference): Likewise.
8109 (ipa_clone_ref): Likewise.
8110 (ipa_clone_references): Likewise.
8111 (ipa_clone_referring): Likewise.
8112 (ipa_find_reference): Likewise.
8113 (ipa_remove_stmt_references): Likewise.
8114 (ipa_clear_stmts_in_references): Likewise.
8115 * ipa-ref.h (symtab_node_base): Likewise.
8116 (ipa_ref): Likewise.
8117 (ipa_record_reference): Likewise.
8118 (ipa_maybe_record_reference): Likewise.
8119 (ipa_clone_references): Likewise.
8120 (ipa_clone_referring): Likewise.
8121 (ipa_clone_ref): Likewise.
8122 (ipa_find_reference): Likewise.
8123 (ipa_remove_stmt_references): Likewise.
8124 (ipa_clear_stmts_in_references): Likewise.
8125 * ipa-reference.c (ipa_reference_write_optimization_summary):
8126 Likewise.
8127 * ipa.c (enqueue_node): Likewise.
8128 (process_references): Likewise.
8129 (walk_polymorphic_call_targets): Likewise.
8130 (symtab_remove_unreachable_nodes): Likewise.
8131 (address_taken_from_non_vtable_p): Likewise.
8132 (comdat_can_be_unshared_p_1): Likewise.
8133 (comdat_can_be_unshared_p): Likewise.
8134 (can_replace_by_local_alias): Likewise.
8135 (function_and_variable_visibility): Likewise.
8136 * is-a.h: Likewise (within example in comment).
8137 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
8138 (lto_symtab_encoder_encode): Likewise.
8139 (lto_symtab_encoder_delete_node): Likewise.
8140 (lto_symtab_encoder_in_partition_p): Likewise.
8141 (lto_set_symtab_encoder_in_partition): Likewise.
8142 (output_refs): Likewise.
8143 (compute_ltrans_boundary): Likewise.
8144 (output_symtab): Likewise.
8145 (input_node): Likewise.
8146 (input_ref): Likewise.
8147 (input_edge): Likewise.
8148 (input_cgraph_1): Likewise.
8149 (input_refs): Likewise.
8150 (output_cgraph_opt_summary): Likewise.
8151 (input_node_opt_summary): Likewise.
8152 (input_cgraph_opt_section): Likewise.
8153 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8154 Likewise.
8155 * lto-streamer-out.c (lto_output): Likewise.
8156 (output_symbol_p): Likewise.
8157 (produce_symtab): Likewise.
8158 * lto-streamer.h (lto_encoder_entry): Likewise.
8159 (lto_free_function_in_decl_state_for_node): Likewise.
8160 (lto_symtab_encoder_encode): Likewise.
8161 (lto_symtab_encoder_delete_node): Likewise.
8162 (lto_symtab_encoder_in_partition_p): Likewise.
8163 (lto_set_symtab_encoder_in_partition): Likewise.
8164 (lto_symtab_encoder_lookup): Likewise.
8165 (lsei_node): Likewise.
8166 (lto_symtab_encoder_deref): Likewise.
8167 * symtab.c (symtab_hash): Likewise.
8168 (assembler_name_hash): Likewise.
8169 (symtab_nodes): Likewise.
8170 (hash_node): Likewise.
8171 (eq_node): Likewise.
8172 (hash_node_by_assembler_name): Likewise.
8173 (eq_assembler_name): Likewise.
8174 (insert_to_assembler_name_hash): Likewise.
8175 (unlink_from_assembler_name_hash): Likewise.
8176 (symtab_prevail_in_asm_name_hash): Likewise.
8177 (symtab_register_node): Likewise.
8178 (symtab_insert_node_to_hashtable): Likewise.
8179 (symtab_unregister_node): Likewise.
8180 (symtab_get_node): Likewise.
8181 (symtab_remove_node): Likewise.
8182 (symtab_initialize_asm_name_hash): Likewise.
8183 (symtab_node_for_asm): Likewise.
8184 (symtab_add_to_same_comdat_group): Likewise.
8185 (symtab_dissolve_same_comdat_group_list): Likewise.
8186 (symtab_node_asm_name): Likewise.
8187 (symtab_node_name): Likewise.
8188 (dump_symtab_base): Likewise.
8189 (dump_symtab_node): Likewise.
8190 (dump_symtab): Likewise.
8191 (debug_symtab_node): Likewise.
8192 (verify_symtab_base): Likewise.
8193 (verify_symtab_node): Likewise.
8194 (verify_symtab): Likewise.
8195 (symtab_used_from_object_file_p): Likewise.
8196 (symtab_node_availability): Likewise.
8197 (symtab_alias_ultimate_target): Likewise.
8198 (fixup_same_cpp_alias_visibility): Likewise.
8199 (symtab_resolve_alias): Likewise.
8200 (symtab_for_node_and_aliases): Likewise.
8201 (symtab_for_node_and_aliases): Likewise.
8202 (symtab_nonoverwritable_alias_1): Likewise.
8203 (symtab_nonoverwritable_alias): Likewise.
8204 (symtab_semantically_equivalent_p): Likewise.
8205 * value-prof.c (init_node_map): Likewise.
8206 * varasm.c (find_decl): Likewise.
8207 * varpool.c (varpool_node_for_asm): Likewise.
8208 (varpool_remove_unreferenced_decls): Likewise.
8209
8210 2013-10-31 David Malcolm <dmalcolm@redhat.com>
8211
8212 Manual part of renaming of symtab_node_base to symtab_node.
8213
8214 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
8215 clashes with the preferred name for the base class.
8216 (const_symtab_node): Remove redundant typedef.
8217
8218 2013-10-31 Jakub Jelinek <jakub@redhat.com>
8219
8220 * optabs.c (expand_vec_perm): Avoid vector mode punning
8221 SUBREGs in SET_DEST.
8222 * expmed.c (store_bit_field_1): Likewise.
8223 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
8224 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
8225 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
8226 * config/i386/i386.c (ix86_expand_vector_move_misalign,
8227 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
8228 ix86_expand_sse_unpack, ix86_expand_args_builtin,
8229 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
8230 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
8231 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
8232 expand_vec_perm_vpshufb2_vpermq,
8233 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
8234 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
8235 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
8236 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
8237 than *d itself.
8238
8239 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
8240
8241 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
8242 Use gcc_unreachable for unhandled modes. Do not check results of
8243 expand_simple_binop. If not expanded to target, move the result.
8244
8245 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
8246 Shiva Chen <shiva0217@gmail.com>
8247
8248 * config.gcc (nds32*-*-*): Add nds32 target.
8249 * config/nds32/nds32.c: New file.
8250 * config/nds32/nds32.h: New file.
8251 * config/nds32/nds32.md: New file.
8252 * config/nds32/constants.md: New file.
8253 * config/nds32/constraints.md: New file.
8254 * config/nds32/iterators.md: New file.
8255 * config/nds32/nds32-doubleword.md: New file.
8256 * config/nds32/nds32-intrinsic.md: New file.
8257 * config/nds32/nds32_intrinsic.h: New file.
8258 * config/nds32/nds32-modes.def: New file.
8259 * config/nds32/nds32-multiple.md: New file.
8260 * config/nds32/nds32.opt: New file.
8261 * config/nds32/nds32-opts.h: New file.
8262 * config/nds32/nds32-protos.h: New file.
8263 * config/nds32/nds32-peephole2.md: New file.
8264 * config/nds32/pipelines.md: New file.
8265 * config/nds32/predicates.md: New file.
8266 * config/nds32/t-mlibs: New file.
8267 * common/config/nds32: New directory and files.
8268
8269 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
8270 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
8271 * doc/install.texi (Cross-Compiler-Specific Options): Document
8272 --with-nds32-lib for nds32 target.
8273 * doc/extend.texi (Function Attributes, Target Builtins): Document
8274 nds32 specific attributes.
8275
8276 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
8277
8278 * lra-constraints (process_alt_operands): Use the result
8279 elimination register for operand when matching constraints.
8280
8281 2013-10-31 Jakub Jelinek <jakub@redhat.com>
8282
8283 * tree-vrp.c (maybe_set_nonzero_bits): New function.
8284 (remove_range_assertions): Call it.
8285
8286 * tree.c (tree_ctz): New function.
8287 * tree.h (tree_ctz): New prototype.
8288 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
8289 first argument from tree to const_tree.
8290 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
8291 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
8292 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
8293 static.
8294 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
8295 * tree-vect-loop.c (vect_analyze_loop_operations,
8296 vect_transform_loop): Don't force scalar loop for bound just because
8297 number of iterations is unknown, only do it if it is not known to be
8298 a multiple of vectorization_factor.
8299 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
8300
8301 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
8302 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
8303 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
8304 (set_nonzero_bits, get_nonzero_bits): New prototypes.
8305 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
8306 a default def isn't partially constant.
8307 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
8308 is known to be partially zero.
8309 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
8310 to see if a default def isn't partially constant.
8311 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
8312 creation of a range, if VR_RANGE, try to improve nonzero_bits from
8313 the range.
8314 (set_nonzero_bits, get_nonzero_bits): New functions.
8315
8316 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
8317 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
8318 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
8319 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
8320 uses but in the condition and ASSERT_EXPR and the other successor of
8321 the predecessor bb is __builtin_unreachable (), set_range_info of the
8322 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
8323
8324 2013-10-31 Martin Jambor <mjambor@suse.cz>
8325
8326 PR rtl-optimization/58934
8327 Revert:
8328 2013-10-30 Martin Jambor <mjambor@suse.cz>
8329 PR rtl-optimization/10474
8330 * ira.c (find_moveable_pseudos): Do not calculate dominance info
8331 nor df analysis.
8332 (interesting_dest_for_shprep): New function.
8333 (split_live_ranges_for_shrink_wrap): Likewise.
8334 (ira): Calculate dominance info and df analysis. Call
8335 split_live_ranges_for_shrink_wrap.
8336
8337 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
8338 Yury Gribov <y.gribov@samsung.com>
8339
8340 PR sanitizer/58543
8341 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
8342 shadow pointer to avoid clobbering the main one.
8343
8344 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8345
8346 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
8347
8348 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
8349
8350 PR bootstrap/58933
8351 * ira-color.c (update_costs_from_copies): Add new parameter. Use
8352 it for calling update_costs_from_allocno.
8353 (assign_hard_reg): Call restore_costs_from_copies only for
8354 !retry_p. Pass new argument to update_costs_from_copies.
8355 (color_pass): Pass new argument to update_costs_from_copies.
8356 (ira_mark_allocation_change): Ditto.
8357
8358 2013-10-30 Sharad Singhai <singhai@google.com>
8359
8360 PR middle-end/58134
8361 * opts.c (common_handle_option): Remove deprecated option
8362 -ftree-vectorizer-verbose.
8363 * doc/invoke.texi (Debugging Options): Ditto.
8364 * opts-global.c (handle_common_deferred_options): Ditto.
8365 (dump_remap_tree_vectorizer_verbose): Delete.
8366 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
8367
8368 2013-10-30 DJ Delorie <dj@redhat.com>
8369
8370 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
8371 that take no arguments.
8372
8373 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
8374
8375 PR other/58545
8376 * reload1.c (update_eliminables_and_spill): New function, broken
8377 out of reload.
8378 (reload): Use it. Check for frame size change after frame size
8379 alignment, and call update_eliminables_and_spill first if continue-ing.
8380
8381 2013-10-30 Cong Hou <congh@google.com>
8382
8383 PR target/58762
8384 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
8385 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
8386 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
8387
8388 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
8389
8390 PR rtl-optimization/58369
8391 * reload1.c (compute_reload_subreg_offset): New function.
8392 (choose_reload_regs): Use it to pass endian-correct
8393 offset to subreg_regno_offset.
8394
8395 2013-10-30 Tobias Burnus <burnus@net-b.de>
8396
8397 PR other/33426
8398 * tree-cfg.c (replace_loop_annotate): Replace warning by
8399 warning_at.
8400
8401 2013-10-30 Jason Merrill <jason@redhat.com>
8402
8403 * configure.ac (loose_warn): Add -Wno-format if
8404 --disable-build-format-warnings.
8405
8406 2013-10-30 David Malcolm <dmalcolm@redhat.com>
8407
8408 * cgraphunit.c (analyze_functions): Split symtab_node declarations
8409 onto multiple lines to make things easier for rename_symtab.py.
8410
8411 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
8412 (symtab_semantically_equivalent_p): Likewise.
8413
8414 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
8415
8416 PR target/58784
8417 * lra.c (check_rtl): Remove address check before LRA work.
8418
8419 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
8420
8421 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
8422 POINTER_PLUS_EXPR in the defining statement.
8423
8424 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
8425
8426 * regmove.c: Remove.
8427 * tree-pass.h (make_pass_regmove): Remove.
8428 * timevar.def (TV_REGMOVE): Remove.
8429 * passes.def (pass_regmove): Remove.
8430 * opts.c (default_options_table): Remove entry for regmove.
8431 * doc/passes.texi: Remove regmove pass description.
8432 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
8433 options.
8434 (-fdump-rtl-regmove): Ditto.
8435 * common.opt (foptimize-register-move, fregmove): Ignore.
8436 * Makefile.in (OBJS): Remove regmove.o.
8437 * regmove.c: Remove.
8438 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
8439 and type.
8440 (struct ira_allocno) New member allocno_prefs.
8441 (ALLOCNO_PREFS): New macro.
8442 (ira_prefs, ira_prefs_num): New external vars.
8443 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
8444 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
8445 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
8446 Ditto.
8447 (ira_add_allocno_copy_to_list): Remove prototype.
8448 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
8449 (ira_pref_iterator): New type.
8450 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
8451 (FOR_EACH_PREF): New macro.
8452 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
8453 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
8454 code.
8455 (ira_setup_alts): New function.
8456 (decrease_live_ranges_number): New function.
8457 (ira): Call the above function.
8458 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
8459 (ira_create_allocno): Initialize allocno prefs.
8460 (pref_pool, pref_vec): New static vars.
8461 (initiate_prefs, find_allocno_pref, ira_create_pref): New
8462 functions.
8463 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
8464 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
8465 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
8466 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
8467 (ira_add_allocno_copy_to_list): Make static. Rename to
8468 add_allocno_copy_to_list.
8469 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
8470 swap_allocno_copy_ends_if_necessary.
8471 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
8472 ira_remove_allocno_prefs.
8473 (ira_flattening): Ditto.
8474 (ira_build): Call initiate_prefs, print_prefs.
8475 (ira_destroy): Call finish_prefs.
8476 * ira-color.c (struct update_cost_record): New.
8477 (struct allocno_color_data): Add new member update_cost_records.
8478 (update_cost_record_pool): New static var.
8479 (init_update_cost_records, get_update_cost_record): New functions.
8480 (free_update_cost_record_list, finish_update_cost_records): Ditto.
8481 (struct update_cost_queue_elem): Add member from.
8482 (initiate_cost_update): Call init_update_cost_records.
8483 (finish_cost_update): Call finish_update_cost_records.
8484 (queue_update_cost, get_next_update_cost): Add new param from.
8485 (Update_allocno_cost, update_costs_from_allocno): New functions.
8486 (update_costs_from_prefs): Ditto.
8487 (update_copy_costs): Rename to update_costs_from_copies.
8488 (restore_costs_from_copies): New function.
8489 (update_conflict_hard_regno_costs): Don't go back.
8490 (assign_hard_reg): Call restore_costs_from_copies. Add printing
8491 more debug info.
8492 (pop_allocnos): Add priniting more debug info.
8493 (color_allocnos): Remove prefs for conflicting hard regs.
8494 Call update_costs_from_prefs.
8495 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
8496 (get_dup_num): Rename, modify, and move to ira.c
8497 (process_regs_for_copy): Add prefs.
8498 (add_insn_allocno_copies): Put src as first arg of
8499 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
8500 * ira-costs.c (record_reg_classes): Modify and move code into
8501 record_operands_costs.
8502 (find_costs_and_classes): Create prefs for the hard reg of small
8503 reg class.
8504 (process_bb_node_for_hard_reg_moves): Add prefs.
8505
8506 2013-10-30 Richard Biener <rguenther@suse.de>
8507
8508 PR middle-end/57100
8509 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
8510 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
8511 as worker for ...
8512 (pre_and_rev_post_order_compute): ... which now wraps it.
8513 * graph.c (draw_cfg_nodes_no_loops): Use
8514 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
8515 on cfun.
8516
8517 2013-10-30 Christian Bruel <christian.bruel@st.com>
8518
8519 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
8520 (sh_expand_cmpstr): Handle known align and schedule improvements.
8521 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
8522 * config/sh/sh.md (cmpstrnsi): New pattern.
8523
8524 2013-10-30 Martin Jambor <mjambor@suse.cz>
8525
8526 PR rtl-optimization/10474
8527 * ira.c (find_moveable_pseudos): Do not calculate dominance info
8528 nor df analysis.
8529 (interesting_dest_for_shprep): New function.
8530 (split_live_ranges_for_shrink_wrap): Likewise.
8531 (ira): Calculate dominance info and df analysis. Call
8532 split_live_ranges_for_shrink_wrap.
8533
8534 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8535
8536 PR target/58854
8537 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
8538
8539 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8540
8541 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
8542 * tree.h (POINTER_BOUNDS_P): New.
8543 (BOUNDED_TYPE_P): New.
8544 (BOUNDED_P): New.
8545 (pointer_bounds_type_node): New.
8546 * tree.c (build_common_tree_nodes): Initialize
8547 pointer_bounds_type_node.
8548 * gimple.h (gimple_call_get_nobnd_arg_index): New.
8549 (gimple_call_num_nobnd_args): New.
8550 (gimple_call_nobnd_arg): New.
8551 (gimple_return_retbnd): New.
8552 (gimple_return_set_retbnd): New
8553 * gimple.c (gimple_build_return): Increase number of ops
8554 for return statement.
8555 (gimple_call_get_nobnd_arg_index): New.
8556 * gimple-pretty-print.c (dump_gimple_return): Print second op.
8557
8558 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8559
8560 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
8561 with "chkp ctor" and "bnd_legacy" attributes.
8562 * gimplify.c (gimplify_init_constructor): Avoid infinite
8563 loop during gimplification of bounds initializer.
8564
8565 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8566
8567 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
8568 (handle_bnd_legacy): New.
8569 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
8570 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
8571 attributes.
8572
8573 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
8574
8575 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
8576 (BT_FN_PTR_CONST_PTR): New.
8577 (BT_FN_CONST_PTR_CONST_PTR): New.
8578 (BT_FN_PTR_CONST_PTR_SIZE): New.
8579 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
8580 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
8581 (BT_FN_VOID_CONST_PTR_SIZE): New.
8582 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
8583 * chkp-builtins.def: New.
8584 * builtins.def: include chkp-builtins.def.
8585 (DEF_CHKP_BUILTIN): New.
8586 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
8587 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
8588 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
8589 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
8590 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
8591 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
8592 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
8593 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
8594 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
8595 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
8596 * common.opt (fcheck-pointer-bounds): New.
8597 * toplev.c (process_options): Check Pointer Bounds Checker is
8598 supported.
8599 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
8600
8601 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8602
8603 * target.def (builtin_chkp_function): New.
8604 (chkp_bound_type): New.
8605 (chkp_bound_mode): New.
8606 (fn_abi_va_list_bounds_size): New.
8607 (load_bounds_for_arg): New.
8608 (store_bounds_for_arg): New.
8609 * targhooks.h (default_load_bounds_for_arg): New.
8610 (default_store_bounds_for_arg): New.
8611 (default_fn_abi_va_list_bounds_size): New.
8612 (default_chkp_bound_type): New.
8613 (default_chkp_bound_mode): New.
8614 (default_builtin_chkp_function): New.
8615 * targhooks.c (default_load_bounds_for_arg): New.
8616 (default_store_bounds_for_arg): New.
8617 (default_fn_abi_va_list_bounds_size): New.
8618 (default_chkp_bound_type): New.
8619 (default_chkp_bound_mode); New.
8620 (default_builtin_chkp_function): New.
8621 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
8622 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
8623 (TARGET_STORE_BOUNDS_FOR_ARG): New.
8624 (TARGET_BUILTIN_CHKP_FUNCTION): New.
8625 (TARGET_CHKP_BOUND_TYPE): New.
8626 (TARGET_CHKP_BOUND_MODE): New.
8627 * doc/tm.texi: Regenerated.
8628 * langhooks.h (lang_hooks): Add chkp_supported field.
8629 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
8630 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
8631
8632 2013-10-29 Andrew Pinski <apinski@cavium.com>
8633
8634 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
8635 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
8636 fails, combining the branches anyways.
8637 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
8638 increases the number of combinings.
8639 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
8640
8641 2013-10-29 Mike Stump <mikestump@comcast.net>
8642
8643 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
8644 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
8645 (make_vector_mode): Increase namebuf to 16.
8646 (emit_insn_modes_h): When processing BImode, don't
8647 also match partial int modes.
8648 (emit_class_narrowest_mode): Likewise.
8649
8650 * config/bfin/bfin-modes.def: Add precision to PDI.
8651 * config/m32c/m32c-modes.def: Add precision to PSI.
8652 * config/msp430/msp430-modes.def: Add precision to PSI.
8653 * config/rs6000/rs6000-modes.def: Add precision to PTI.
8654 * config/sh/sh-modes.def: Add precision to PSI and PDI.
8655
8656 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
8657
8658 PR target/54236
8659 * config/sh/sh.md (*addc): Rename existing variations to ...
8660 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
8661 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
8662 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
8663 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
8664
8665 2013-10-29 Teresa Johnson <tejohnson@google.com>
8666
8667 PR ipa/58862
8668 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
8669 insanities when updating probabilities.
8670
8671 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8672
8673 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
8674 prettyprinter for cgraph_node to reflect the conversion of the
8675 symtable types to a C++ class hierarchy: it now *is* a
8676 symtab_node_base, rather than having one (named "symbol").
8677
8678 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
8679
8680 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
8681 __cilkrts_pop_frame. If matched, then return true for built-in
8682 function name.
8683 (expand_builtin): Added BUILT_IN_CILK_DETACH and
8684 BUILT_IN_CILK_POP_FRAME case.
8685 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
8686 (lhs_cilk_detect_spawn): Likewise.
8687 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
8688 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
8689 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
8690 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
8691 (LANG_HOOKS_CILKPLUS): Likewise.
8692 * tree.h (CILK_SPAWN_FN): Likewise.
8693 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
8694 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
8695 (OBJS): Added cilk-common.o.
8696 (BUILTINS_DEF): Added cilk-builtins.def.
8697 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
8698 (lhd_cilk_detect_spawn): Likewise.
8699 * langhooks.h (lang_hooks_for_cilkplus): New struct.
8700 (struct lang_hooks): Added new field called "cilkplus."
8701 * cilk-common.c: New file.
8702 * cilk.h: Likewise.
8703 * cilk-builtins.def: Likewise.
8704 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
8705 "__cilk" macro and set it to 200.
8706 * function.h (struct function::cilk_frame_decl): New field.
8707 (struct function::is_cilk_function): Likewise.
8708 (struct function::calls_cilk_spawn): Likewise.
8709 * gimplify.c (gimplify_call_expr): Added a check if the function call
8710 being gimplified is a spawn detach point. If so, then add pop_frame
8711 and detach function calls.
8712 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
8713 for gimplifying _Cilk_spawn and _Cilk_sync statements.
8714 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
8715 function. If so, added a _Cilk_sync and gimplified it.
8716 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
8717 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
8718 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
8719 spawner function.
8720 (can_inline_edge_p): Prevent inling of spawnee function.
8721 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
8722 for functions that use Cilk keywords.
8723 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
8724 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
8725 CILK_SYNC_STMT cases.
8726 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
8727 trees.
8728 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
8729 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
8730 * passes.texi (Cilk Keywords): New section that describes the compiler
8731 code changes for handling Cilk Keywords.
8732
8733 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8734
8735 Patch autogenerated by refactor_symtab.py from
8736 https://github.com/davidmalcolm/gcc-refactoring-scripts
8737 revision 58bb219cc090b2f4516a9297d868c245495ee622
8738
8739 * asan.c (asan_finish_file): Update for conversion of symtab types to
8740 a true class hierarchy.
8741 * cfgexpand.c (estimated_stack_frame_size): Likewise.
8742 * cgraph.c (cgraph_get_body): Likewise.
8743 (cgraph_get_create_real_symbol_node): Likewise.
8744 (verify_cgraph_node): Likewise.
8745 (verify_edge_corresponds_to_fndecl): Likewise.
8746 (verify_edge_count_and_frequency): Likewise.
8747 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
8748 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8749 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
8750 (cgraph_node_cannot_return): Likewise.
8751 (cgraph_set_pure_flag_1): Likewise.
8752 (cgraph_set_const_flag_1): Likewise.
8753 (cgraph_set_nothrow_flag_1): Likewise.
8754 (cgraph_make_node_local_1): Likewise.
8755 (cgraph_for_node_and_aliases): Likewise.
8756 (cgraph_for_node_thunks_and_aliases): Likewise.
8757 (cgraph_node_can_be_local_p): Likewise.
8758 (cgraph_node_cannot_be_local_p_1): Likewise.
8759 (cgraph_function_body_availability): Likewise.
8760 (dump_cgraph_node): Likewise.
8761 (cgraph_rtl_info): Likewise.
8762 (cgraph_mark_address_taken_node): Likewise.
8763 (cgraph_remove_node): Likewise.
8764 (cgraph_release_function_body): Likewise.
8765 (cgraph_update_edges_for_call_stmt_node): Likewise.
8766 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
8767 (cgraph_make_edge_direct): Likewise.
8768 (cgraph_resolve_speculation): Likewise.
8769 (cgraph_speculative_call_info): Likewise.
8770 (cgraph_turn_edge_to_speculative): Likewise.
8771 (cgraph_create_edge_1): Likewise.
8772 (cgraph_set_call_stmt): Likewise.
8773 (cgraph_node_for_asm): Likewise.
8774 (cgraph_add_thunk): Likewise.
8775 (cgraph_same_body_alias): Likewise.
8776 (cgraph_create_function_alias): Likewise.
8777 (cgraph_create_node): Likewise.
8778 (cgraph_create_empty_node): Likewise.
8779 (record_function_versions): Likewise.
8780 (used_from_object_file_p): Likewise.
8781 * cgraph.h (symtab_can_be_discarded): Likewise.
8782 (symtab_real_symbol_p): Likewise.
8783 (cgraph_mark_force_output_node): Likewise.
8784 (cgraph_edge_recursive_p): Likewise.
8785 (symtab_alias_target): Likewise.
8786 (varpool_all_refs_explicit_p): Likewise.
8787 (varpool_can_remove_if_no_refs): Likewise.
8788 (cgraph_only_called_directly_or_aliased_p): Likewise.
8789 (cgraph_next_function_with_gimple_body): Likewise.
8790 (cgraph_first_function_with_gimple_body): Likewise.
8791 (cgraph_function_with_gimple_body_p): Likewise.
8792 (cgraph_next_function): Likewise.
8793 (cgraph_first_function): Likewise.
8794 (cgraph_next_defined_function): Likewise.
8795 (cgraph_first_defined_function): Likewise.
8796 (varpool_next_defined_variable): Likewise.
8797 (varpool_first_defined_variable): Likewise.
8798 (varpool_next_static_initializer): Likewise.
8799 (varpool_first_static_initializer): Likewise.
8800 (varpool_next_variable): Likewise.
8801 (varpool_first_variable): Likewise.
8802 (varpool_node_name): Likewise.
8803 (varpool): Likewise.
8804 (cgraph): Likewise.
8805 (is_a_helper <varpool_node>::test): Likewise.
8806 (is_a_helper <cgraph_node>::test): Likewise.
8807 (varpool_variable_node): Likewise.
8808 (cgraph_function_or_thunk_node): Likewise.
8809 (varpool_alias_target): Likewise.
8810 (cgraph_alias_target): Likewise.
8811 (cgraph_node_name): Likewise.
8812 (varpool_node_asm_name): Likewise.
8813 (cgraph_node_asm_name): Likewise.
8814 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
8815 (cgraph_rebuild_references): Likewise.
8816 (rebuild_cgraph_edges): Likewise.
8817 (record_eh_tables): Likewise.
8818 (build_cgraph_edges): Likewise.
8819 (mark_store): Likewise.
8820 (mark_load): Likewise.
8821 (mark_address): Likewise.
8822 (record_type_list): Likewise.
8823 (record_reference): Likewise.
8824 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
8825 (cgraph_materialize_clone): Likewise.
8826 (cgraph_function_versioning): Likewise.
8827 (cgraph_copy_node_for_versioning): Likewise.
8828 (update_call_expr): Likewise.
8829 (cgraph_find_replacement_node): Likewise.
8830 (cgraph_create_virtual_clone): Likewise.
8831 (cgraph_clone_node): Likewise.
8832 * cgraphunit.c (compile): Likewise.
8833 (output_weakrefs): Likewise.
8834 (output_in_order): Likewise.
8835 (expand_function): Likewise.
8836 (assemble_thunks_and_aliases): Likewise.
8837 (expand_thunk): Likewise.
8838 (mark_functions_to_output): Likewise.
8839 (handle_alias_pairs): Likewise.
8840 (analyze_functions): Likewise.
8841 (walk_polymorphic_call_targets): Likewise.
8842 (varpool_finalize_decl): Likewise.
8843 (process_function_and_variable_attributes): Likewise.
8844 (cgraph_process_same_body_aliases): Likewise.
8845 (analyze_function): Likewise.
8846 (cgraph_add_new_function): Likewise.
8847 (cgraph_finalize_function): Likewise.
8848 (referred_to_p): Likewise.
8849 (cgraph_reset_node): Likewise.
8850 (cgraph_process_new_functions): Likewise.
8851 (enqueue_node): Likewise.
8852 (decide_is_symbol_needed): Likewise.
8853 * coverage.c (coverage_compute_profile_id): Likewise.
8854 * dbxout.c (dbxout_expand_expr): Likewise.
8855 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
8856 (reference_to_unused): Likewise.
8857 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8858 * gimplify.c (unvisit_body): Likewise.
8859 (unshare_body): Likewise.
8860 * ipa-cp.c (ipcp_generate_summary): Likewise.
8861 (ipcp_decision_stage): Likewise.
8862 (identify_dead_nodes): Likewise.
8863 (decide_whether_version_node): Likewise.
8864 (decide_about_value): Likewise.
8865 (perhaps_add_new_callers): Likewise.
8866 (create_specialized_node): Likewise.
8867 (update_profiling_info): Likewise.
8868 (ipcp_propagate_stage): Likewise.
8869 (estimate_local_effects): Likewise.
8870 (good_cloning_opportunity_p): Likewise.
8871 (devirtualization_time_bonus): Likewise.
8872 (propagate_constants_accross_call): Likewise.
8873 (initialize_node_lattices): Likewise.
8874 (ipcp_cloning_candidate_p): Likewise.
8875 (determine_versionability): Likewise.
8876 (print_all_lattices): Likewise.
8877 (print_lattice): Likewise.
8878 (ipcp_discover_new_direct_edges): Likewise.
8879 * ipa-devirt.c (ipa_devirt): Likewise.
8880 (likely_target_p): Likewise.
8881 (update_type_inheritance_graph): Likewise.
8882 (possible_polymorphic_call_target_p): Likewise.
8883 (dump_possible_polymorphic_call_targets): Likewise.
8884 (devirt_variable_node_removal_hook): Likewise.
8885 (record_binfo): Likewise.
8886 (maybe_record_node): Likewise.
8887 (build_type_inheritance_graph): Likewise.
8888 * ipa-inline-analysis.c (inline_write_summary): Likewise.
8889 (inline_generate_summary): Likewise.
8890 (inline_analyze_function): Likewise.
8891 (do_estimate_growth): Likewise.
8892 (simple_edge_hints): Likewise.
8893 (estimate_node_size_and_time): Likewise.
8894 (estimate_edge_devirt_benefit): Likewise.
8895 (compute_inline_parameters): Likewise.
8896 (estimate_function_body_sizes): Likewise.
8897 (compute_bb_predicates): Likewise.
8898 (initialize_inline_failed): Likewise.
8899 (dump_inline_summary): Likewise.
8900 (dump_inline_edge_summary): Likewise.
8901 * ipa-inline-transform.c (inline_transform): Likewise.
8902 (preserve_function_body_p): Likewise.
8903 (save_inline_function_body): Likewise.
8904 (inline_call): Likewise.
8905 (clone_inlined_nodes): Likewise.
8906 (can_remove_node_now_p): Likewise.
8907 (can_remove_node_now_p_1): Likewise.
8908 * ipa-inline.c (early_inliner): Likewise.
8909 (early_inline_small_functions): Likewise.
8910 (inline_always_inline_functions): Likewise.
8911 (ipa_inline): Likewise.
8912 (flatten_function): Likewise.
8913 (inline_small_functions): Likewise.
8914 (speculation_useful_p): Likewise.
8915 (recursive_inlining): Likewise.
8916 (update_caller_keys): Likewise.
8917 (reset_edge_caches): Likewise.
8918 (update_edge_key): Likewise.
8919 (edge_badness): Likewise.
8920 (relative_time_benefit): Likewise.
8921 (want_inline_self_recursive_call_p): Likewise.
8922 (want_inline_small_function_p): Likewise.
8923 (want_early_inline_function_p): Likewise.
8924 (num_calls): Likewise.
8925 (can_early_inline_edge_p): Likewise.
8926 (can_inline_edge_p): Likewise.
8927 (report_inline_failed_reason): Likewise.
8928 * ipa-profile.c (ipa_profile): Likewise.
8929 (ipa_propagate_frequency): Likewise.
8930 (ipa_propagate_frequency_1): Likewise.
8931 (ipa_profile_generate_summary): Likewise.
8932 * ipa-prop.c (ipcp_transform_function): Likewise.
8933 (read_replacements_section): Likewise.
8934 (ipa_prop_read_section): Likewise.
8935 (ipa_modify_call_arguments): Likewise.
8936 (ipa_print_node_params): Likewise.
8937 (propagate_controlled_uses): Likewise.
8938 (update_indirect_edges_after_inlining): Likewise.
8939 (remove_described_reference): Likewise.
8940 (ipa_make_edge_direct_to_target): Likewise.
8941 (ipa_analyze_node): Likewise.
8942 (ipa_analyze_params_uses): Likewise.
8943 (ipa_compute_jump_functions): Likewise.
8944 (ipa_get_callee_param_type): Likewise.
8945 (ipa_print_node_jump_functions): Likewise.
8946 (ipa_initialize_node_params): Likewise.
8947 (ipa_populate_param_decls): Likewise.
8948 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8949 (write_agg_replacement_chain): Likewise.
8950 (ipa_write_node_info): Likewise.
8951 (ipa_edge_duplication_hook): Likewise.
8952 (try_decrement_rdesc_refcount): Likewise.
8953 * ipa-pure-const.c (propagate_nothrow): Likewise.
8954 (propagate_pure_const): Likewise.
8955 (pure_const_read_summary): Likewise.
8956 (pure_const_write_summary): Likewise.
8957 (analyze_function): Likewise.
8958 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8959 (ipa_ref_referring_ref_list): Likewise.
8960 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8961 (ipa_remove_stmt_references): Likewise.
8962 (ipa_find_reference): Likewise.
8963 (ipa_dump_referring): Likewise.
8964 (ipa_dump_references): Likewise.
8965 (ipa_record_reference): Likewise.
8966 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8967 (ipa_reference_write_optimization_summary): Likewise.
8968 (write_node_summary_p): Likewise.
8969 (propagate): Likewise.
8970 (read_write_all_from_decl): Likewise.
8971 (generate_summary): Likewise.
8972 (analyze_function): Likewise.
8973 (propagate_bits): Likewise.
8974 (ipa_reference_get_not_written_global): Likewise.
8975 (ipa_reference_get_not_read_global): Likewise.
8976 * ipa-split.c (execute_split_functions): Likewise.
8977 (split_function): Likewise.
8978 * ipa-utils.c (ipa_merge_profiles): Likewise.
8979 (dump_cgraph_node_set): Likewise.
8980 (ipa_reverse_postorder): Likewise.
8981 (ipa_edge_within_scc): Likewise.
8982 (ipa_get_nodes_in_cycle): Likewise.
8983 (ipa_free_postorder_info): Likewise.
8984 (ipa_reduced_postorder): Likewise.
8985 (searchc): Likewise.
8986 (recursive_call_p): Likewise.
8987 * ipa.c (ipa_cdtor_merge): Likewise.
8988 (record_cdtor_fn): Likewise.
8989 (function_and_variable_visibility): Likewise.
8990 (varpool_externally_visible_p): Likewise.
8991 (cgraph_externally_visible_p): Likewise.
8992 (comdat_can_be_unshared_p): Likewise.
8993 (comdat_can_be_unshared_p_1): Likewise.
8994 (address_taken_from_non_vtable_p): Likewise.
8995 (ipa_discover_readonly_nonaddressable_vars): Likewise.
8996 (symtab_remove_unreachable_nodes): Likewise.
8997 (walk_polymorphic_call_targets): Likewise.
8998 (process_references): Likewise.
8999 (enqueue_node): Likewise.
9000 (has_addr_references_p): Likewise.
9001 (cgraph_non_local_node_p_1): Likewise.
9002 * is-a.h (varpool_analyze_node): Likewise.
9003 * lto-cgraph.c (input_symtab): Likewise.
9004 (merge_profile_summaries): Likewise.
9005 (input_cgraph_1): Likewise.
9006 (input_edge): Likewise.
9007 (input_varpool_node): Likewise.
9008 (input_node): Likewise.
9009 (input_overwrite_node): Likewise.
9010 (compute_ltrans_boundary): Likewise.
9011 (output_refs): Likewise.
9012 (lto_output_varpool_node): Likewise.
9013 (lto_output_node): Likewise.
9014 (reachable_from_other_partition_p): Likewise.
9015 (referenced_from_other_partition_p): Likewise.
9016 (lto_output_edge): Likewise.
9017 (output_node_opt_summary): Likewise.
9018 (add_node_to): Likewise.
9019 (reachable_from_this_partition_p): Likewise.
9020 (lto_set_symtab_encoder_in_partition): Likewise.
9021 (lto_symtab_encoder_in_partition_p): Likewise.
9022 (lto_set_symtab_encoder_encode_initializer): Likewise.
9023 (lto_symtab_encoder_encode_initializer_p): Likewise.
9024 (lto_set_symtab_encoder_encode_body): Likewise.
9025 (lto_symtab_encoder_encode_body_p): Likewise.
9026 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
9027 Likewise.
9028 * lto-streamer-in.c (lto_read_body): Likewise.
9029 (fixup_call_stmt_edges): Likewise.
9030 (fixup_call_stmt_edges_1): Likewise.
9031 * lto-streamer-out.c (produce_symtab): Likewise.
9032 (output_symbol_p): Likewise.
9033 (write_symbol): Likewise.
9034 (lto_output): Likewise.
9035 (copy_function): Likewise.
9036 (output_function): Likewise.
9037 * passes.c (function_called_by_processed_nodes_p): Likewise.
9038 (ipa_write_optimization_summaries): Likewise.
9039 (ipa_write_summaries): Likewise.
9040 (do_per_function_toporder): Likewise.
9041 (do_per_function): Likewise.
9042 (dump_passes): Likewise.
9043 * symtab.c (symtab_semantically_equivalent_p): Likewise.
9044 (symtab_nonoverwritable_alias): Likewise.
9045 (symtab_nonoverwritable_alias_1): Likewise.
9046 (symtab_for_node_and_aliases): Likewise.
9047 (symtab_resolve_alias): Likewise.
9048 (fixup_same_cpp_alias_visibility): Likewise.
9049 (symtab_alias_ultimate_target): Likewise.
9050 (symtab_used_from_object_file_p): Likewise.
9051 (verify_symtab_base): Likewise.
9052 (dump_symtab_base): Likewise.
9053 (symtab_node_name): Likewise.
9054 (symtab_node_asm_name): Likewise.
9055 (symtab_dissolve_same_comdat_group_list): Likewise.
9056 (symtab_add_to_same_comdat_group): Likewise.
9057 (symtab_unregister_node): Likewise.
9058 (symtab_insert_node_to_hashtable): Likewise.
9059 (symtab_register_node): Likewise.
9060 (unlink_from_assembler_name_hash): Likewise.
9061 (insert_to_assembler_name_hash): Likewise.
9062 (eq_assembler_name): Likewise.
9063 (hash_node_by_assembler_name): Likewise.
9064 (eq_node): Likewise.
9065 (hash_node): Likewise.
9066 * toplev.c (wrapup_global_declaration_2): Likewise.
9067 * trans-mem.c (ipa_tm_execute): Likewise.
9068 (ipa_tm_transform_clone): Likewise.
9069 (ipa_tm_transform_transaction): Likewise.
9070 (ipa_tm_transform_calls_redirect): Likewise.
9071 (ipa_tm_insert_gettmclone_call): Likewise.
9072 (ipa_tm_insert_irr_call): Likewise.
9073 (ipa_tm_create_version): Likewise.
9074 (ipa_tm_create_version_alias): Likewise.
9075 (ipa_tm_mark_forced_by_abi_node): Likewise.
9076 (ipa_tm_mark_force_output_node): Likewise.
9077 (ipa_tm_diagnose_tm_safe): Likewise.
9078 (ipa_tm_mayenterirr_function): Likewise.
9079 (ipa_tm_scan_irr_function): Likewise.
9080 (ipa_tm_note_irrevocable): Likewise.
9081 (ipa_tm_scan_calls_clone): Likewise.
9082 (get_cg_data): Likewise.
9083 * tree-eh.c (tree_could_trap_p): Likewise.
9084 * tree-emutls.c (ipa_lower_emutls): Likewise.
9085 (create_emultls_var): Likewise.
9086 (lower_emutls_function_body): Likewise.
9087 (gen_emutls_addr): Likewise.
9088 (emutls_decl): Likewise.
9089 (new_emutls_decl): Likewise.
9090 * tree-inline.c (tree_function_versioning): Likewise.
9091 (optimize_inline_calls): Likewise.
9092 (expand_call_inline): Likewise.
9093 (estimate_num_insns): Likewise.
9094 (copy_bb): Likewise.
9095 (delete_unreachable_blocks_update_callgraph): Likewise.
9096 * tree-nested.c (gimplify_all_functions): Likewise.
9097 (create_nesting_tree): Likewise.
9098 (check_for_nested_with_variably_modified): Likewise.
9099 * tree-pretty-print.c (dump_function_header): Likewise.
9100 * tree-profile.c (tree_profiling): Likewise.
9101 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
9102 (modify_function): Likewise.
9103 (convert_callers): Likewise.
9104 (convert_callers_for_node): Likewise.
9105 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
9106 (associate_varinfo_to_alias): Likewise.
9107 (create_variable_info_for): Likewise.
9108 (get_constraint_for_ssa_var): Likewise.
9109 * tree-vectorizer.c (increase_alignment): Likewise.
9110 * tree.c (find_decls_types_in_var): Likewise.
9111 (find_decls_types_in_node): Likewise.
9112 (free_lang_data_in_decl): Likewise.
9113 * value-prof.c (gimple_ic_transform): Likewise.
9114 (gimple_ic): Likewise.
9115 (check_ic_target): Likewise.
9116 (init_node_map): Likewise.
9117 * varasm.c (decl_binds_to_current_def_p): Likewise.
9118 (default_binds_local_p_1): Likewise.
9119 (dump_tm_clone_pairs): Likewise.
9120 (assemble_alias): Likewise.
9121 (find_decl): Likewise.
9122 (mark_decl_referenced): Likewise.
9123 * varpool.c (varpool_for_node_and_aliases): Likewise.
9124 (varpool_extra_name_alias): Likewise.
9125 (varpool_create_variable_alias): Likewise.
9126 (add_new_static_var): Likewise.
9127 (varpool_finalize_named_section_flags): Likewise.
9128 (varpool_remove_unreferenced_decls): Likewise.
9129 (enqueue_node): Likewise.
9130 (varpool_assemble_decl): Likewise.
9131 (assemble_aliases): Likewise.
9132 (varpool_analyze_node): Likewise.
9133 (cgraph_variable_initializer_availability): Likewise.
9134 (varpool_add_new_variable): Likewise.
9135 (ctor_for_folding): Likewise.
9136 (dump_varpool_node): Likewise.
9137 (varpool_remove_initializer): Likewise.
9138 (varpool_remove_node): Likewise.
9139 (varpool_node_for_decl): Likewise.
9140 (varpool_create_empty_node): Likewise.
9141 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
9142 (ix86_get_function_versions_dispatcher): Likewise.
9143
9144 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9145
9146 * cgraph.h (symtab_node_base): Convert to a class;
9147 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
9148 chain_next/prev from symtab_node_def.
9149 (cgraph_node): Inherit from symtab_node; add GTY option
9150 tag ("SYMTAB_FUNCTION").
9151 (varpool_node): Inherit from symtab_node; add GTY option
9152 tag ("SYMTAB_VARIABLE").
9153 (symtab_node_def): Remove.
9154 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
9155 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
9156 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
9157 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
9158
9159 * ipa-ref.h (symtab_node_def): Drop.
9160 (symtab_node): Change underlying type from symtab_node_def to
9161 symtab_node_base.
9162 (const_symtab_node): Likwise.
9163
9164 * is-a.h: Update examples in comment.
9165
9166 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
9167 (assembler_name_hash): Likewise.
9168
9169 2013-10-29 Martin Liska <marxin.liska@gmail.com>
9170
9171 * doc/tree-ssa.texi (gimple_phi_result): Document.
9172 (gimple_phi_num_args, gimple_phi_arg): Likewise.
9173 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
9174 (PHI_RESULT, PHI_NUM_ARGS): Remove.
9175 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
9176
9177 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
9178
9179 * expr.h: Revert change and include tree-core.h.
9180 * rtl.h: Revert change and don't include tree-core.h.
9181
9182 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
9183
9184 * config/darwin.c: Include gimple.h.
9185 * config/i386/winnt.c: Likewise.
9186
9187 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
9188
9189 PR tree-optimization/19831
9190 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
9191
9192 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
9193
9194 * tree-outof-ssa.h: Remove include files.
9195 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
9196 * expr.c: Likewise.
9197 * tree-ssa-coalesce.c: Likewise.
9198 * cfgexpand.c: Likewise.
9199 * tree-ssa-ter.c: Likewise.
9200 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
9201 * lto-streamer.h: Likewise.
9202 * cgraphbuild.c: Add gimple.h to include list.
9203 * data-streamer-in.c: Likewise.
9204 * ipa-cp.c: Likewise.
9205 * tree-streamer.c: Likewise.
9206 * lto-compress.c: Likewise.
9207 * ipa-reference.c: Likewise.
9208 * data-streamer-out.c: Likewise.
9209 * lto-cgraph.c: Likewise.
9210 * cgraphclones.c: Likewise.
9211 * ipa-utils.c: Likewise.
9212 * data-streamer.c: Likewise.
9213 * ipa-split.c: Likewise.
9214 * lto-section-in.c: Likewise.
9215 * tree-streamer-out.c: Likewise.
9216 * ipa-prop.c: Likewise.
9217 * tree-streamer-in.c: Likewise.
9218 * symtab.c: Likewise.
9219 * opts-global.c: Likewise.
9220 * lto-opts.c: Likewise.
9221 * lto-section-out.c: Likewise.
9222 * lto-streamer.c: Likewise.
9223 * rtl.h: Add tree-core.h to include list.
9224 * expr.h: Remove tree-core.h from include list.
9225 * gimple.h: Likewise.
9226 * ipa-utils.h: Likewise.
9227 * streamer-hooks.h: Likewise.
9228 * streamer-hooks.c: Include input.h.
9229
9230 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9231
9232 * config/arm/arm.c (cortexa7_extra_costs): New table.
9233 (arm_cortex_a7_tune): New.
9234 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
9235
9236 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
9237
9238 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
9239
9240 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9241
9242 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
9243 to use autogenerated markers for a class-hierarchy, every class
9244 must have a GTY marker.
9245 * gengtype.h (struct type): Add linked list of subclasses to
9246 the "s" member of the union.
9247 (add_subclass): New decl.
9248 * gengtype-state.c (read_state_struct_type): Set up subclass
9249 linked list.
9250 * gengtype.c (get_ultimate_base_class): New.
9251 (add_subclass): New.
9252 (new_structure): Set up subclass linked list.
9253 (set_gc_used_type): Propagate usage information to subclasses.
9254 (output_mangled_typename): Use get_ultimate_base_class.
9255 (walk_subclasses): Use the subclass linked list, avoiding an
9256 O(N^2) when writing out all types.
9257 (walk_type): Issue an error if the base class is missing a tag,
9258 rather than generating bogus C code. Add a gcc_unreachable
9259 default case, in case people omit tags from concrete subclasses,
9260 or get the values wrong.
9261 (write_func_for_structure): Issue an error for subclasses for
9262 which the base doesn't have a "desc", since otherwise the
9263 autogenerated routines for the base would silently fail to visit
9264 any subclass fields.
9265 (write_root): Use get_ultimate_base_class, tweaking constness of
9266 tp to match that function's signature.
9267
9268 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9269
9270 * doc/gty.texi (GTY Options): Add note about inheritance to
9271 description of desc and tag.
9272 (Inheritance and GTY): New.
9273
9274 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9275
9276 * gengtype-parse.c (opts_have): Drop "static" so that
9277 we can use this from gengtype.c.
9278 * gengtype.c (set_gc_used_type): Mark any base class as used;
9279 update field traversal to visit inherited fields.
9280 (output_mangled_typename): Convert references to classes within
9281 an inheritance hierarchy to reference the ultimate base class,
9282 since only it will have gt_ functions.
9283 (get_string_option): New.
9284 (walk_subclasses): New.
9285 (walk_type): Treat GTY structs that have a "desc" as being the
9286 root of an inheritance hierarchy. Generate a switch on it
9287 within the marking function which walks all subclasses, adding
9288 cases for them via walk_subclasses. For subclasses, visit all
9289 fields of the type (including inherited ones).
9290 (write_func_for_structure): Don't write fns for subclasses, only
9291 for the ultimate base class within an inheritance hierarchy.
9292 Subclasses-marking will be handled by the base class marking functions.
9293 (write_types): Likewise.
9294 (write_local_func_for_structure): Likewise.
9295 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
9296 a "tag" option (and are thus concrete subclasses).
9297 (write_root): Use the marker function for the ultimate base class.
9298 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
9299 (opts_have): Add declaration.
9300
9301 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
9302
9303 * lra-spills.c (lra_final_code_change): Remove useless move insns
9304 originated from moves of pseudos.
9305
9306 2013-10-28 Jeff Law <law@redhat.com>
9307
9308 * lower-subreg.c (resolve_simple_move): Fix comment typo.
9309
9310 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
9311
9312 * df-scan.c (df_collection_rec): Adjust.
9313 (copy_defs): New constant.
9314 (copy_uses): Likewise.
9315 (copy_eq_uses): Likewise.
9316 (copy_mw): Likewise.
9317 (copy_all): Likewise.
9318 (df_insn_rescan): Adjust.
9319 (df_notes_rescan): Likewise.
9320 (df_swap_refs): Likewise.
9321 (df_sort_and_compress_refs): Likewise.
9322 (df_sort_and_compress_mws): Likewise.
9323 (df_install_refs): Likewise.
9324 (df_install_mws): Likewise.
9325 (df_refs_add_to_chains): Add flags parameter controlling which vectors
9326 are coppied.
9327 (df_bb_refs_record): Adjust.
9328 (df_record_entry_block_defs): Likewise.
9329 (df_record_exit_block_defs): Likewise.
9330 (df_refs_verify): Likewise.
9331 (df_mws_verify): Likewise.
9332 (df_insn_refs_verify): Likewise.
9333 (df_bb_verify): Likewise.
9334 * ipa-pure-const.c (finish_state): Remove.
9335 (propagate): Adjust.
9336 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
9337 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
9338 var-tracking.c: Adjust.
9339 * vec.c (stack_vecs): Remove.
9340 (register_stack_vec): Likewise.
9341 (stack_vec_register_index): Likewise.
9342 (unregister_stack_vec): Likewise.
9343 * vec.h (struct va_stack): Remove.
9344 (struct vec<T, A, vl_ptr>): Specialize as
9345 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
9346 allocation strategy compatable with the vl_ptr layout.
9347 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
9348 specialization anyway.
9349 (class stack_vec): New class.
9350 (vec_stack_alloc): Remove.
9351 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
9352
9353 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9354 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9355 Sergey Lega <sergey.s.lega@intel.com>
9356 Anna Tikhonova <anna.tikhonova@intel.com>
9357 Ilya Tocar <ilya.tocar@intel.com>
9358 Andrey Turetskiy <andrey.turetskiy@intel.com>
9359 Ilya Verbin <ilya.verbin@intel.com>
9360 Kirill Yukhin <kirill.yukhin@intel.com>
9361 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9362
9363 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
9364 (*prefetch_avx512pf_<mode>): New.
9365 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
9366 (avx512f_maskcmp<mode>3): Ditto.
9367 (vashrv16si3): Ditto.
9368
9369 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9370 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9371 Sergey Lega <sergey.s.lega@intel.com>
9372 Anna Tikhonova <anna.tikhonova@intel.com>
9373 Ilya Tocar <ilya.tocar@intel.com>
9374 Andrey Turetskiy <andrey.turetskiy@intel.com>
9375 Ilya Verbin <ilya.verbin@intel.com>
9376 Kirill Yukhin <kirill.yukhin@intel.com>
9377 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9378
9379 * config/i386/i386.md (any_truncate): New.
9380 (trunsuffix): Ditto.
9381 * config/i386/predicates.md (const_8_to_9_operand): New.
9382 (const_10_to_11_operand): Ditto.
9383 (const_12_to_13_operand): Ditto.
9384 (const_14_to_15_operand): Ditto.
9385 (const_16_to_19_operand): Ditto.
9386 (const_20_to_23_operand): Ditto.
9387 (const_24_to_27_operand): Ditto.
9388 (const_28_to_31_operand): Ditto.
9389 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
9390 (cvtusi2<ssescalarmodesuffix>32): New.
9391 (cvtusi2<ssescalarmodesuffix>64): Ditto.
9392 (ufloatv16siv16sf2): Ditto.
9393 (avx512f_fix_notruncv16sfv16si): Ditto.
9394 (avx512f_ufix_notruncv16sfv16si): Ditto.
9395 (avx512f_vcvtss2usi): Ditto.
9396 (avx512f_vcvtss2usiq): Ditto.
9397 (avx512f_vcvttss2usi): Ditto.
9398 (avx512f_vcvttss2usiq): Ditto.
9399 (avx512f_vcvtsd2usi): Ditto.
9400 (avx512f_vcvtsd2usiq): Ditto.
9401 (avx512f_vcvttsd2usi): Ditto.
9402 (avx512f_vcvttsd2usiq): Ditto.
9403 (ufloatv8siv8df): Ditto.
9404 (avx512f_cvtdq2pd512_2): Ditto.
9405 (avx512f_cvtpd2dq512): Ditto.
9406 (avx512f_ufix_notruncv8dfv8si): Ditto.
9407 (avx512f_cvtpd2ps512): Ditto.
9408 (vec_unpacks_lo_v16sf): Ditto.
9409 (vec_unpacks_hi_v16sf): Ditto.
9410 (vec_unpacks_float_hi_v16si): Ditto.
9411 (vec_unpacks_float_lo_v16si): Ditto.
9412 (avx512f_unpckhps512): Ditto.
9413 (avx512f_unpcklps512): Ditto.
9414 (avx512f_movshdup512): Ditto.
9415 (avx512f_movsldup512): Ditto.
9416 (vec_extract_lo_v32hi): Ditto.
9417 (vec_extract_hi_v32hi): Ditto.
9418 (vec_extract_lo_v64qi): Ditto.
9419 (vec_extract_hi_v64qi): Ditto.
9420 (avx512f_unpckhpd512): Ditto.
9421 (avx512f_movddup512): Ditto.
9422 (avx512f_unpcklpd512): Ditto.
9423 (*avx512f_unpcklpd512): Ditto.
9424 (avx512f_shufps512_1): Ditto.
9425 (avx512f_shufpd512_1): Ditto.
9426 (avx512f_interleave_highv8di): Ditto.
9427 (avx512f_interleave_lowv8di): Ditto.
9428 (PMOV_DST_MODE): Ditto.
9429 (pmov_src_mode): Ditto.
9430 (pmov_src_lower): Ditto.
9431 (pmov_suff): Ditto.
9432 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
9433 (*avx512f_<code>v8div16qi2): Ditto.
9434 (*avx512f_<code>v8div16qi2_store): Ditto.
9435 (vec_widen_umult_even_v16si): Ditto.
9436 (*vec_widen_umult_even_v16si): Ditto.
9437 (vec_widen_smult_even_v16si): Ditto.
9438 (*vec_widen_smult_even_v16si): Ditto.
9439 (avx512f_interleave_highv16si): Ditto.
9440 (avx512f_interleave_lowv16si): Ditto.
9441 (avx512f_<code>v16qiv16si2): Ditto.
9442 (avx512f_<code>v16hiv16si2): Ditto.
9443 (avx512f_<code>v8qiv8di2): Ditto.
9444 (avx512f_<code>v8hiv8di2): Ditto.
9445 (avx512f_<code>v8siv8di2): Ditto.
9446 (avx512cd_maskb_vec_dupv8di): Ditto.
9447 (avx512cd_maskw_vec_dupv16si): Ditto.
9448 (avx512f_vcvtph2ps512): Ditto.
9449 (avx512f_vcvtps2ph512): Ditto.
9450 (VEC_EXTRACT_MODE): Extened with wider modes.
9451 (VEC_PERM_AVX2): Ditto.
9452 (VEC_PERM_CONST): Ditto.
9453
9454 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
9455
9456 * config/arc/arc.c (arc_ccfsm_post_advance):
9457 Add comment about TYPE_RETURN.
9458
9459 2013-10-28 Bin Cheng <bin.cheng@arm.com>
9460
9461 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
9462 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
9463 (strip_offset): Convert offset to unsigned number.
9464
9465 2013-10-27 Tom de Vries <tom@codesourcery.com>
9466
9467 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
9468 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
9469
9470 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
9471
9472 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
9473 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
9474 (TARGET_BIG_ENDIAN): New macro.
9475 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
9476 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
9477 * config/sh/sh.c: Likewise.
9478 * config/sh/sh.h: Likewise.
9479
9480 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
9481
9482 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
9483 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
9484
9485 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
9486
9487 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
9488 Fix formatting.
9489 (cmpstr_t, cmpstrsi): Fix formatting.
9490
9491 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
9492
9493 PR target/52483
9494 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
9495 addressing, do not use general_operand for memory operands.
9496
9497 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
9498
9499 Revert:
9500 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9501 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9502
9503 2013-10-26 Jeff Law <law@redhat.com>
9504
9505 * predict.c (PRED_MUDFLAP): Remove.
9506 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
9507
9508 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
9509 (OBJS): Remove tree-nomudflap.o
9510 (GTFILES): Remove tree-mudflap.c
9511 * builtins.c (expand_builtin_alloc): Remove mudflap support.
9512 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9513 (mfwrap_spec, mflib_spec): Likewise.
9514 (cpp_unique_options, cc1_options, static_specs): Likewise.
9515 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
9516 * passes.def: Likewise.
9517 * toplev.c (compile_file, process_options): Likewise.
9518 * tree-inline.c (copy_tree_r): Likewise.
9519 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
9520 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
9521 (build_constant_desc, output_constant_def_contents): Likewise.
9522 (categorize_decl_for_section): Likewise.
9523 * tree-mudflap.c: Removed.
9524 * tree-mudflap.h: Removed.
9525 * tree-nomudflap.c: Removed.
9526 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
9527 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
9528 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9529 * config/sol2.h (MFLIB_SPEC): Likewise.
9530 * doc/install.texi: Remove mudflap references.
9531 * doc/passes.texi: Similarly.
9532 * doc/sourcebuild.texi: Similarly.
9533 * doc/invoke.texi: Remove mudlfap related options.
9534
9535 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9536
9537 PR rtl-optimization/58759
9538 * lra-constraints.c (lra_constraints): Remove wrong condition to
9539 remove insn setting up an equivalent pseudo.
9540
9541 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9542
9543 * config/rs6000/rs6000-protos.h
9544 (rs6000_secondary_memory_needed_mode): New prototype.
9545 * config/rs6000/rs6000.c: Include ira.h.
9546 (TARGET_LRA_P): Redefine.
9547 (rs6000_legitimate_offset_address_p): Call
9548 legitimate_constant_pool_address_p in strict mode for LRA.
9549 (rs6000_legitimate_address_p): Ditto.
9550 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
9551 (rs6000_emit_move): Add LRA version of code to generate load/store
9552 of SDmode values.
9553 (rs6000_secondary_memory_needed_mode): New.
9554 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
9555 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
9556 constants, memory, and FP registers.
9557 (rs6000_lra_p): New.
9558 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
9559 * config/rs6000/rs6000.opt (mlra): New option.
9560 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9561
9562 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
9563
9564 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
9565 has_single_use () and not do the conversion if has_single_use ()
9566 returns false for the multiplication result.
9567
9568 2013-10-25 David Malcolm <dmalcolm@redhat.com>
9569
9570 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
9571 to "NODE", since this works on a "tree", not an
9572 "enum tree_code".
9573 (CONSTANT_CLASS_P): Likewise.
9574 (TYPE_P): Likewise.
9575 (DECL_P): Likewise.
9576 (INDIRECT_REF_P): Likewise.
9577 (REFERENCE_CLASS_P): Likewise.
9578 (COMPARISON_CLASS_P): Likewise.
9579 (UNARY_CLASS_P): Likewise.
9580 (BINARY_CLASS_P): Likewise.
9581 (STATEMENT_CLASS_P): Likewise.
9582 (VL_EXP_CLASS_P): Likewise.
9583 (EXPRESSION_CLASS_P): Likewise.
9584 (IS_TYPE_OR_DECL_P): Likewise.
9585
9586 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
9587
9588 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
9589 ADDR_EXPR in the defining statement.
9590
9591 2013-10-25 Richard Biener <rguenther@suse.de>
9592
9593 PR tree-optimization/58626
9594 * tree-loop-distribution.c (enum rdg_dep_type): Remove
9595 anti_dd, output_dd and input_dd.
9596 (struct rdg_edge): Remove level and relation members.
9597 (RDGE_LEVEL, RDGE_RELATION): Remove.
9598 (dot_rdg_1): Adjust.
9599 (create_rdg_edge_for_ddr): Remove.
9600 (create_rdg_edges_for_scalar): Adjust.
9601 (create_edge_for_control_dependence): Likewise.
9602 (create_rdg_edges): Split into ...
9603 (create_rdg_flow_edges): ... this
9604 (create_rdg_cd_edges): ... and this.
9605 (free_rdg): Adjust.
9606 (build_rdg): Likewise, do not compute data dependences or
9607 add edges for them.
9608 (pg_add_dependence_edges): New function.
9609 (pgcmp): Likewise.
9610 (distribute_loop): First apply all non-dependence based
9611 partition mergings. Then compute dependences between partitions
9612 and merge and order partitions according to them.
9613
9614 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
9615
9616 PR rtl-optimization/58831
9617 * alias.c (init_alias_analysis): At the beginning of each iteration,
9618 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
9619
9620 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
9621
9622 * recog.c (search_ofs): New static variable moved from...
9623 (peep2_find_free_register): ...here.
9624 (peephole2_optimize): Initialize it.
9625
9626 2013-10-25 Tobias Burnus <burnus@net-b.de>
9627
9628 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
9629
9630 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
9631
9632 * config/i386/i386.h (TARGET_MPX): New define.
9633 (TARGET_MPX_P): Ditto.
9634
9635 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9636
9637 * config/i386/constraints.md (B): New.
9638 (Ti): New.
9639 (Tb): New.
9640 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9641 * config/i386/i386-modes.def (BND32): New.
9642 (BND64): New.
9643 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9644 * config/i386/i386.c (isa_opts): Add mmpx.
9645 (regclass_map): Add bound registers.
9646 (dbx_register_map): Likewise.
9647 (dbx64_register_map): Likewise.
9648 (svr4_dbx_register_map): Likewise.
9649 (PTA_MPX): New.
9650 (ix86_option_override_internal): Support MPX ISA.
9651 (ix86_conditional_register_usage): Support bound registers.
9652 (print_reg): Likewise.
9653 (ix86_code_end): Add MPX bnd prefix.
9654 (output_set_got): Likewise.
9655 (ix86_output_call_insn): Likewise.
9656 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9657 (ix86_print_operand_punct_valid_p): Likewise.
9658 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9659 UNSPEC_BNDMK_ADDR.
9660 (ix86_class_likely_spilled_p): Add bound regs support.
9661 (ix86_hard_regno_mode_ok): Likewise.
9662 (x86_order_regs_for_local_alloc): Likewise.
9663 (ix86_bnd_prefixed_insn_p): New.
9664 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
9665 (FIXED_REGISTERS): Add bound registers.
9666 (CALL_USED_REGISTERS): Likewise.
9667 (REG_ALLOC_ORDER): Likewise.
9668 (HARD_REGNO_NREGS): Likewise.
9669 (TARGET_MPX): New.
9670 (VALID_BND_REG_MODE): New.
9671 (FIRST_BND_REG): New.
9672 (LAST_BND_REG): New.
9673 (reg_class): Add BND_REGS.
9674 (REG_CLASS_NAMES): Likewise.
9675 (REG_CLASS_CONTENTS): Likewise.
9676 (BND_REGNO_P): New.
9677 (ANY_BND_REG_P): New.
9678 (BNDmode): New.
9679 (HI_REGISTER_NAMES): Add bound registers.
9680 * config/i386/i386.md (UNSPEC_BNDMK): New.
9681 (UNSPEC_BNDMK_ADDR): New.
9682 (UNSPEC_BNDSTX): New.
9683 (UNSPEC_BNDLDX): New.
9684 (UNSPEC_BNDLDX_ADDR): New.
9685 (UNSPEC_BNDCL): New.
9686 (UNSPEC_BNDCU): New.
9687 (UNSPEC_BNDCN): New.
9688 (UNSPEC_MPX_FENCE): New.
9689 (BND0_REG): New.
9690 (BND1_REG): New.
9691 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9692 (length_immediate): Likewise.
9693 (prefix_0f): Likewise.
9694 (memory): Likewise.
9695 (prefix_rep): Check for bnd prefix.
9696 (length_nobnd): New.
9697 (length): Use length_nobnd if specified.
9698 (BND): New.
9699 (bnd_ptr): New.
9700 (BNDCHECK): New.
9701 (bndcheck): New.
9702 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
9703 (*jcc_2): Likewise.
9704 (jump): Likewise.
9705 (simple_return_internal): Likewise.
9706 (simple_return_pop_internal): Likewise.
9707 (*indirect_jump): Add MPX bnd prefix.
9708 (*tablejump_1): Likewise.
9709 (simple_return_internal_long): Likewise.
9710 (simple_return_indirect_internal): Likewise.
9711 (<mode>_mk): New.
9712 (*<mode>_mk): New.
9713 (mov<mode>): New.
9714 (*mov<mode>_internal_mpx): New.
9715 (<mode>_<bndcheck>): New.
9716 (*<mode>_<bndcheck>): New.
9717 (<mode>_ldx): New.
9718 (*<mode>_ldx): New.
9719 (<mode>_stx): New.
9720 (*<mode>_stx): New.
9721 * config/i386/predicates.md (lea_address_operand): Rename to...
9722 (address_no_seg_operand): ... this.
9723 (address_mpx_no_base_operand): New.
9724 (address_mpx_no_index_operand): New.
9725 (bnd_mem_operator): New.
9726 * config/i386/i386.opt (mmpx): New.
9727 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
9728 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
9729
9730 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9731
9732 * mode-classes.def (MODE_POINTER_BOUNDS): New.
9733 * tree.def (POINTER_BOUNDS_TYPE): New.
9734 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9735 (POINTER_BOUNDS_MODE): New.
9736 (make_pointer_bounds_mode): New.
9737 * machmode.h (POINTER_BOUNDS_MODE_P): New.
9738 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9739 (layout_type): Support POINTER_BOUNDS_TYPE.
9740 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9741 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9742 (type_contains_placeholder_1): Likewise.
9743 * tree.h (POINTER_BOUNDS_TYPE_P): New.
9744 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
9745 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9746
9747 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9748
9749 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
9750 mode of address computation when calling memory_address_addr_space.
9751
9752 2013-08-24 Richard Henderson <rth@twiddle.net>
9753
9754 PR rtl/58542
9755 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
9756 instead of create_convert_operand_to.
9757 (maybe_emit_sync_lock_test_and_set): Likewise.
9758 (expand_atomic_compare_and_swap): Likewise.
9759 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
9760
9761 2013-08-24 Sriraman Tallam <tmsriram@google.com>
9762
9763 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
9764 Change param_is to use the struct and not the pointer to the struct.
9765
9766 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
9767
9768 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
9769 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9770 Move to targhooks.c.
9771 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
9772 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9773 Relocate from gimplify.c.
9774 * targhooks.h: Add 2 prototypes.
9775 * tree.h: Delete 2 prototypes.
9776
9777 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9778
9779 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
9780 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
9781
9782 2013-10-24 Cong Hou <congh@google.com>
9783
9784 * convert.c (convert_to_real): Guard those unsafe math function
9785 convertions with flag_unsafe_math_optimizations. Handle sqrt()
9786 specially.
9787
9788 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
9789
9790 PR ipa/58712
9791 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
9792 as argument.
9793 (cgraph_create_edge): Use the new argument.
9794 (cgraph_create_indirect_edge): Likewise.
9795
9796 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
9797
9798 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
9799 TYPE_UNCOND_BRANCH.
9800 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
9801 changes statep->state.
9802
9803 2013-10-24 Tobias Burnus <burnus@net-b.de>
9804
9805 PR other/33426
9806 * tree-cfg.c (replace_loop_annotate): New function.
9807 (execute_build_cfg): Call it.
9808 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
9809 * internal-fn.c (expand_ANNOTATE): New function.
9810 * internal-fn.def (ANNOTATE): Define as new internal function.
9811 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
9812 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
9813 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
9814 * doc/extend.texi (Pragmas): Document #pragma ivdep.
9815 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
9816
9817 2013-10-17 Ian Bolton <ian.bolton@arm.com>
9818 Marcus Shawcroft <marcus.shawcroft@arm.com>
9819
9820 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
9821 Special case reload SP+C into none GENERAL_REGS.
9822
9823 2013-10-24 Michael Matz <matz@suse.de>
9824
9825 * gengtype.c (is_file_equal): Check that files will be same length.
9826
9827 2013-10-25 Christian Bruel <christian.bruel@st.com>
9828
9829 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
9830 * config/sh/t-sh (sh-mem.o): New rule.
9831 * config/sh/sh-mem.cc (expand_block_move): Moved here.
9832 (sh_expand_cmpstr): New function.
9833 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
9834 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
9835 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
9836 (rotlhi3_8): Rename.
9837
9838 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9839
9840 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
9841 * Makefile.in (CXXDEPMODE): Assign and change users.
9842 (CCDEPMODE): Delete.
9843 * configure: Regenerate.
9844
9845 2013-10-23 David Malcolm <dmalcolm@redhat.com>
9846
9847 * gengtype-parse.c (require_without_advance): New.
9848 (type): For GTY-marked types that are not GTY((user)), parse any
9849 base classes, requiring them to be single-inheritance, and not
9850 be templates. For non-GTY-marked types and GTY((user)),
9851 continue to skip over any C++ inheritance specification.
9852 * gengtype-state.c (state_writer::write_state_struct_type):
9853 Write base class of type (if any).
9854 (read_state_struct_type): Read base class of type (if any).
9855 * gengtype.c (new_structure): Add a "base_class" parameter.
9856 (create_optional_field_): Update for new parameter to new_structure.
9857 (adjust_field_rtx_def): Likewise.
9858 (adjust_field_tree_exp): Likewise.
9859 * gengtype.h (struct type): Add "base_class" field to the s
9860 union field.
9861 (new_structure): Add "base" parameter.
9862
9863 2013-10-23 Sriraman Tallam <tmsriram@google.com>
9864
9865 PR target/57756
9866 * config/i386/i386.c (ix86_option_override_internal):
9867 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
9868 (ix86_valid_target_attribute_tree):
9869 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
9870 Change TARGET_SSE to TARGET_SSE_P (opts->...)
9871
9872 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9873
9874 * tree-ssa-loop.h: Remove include files.
9875 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9876 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
9877 * graphite-clast-to-gimple.c: Likewise.
9878 * graphite-scop-detection.c: Likewise.
9879 * graphite-sese-to-poly.c: Likewise.
9880 * ipa-inline-analysis.c: Likewise.
9881 * ipa-pure-const.c: Likewise.
9882 * loop-init.c: Likewise.
9883 * passes.c: Likewise.
9884 * predict.c: Likewise.
9885 * tree-cfg.c: Likewise.
9886 * tree-cfgcleanup.c: Likewise.
9887 * tree-chrec.c: Likewise.
9888 * tree-data-ref.c: Likewise.
9889 * tree-loop-distribution.c: Likewise.
9890 * tree-parloops.c: Likewise.
9891 * tree-predcom.c: Likewise.
9892 * tree-scalar-evolution.c: Likewise.
9893 * tree-ssa-address.c: Likewise.
9894 * tree-ssa.c: Likewise.
9895 * tree-ssa-dce.c: Likewise.
9896 * tree-ssa-loop.c: Likewise.
9897 * tree-ssa-loop-im.c: Likewise.
9898 * tree-ssa-loop-ivcanon.c: Likewise.
9899 * tree-ssa-loop-ivopts.c: Likewise.
9900 * tree-ssa-loop-manip.c: Likewise.
9901 * tree-ssa-loop-niter.c: Likewise.
9902 * tree-ssa-loop-prefetch.c: Likewise.
9903 * tree-ssa-loop-unswitch.c: Likewise.
9904 * tree-ssa-reassoc.c: Likewise.
9905 * tree-vect-data-refs.c: Likewise.
9906 * tree-vect-loop.c: Likewise.
9907 * tree-vect-loop-manip.c: Likewise.
9908 * tree-vectorizer.c: Likewise.
9909 * tree-vect-stmts.c: Likewise.
9910 * tree-vrp.c: Likewise.
9911
9912 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9913
9914 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9915
9916 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9917
9918 PR tree-optimization/58775
9919 PR tree-optimization/58791
9920 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9921 (insert_stmt_after): Rewritten, don't move the stmt, but really
9922 insert it.
9923 (get_stmt_uid_with_default): Remove.
9924 (build_and_add_sum): Use insert_stmt_after and
9925 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
9926 (update_range_test): Set uid on stmts added by
9927 force_gimple_operand_gsi. Don't immediately modify statements
9928 in inter-bb optimization, just update oe->op values.
9929 (optimize_range_tests): Return bool whether any changed have been made.
9930 (update_ops): New function.
9931 (struct inter_bb_range_test_entry): New type.
9932 (maybe_optimize_range_tests): Perform statement changes here.
9933 (not_dominated_by, appears_later_in_bb, get_def_stmt,
9934 ensure_ops_are_available): Remove.
9935 (find_insert_point): Rewritten.
9936 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9937 return LHS of the (new resp. old) stmt. Don't call
9938 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9939 instead of last, move new stmt at the right place.
9940 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9941 (negate_value): Likewise. Set uids.
9942 (break_up_subtract_bb): Initialize uids.
9943 (reassociate_bb): Adjust rewrite_expr_tree caller.
9944 (do_reassoc): Don't call renumber_gimple_stmt_uids.
9945
9946 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
9947
9948 PR target/58838
9949 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9950 TARGET_32BIT final condition.
9951 (mulsi3_internal2 and splitter): Same.
9952
9953 2013-10-23 Jeff Law <law@redhat.com>
9954
9955 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9956 through joiner blocks with abnormal outgoing edges.
9957
9958 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9959 Add parameter JOINERS, to allow/disallow threading through joiner
9960 blocks.
9961 (thread_block): New. Call thread_block_1.
9962 (mark_threaded_blocks): Remove code to filter out certain cases
9963 of threading through joiner blocks.
9964 (thread_through_all_blocks): Document how we can have a dangling
9965 edge AUX field and clear it.
9966
9967 2013-10-23 Ian Lance Taylor <iant@google.com>
9968
9969 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9970 (C++ Dialect Options): Likewise.
9971 (Optimize Options): Likewise.
9972
9973 2013-10-23 Tom de Vries <tom@codesourcery.com>
9974
9975 PR tree-optimization/58805
9976 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9977
9978 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9979
9980 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9981 sequence based on get_range_info returned range.
9982
9983 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9984
9985 * tree-ssa.h: Remove all #include's
9986 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9987 * alias.c: Move required includes from tree-ssa.h.
9988 * asan.c: Likewise.
9989 * builtins.c: Likewise.
9990 * calls.c: Likewise.
9991 * cfgexpand.c: Likewise.
9992 * cfghooks.c: Likewise.
9993 * cfgloop.c: Likewise.
9994 * cfgloopmanip.c: Likewise.
9995 * cgraph.c: Likewise.
9996 * cgraphbuild.c: Likewise.
9997 * cgraphclones.c: Likewise.
9998 * cgraphunit.c: Likewise.
9999 * dse.c: Likewise.
10000 * except.c: Likewise.
10001 * expr.c: Likewise.
10002 * final.c: Likewise.
10003 * fold-const.c: Likewise.
10004 * ggc-page.c: Likewise.
10005 * gimple-builder.c: Likewise.
10006 * gimple-fold.c: Likewise.
10007 * gimple-iterator.c: Likewise.
10008 * gimple-low.c: Likewise.
10009 * gimple-pretty-print.c: Likewise.
10010 * gimple-ssa-strength-reduction.c: Likewise.
10011 * gimple-streamer-in.c: Likewise.
10012 * gimple-streamer-out.c: Likewise.
10013 * gimplify.c: Likewise.
10014 * graphite-blocking.c: Likewise.
10015 * graphite-clast-to-gimple.c: Likewise.
10016 * graphite-dependences.c: Likewise.
10017 * graphite-interchange.c: Likewise.
10018 * graphite-optimize-isl.c: Likewise.
10019 * graphite-poly.c: Likewise.
10020 * graphite-scop-detection.c: Likewise.
10021 * graphite-sese-to-poly.c: Likewise.
10022 * graphite.c: Likewise.
10023 * ipa-cp.c: Likewise.
10024 * ipa-inline-analysis.c: Likewise.
10025 * ipa-inline-transform.c: Likewise.
10026 * ipa-inline.c: Likewise.
10027 * ipa-prop.c: Likewise.
10028 * ipa-pure-const.c: Likewise.
10029 * ipa-reference.c: Likewise.
10030 * ipa-split.c: Likewise.
10031 * ipa-utils.c: Likewise.
10032 * loop-init.c: Likewise.
10033 * lto-cgraph.c: Likewise.
10034 * lto-section-in.c: Likewise.
10035 * lto-section-out.c: Likewise.
10036 * lto-streamer-in.c: Likewise.
10037 * lto-streamer-out.c: Likewise.
10038 * lto-streamer.c: Likewise.
10039 * omp-low.c: Likewise.
10040 * passes.c: Likewise.
10041 * predict.c: Likewise.
10042 * print-tree.c: Likewise.
10043 * profile.c: Likewise.
10044 * sese.c: Likewise.
10045 * targhooks.c: Likewise.
10046 * tracer.c: Likewise.
10047 * trans-mem.c: Likewise.
10048 * tree-call-cdce.c: Likewise.
10049 * tree-cfg.c: Likewise.
10050 * tree-cfgcleanup.c: Likewise.
10051 * tree-chrec.c: Likewise.
10052 * tree-complex.c: Likewise.
10053 * tree-data-ref.c: Likewise.
10054 * tree-dfa.c: Likewise.
10055 * tree-eh.c: Likewise.
10056 * tree-emutls.c: Likewise.
10057 * tree-if-conv.c: Likewise.
10058 * tree-inline.c: Likewise.
10059 * tree-into-ssa.c: Likewise.
10060 * tree-loop-distribution.c: Likewise.
10061 * tree-mudflap.c: Likewise.
10062 * tree-nested.c: Likewise.
10063 * tree-nrv.c: Likewise.
10064 * tree-object-size.c: Likewise.
10065 * tree-outof-ssa.c: Likewise.
10066 * tree-parloops.c: Likewise.
10067 * tree-phinodes.c: Likewise.
10068 * tree-predcom.c: Likewise.
10069 * tree-pretty-print.c: Likewise.
10070 * tree-profile.c: Likewise.
10071 * tree-scalar-evolution.c: Likewise.
10072 * tree-sra.c: Likewise.
10073 * tree-ssa-address.c: Likewise.
10074 * tree-ssa-alias.c: Likewise.
10075 * tree-ssa-ccp.c: Likewise.
10076 * tree-ssa-coalesce.c: Likewise.
10077 * tree-ssa-copy.c: Likewise.
10078 * tree-ssa-copyrename.c: Likewise.
10079 * tree-ssa-dce.c: Likewise.
10080 * tree-ssa-dom.c: Likewise.
10081 * tree-ssa-dse.c: Likewise.
10082 * tree-ssa-forwprop.c: Likewise.
10083 * tree-ssa-ifcombine.c: Likewise.
10084 * tree-ssa-live.c: Likewise.
10085 * tree-ssa-loop-ch.c: Likewise.
10086 * tree-ssa-loop-im.c: Likewise.
10087 * tree-ssa-loop-ivcanon.c: Likewise.
10088 * tree-ssa-loop-ivopts.c: Likewise.
10089 * tree-ssa-loop-manip.c: Likewise.
10090 * tree-ssa-loop-niter.c: Likewise.
10091 * tree-ssa-loop-prefetch.c: Likewise.
10092 * tree-ssa-loop-unswitch.c: Likewise.
10093 * tree-ssa-loop.c: Likewise.
10094 * tree-ssa-math-opts.c: Likewise.
10095 * tree-ssa-operands.c: Likewise.
10096 * tree-ssa-phiopt.c: Likewise.
10097 * tree-ssa-phiprop.c: Likewise.
10098 * tree-ssa-pre.c: Likewise.
10099 * tree-ssa-propagate.c: Likewise.
10100 * tree-ssa-reassoc.c: Likewise.
10101 * tree-ssa-sccvn.c: Likewise.
10102 * tree-ssa-sink.c: Likewise.
10103 * tree-ssa-strlen.c: Likewise.
10104 * tree-ssa-structalias.c: Likewise.
10105 * tree-ssa-tail-merge.c: Likewise.
10106 * tree-ssa-ter.c: Likewise.
10107 * tree-ssa-threadedge.c: Likewise.
10108 * tree-ssa-threadupdate.c: Likewise.
10109 * tree-ssa-uncprop.c: Likewise.
10110 * tree-ssa-uninit.c: Likewise.
10111 * tree-ssa.c: Likewise.
10112 * tree-ssanames.c: Likewise.
10113 * tree-stdarg.c: Likewise.
10114 * tree-streamer-in.c: Likewise.
10115 * tree-switch-conversion.c: Likewise.
10116 * tree-tailcall.c: Likewise.
10117 * tree-vect-data-refs.c: Likewise.
10118 * tree-vect-generic.c: Likewise.
10119 * tree-vect-loop-manip.c: Likewise.
10120 * tree-vect-loop.c: Likewise.
10121 * tree-vect-patterns.c: Likewise.
10122 * tree-vect-slp.c: Likewise.
10123 * tree-vect-stmts.c: Likewise.
10124 * tree-vectorizer.c: Likewise.
10125 * tree-vrp.c: Likewise.
10126 * tree.c: Likewise.
10127 * tsan.c: Likewise.
10128 * value-prof.c: Likewise.
10129 * var-tracking.c: Likewise.
10130 * varpool.c: Likewise.
10131 * vtable-verify.c: Likewise.
10132
10133 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10134
10135 * config/tilegx/tilegx.c: Include "tree.h".
10136
10137 2013-10-23 Jakub Jelinek <jakub@redhat.com>
10138
10139 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
10140 the info, not after it.
10141 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
10142 dump_ssaname_info call.
10143 (pp_gimple_stmt_1): Adjust caller.
10144 (dump_phi_nodes): Likewise. Don't print "# " here.
10145
10146 2013-10-22 Jan Hubicka <jh@suse.cz>
10147
10148 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
10149 tuning flag.
10150 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
10151 * i386.c (expand_small_movmem_or_setmem): New function.
10152 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
10153 function.
10154 (alg_usable_p): Add support for value ranges; cleanup.
10155 (ix86_expand_set_or_movmem): Add support for misaligned moves.
10156
10157 2013-10-22 Sterling Augustine <saugustine@google.com>
10158
10159 * doc/invoke.texi: Document -ggnu-pubnames.
10160 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
10161 logic.
10162 * dwarf2out.c: Include gdb/gdb-index.h.
10163 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
10164 debug_generate_pub_sections.
10165 (is_java, output_pubtables, output_pubname): New functions.
10166 (include_pubname_in_output): Handle debug_generate_pub_sections at
10167 level 2.
10168 (size_of_pubnames): Use new local space_for_flags based on
10169 debug_generate_pub_sections.
10170 (output_pubnames): Unify pubnames and pubtypes output logic.
10171 Genericize comments. Call output_pubname.
10172 (dwarf2out_finish): Move logic to output_pubnames and call it.
10173
10174 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
10175
10176 PR target/58779
10177 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
10178 Remove CCCmode handling.
10179 <case LTU>: Return 'c' suffix for CCCmode.
10180 <case GEU>: Return 'nc' suffix for CCCmode.
10181 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
10182 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
10183 (*sub<mode>3_cc_overflow): Ditto.
10184 (*subsi3_zext_cc_overflow): Ditto.
10185
10186 2013-10-22 Steve Ellcey <sellcey@mips.com>
10187
10188 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
10189 (AND (NOT OP1) (NOT OP2)).
10190
10191 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
10192
10193 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
10194 meaning of merge-high and merge-low masks for little endian; avoid
10195 use of vector-pack masks for little endian for mismatched modes.
10196
10197 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10198
10199 * config/tilepro/tilepro.c: Include "tree.h".
10200
10201 2013-10-22 Andreas Schwab <schwab@suse.de>
10202
10203 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
10204 with PRE_DEC.
10205
10206 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
10207
10208 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
10209 [Ed Smith-Rowland]): New entries.
10210 ([Stephen M. Webb]): Update.
10211
10212 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
10213
10214 * tree-ssa-ter.h: Remove duplicate copy of file contents.
10215
10216 2013-10-21 Marek Polacek <polacek@redhat.com>
10217
10218 PR middle-end/58809
10219 * fold-const.c (fold_range_test): Return 0 if the type is not
10220 an integral type.
10221
10222 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
10223
10224 * system.h: Move hwint.h include further down.
10225 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
10226 gcc_checking_asserts.
10227 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
10228
10229 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10230
10231 Fix volatile issues in optimize_bit_field_compare.
10232 * fold-const.c (optimize_bit_field_compare): Bail out if
10233 lvolatilep or rvolatilep.
10234
10235 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10236
10237 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
10238 and get_inner_reference returning different pmode for non-volatile
10239 bit-field members dependent on flag_strict_volatile_bitfields.
10240 * stor-layout.c (layout_decl): Remove special handling of
10241 flag_strict_volatile_bitfields.
10242 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
10243 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
10244
10245 2013-10-21 Paulo Matos <pmatos@broadcom.com>
10246
10247 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
10248 calculations.
10249
10250 2013-10-21 Jeff Law <law@redhat.com>
10251
10252 * tree-ssa-threadedge.c (thread_through_normal_block): New
10253 argument VISITED. Remove VISISTED as a local variable. When we
10254 have a threadable jump, verify the destination of the jump has not
10255 been visised.
10256 (thread_across_edge): Allocate VISITED bitmap once at function
10257 scope and use it throughout. Make sure to set appropriate bits in
10258 VISITED for E (start of jump thread path).
10259 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
10260 through a joiner if any edge on the path has a recorded jump thread.
10261
10262 2013-10-21 Ian Lance Taylor <iant@google.com>
10263
10264 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
10265 don't imply that attributes can solve all problems.
10266 (Directory Options): Fix typo.
10267
10268 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10269
10270 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
10271 extend and extend_add.
10272
10273 2013-10-21 Richard Biener <rguenther@suse.de>
10274
10275 PR tree-optimization/58794
10276 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
10277 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
10278
10279 2013-10-21 Richard Biener <rguenther@suse.de>
10280
10281 PR middle-end/58742
10282 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
10283 to (T) X for sign-changing conversions (or no conversion).
10284
10285 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
10286
10287 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
10288
10289 2013-10-20 Jan Hubicka <jh@suse.cz>
10290
10291 * config/i386/i386-tune.def: Add comment; organize into categories
10292
10293 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
10294
10295 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
10296 argument. Update function comment.
10297 (expand_set_or_movmem_via_rep): New function combining
10298 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
10299 (expand_movmem_via_rep_mov): Remove.
10300 expand_setmem_via_rep_stos): Remove.
10301 (expand_movmem_epilogue): Update calls correspondingly.
10302 (expand_setmem_epilogue_via_loop): Likewise.
10303 (emit_memset): New.
10304 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
10305 (expand_set_or_movmem_prologue): New function combining
10306 expand_movmem_prologue and expand_setmem_prologue.
10307 (expand_movmem_prologue): Remove.
10308 (expand_setmem_prologue): Remove.
10309 (expand_set_or_movmem_constant_prologue): New function combining
10310 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
10311 (expand_constant_movmem_prologue): Remove.
10312 (expand_constant_setmem_prologue): Remove.
10313 (promote_duplicated_reg): Allow vector-const0 value.
10314 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
10315 and ix86_expand_setmem.
10316 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
10317 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
10318
10319 2013-10-21 Diego Novillo <dnovillo@google.com>
10320
10321 * asan.c: Include tree.h
10322 * bb-reorder.c: Likewise.
10323 * cfgcleanup.c: Likewise.
10324 * cfgloopmanip.c: Likewise.
10325 * data-streamer-in.c: Likewise.
10326 * data-streamer-out.c: Likewise.
10327 * data-streamer.c: Likewise.
10328 * dwarf2cfi.c: Likewise.
10329 * graphite-blocking.c: Likewise.
10330 * graphite-clast-to-gimple.c: Likewise.
10331 * graphite-dependences.c: Likewise.
10332 * graphite-interchange.c: Likewise.
10333 * graphite-optimize-isl.c: Likewise.
10334 * graphite-poly.c: Likewise.
10335 * graphite-scop-detection.c: Likewise.
10336 * graphite-sese-to-poly.c: Likewise.
10337 * graphite.c: Likewise.
10338 * ipa-devirt.c: Likewise.
10339 * ipa-profile.c: Likewise.
10340 * ipa.c: Likewise.
10341 * ira.c: Likewise.
10342 * loop-init.c: Likewise.
10343 * loop-unroll.c: Likewise.
10344 * lower-subreg.c: Likewise.
10345 * lto/lto-object.c: Likewise.
10346 * recog.c: Likewise.
10347 * reginfo.c: Likewise.
10348 * tree-loop-distribution.c: Likewise.
10349 * tree-parloops.c: Likewise.
10350 * tree-ssa-strlen.c: Likewise.
10351 * tree-streamer.c: Likewise.
10352 * value-prof.c: Likewise.
10353 * target-globals.c: Likewise.
10354 * expr.h: Include tree-core.h instead of tree.h.
10355 * gimple.h: Likewise.
10356 * ipa-prop.h: Likewise.
10357 * ipa-utils.h: Likewise.
10358 * lto-streamer.h: Likewise.
10359 * streamer-hooks.h: Likewise.
10360 * ipa-reference.h: Include cgraph.h instead of tree.h.
10361 * cgraph.h: Include basic-block.h instead of tree.h.
10362 * tree-streamer.h: Do not include tree.h.
10363 * genattrtab.c (write_header): Generate inclusion of tree.h.
10364 * genautomata.c (main): Likewise.
10365 * genemit.c: Likewise.
10366 * genopinit.c: Likewise.
10367 * genoutput.c (output_prologue): Likewise.
10368 * genpeep.c: Likewise.
10369
10370 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10371
10372 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
10373 little endian.
10374 (vec_unpacku_hi_v8hi): Likewise.
10375 (vec_unpacku_lo_v16qi): Likewise.
10376 (vec_unpacku_lo_v8hi): Likewise.
10377
10378 2013-10-20 Jan Hubicka <jh@suse.cz>
10379
10380 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
10381 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
10382 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
10383
10384 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
10385
10386 * config/mips/mips.h (ISA_HAS_WSBH): Define.
10387 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
10388 constants.
10389 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
10390
10391 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
10392
10393 PR target/58603
10394 * system.h: Undef m_slot.
10395
10396 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10397
10398 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
10399 all elements for both endian flavors.
10400
10401 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
10402
10403 PR target/58792
10404 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
10405 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
10406 and SI_REG for 64bit SYSV ABI targets.
10407
10408 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
10409
10410 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
10411 to multi_reg_return. Clarify that we are skipping USEs of multiple
10412 return registers. Use bool type where appropriate.
10413
10414 2013-10-18 Jan Hubicka <jh@suse.cz>
10415
10416 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
10417 for cold functions.
10418 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
10419 (X86_TUNE_PUSH_MEMORY): Likewise.
10420 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
10421 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
10422 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
10423 New.
10424 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
10425 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
10426 Remove.
10427 (ix86_option_override_internal): Update to use tune features instead
10428 of variables.
10429
10430 2013-10-18 Cong Hou <congh@google.com>
10431
10432 PR tree-optimization/58508
10433 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
10434 statement that contains data refs with zero-step.
10435
10436 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10437
10438 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
10439 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
10440 * gimple-low.c (gimple_check_call_arg,
10441 gimple_check_call_matching_types): Move to cgraph.c.
10442 * gimple-low.h: Remove prototype.
10443 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
10444 Relocate from gimple-low.c.
10445 * cgraph.h: Add prototype. Don't include basic-block.h.
10446 * gimplify.c: Add gimple-low to include list.
10447 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
10448 * tree-eh.c: Add gimple-low to include list.
10449 * tree-nested.c: Likewise.
10450 * cfgexpand.c: Add tree-ssa-address.h to include list.
10451 * expr.c: Likewise.
10452 * gimple-fold.c: Likewise.
10453 * gimple-ssa-strength-reduction.c: Likewise.
10454 * trans-mem.c: Likewise.
10455 * tree-mudflap.c: Likewise.
10456 * tree-ssa-loop-ivopts.c: Likewise.
10457 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
10458 (degenerate_phi_result): Move to tree-phinodes.c.
10459 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
10460 * tree-ssa-threadedge.c: Likewise.
10461 * tree-vrp.c: Likewise.
10462 * tree-phinodes.c (degenerate_phi_result): Relocate here.
10463 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
10464 * tree-phinodes.h (degenerate_phi_result): Add prototype.
10465 * tree-ssa-copy.c: Include tree-ssa-dom.h.
10466 * tree-ssa-forwprop.c: Likewise.
10467 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
10468 pass_data_cleanup_cfg_post_optimizing,
10469 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
10470 * tree-optimize.c: Delete File.
10471 * graphite.c: Include tree-cfgcleanup.h.
10472 * passes.c: Likewise.
10473 * tree-cfg.c: Likewise.
10474 * tree-profile.c: Likewise.
10475 * tree-ssa-dse.c: Likewise.
10476 * tree-ssa-loop-ivcanon.c: Likewise.
10477 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
10478 * tree-outof-ssa.c: Include sbitmap.h.
10479 * tree-ssa-live.c: Likewise.
10480 * tree-ssa-propagate.c: Likewise.
10481 * tree-ssa-structalias.c: Likewise.
10482 * tree-stdarg.c: Likewise.
10483 * Makefile.in (OBJS): Delete tree-optimize.o.
10484 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
10485 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
10486 * varasm.c: Include basic-block.h.
10487 * cfgloop.h: Include function.h instead of basic-block.h
10488 (bb_loop_depth): Move to cfgloop.c.
10489 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
10490
10491 2013-10-18 Teresa Johnson <tejohnson@google.com>
10492
10493 * predict.c (probably_never_executed): Compare frequency-based
10494 count to number of training runs.
10495 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
10496
10497 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10498
10499 * config/arm/arm.c (cortexa9_extra_costs): New table.
10500 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
10501
10502 2013-10-18 Jeff Law <law@redhat.com>
10503
10504 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
10505
10506 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
10507 (register_jump_thread): Add "registered_jump_thread" debug
10508 counter support.
10509 * dbgcnt.def (registered_jump_thread): New debug counter.
10510
10511 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10512
10513 * config/rs6000/rs6000.c: Include cgraph.h.
10514
10515 2013-10-18 Teresa Johnson <tejohnson@google.com>
10516
10517 * tree-ssa-tail-merge.c (replace_block_by): Update edge
10518 weights during merging.
10519
10520 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10521
10522 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
10523 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
10524 * tree-ssa-operands.h: Remove prototype.
10525 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
10526 * gimple.c (virtual_operand_p): Relocate from gimple.c.
10527 * gimple.h: Add prototype.
10528 * gimple-ssa.h: Include tree-ssa-operands.h.
10529 * tree-dump.c: Add tree-cfg.h to include list.
10530 * tree-ssa-alias.c: Add ipa-reference.h to include list.
10531 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
10532 * config/i386/i386.c: Don't include tree-flow.h.
10533 * config/rs6000/rs6000.c: Likewise.
10534
10535 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10536
10537 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
10538
10539 2013-10-18 Richard Biener <rguenther@suse.de>
10540
10541 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
10542 or TYPE_UNSIGNED of integral types.
10543 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
10544 NULL_TREE for zero-precision integral types.
10545
10546 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
10547
10548 * config/aarch64/arm_neon.h
10549 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
10550
10551 2013-10-17 Sriraman Tallam <tmsriram@google.com>
10552
10553 PR target/57756
10554 * opth-gen.awk: Define target_flags_explicit.
10555
10556 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
10557
10558 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
10559 fields to the reg_addr array that describes the valid addressing
10560 mode for any register, general purpose registers, floating point
10561 registers, and Altivec registers.
10562 (FIRST_RELOAD_REG_CLASS): Likewise.
10563 (LAST_RELOAD_REG_CLASS): Likewise.
10564 (struct reload_reg_map_type): Likewise.
10565 (reload_reg_map_type): Likewise.
10566 (RELOAD_REG_VALID): Likewise.
10567 (RELOAD_REG_MULTIPLE): Likewise.
10568 (RELOAD_REG_INDEXED): Likewise.
10569 (RELOAD_REG_OFFSET): Likewise.
10570 (RELOAD_REG_PRE_INCDEC): Likewise.
10571 (RELOAD_REG_PRE_MODIFY): Likewise.
10572 (reg_addr): Likewise.
10573 (mode_supports_pre_incdec_p): New helper functions to say whether
10574 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
10575 (mode_supports_pre_modify_p): Likewise.
10576 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
10577 print the valid address mode bits for each mode.
10578 (rs6000_debug_print_mode): Likewise.
10579 (rs6000_debug_reg_global): Likewise.
10580 (rs6000_setup_reg_addr_masks): New function to set up the address
10581 mask bits for each type.
10582 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
10583 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
10584 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
10585 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
10586 PRE_MODIFY are supported.
10587 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
10588 registers, instead of {src,dest}_av_p.
10589 (rs6000_print_options_internal): Tweak the debug output slightly.
10590
10591 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
10592
10593 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
10594 isa attribute.
10595
10596 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
10597
10598 * tree-flow.h (struct omp_region): Move to omp-low.c.
10599 Remove omp_ prototypes and variables.
10600 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
10601 (copy_var_decl): Relocate prototype from tree-flow.h.
10602 * gimple.c (copy_var_decl): Relocate from omp-low.c.
10603 * tree.h: Move prototype to omp-low.h.
10604 * omp-low.h: New File. Relocate prototypes here.
10605 * omp-low.c (struct omp_region): Make local here.
10606 (root_omp_region): Make static.
10607 (copy_var_decl) Move to gimple.c.
10608 (new_omp_region): Make static.
10609 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
10610 * tree-cfg.c: Include omp-low.h.
10611 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
10612 * gimplify.c: Include omp-low.h.
10613 * tree-parloops.c: Likewise.
10614
10615 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
10616
10617 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
10618 operands are in memory, prefer to force non-matched operand 1 to
10619 the register.
10620
10621 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
10622
10623 PR target/58673
10624 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
10625 restrict TImode addresses to single indirect registers if both
10626 -mquad-memory and -mvsx-timode are used.
10627 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
10628 we should emit load/store quad. Remove using %y for quad memory
10629 addresses.
10630
10631 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
10632 constraints to allow load/store quad on machines where TImode is
10633 not allowed in VSX registers. Use 'n' instead of 'F' constraint
10634 for TImode to load integer constants.
10635
10636 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10637
10638 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
10639
10640 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
10641
10642 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
10643 handling of STACK_REG.
10644
10645 2013-10-17 Richard Biener <rguenther@suse.de>
10646
10647 PR tree-optimization/58143
10648 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
10649 New function.
10650 (rewrite_to_defined_overflow): Likewise.
10651 (move_computations_dom_walker::before_dom): Rewrite stmts
10652 with undefined signed overflow that are not always executed
10653 into unsigned arithmetic.
10654
10655 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
10656
10657 PR target/57756
10658 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
10659 explicit isa flag to be an options variable, instead of using
10660 global_options_set. Remove define from rs6000.h.
10661 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
10662
10663 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10664 Initialize rs6000_isa_flags_explicit.
10665 (rs6000_function_specific_save): Add gcc_options* parameter, so
10666 that the powerpc builds after the 2013-10-15 changes.
10667 (rs6000_function_specific_restore): Likewise.
10668
10669 2013-10-16 DJ Delorie <dj@redhat.com>
10670
10671 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
10672 op is a REG before checking REGNO.
10673 (rl78_alloc_physical_registers): Verify pattern is a SET before
10674 checking SET_SRC.
10675
10676 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10677
10678 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
10679 endianness.
10680 (vec_unpacks_lo_v4sf): Likewise.
10681 (vec_unpacks_float_hi_v4si): Likewise.
10682 (vec_unpacks_float_lo_v4si): Likewise.
10683 (vec_unpacku_float_hi_v4si): Likewise.
10684 (vec_unpacku_float_lo_v4si): Likewise.
10685
10686 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10687
10688 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
10689 (vsx_concat_v2sf): Likewise.
10690
10691 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
10692
10693 * config/aarch64/aarch64.md
10694 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
10695
10696 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
10697
10698 PR tree-optimization/58697
10699 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
10700 estimated_loop_iterations_int.
10701 (max_stmt_executions_int): Call get_max_loop_iterations_int.
10702 (get_max_loop_iterations_int): New. HWINT version of
10703 get_max_loop_iterations.
10704 * cfgloop.h: Add prototypes.
10705 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
10706 * loop-unroll.c (decide_peel_once_rolling): Call
10707 get_estimated_loop_iterations_int.
10708 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
10709 * tree-ssa-loop-niter.h: Tweak prototypes.
10710
10711 2013-10-16 David Malcolm <dmalcolm@redhat.com>
10712
10713 * gengtype-parse.c (struct_field_seq): Ignore access-control
10714 keywords ("public:" etc).
10715
10716 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
10717
10718 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
10719 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
10720
10721 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
10722
10723 * config/arm/arm.opt (mlra): New option.
10724 * config/arm/arm.c (arm_lra_p): New function.
10725 (TARGET_LRA_P): Define.
10726
10727 2013-10-16 Paulo Matos <pmatos@broadcom.com>
10728
10729 * tree-core.h (tree_code_name): Remove.
10730 * tree.h (get_tree_code_name): New prototype.
10731 * tree.c (tree_code_name): Make static.
10732 (get_tree_code_name): New function.
10733 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
10734 tree_class_check_failed, tree_range_check_failed,
10735 tree_not_class_check_failed, omp_clause_check_failed,
10736 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
10737 wrapper get_tree_code_name instead of calling tree_code_name directly.
10738 * tree-vrp.c (dump_asserts_for): Likewise.
10739 * tree-dump.c (dequeue_and_dump): Likewise.
10740 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
10741 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
10742 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
10743 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
10744 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10745 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
10746 dump_gimple_omp_for): Likewise.
10747 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
10748 * tree-ssa-pre.c (print_pre_expr): Likewise.
10749 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
10750 * print-tree.c (print_node_brief, print_node): Likewise.
10751 * gimple.c (gimple_check_failed): Likewise.
10752 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
10753 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
10754 * config/mep/mep.c (mep_validate_vliw): Likewise.
10755 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
10756 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10757
10758 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10759
10760 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
10761 for AMD bdver3.
10762
10763 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
10764
10765 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10766 (MULTILIB_MATCHES): Add multilib for -march=v8.
10767
10768 2013-10-15 Sriraman Tallam <tmsriram@google.com>
10769
10770 PR target/57756
10771 * optc-save-gen.awk: Add extra parameter to the save and restore
10772 target calls.
10773 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
10774 * tree.c (build_optimization_node): New parameter. Add extra parameter
10775 to call to cl_optimization_save.
10776 (build_target_option_node): New parameter. Add extra parameter
10777 to call to cl_target_option_save.
10778 * tree.h (build_optimization_node): New parameter.
10779 (build_target_option_node): New parameter.
10780 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
10781 build_optimization_node and build_target_option_node.
10782 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
10783 (handle_pragma_push_options): Ditto.
10784 * toplev.c (process_options): Ditto.
10785 * opts.c (init_options_struct): Check for opts_set non-null.
10786 * target.def (target_option.save): New parameter.
10787 (target_option.restore): New parameter.
10788 * tm.texi: Generate.
10789 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
10790 (ix86_pragma_target_parse): Ditto.
10791 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
10792 parameters.
10793 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
10794 to build_optimization_node and build_target_option_node.
10795 (rs6000_valid_attribute_p): Ditto.
10796 (rs6000_pragma_target_parse): Ditto.
10797 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
10798 data.
10799 * config/i386/i386.h:
10800 TARGET_64BIT_P: New Macro
10801 TARGET_MMX_P: New Macro.
10802 TARGET_3DNOW_P: New Macro.
10803 TARGET_3DNOW_A_P: New Macro.
10804 TARGET_SSE_P: New Macro.
10805 TARGET_SSE2_P: New Macro.
10806 TARGET_SSE3_P: New Macro.
10807 TARGET_SSSE3_P: New Macro.
10808 TARGET_SSE4_1_P: New Macro.
10809 TARGET_SSE4_2_P: New Macro.
10810 TARGET_AVX_P: New Macro.
10811 TARGET_AVX2_P: New Macro.
10812 TARGET_AVX512F_P: New Macro.
10813 TARGET_AVX512PF_P: New Macro.
10814 TARGET_AVX512ER_P: New Macro.
10815 TARGET_AVX512CD_P: New Macro.
10816 TARGET_FMA_P: New Macro.
10817 TARGET_SSE4A_P: New Macro.
10818 TARGET_FMA4_P: New Macro.
10819 TARGET_XOP_P: New Macro.
10820 TARGET_LWP_P: New Macro.
10821 TARGET_ABM_P: New Macro.
10822 TARGET_BMI_P: New Macro.
10823 TARGET_BMI2_P: New Macro.
10824 TARGET_LZCNT_P: New Macro.
10825 TARGET_TBM_P: New Macro.
10826 TARGET_POPCNT_P: New Macro.
10827 TARGET_SAHF_P: New Macro.
10828 TARGET_MOVBE_P: New Macro.
10829 TARGET_CRC32_P: New Macro.
10830 TARGET_AES_P: New Macro.
10831 TARGET_PCLMUL_P: New Macro.
10832 TARGET_CMPXCHG16B_P: New Macro.
10833 TARGET_FSGSBASE_P: New Macro.
10834 TARGET_RDRND_P: New Macro.
10835 TARGET_F16C_P: New Macro.
10836 TARGET_RTM_P: New Macro.
10837 TARGET_HLE_P: New Macro.
10838 TARGET_RDSEED_P: New Macro.
10839 TARGET_PRFCHW_P: New Macro.
10840 TARGET_ADX_P: New Macro.
10841 TARGET_FXSR_P: New Macro.
10842 TARGET_XSAVE_P: New Macro.
10843 TARGET_XSAVEOPT_P: New Macro.
10844 TARGET_LP64_P: New Macro.
10845 TARGET_X32_P: New Macro.
10846 TARGET_FPMATH_DEFAULT_P: New Macro.
10847 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
10848 * config/i386/i386.c (ix86_option_override_internal): New parameters.
10849 opts and opts_set.
10850 Change ix86_tune_string to access opts->x_ix86_tune_string.
10851 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
10852 Change ix86_arch_string to access opts->x_ix86_arch_string.
10853 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
10854 Change ix86_pmode to access opts->x_ix86_pmode.
10855 Change ix86_abi to access opts->x_ix86_abi.
10856 Change ix86_cmodel to access opts->x_ix86_cmodel.
10857 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
10858 Change ix86_isa_flags_explicit to access
10859 opts->x_ix86_isa_flags_explicit.
10860 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
10861 Change ix86_regparm to access opts->x_ix86_regparm.
10862 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
10863 Change ix86_preferred_stack_boundary_arg to access
10864 opts->x_ix86_preferred_stack_boundary_arg.
10865 Change ix86_force_align_arg_pointer to access
10866 opts->x_ix86_force_align_arg_pointer.
10867 Change ix86_incoming_stack_boundar_arg to access
10868 opts->x_ix86_incoming_stack_boundar_arg.
10869 Change ix86_fpmath to access opts->x_ix86_fpmath.
10870 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
10871 Change ix86_recip_name to access opts->x_ix86_recip_name.
10872 Change ix86_stack_protector_guard to access
10873 opts->x_ix86_stack_protector_guard.
10874 Change ix86_tune_memcpy_strategy to access
10875 opts->x_ix86_tune_memcpy_strategy.
10876 Change ix86_tune_memset_strategy to access
10877 opts->x_ix86_tune_memset_strategy.
10878 Change global_options to access opts.
10879 Change global_options_set to access opts_set.
10880 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
10881 Change TARGET_MMX to TARGET_MMX_P (opts->...).
10882 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
10883 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
10884 Change TARGET_SSE to TARGET_SSE_P (opts->...).
10885 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
10886 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
10887 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
10888 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
10889 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
10890 Change TARGET_AVX to TARGET_AVX_P (opts->...).
10891 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
10892 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
10893 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
10894 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
10895 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
10896 Change TARGET_FMA to TARGET_FMA_P (opts->...).
10897 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
10898 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
10899 Change TARGET_XOP to TARGET_XOP_P (opts->...).
10900 Change TARGET_LWP to TARGET_LWP_P (opts->...).
10901 Change TARGET_ABM to TARGET_ABM_P (opts->...).
10902 Change TARGET_BMI to TARGET_BMI_P (opts->...).
10903 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
10904 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
10905 Change TARGET_TBM to TARGET_TBM_P (opts->...).
10906 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
10907 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
10908 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
10909 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
10910 Change TARGET_AES to TARGET_AES_P (opts->...).
10911 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
10912 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10913 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10914 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10915 Change TARGET_F16C to TARGET_F16C_P (opts->...).
10916 Change TARGET_RTM to TARGET_RTM_P (opts->...).
10917 Change TARGET_HLE to TARGET_HLE_P (opts->...).
10918 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10919 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10920 Change TARGET_ADX to TARGET_ADX_P (opts->...).
10921 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10922 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10923 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10924 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10925 Change TARGET_X32 to TARGET_X32_P (opts->...).
10926 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10927 Change TARGET_FLOAT_RETURNS_IN_80387 to
10928 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10929 (ix86_function_specific_save): New parameter. Use opts-> fields
10930 to replace global fields.
10931 (ix86_function_specific_restore): Ditto.
10932 (ix86_valid_target_attribute_inner_p): New parameters.
10933 Fix recursive call.
10934 Fix call to ix86_handle_option and set_option.
10935 (ix86_valid_target_attribute_tree): New parameters.
10936 Change global_options to access opts.
10937 Change global_options_set to access opts_set.
10938 Fix call to ix86_valid_target_attribute_inner_p.
10939 Change ix86_tune_string to access opts->x_ix86_tune_string.
10940 Change ix86_arch_string to access opts->x_ix86_arch_string.
10941 Change ix86_fpmath to access opts->x_ix86_fpmath
10942 Fix call to ix86_option_override_internal.
10943 Fix call to ix86_add_new_builtins.
10944 Fix calls to build_optimization_node and build_target_option_node.
10945 (ix86_valid_target_attribute_p): Remove access to global_options.
10946 Use new gcc_options structure func_options.
10947 Fix call to ix86_valid_target_attribute_tree.
10948 Fix call to build_optimization_node.
10949 (get_builtin_code_for_version): Fix call to
10950 ix86_valid_target_attribute_tree.
10951
10952 2013-10-15 David Malcolm <dmalcolm@redhat.com>
10953
10954 * Makefile.in (PICFLAG): New.
10955 (enable_host_shared): New.
10956 (INTERNAL_CFLAGS): Use PICFLAG.
10957 (LIBIBERTY): Use pic build of libiberty.a if configured with
10958 --enable-host-shared.
10959 * configure.ac: Add --enable-host-shared, setting up new
10960 PICFLAG variable.
10961 * configure: Regenerate.
10962 * doc/install.texi (--enable-shared): Add note contrasting it with ...
10963 (--enable-host-shared): New option.
10964
10965 2013-10-15 Richard Biener <rguenther@suse.de>
10966
10967 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10968 for built-in functions.
10969
10970 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
10971
10972 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10973 (optimize_range_tests_1): New function,
10974 extracted from optimize_range_tests.
10975 (optimize_range_tests_xor): Similarly.
10976 (optimize_range_tests_diff): New function.
10977 (optimize_range_tests): Use optimize_range_tests_1.
10978
10979 2013-10-15 Cong Hou <congh@google.com>
10980
10981 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10982 requirement of the reduction pattern so that one operand of the
10983 reduction operation can come from outside of the loop.
10984
10985 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10986
10987 * config/arm/neon-schedgen.ml: Remove.
10988 * config/arm/cortex-a9-neon.md: Remove comment regarding
10989 neon-schedgen.ml.
10990
10991 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10992
10993 * config/arm/types: Remove old neon types.
10994
10995 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10996
10997 * config/arm/cortex-a7.md
10998 (cortex_a7_neon_type): New.
10999 (cortex_a7_neon_mul): Update for new types.
11000 (cortex_a7_neon_mla): Likewise.
11001 (cortex_a7_neon): Likewise.
11002
11003 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11004
11005 * config/arm/cortex-a15-neon.md
11006 (cortex_a15_neon_type): New,
11007
11008 (cortex_a15_neon_int_1): Remove.
11009 (cortex_a15_neon_int_2): Likewise.
11010 (cortex_a15_neon_int_3): Likewise.
11011 (cortex_a15_neon_int_4): Likewise.
11012 (cortex_a15_neon_int_5): Likewise.
11013 (cortex_a15_neon_vqneg_vqabs): Likewise.
11014 (cortex_a15_neon_vmov): Likewise.
11015 (cortex_a15_neon_vaba): Likewise.
11016 (cortex_a15_neon_vaba_qqq): Likewise.
11017 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11018 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
11019 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
11020 Likewise.
11021 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11022 (cortex_a15_neon_mla_qqq_8_16): Likewise.
11023 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
11024 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
11025 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
11026 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
11027 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
11028 (cortex_a15_neon_shift_1): Likewise.
11029 (cortex_a15_neon_shift_2): Likewise.
11030 (cortex_a15_neon_shift_3): Likewise.
11031 (cortex_a15_neon_vshl_ddd): Likewise.
11032 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
11033 (cortex_a15_neon_vsra_vrsra): Likewise.
11034 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
11035 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
11036 (cortex_a15_neon_bp_3cycle): Likewise.
11037 (cortex_a15_neon_ldm_2): Likewise.
11038 (cortex_a15_neon_stm_2): Likewise.
11039 (cortex_a15_neon_mcr): Likewise.
11040 (cortex_a15_neon_mrc): Likewise.
11041 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
11042 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
11043 (cortex_a15_neon_fp_vmul_ddd): Likewise.
11044 (cortex_a15_neon_fp_vmul_qqd): Likewise.
11045 (cortex_a15_neon_fp_vmla_ddd): Likewise.
11046 (cortex_a15_neon_fp_vmla_qqq): Likewise.
11047 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
11048 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
11049 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
11050 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
11051 (cortex_a15_neon_bp_simple): Likewise.
11052 (cortex_a15_neon_bp_2cycle): Likewise.
11053 (cortex_a15_neon_bp_3cycle): Likewise.
11054 (cortex_a15_neon_vld1_1_2_regs): Likewise.
11055 (cortex_a15_neon_vld1_3_4_regs): Likewise.
11056 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
11057 (cortex_a15_neon_vld2_4_regs): Likewise.
11058 (cortex_a15_neon_vld3_vld4): Likewise.
11059 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
11060 (cortex_a15_neon_vst1_3_4_regs): Likewise.
11061 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
11062 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
11063 (cortex_a15_neon_vst3_vst4): Rename to...
11064 (cortex_a15_neon_vst4): This, update for new attributes.
11065 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
11066 (cortex_a15_neon_vld3_vld4_lane): Likewise.
11067 (cortex_a15_neon_vst1_vst2_lane): Likewise.
11068 (cortex_a15_neon_vst3_vst4_lane): Likewise.
11069 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
11070 (cortex_a15_neon_ldm_2): Likewise.
11071 (cortex_a15_neon_stm_2): Likewise.
11072 (cortex_a15_neon_mcr): Likewise.
11073 (cortex_a15_neon_mcr_2_mcrr): Likewise.
11074 (cortex_a15_neon_mrc): Likewise.
11075 (cortex_a15_neon_mrrc): Likewise.
11076
11077 (cortex_a15_neon_abd): New.
11078 (cortex_a15_neon_abd_q): Likewise.
11079 (cortex_a15_neon_aba): Likewise.
11080 (cortex_a15_neon_aba_q): Likewise.
11081 (cortex_a15_neon_acc): Likewise.
11082 (cortex_a15_neon_acc_q): Likewise.
11083 (cortex_a15_neon_arith_basic): Likewise.
11084 (cortex_a15_neon_arith_complex): Likewise.
11085 (cortex_a15_neon_multiply): Likewise.
11086 (cortex_a15_neon_multiply_q): Likewise.
11087 (cortex_a15_neon_mla): Likewise.
11088 (cortex_a15_neon_mla_q): Likewise.
11089 (cortex_a15_neon_sat_mla_long): Likewise.
11090 (cortex_a15_neon_shift_acc): Likewise.
11091 (cortex_a15_neon_shift_imm_basic): Likewise.
11092 (cortex_a15_neon_shift_imm_complex): Likewise.
11093 (cortex_a15_neon_shift_reg_basic): Likewise.
11094 (cortex_a15_neon_shift_reg_basic_q): Likewise.
11095 (cortex_a15_neon_shift_reg_complex): Likewise.
11096 (cortex_a15_neon_shift_reg_complex_q): Likewise.
11097 (cortex_a15_neon_fp_negabs): Likewise
11098 (cortex_a15_neon_fp_arith): Likewise
11099 (cortex_a15_neon_fp_arith_q): Likewise
11100 (cortex_a15_neon_fp_cvt_int): Likewise
11101 (cortex_a15_neon_fp_cvt_int_q): Likewise
11102 (cortex_a15_neon_fp_cvt_16): Likewise
11103 (cortex_a15_neon_fp_mul): Likewise
11104 (cortex_a15_neon_fp_mul_q): Likewise
11105 (cortex_a15_neon_fp_mla): Likewise
11106 (cortex_a15_neon_fp_mla_q): Likewise
11107 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
11108 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
11109 (cortex_a15_neon_bitops): Likewise.
11110 (cortex_a15_neon_bitops_q): Likewise.
11111 (cortex_a15_neon_from_gp): Likewise.
11112 (cortex_a15_neon_from_gp_q): Likewise.
11113 (cortex_a15_neon_tbl3_tbl4): Likewise.
11114 (cortex_a15_neon_zip_q): Likewise.
11115 (cortex_a15_neon_to_gp): Likewise.
11116 (cortex_a15_neon_load_a): Likewise.
11117 (cortex_a15_neon_load_b): Likewise.
11118 (cortex_a15_neon_load_c): Likewise.
11119 (cortex_a15_neon_load_d): Likewise.
11120 (cortex_a15_neon_load_e): Likewise.
11121 (cortex_a15_neon_load_f): Likewise.
11122 (cortex_a15_neon_store_a): Likewise.
11123 (cortex_a15_neon_store_b): Likewise.
11124 (cortex_a15_neon_store_c): Likewise.
11125 (cortex_a15_neon_store_d): Likewise.
11126 (cortex_a15_neon_store_e): Likewise.
11127 (cortex_a15_neon_store_f): Likewise.
11128 (cortex_a15_neon_store_g): Likewise.
11129 (cortex_a15_neon_store_h): Likewise.
11130 (cortex_a15_vfp_to_from_gp): Likewise.
11131
11132 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11133
11134 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
11135
11136 (cortex_a9_neon_vshl_ddd): Remove.
11137 (cortex_a9_neon_vst3_vst4): Likewise.
11138 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
11139
11140 (cortex_a9_neon_bit_ops_q): New.
11141
11142 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
11143 (cortex_a9_neon_int_2): Likewise.
11144 (cortex_a9_neon_int_3): Likewise.
11145 (cortex_a9_neon_int_4): Likewise.
11146 (cortex_a9_neon_int_5): Likewise.
11147 (cortex_a9_neon_vqneg_vqabs): Likewise.
11148 (cortex_a9_neon_vmov): Likewise.
11149 (cortex_a9_neon_vaba): Likewise.
11150 (cortex_a9_neon_vaba_qqq): Likewise.
11151 (cortex_a9_neon_shift_1): Likewise.
11152 (cortex_a9_neon_shift_2): Likewise.
11153 (cortex_a9_neon_shift_3): Likewise.
11154 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
11155 (cortex_a9_neon_vsra_vrsra): Likewise.
11156 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11157 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
11158 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
11159 Likewise.
11160 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11161 (cortex_a9_neon_mla_qqq_8_16): Likewise.
11162 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
11163 Likewise.
11164 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
11165 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
11166 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
11167 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
11168 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
11169 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
11170 (cortex_a9_neon_fp_vsum): Likewise.
11171 (cortex_a9_neon_fp_vmul_ddd): Likewise.
11172 (cortex_a9_neon_fp_vmul_qqd): Likewise.
11173 (cortex_a9_neon_fp_vmla_ddd): Likewise.
11174 (cortex_a9_neon_fp_vmla_qqq): Likewise.
11175 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
11176 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
11177 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
11178 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
11179 (cortex_a9_neon_bp_simple): Likewise.
11180 (cortex_a9_neon_bp_2cycle): Likewise.
11181 (cortex_a9_neon_bp_3cycle): Likewise.
11182 (cortex_a9_neon_ldr): Likewise.
11183 (cortex_a9_neon_str): Likewise.
11184 (cortex_a9_neon_vld1_1_2_regs): Likewise.
11185 (cortex_a9_neon_vld1_3_4_regs): Likewise.
11186 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
11187 (cortex_a9_neon_vld2_4_regs): Likewise.
11188 (cortex_a9_neon_vld3_vld4): Likewise.
11189 (cortex_a9_neon_vld1_vld2_lane): Likewise.
11190 (cortex_a9_neon_vld3_vld4_lane): Likewise.
11191 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
11192 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
11193 (cortex_a9_neon_vst1_3_4_regs): Likewise.
11194 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
11195 (cortex_a9_neon_vst1_vst2_lane): Likewise.
11196 (cortex_a9_neon_vst3_vst4_lane): Likewise.
11197 (cortex_a9_neon_mcr): Likewise.
11198 (cortex_a9_neon_mcr_2_mcrr): Likewise.
11199 (cortex_a9_neon_mrc): Likewise.
11200 (cortex_a9_neon_mrrc): Likewise.
11201
11202 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11203
11204 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
11205
11206 (cortex_a8_neon_vshl_ddd): Remove.
11207 (cortex_a8_neon_vst3_vst4): Likewise.
11208 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
11209
11210 (cortex_a8_neon_bit_ops_q): New.
11211
11212 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
11213 (cortex_a8_neon_int_2): Likewise..
11214 (cortex_a8_neon_int_3): Likewise.
11215 (cortex_a8_neon_int_5): Likewise.
11216 (cortex_a8_neon_vqneg_vqabs): Likewise.
11217 (cortex_a8_neon_int_4): Likewise.
11218 (cortex_a8_neon_vaba): Likewise.
11219 (cortex_a8_neon_vaba_qqq): Likewise.
11220 (cortex_a8_neon_shift_1): Likewise.
11221 (cortex_a8_neon_shift_2): Likewise.
11222 (cortex_a8_neon_shift_3): Likewise.
11223 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
11224 (cortex_a8_neon_vsra_vrsra): Likewise.
11225 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11226 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
11227 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
11228 Likewise.
11229 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11230 (cortex_a8_neon_mla_qqq_8_16): Likewise.
11231 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
11232 Likewise.
11233 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
11234 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
11235 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
11236 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
11237 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
11238 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
11239 (cortex_a8_neon_fp_vsum): Likewise.
11240 (cortex_a8_neon_fp_vmul_ddd): Likewise.
11241 (cortex_a8_neon_fp_vmul_qqd): Likewise.
11242 (cortex_a8_neon_fp_vmla_ddd): Likewise.
11243 (cortex_a8_neon_fp_vmla_qqq): Likewise.
11244 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
11245 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
11246 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
11247 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
11248 (cortex_a8_neon_bp_simple): Likewise.
11249 (cortex_a8_neon_bp_2cycle): Likewise.
11250 (cortex_a8_neon_bp_3cycle): Likewise.
11251 (cortex_a8_neon_ldr): Likewise.
11252 (cortex_a8_neon_str): Likewise.
11253 (cortex_a8_neon_vld1_1_2_regs): Likewise.
11254 (cortex_a8_neon_vld1_3_4_regs): Likewise.
11255 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
11256 (cortex_a8_neon_vld2_4_regs): Likewise.
11257 (cortex_a8_neon_vld3_vld4): Likewise.
11258 (cortex_a8_neon_vld1_vld2_lane): Likewise.
11259 (cortex_a8_neon_vld3_vld4_lane): Likewise.
11260 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
11261 (cortex_a8_neon_vst1_3_4_regs): Likewise.
11262 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
11263 (cortex_a8_neon_vst1_vst2_lane): Likewise.
11264 (cortex_a8_neon_vst3_vst4_lane): Likewise.
11265 (cortex_a8_neon_mcr): Likewise.
11266 (cortex_a8_neon_mcr_2_mcrr): Likewise.
11267 (cortex_a8_neon_mrc): Likewise.
11268 (cortex_a8_neon_mrrc): Likewise.
11269
11270 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11271
11272 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
11273 (fp): New.
11274 * config/aarch64/aarch64-simd.md (neon_type): Remove.
11275 (aarch64_simd_dup<mode>): Add "type" attribute.
11276 (aarch64_dup_lane<mode>): Likewise.
11277 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
11278 (*aarch64_simd_mov<mode>): Likewise.
11279 (aarch64_simd_mov_from_<mode>low): Likewise.
11280 (aarch64_simd_mov_from_<mode>high): Likewise.
11281 (orn<mode>3): Likewise.
11282 (bic<mode>3): Likewise.
11283 (add<mode>3): Likewise.
11284 (sub<mode>3): Likewise.
11285 (mul<mode>3): Likewise.
11286 (*aarch64_mul3_elt<mode>): Likewise.
11287 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
11288 (*aarch64_mul3_elt_to_128df): Likewise.
11289 (*aarch64_mul3_elt_to_64v2df): Likewise.
11290 (neg<mode>2): Likewise.
11291 (abs<mode>2): Likewise.
11292 (abd<mode>_3): Likewise.
11293 (aba<mode>_3): Likewise.
11294 (fabd<mode>_3): Likewise.
11295 (*fabd_scalar<mode>3): Likewise.
11296 (and<mode>3): Likewise.
11297 (ior<mode>3): Likewise.
11298 (xor<mode>3): Likewise.
11299 (one_cmpl<mode>2): Likewise.
11300 (aarch64_simd_vec_set<mode>): Likewise.
11301 (aarch64_simd_lshr<mode>): Likewise.
11302 (aarch64_simd_ashr<mode>): Likewise.
11303 (aarch64_simd_imm_shl<mode>): Likewise.
11304 (aarch64_simd_reg_sshl<mode): Likewise.
11305 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
11306 (aarch64_simd_reg_shl<mode>_signed): Likewise.
11307 (aarch64_simd_vec_setv2di): Likewise.
11308 (aarch64_simd_vec_set<mode>): Likewise.
11309 (aarch64_mla<mode>): Likewise.
11310 (*aarch64_mla_elt<mode>): Likewise.
11311 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
11312 (aarch64_mls<mode>): Likewise.
11313 (*aarch64_mls_elt<mode>): Likewise.
11314 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
11315 (<su><maxmin><mode>3): Likewise.
11316 (move_lo_quad_<mode>): Likewise.
11317 (aarch64_simd_move_hi_quad_<mode>): Likewise.
11318 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
11319 (vec_pack_trunc_<mode>): Likewise.
11320 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
11321 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
11322 (*aarch64_<su>mlal_lo<mode>): Likewise.
11323 (*aarch64_<su>mlal_hi<mode>): Likewise.
11324 (*aarch64_<su>mlsl_lo<mode>): Likewise.
11325 (*aarch64_<su>mlsl_hi<mode>): Likewise.
11326 (*aarch64_<su>mlal<mode>): Likewise.
11327 (*aarch64_<su>mlsl<mode>): Likewise.
11328 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
11329 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
11330 (add<mode>3): Likewise.
11331 (sub<mode>3): Likewise.
11332 (mul<mode>3): Likewise.
11333 (div<mode>3): Likewise.
11334 (neg<mode>2): Likewise.
11335 (abs<mode>2): Likewise.
11336 (fma<mode>4): Likewise.
11337 (*aarch64_fma4_elt<mode>): Likewise.
11338 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
11339 (*aarch64_fma4_elt_to_128df): Likewise.
11340 (*aarch64_fma4_elt_to_64v2df): Likewise.
11341 (fnma<mode>4): Likewise.
11342 (*aarch64_fnma4_elt<mode>): Likewise.
11343 (*aarch64_fnma4_elt_<vswap_width_name><mode>
11344 (*aarch64_fnma4_elt_to_128df): Likewise.
11345 (*aarch64_fnma4_elt_to_64v2df): Likewise.
11346 (<frint_pattern><mode>2): Likewise.
11347 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
11348 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
11349 (vec_unpacks_lo_v4sf): Likewise.
11350 (aarch64_float_extend_lo_v2df): Likewise.
11351 (vec_unpacks_hi_v4sf): Likewise.
11352 (aarch64_float_truncate_lo_v2sf): Likewise.
11353 (aarch64_float_truncate_hi_v4sf): Likewise.
11354 (aarch64_vmls<mode>): Likewise.
11355 (<su><maxmin><mode>3): Likewise.
11356 (<maxmin_uns><mode>3): Likewise.
11357 (reduc_<sur>plus_<mode>): Likewise.
11358 (reduc_<sur>plus_v2di): Likewise.
11359 (reduc_<sur>plus_v2si): Likewise.
11360 (reduc_<sur>plus_<mode>): Likewise.
11361 (aarch64_addpv4sf): Likewise.
11362 (clz<mode>2): Likewise.
11363 (reduc_<maxmin_uns>_<mode>): Likewise.
11364 (reduc_<maxmin_uns>_v2di): Likewise.
11365 (reduc_<maxmin_uns>_v2si): Likewise.
11366 (reduc_<maxmin_uns>_<mode>): Likewise.
11367 (reduc_<maxmin_uns>_v4sf): Likewise.
11368 (aarch64_simd_bsl<mode>_internal): Likewise.
11369 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11370 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
11371 (aarch64_get_lane<mode>): Likewise.
11372 (*aarch64_combinez<mode>): Likewise.
11373 (aarch64_combine<mode>): Likewise.
11374 (aarch64_simd_combine<mode>): Likewise.
11375 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
11376 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
11377 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
11378 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
11379 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
11380 (aarch64_<sur>h<addsub><mode>): Likewise.
11381 (aarch64_<sur><addsub>hn<mode>): Likewise.
11382 (aarch64_<sur><addsub>hn2<mode>): Likewise.
11383 (aarch64_pmul<mode>): Likewise.
11384 (aarch64_<su_optab><optab><mode>): Likewise.
11385 (aarch64_<sur>qadd<mode>): Likewise.
11386 (aarch64_sqmovun<mode>): Likewise.
11387 (aarch64_<sur>qmovn<mode>): Likewise.
11388 (aarch64_s<optab><mode>): Likewise.
11389 (aarch64_sq<r>dmulh<mode>): Likewise.
11390 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
11391 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
11392 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
11393 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
11394 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
11395 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
11396 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
11397 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
11398 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11399 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
11400 (aarch64_sqdmull<mode>): Likewise.
11401 (aarch64_sqdmull_lane<mode>_internal): Likewise.
11402 (aarch64_sqdmull_n<mode>): Likewise.
11403 (aarch64_sqdmull2<mode>_internal): Likewise.
11404 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11405 (aarch64_sqdmull2_n<mode>_internal): Likewise.
11406 (aarch64_<sur>shl<mode>): Likewise.
11407 (aarch64_<sur>q<r>shl<mode>
11408 (aarch64_<sur>shll_n<mode>): Likewise.
11409 (aarch64_<sur>shll2_n<mode>): Likewise.
11410 (aarch64_<sur>shr_n<mode>): Likewise.
11411 (aarch64_<sur>sra_n<mode>): Likewise.
11412 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
11413 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
11414 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
11415 (aarch64_cm<optab><mode>): Likewise.
11416 (aarch64_cm<optab>di): Likewise.
11417 (aarch64_cm<optab><mode>): Likewise.
11418 (aarch64_cm<optab>di): Likewise.
11419 (aarch64_cmtst<mode>): Likewise.
11420 (aarch64_cmtstdi): Likewise.
11421 (aarch64_cm<optab><mode>): Likewise.
11422 (*aarch64_fac<optab><mode>): Likewise.
11423 (aarch64_addp<mode>): Likewise.
11424 (aarch64_addpdi): Likewise.
11425 (sqrt<mode>2): Likewise.
11426 (vec_load_lanesoi<mode>): Likewise.
11427 (vec_store_lanesoi<mode>): Likewise.
11428 (vec_load_lanesci<mode>): Likewise.
11429 (vec_store_lanesci<mode>): Likewise.
11430 (vec_load_lanesxi<mode>): Likewise.
11431 (vec_store_lanesxi<mode>): Likewise.
11432 (*aarch64_mov<mode>): Likewise.
11433 (aarch64_ld2<mode>_dreg): Likewise.
11434 (aarch64_ld2<mode>_dreg): Likewise.
11435 (aarch64_ld3<mode>_dreg): Likewise.
11436 (aarch64_ld3<mode>_dreg): Likewise.
11437 (aarch64_ld4<mode>_dreg): Likewise.
11438 (aarch64_ld4<mode>_dreg): Likewise.
11439 (aarch64_tbl1<mode>): Likewise.
11440 (aarch64_tbl2v16qi): Likewise.
11441 (aarch64_combinev16qi): Likewise.
11442 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
11443 (aarch64_st2<mode>_dreg): Likewise.
11444 (aarch64_st2<mode>_dreg): Likewise.
11445 (aarch64_st3<mode>_dreg): Likewise.
11446 (aarch64_st3<mode>_dreg): Likewise.
11447 (aarch64_st4<mode>_dreg): Likewise.
11448 (aarch64_st4<mode>_dreg): Likewise.
11449 (*aarch64_simd_ld1r<mode>): Likewise.
11450 (aarch64_frecpe<mode>): Likewise.
11451 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
11452 (aarch64_frecps<mode>): Likewise.
11453
11454 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11455
11456 * config/arm/iterators.md (V_elem_ch): New.
11457 (q): Likewise.
11458 (VQH_type): Likewise.
11459 * config/arm/arm.md (is_neon_type): New.
11460 (conds): Use is_neon_type.
11461 (anddi3_insn): Update type attribute.
11462 (xordi3_insn): Likewise.
11463 (one_cmpldi2): Likewise.
11464 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
11465 * config/arm/neon.md (neon_mov): Update type attribute.
11466 (*movmisalign<mode>_neon_store): Likewise.
11467 (*movmisalign<mode>_neon_load): Likewise.
11468 (vec_set<mode>_internal): Likewise.
11469 (vec_set<mode>_internal): Likewise.
11470 (vec_setv2di_internal): Likewise.
11471 (vec_extract<mode>): Likewise.
11472 (vec_extract<mode>): Likewise.
11473 (vec_extractv2di): Likewise.
11474 (*add<mode>3_neon): Likewise.
11475 (adddi3_neon): Likewise.
11476 (*sub<mode>3_neon): Likewise.
11477 (subdi3_neon): Likewise.
11478 (fma<VCVTF:mode>4): Likewise.
11479 (fma<VCVTF:mode>4_intrinsic): Likewise.
11480 (*fmsub<VCVTF:mode>4): Likewise.
11481 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
11482 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
11483 (ior<mode>3): Likewise.
11484 (and<mode>3): Likewise.
11485 (orn<mode>3_neon): Likewise.
11486 (orndi3_neon): Likewise.
11487 (bic<mode>3_neon): Likewise.
11488 (bicdi3_neon): Likewise.
11489 (xor<mode>3): Likewise.
11490 (one_cmpl<mode>2): Likewise.
11491 (abs<mode>2): Likewise.
11492 (neg<mode>2): Likewise.
11493 (negdi2_neon): Likewise.
11494 (*umin<mode>3_neon): Likewise.
11495 (*umax<mode>3_neon): Likewise.
11496 (*smin<mode>3_neon): Likewise.
11497 (*smax<mode>3_neon): Likewise.
11498 (vashl<mode>3): Likewise.
11499 (vashr<mode>3_imm): Likewise.
11500 (vlshr<mode>3_imm): Likewise.
11501 (ashl<mode>3_signed): Likewise.
11502 (ashl<mode>3_unsigned): Likewise.
11503 (neon_load_count): Likewise.
11504 (ashldi3_neon_noclobber): Likewise.
11505 (ashldi3_neon): Likewise.
11506 (signed_shift_di3_neon): Likewise.
11507 (unsigned_shift_di3_neon): Likewise.
11508 (ashrdi3_neon_imm_noclobber): Likewise.
11509 (lshrdi3_neon_imm_noclobber): Likewise.
11510 (<shift>di3_neon): Likewise.
11511 (widen_ssum<mode>3): Likewise.
11512 (widen_usum<mode>3): Likewise.
11513 (quad_halves_<code>v4si): Likewise.
11514 (quad_halves_<code>v4sf): Likewise.
11515 (quad_halves_<code>v8hi): Likewise.
11516 (quad_halves_<code>v16qi): Likewise.
11517 (reduc_splus_v2di): Likewise.
11518 (neon_vpadd_internal<mode>): Likewise.
11519 (neon_vpsmin<mode>): Likewise.
11520 (neon_vpsmax<mode>): Likewise.
11521 (neon_vpumin<mode>): Likewise.
11522 (neon_vpumax<mode>): Likewise.
11523 (*ss_add<mode>_neon): Likewise.
11524 (*us_add<mode>_neon): Likewise.
11525 (*ss_sub<mode>_neon): Likewise.
11526 (*us_sub<mode>_neon): Likewise.
11527 (neon_vadd<mode>_unspec): Likewise.
11528 (neon_vaddl<mode>): Likewise.
11529 (neon_vaddw<mode>): Likewise.
11530 (neon_vhadd<mode>): Likewise.
11531 (neon_vqadd<mode>): Likewise.
11532 (neon_vaddhn<mode>): Likewise.
11533 (neon_vmul<mode>): Likewise.
11534 (neon_vfms<VCVTF:mode>): Likewise.
11535 (neon_vmlal<mode>): Likewise.
11536 (neon_vmls<mode>): Likewise.
11537 (neon_vmlsl<mode>): Likewise.
11538 (neon_vqdmulh<mode>): Likewise.
11539 (neon_vqdmlal<mode>): Likewise.
11540 (neon_vqdmlsl<mode>): Likewise.
11541 (neon_vmull<mode>): Likewise.
11542 (neon_vqdmull<mode>): Likewise.
11543 (neon_vsub<mode>_unspec): Likewise.
11544 (neon_vsubl<mode>): Likewise.
11545 (neon_vsubw<mode>): Likewise.
11546 (neon_vqsub<mode>): Likewise.
11547 (neon_vhsub<mode>): Likewise.
11548 (neon_vsubhn<mode>): Likewise.
11549 (neon_vceq<mode>): Likewise.
11550 (neon_vcge<mode>): Likewise.
11551 (neon_vcgeu<mode>): Likewise.
11552 (neon_vcgt<mode>): Likewise.
11553 (neon_vcgtu<mode>): Likewise.
11554 (neon_vcle<mode>): Likewise.
11555 (neon_vclt<mode>): Likewise.
11556 (neon_vcage<mode>): Likewise.
11557 (neon_vcagt<mode>): Likewise.
11558 (neon_vtst<mode>): Likewise.
11559 (neon_vabd<mode>): Likewise.
11560 (neon_vabdl<mode>): Likewise.
11561 (neon_vaba<mode>): Likewise.
11562 (neon_vabal<mode>): Likewise.
11563 (neon_vmax<mode>): Likewise.
11564 (neon_vmin<mode>): Likewise.
11565 (neon_vpaddl<mode>): Likewise.
11566 (neon_vpadal<mode>): Likewise.
11567 (neon_vpmax<mode>): Likewise.
11568 (neon_vpmin<mode>): Likewise.
11569 (neon_vrecps<mode>): Likewise.
11570 (neon_vrsqrts<mode>): Likewise.
11571 (neon_vqabs<mode>): Likewise.
11572 (neon_vqneg<mode>): Likewise.
11573 (neon_vcls<mode>): Likewise.
11574 (clz<mode>2): Likewise.
11575 (popcount<mode>2): Likewise.
11576 (neon_vrecpe<mode>): Likewise.
11577 (neon_vrsqrte<mode>): Likewise.
11578 (neon_vget_lane<mode>_sext_internal): Likewise.
11579 (neon_vget_lane<mode>_zext_internal): Likewise.
11580 (neon_vdup_n<mode>): Likewise.
11581 (neon_vdup_n<mode>): Likewise.
11582 (neon_vdup_nv2di): Likewise.
11583 (neon_vdup_lane<mode>_interal): Likewise.
11584 (*neon_vswp<mode>): Likewise.
11585 (neon_vcombine<mode>): Likewise.
11586 (float<mode><V_cvtto>2): Likewise.
11587 (floatuns<mode><V_cvtto>2): Likewise.
11588 (fix_trunc<mode><V_cvtto>2): Likewise.
11589 (fixuns_trunc<mode><V_cvtto>2
11590 (neon_vcvt<mode>): Likewise.
11591 (neon_vcvt<mode>): Likewise.
11592 (neon_vcvtv4sfv4hf): Likewise.
11593 (neon_vcvtv4hfv4sf): Likewise.
11594 (neon_vcvt_n<mode>): Likewise.
11595 (neon_vcvt_n<mode>): Likewise.
11596 (neon_vmovn<mode>): Likewise.
11597 (neon_vqmovn<mode>): Likewise.
11598 (neon_vqmovun<mode>): Likewise.
11599 (neon_vmovl<mode>): Likewise.
11600 (neon_vmul_lane<mode>): Likewise.
11601 (neon_vmul_lane<mode>): Likewise.
11602 (neon_vmull_lane<mode>): Likewise.
11603 (neon_vqdmull_lane<mode>): Likewise.
11604 (neon_vqdmulh_lane<mode>): Likewise.
11605 (neon_vqdmulh_lane<mode>): Likewise.
11606 (neon_vmla_lane<mode>): Likewise.
11607 (neon_vmla_lane<mode>): Likewise.
11608 (neon_vmlal_lane<mode>): Likewise.
11609 (neon_vqdmlal_lane<mode>): Likewise.
11610 (neon_vmls_lane<mode>): Likewise.
11611 (neon_vmls_lane<mode>): Likewise.
11612 (neon_vmlsl_lane<mode>): Likewise.
11613 (neon_vqdmlsl_lane<mode>): Likewise.
11614 (neon_vext<mode>): Likewise.
11615 (neon_vrev64<mode>): Likewise.
11616 (neon_vrev32<mode>): Likewise.
11617 (neon_vrev16<mode>): Likewise.
11618 (neon_vbsl<mode>_internal): Likewise.
11619 (neon_vshl<mode>): Likewise.
11620 (neon_vqshl<mode>): Likewise.
11621 (neon_vshr_n<mode>): Likewise.
11622 (neon_vshrn_n<mode>): Likewise.
11623 (neon_vqshrn_n<mode>): Likewise.
11624 (neon_vqshrun_n<mode>): Likewise.
11625 (neon_vshl_n<mode>): Likewise.
11626 (neon_vqshl_n<mode>): Likewise.
11627 (neon_vqshlu_n<mode>): Likewise.
11628 (neon_vshll_n<mode>): Likewise.
11629 (neon_vsra_n<mode>): Likewise.
11630 (neon_vsri_n<mode>): Likewise.
11631 (neon_vsli_n<mode>): Likewise.
11632 (neon_vtbl1v8qi): Likewise.
11633 (neon_vtbl2v8qi): Likewise.
11634 (neon_vtbl3v8qi): Likewise.
11635 (neon_vtbl4v8qi): Likewise.
11636 (neon_vtbl1v16qi): Likewise.
11637 (neon_vtbl2v16qi): Likewise.
11638 (neon_vcombinev16qi): Likewise.
11639 (neon_vtbx1v8qi): Likewise.
11640 (neon_vtbx2v8qi): Likewise.
11641 (neon_vtbx3v8qi): Likewise.
11642 (neon_vtbx4v8qi): Likewise.
11643 (*neon_vtrn<mode>_insn): Likewise.
11644 (*neon_vzip<mode>_insn): Likewise.
11645 (*neon_vuzp<mode>_insn): Likewise.
11646 (neon_vld1<mode>): Likewise.
11647 (neon_vld1_lane<mode>): Likewise.
11648 (neon_vld1_lane<mode>): Likewise.
11649 (neon_vld1_dup<mode>): Likewise.
11650 (neon_vld1_dup<mode>): Likewise.
11651 (neon_vld1_dupv2di): Likewise.
11652 (neon_vst1<mode>): Likewise.
11653 (neon_vst1_lane<mode>): Likewise.
11654 (neon_vst1_lane<mode>): Likewise.
11655 (neon_vld2<mode>): Likewise.
11656 (neon_vld2<mode>): Likewise.
11657 (neon_vld2_lane<mode>): Likewise.
11658 (neon_vld2_lane<mode>): Likewise.
11659 (neon_vld2_dup<mode>): Likewise.
11660 (neon_vst2<mode>): Likewise.
11661 (neon_vst2<mode>): Likewise.
11662 (neon_vst2_lane<mode>): Likewise.
11663 (neon_vst2_lane<mode>): Likewise.
11664 (neon_vld3<mode>): Likewise.
11665 (neon_vld3qa<mode>): Likewise.
11666 (neon_vld3qb<mode>): Likewise.
11667 (neon_vld3_lane<mode>): Likewise.
11668 (neon_vld3_lane<mode>): Likewise.
11669 (neon_vld3_dup<mode>): Likewise.
11670 (neon_vst3<mode>): Likewise.
11671 (neon_vst3qa<mode>): Likewise.
11672 (neon_vst3qb<mode>): Likewise.
11673 (neon_vst3_lane<mode>): Likewise.
11674 (neon_vst3_lane<mode>): Likewise.
11675 (neon_vld4<mode>): Likewise.
11676 (neon_vld4qa<mode>): Likewise.
11677 (neon_vld4qb<mode>): Likewise.
11678 (neon_vld4_lane<mode>): Likewise.
11679 (neon_vld4_lane<mode>): Likewise.
11680 (neon_vld4_dup<mode>): Likewise.
11681 (neon_vst4<mode>): Likewise.
11682 (neon_vst4qa<mode>): Likewise.
11683 (neon_vst4qb<mode>): Likewise.
11684 (neon_vst4_lane<mode>): Likewise.
11685 (neon_vst4_lane<mode>): Likewise.
11686 (neon_vec_unpack<US>_lo_<mode>): Likewise.
11687 (neon_vec_unpack<US>_hi_<mode>): Likewise.
11688 (neon_vec_<US>mult_lo_<mode>): Likewise.
11689 (neon_vec_<US>mult_hi_<mode>): Likewise.
11690 (neon_vec_<US>shiftl_<mode>): Likewise.
11691 (neon_unpack<US>_<mode>): Likewise.
11692 (neon_vec_<US>mult_<mode>): Likewise.
11693 (vec_pack_trunc_<mode>): Likewise.
11694 (neon_vec_pack_trunc_<mode>): Likewise.
11695 (neon_vabd<mode>_2): Likewise.
11696 (neon_vabd<mode>_3): Likewise.
11697
11698 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11699
11700 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
11701 (load_pair): Update type attribute.
11702 (store_pair): Update type attribute.
11703 * config/aarch64/iterators.md (q): New.
11704
11705 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11706
11707 * config/arm/types.md: Add new types for Neon insns.
11708
11709 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11710 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11711 Sergey Lega <sergey.s.lega@intel.com>
11712 Anna Tikhonova <anna.tikhonova@intel.com>
11713 Ilya Tocar <ilya.tocar@intel.com>
11714 Andrey Turetskiy <andrey.turetskiy@intel.com>
11715 Ilya Verbin <ilya.verbin@intel.com>
11716 Kirill Yukhin <kirill.yukhin@intel.com>
11717 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11718
11719 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
11720 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
11721 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
11722 (rcp14<mode>): New.
11723 (srcp14<mode>): Ditto.
11724 (rsqrt14<mode>): Ditto.
11725 (rsqrt14<mode>): Ditto.
11726 (avx512f_vmscalef<mode>): Ditto.
11727 (avx512f_scalef<mode>): Ditto.
11728 (avx512f_getexp<mode>): Ditto.
11729 (avx512f_sgetexp<mode>): Ditto.
11730 (avx512f_fixupimm<mode>): Ditto.
11731 (avx512f_sfixupimm<mode>): Ditto.
11732 (avx512f_rndscale<mode>): Ditto.
11733 (*avx512er_exp2<mode>): Ditto.
11734 (*avx512er_rcp28<mode>): Ditto.
11735 (avx512er_rsqrt28<mode>): Ditto.
11736 (avx512f_getmant<mode>): Ditto.
11737 (avx512f_getmant<mode>): Ditto.
11738 (avx512f_rndscale<mode>): Fix formatting.
11739
11740 2013-10-15 Martin Jambor <mjambor@suse.cz>
11741
11742 * ipa-utils.h (ipa_edge_within_scc): Declare.
11743 * ipa-cp.c (edge_within_scc): Moved...
11744 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
11745
11746 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11747 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11748 Sergey Lega <sergey.s.lega@intel.com>
11749 Anna Tikhonova <anna.tikhonova@intel.com>
11750 Ilya Tocar <ilya.tocar@intel.com>
11751 Andrey Turetskiy <andrey.turetskiy@intel.com>
11752 Ilya Verbin <ilya.verbin@intel.com>
11753 Kirill Yukhin <kirill.yukhin@intel.com>
11754 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11755
11756 * config/i386/predicates.md (const_8_to_15_operand): New.
11757 (const_16_to_31_operand): Ditto.
11758 * config/i386/sse.md (V8FI): New.
11759 (V16FI): Ditto.
11760 (reduc_splus_v8df): Ditto.
11761 (reduc_splus_v16sf): Ditto.
11762 (avx512f_vextract<shuffletype>32x4_1): Ditto.
11763 (vec_extract_hi_<mode>): Ditto.
11764 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
11765 (vec_set_lo_<mode>): Ditto.
11766 (vec_set_hi_<mode>): Ditto.
11767 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
11768 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
11769 (avx512f_pshufd_1): Ditto.
11770 (avx512f_broadcast<mode>): Ditto.
11771 (avx512f_broadcast<mode>): Ditto.
11772 (define_split): Split vec_extract_lo into move.
11773 (ssequartermode): Ditto.
11774 (ssedoublemode): Extened with wider modes.
11775 (vec_extract_lo_<mode>): Ditto.
11776
11777 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11778 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11779 Sergey Lega <sergey.s.lega@intel.com>
11780 Anna Tikhonova <anna.tikhonova@intel.com>
11781 Ilya Tocar <ilya.tocar@intel.com>
11782 Andrey Turetskiy <andrey.turetskiy@intel.com>
11783 Ilya Verbin <ilya.verbin@intel.com>
11784 Kirill Yukhin <kirill.yukhin@intel.com>
11785 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11786
11787 * config/i386/predicates.md (register_or_constm1_operand): New.
11788 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
11789 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
11790 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
11791 UNSPEC_SCATTER_PREFETCH
11792 (VI48_512): New.
11793 (avx512f_ucmp<mode>3): Ditto.
11794 (avx512f_vternlog<mode>): Ditto.
11795 (avx512f_align<mode>): Ditto.
11796 (<shift_insn><mode>3): Ditto.
11797 (avx512f_<rotate>v<mode>): Ditto.
11798 (avx512f_<rotate><mode>): Ditto.
11799 (avx512f_eq<mode>3): Ditto.
11800 (avx512f_eq<mode>3_1): Ditto.
11801 (avx512f_gt<mode>3): Ditto.
11802 (avx512f_testm<mode>3): Ditto.
11803 (avx512f_testnm<mode>3): Ditto.
11804 (avx512pf_gatherpf<mode>): Ditto.
11805 (*avx512pf_gatherpf<mode>_mask): Ditto.
11806 (*avx512pf_gatherpf<mode>): Ditto.
11807 (avx512pf_scatterpf<mode>): Ditto.
11808 (*avx512pf_scatterpf<mode>_mask): Ditto.
11809 (*avx512pf_scatterpf<mode>): Ditto.
11810 (avx512f_vec_dup_gpr<mode>): Ditto.
11811 (clz<mode>2): Ditto.
11812 (conflict<mode>): Ditto.
11813 (REDUC_SMINMAX_MODE): Extened with wider modes.
11814 (reduc_<code>_<mode>): Ditto.
11815 (vlshr<mode>3): Ditto.
11816 (vashl<mode>3): Ditto.
11817
11818 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11819 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11820 Sergey Lega <sergey.s.lega@intel.com>
11821 Anna Tikhonova <anna.tikhonova@intel.com>
11822 Ilya Tocar <ilya.tocar@intel.com>
11823 Andrey Turetskiy <andrey.turetskiy@intel.com>
11824 Ilya Verbin <ilya.verbin@intel.com>
11825 Kirill Yukhin <kirill.yukhin@intel.com>
11826 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11827
11828 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
11829 UNSPEC_SCATTER.
11830 (VI48F_512): New.
11831 (avx512fmaskmode): Ditto.
11832 (bcstscalarsuff): Ditto.
11833 (avx512f_blendm<mode>): Ditto.
11834 (cmp_imm_predicate): Ditto.
11835 (avx512f_cmp<mode>3): Ditto.
11836 (avx512f_vec_dup<mode>): Ditto.
11837 (avx512f_vec_dup_mem<mode>): Ditto.
11838 (avx512f_vpermi2var<mode>3): Ditto.
11839 (avx512f_vpermt2var<mode>3): Ditto.
11840 (vec_init<mode>): Ditto.
11841 (avx512f_gathersi<mode>): Ditto.
11842 (*avx512f_gathersi<mode>): Ditto.
11843 (*avx512f_gathersi<mode>_2): Ditto.
11844 (avx512f_gatherdi<mode>): Ditto.
11845 (*avx512f_gatherdi<mode>): Ditto.
11846 (*avx512f_gatherdi<mode>_2): Ditto.
11847 (avx512f_scattersi<mode>): Ditto.
11848 (*avx512f_scattersi<mode>): Ditto.
11849 (avx512f_scatterdi<mode>): Ditto.
11850 (*avx512f_scatterdi<mode>): Ditto.
11851 (sseintprefix): Extened with wider modes.
11852 (VEC_GATHER_IDXSI): Ditto.
11853 (VEC_GATHER_IDXDI): Ditto.
11854 (VEC_GATHER_SRCDI): Ditto.
11855
11856 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11857 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11858
11859 * config/arm/t-aprofile: New file.
11860 * config.gcc: Handle --with-multilib-list option.
11861
11862 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
11863
11864 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
11865 the input for r2.
11866
11867 2013-10-15 Richard Biener <rguenther@suse.de>
11868
11869 * tree-loop-distribution.c (build_empty_rdg): Inline into
11870 single user.
11871 (rdg_flag_vertex): Inline into single user.
11872 (rdg_flag_vertex_and_dependent): Likewise.
11873 (build_rdg_partition_for_vertex): Remove processed bitmap.
11874 (rdg_build_partitions): Simplify.
11875
11876 2013-10-15 Richard Biener <rguenther@suse.de>
11877
11878 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11879 Restructure forwarding through conversions and copies to
11880 avoid performing copy-propagation the wrong way. Adjust
11881 recursion invocations.
11882 (forward_propagate_addr_expr): Add argument stating if we
11883 are recursing from a single-use.
11884 (ssa_forward_propagate_and_combine): Adjust.
11885
11886 2013-10-14 David Malcolm <dmalcolm@redhat.com>
11887
11888 * dumpfile.h (gcc::dump_manager): New class, to hold state
11889 relating to dumpfile management.
11890 (get_dump_file_name): Remove in favor of method of dump_manager.
11891 (dump_initialized_p): Likewise.
11892 (dump_start): Likewise.
11893 (dump_finish): Likewise.
11894 (dump_switch_p): Likewise.
11895 (dump_register): Likewise.
11896 (get_dump_file_info): Likewise.
11897 * context.c (gcc::context::context): Construct the dump_manager
11898 instance.
11899 * context.h (gcc::context::get_dumps): New.
11900 (gcc::context::m_dumps): New.
11901 * coverage.c (coverage_init): Port to dump_manager API.
11902 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
11903 (extra_dump_files_in_use): Likewise.
11904 (extra_dump_files_alloced): Likewise.
11905 (gcc::dump_manager::dump_manager): New.
11906 (dump_register): Convert to...
11907 (gcc::dump_manager::dump_register): ...method, replacing
11908 function-static next_dump with m_next_dump field.
11909 (get_dump_file_info): Convert to...
11910 (gcc::dump_manager::get_dump_file_info): ...method.
11911 (get_dump_file_name): Convert to...
11912 (gcc::dump_manager::get_dump_file_name): ...method.
11913 (dump_start): Convert to...
11914 (gcc::dump_manager::dump_start): ...method.
11915 (dump_finish): Convert to...
11916 (gcc::dump_manager::dump_finish): ...method.
11917 (dump_begin): Replace body with...
11918 (gcc::dump_manager::dump_begin): ...new method.
11919 (dump_phase_enabled_p): Convert to...
11920 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11921 (dump_phase_enabled_p): Convert to...
11922 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11923 (dump_initialized_p): Convert to...
11924 (gcc::dump_manager::dump_initialized_p): ...method.
11925 (dump_flag_name): Replace body with...
11926 (gcc::dump_manager::dump_flag_name): ...new method.
11927 (dump_enable_all): Convert to...
11928 (gcc::dump_manager::dump_enable_all): ...new method.
11929 (opt_info_enable_passes): Convert to...
11930 (gcc::dump_manager::opt_info_enable_passes): ...new method.
11931 (dump_switch_p_1): Convert to...
11932 (gcc::dump_manager::dump_switch_p_1): ...new method.
11933 (dump_switch_p): Convert to...
11934 (gcc::dump_manager::dump_switch_p): ...new method.
11935 (opt_info_switch_p): Port to dump_manager API.
11936 (enable_rtl_dump_file): Likewise.
11937 * opts-global.c (handle_common_deferred_options): Port to new
11938 dump_manager API.
11939 * passes.c (pass_manager::finish_optimization_passes): Likewise.
11940 (pass_manager::register_one_dump_file): Likewise.
11941 (pass_manager::register_pass): Likewise.
11942 (pass_init_dump_file): Likewise.
11943 (pass_fini_dump_file): Likewise.
11944 * statistics.c (statistics_early_init): Likewise.
11945
11946 2013-10-14 Richard Biener <rguenther@suse.de>
11947
11948 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11949 iterative_hash_canonical_type, gimple_canonical_type_hash,
11950 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11951 gimple_register_canonical_type, print_gimple_types_stats,
11952 free_gimple_type_tables): Move to lto/lto.c
11953 (gt-gimple.h): Do not include.
11954 * gimple.h (gimple_register_canonical_type,
11955 print_gimple_types_stats, free_gimple_type_tables): Remove.
11956 * Makefile.in (GTFILES): Remove gimple.c.
11957
11958 2013-10-14 Travis Snoozy <quandary@remstate.com>
11959
11960 PR target/58716
11961 * config/msp430/msp430.c (msp430_option_override): Correct thinko
11962 scanning for msp430x targets.
11963
11964 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
11965
11966 PR bootstrap/58509
11967 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11968 (registers_ok_for_ldd_peep): Move around.
11969 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11970 * config/sparc/sparc.md (widening peepholes): Use it.
11971
11972 2013-10-14 Richard Biener <rguenther@suse.de>
11973
11974 PR middle-end/58712
11975 PR middle-end/55358
11976 * gimple.c (iterative_hash_canonical_type): Make sure to
11977 record the hash into the correct hashtable slot.
11978
11979 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
11980
11981 PR rtl-optimization/58662
11982 * combine.c (try_combine): Take into account death nodes on I2 when
11983 splitting a PARALLEL of two independent SETs. Fix dump message.
11984
11985 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
11986
11987 PR target/51244
11988 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11989 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11990 extra_objs.
11991 * config/sh/t-sh (sh_treg_combine.o): New entry.
11992 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11993 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11994 (register_sh_passes): New function. Register sh_treg_combine pass.
11995 (sh_option_override): Invoke it.
11996 (sh_canonicalize_comparison): Handle op0_preserve_value.
11997 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11998 opportunities. Canonicalize branch condition.
11999 (nott): Allow only if pseudos can be created for non-SH2A.
12000
12001 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
12002
12003 PR target/58690
12004 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
12005 (ix86_expand_movmem): Replace copy_addr_to_reg with
12006 ix86_copy_addr_to_reg.
12007 (ix86_expand_setmem): Likewise.
12008
12009 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
12010
12011 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
12012 provided by ix86_fp_compare_mode instead of CCFPUmode.
12013
12014 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
12015
12016 * config/aarch64/arm_neon.h
12017 (vtbx<1,3>_<psu>8): Fix register constriants.
12018
12019 2013-10-11 Jeff Law <law@redhat.com>
12020
12021 PR tree-optimization/58640
12022 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
12023 threading paths that cross over two loop entry points.
12024
12025 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12026
12027 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
12028 handle vector float as well.
12029 (*vsx_le_perm_load_v4si): Likewise.
12030 (*vsx_le_perm_store_v2di): Likewise.
12031 (*vsx_le_perm_store_v4si): Likewise.
12032
12033 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12034
12035 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
12036 directly to circumvent subtract from splat{31} workaround.
12037 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
12038 prototype.
12039 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
12040 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
12041 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
12042 (altivec_vperm_<mode>): Convert to define_insn_and_split to
12043 separate big and little endian logic.
12044 (*altivec_vperm_<mode>_internal): New define_insn.
12045 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
12046 separate big and little endian logic.
12047 (*altivec_vperm_<mode>_uns_internal): New define_insn.
12048 (vec_permv16qi): Add little endian logic.
12049
12050 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
12051
12052 * doc/extend.texi (returns_nonnull): Remove arguments.
12053
12054 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12055 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12056 Sergey Lega <sergey.s.lega@intel.com>
12057 Anna Tikhonova <anna.tikhonova@intel.com>
12058 Ilya Tocar <ilya.tocar@intel.com>
12059 Andrey Turetskiy <andrey.turetskiy@intel.com>
12060 Ilya Verbin <ilya.verbin@intel.com>
12061 Kirill Yukhin <kirill.yukhin@intel.com>
12062 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12063
12064 * config/i386/sse.md (VI48F_256_512): New.
12065 (avx2_permvar<mode>): Change to ...
12066 (<avx2_avx512f>_permvar<mode>): This.
12067
12068 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12069 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12070 Sergey Lega <sergey.s.lega@intel.com>
12071 Anna Tikhonova <anna.tikhonova@intel.com>
12072 Ilya Tocar <ilya.tocar@intel.com>
12073 Andrey Turetskiy <andrey.turetskiy@intel.com>
12074 Ilya Verbin <ilya.verbin@intel.com>
12075 Kirill Yukhin <kirill.yukhin@intel.com>
12076 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12077
12078 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
12079 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
12080 * config/i386/sse.md (VI4_AVX): New.
12081 (sf2simodelower): Ditto.
12082 (sse2_cvtps2dq): Change to ...
12083 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
12084
12085 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12086 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12087 Sergey Lega <sergey.s.lega@intel.com>
12088 Anna Tikhonova <anna.tikhonova@intel.com>
12089 Ilya Tocar <ilya.tocar@intel.com>
12090 Andrey Turetskiy <andrey.turetskiy@intel.com>
12091 Ilya Verbin <ilya.verbin@intel.com>
12092 Kirill Yukhin <kirill.yukhin@intel.com>
12093 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12094
12095 * config/i386/sse.md (V_512): New.
12096 (VI_512): Ditto.
12097 (vcond<V_512:mode><VF_512:mode>): Ditto.
12098 (vcond<V_512:mode><VI_512:mode>): Ditto.
12099 (vcondu<V_512:mode><VI_512:mode>): Ditto.
12100
12101 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12102 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12103 Sergey Lega <sergey.s.lega@intel.com>
12104 Anna Tikhonova <anna.tikhonova@intel.com>
12105 Ilya Tocar <ilya.tocar@intel.com>
12106 Andrey Turetskiy <andrey.turetskiy@intel.com>
12107 Ilya Verbin <ilya.verbin@intel.com>
12108 Kirill Yukhin <kirill.yukhin@intel.com>
12109 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12110
12111 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
12112 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
12113 (FMAMODE): Ditto.
12114 (fma<mode>4): Removed condition.
12115 (fms<mode>4): Ditto.
12116 (fnma<mode>4): Ditto.
12117 (fnms<mode>4): Ditto.
12118 (fma4i_fmadd_<mode>): Ditto.
12119 (*fma_fmadd_<mode>): Ditto.
12120 (*fma_fmsub_<mode>): Ditto.
12121 (*fma_fnmadd_<mode>): Ditto.
12122 (*fma_fnmsub_<mode>): Ditto.
12123 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
12124 (*fma_fmaddsub_<mode>): Ditto.
12125 (*fma_fmsubadd_<mode>): Ditto.
12126 (*fmai_fmadd_<mode>): Ditto.
12127 (*fmai_fmsub_<mode>): Ditto.
12128 (*fmai_fnmadd_<mode>): Ditto.
12129 (*fmai_fnmsub_<mode>): Ditto.
12130
12131 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12132 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12133 Sergey Lega <sergey.s.lega@intel.com>
12134 Anna Tikhonova <anna.tikhonova@intel.com>
12135 Ilya Tocar <ilya.tocar@intel.com>
12136 Andrey Turetskiy <andrey.turetskiy@intel.com>
12137 Ilya Verbin <ilya.verbin@intel.com>
12138 Kirill Yukhin <kirill.yukhin@intel.com>
12139 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12140
12141 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
12142 (VI124_256): Changed to ...
12143 (VI124_256_48_512): This.
12144 (ssepackmode): Extended with wider modes.
12145 (<code><mode>3): Changed iterator.
12146 (*avx2_<code><mode>3): Ditto.
12147 (vec_pack_trunc_<mode>): Ditto.
12148
12149 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12150 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12151 Sergey Lega <sergey.s.lega@intel.com>
12152 Anna Tikhonova <anna.tikhonova@intel.com>
12153 Ilya Tocar <ilya.tocar@intel.com>
12154 Andrey Turetskiy <andrey.turetskiy@intel.com>
12155 Ilya Verbin <ilya.verbin@intel.com>
12156 Kirill Yukhin <kirill.yukhin@intel.com>
12157 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12158
12159 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
12160 (VI8F_256_512): Ditto.
12161 (abs<mode>2): Changed iterator.
12162 (avx2_perm<mode>): Changed to ...
12163 (<avx2_avx512f>_perm<mode>): This.
12164 (avx2_perm<mode>_1): Changed to ...
12165 (<avx2_avx512f>_perm<mode>_1): This.
12166
12167 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12168 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12169 Sergey Lega <sergey.s.lega@intel.com>
12170 Anna Tikhonova <anna.tikhonova@intel.com>
12171 Ilya Tocar <ilya.tocar@intel.com>
12172 Andrey Turetskiy <andrey.turetskiy@intel.com>
12173 Ilya Verbin <ilya.verbin@intel.com>
12174 Kirill Yukhin <kirill.yukhin@intel.com>
12175 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12176
12177 * config/i386/sse.md (VI48_AVX512F): New.
12178 (VI48_AVX2): Changed to ...
12179 (VI48_AVX2_48_AVX512F): This.
12180 (avx2_ashrv<mode>): Changed to ...
12181 (<avx2_avx512f>_ashrv<mode>): This.
12182 (avx2_<shift_insn>v<mode>): Changed to ...
12183 (<avx2_avx512f>_<shift_insn>v<mode>): This.
12184
12185 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12186 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12187 Sergey Lega <sergey.s.lega@intel.com>
12188 Anna Tikhonova <anna.tikhonova@intel.com>
12189 Ilya Tocar <ilya.tocar@intel.com>
12190 Andrey Turetskiy <andrey.turetskiy@intel.com>
12191 Ilya Verbin <ilya.verbin@intel.com>
12192 Kirill Yukhin <kirill.yukhin@intel.com>
12193 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12194
12195 * config/i386/sse.md (VI4_AVX512F): New.
12196 (VI8_AVX2_AVX512F): Ditto.
12197 (mul<mode>3): Extended with wider modes.
12198 (*<sse4_1_avx2>_mul<mode>3): Ditto.
12199 (mul<mode>3): Ditto.
12200 (vec_widen_<s>mult_odd_<mode>): Ditto.
12201
12202 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12203 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12204 Sergey Lega <sergey.s.lega@intel.com>
12205 Anna Tikhonova <anna.tikhonova@intel.com>
12206 Ilya Tocar <ilya.tocar@intel.com>
12207 Andrey Turetskiy <andrey.turetskiy@intel.com>
12208 Ilya Verbin <ilya.verbin@intel.com>
12209 Kirill Yukhin <kirill.yukhin@intel.com>
12210 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12211
12212 * config/i386/sse.md (VI2_AVX512F): New.
12213 (VI124_AVX512F): Ditto.
12214 (sseunpackmode): Extended with wider modes.
12215 (sseunpackfltmode): Ditto.
12216 (vec_unpacks_float_hi_<mode>): Ditto.
12217 (vec_unpacks_float_lo_<mode>): Ditto.
12218 (vec_unpacku_float_hi_<mode>): Ditto.
12219 (vec_unpacku_float_lo_<mode>): Ditto.
12220 (vec_unpacks_lo_<mode>): Ditto.
12221 (vec_unpacks_hi_<mode>): Ditto.
12222 (vec_unpacku_lo_<mode>): Ditto.
12223 (vec_unpacku_hi_<mode>): Ditto.
12224
12225 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12226 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12227 Sergey Lega <sergey.s.lega@intel.com>
12228 Anna Tikhonova <anna.tikhonova@intel.com>
12229 Ilya Tocar <ilya.tocar@intel.com>
12230 Andrey Turetskiy <andrey.turetskiy@intel.com>
12231 Ilya Verbin <ilya.verbin@intel.com>
12232 Kirill Yukhin <kirill.yukhin@intel.com>
12233 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12234
12235 * config/i386/i386.md (multdiv): New.
12236 (multdiv_mnemonic): Ditto.
12237 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
12238 (<sse>_vm<multdiv_mnemonic><mode>3): This.
12239 (<sse>_vmdiv<mode>3): Removed.
12240
12241 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12242 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12243 Sergey Lega <sergey.s.lega@intel.com>
12244 Anna Tikhonova <anna.tikhonova@intel.com>
12245 Ilya Tocar <ilya.tocar@intel.com>
12246 Andrey Turetskiy <andrey.turetskiy@intel.com>
12247 Ilya Verbin <ilya.verbin@intel.com>
12248 Kirill Yukhin <kirill.yukhin@intel.com>
12249 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12250
12251 * config/i386/sse.md (V): Extended with wider modes.
12252 (VF2): Ditto.
12253 (ssehalfvecmode): Ditto.
12254 (i128): Ditto.
12255 (ssepackfltmode): Ditto.
12256 (avx_vec_concat<mode>): Ditto.
12257 (V_256_512): New iterator.
12258 (VF2_512_256): Ditto.
12259 (si2dfmode): New attribute.
12260 (si2dfmodelower): Ditto.
12261 (sf2dfmode): Ditto.
12262 (concat_tg_mode): Ditto.
12263 (floatv4siv4df2): Changed to ...
12264 (float<si2dfmodelower><mode>2): This.
12265 (avx_cvtps2pd256): Changed to ...
12266 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
12267 (vec_pack_trunc_v4df): Changed to ...
12268 (vec_pack_trunc_<mode>): This.
12269 (avx_vpermil<mode>): Changed to ...
12270 (<sse2_avx_avx512f>_vpermil<mode>): This.
12271 (<fixsuffix>fix_truncv8dfv8si2): New.
12272 (vec_pack_sfix_trunc_v8df): Ditto.
12273 (avx512f_rndscale<mode>): Ditto.
12274 (avx512f_roundpd512): Ditto.
12275 (vec_pack_ufix_trunc_<mode>): Updated iterator.
12276
12277 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12278 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12279 Sergey Lega <sergey.s.lega@intel.com>
12280 Anna Tikhonova <anna.tikhonova@intel.com>
12281 Ilya Tocar <ilya.tocar@intel.com>
12282 Andrey Turetskiy <andrey.turetskiy@intel.com>
12283 Ilya Verbin <ilya.verbin@intel.com>
12284 Kirill Yukhin <kirill.yukhin@intel.com>
12285 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12286
12287 * config/i386/i386.md (any_fix): New iterator.
12288 (fixsuffix): New attribute.
12289 * config/i386/sse.md (VF1): Extened with wider modes.
12290 (VI): Ditto.
12291 (VI_AVX2): Ditto.
12292 (VI8): Ditto.
12293 (sseintvecmodelower): Ditto.
12294 (ssescalarmode): Ditto.
12295 (ssescalarnum): Ditto.
12296 (VF1_128_256): New.
12297 (ssexmmmode): Ditto.
12298 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
12299 (<sse>_rcp<mode>2): Change iterator.
12300 (rsqrt<mode>2): Ditto.
12301 (<sse>_rsqrt<mode>2): Ditto.
12302 (avx2_vec_dup<mode>): Ditto.
12303 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
12304 (round<mode>2_sfix): Ditto.
12305 (avx2_pbroadcast<mode>): Ditto.
12306 (*andnot<mode>3): Handle XI mode.
12307 (*<code><mode>3): Ditto.
12308 (AVXTOSSEMODE): Removed.
12309 (avx_vpermil<mode>): Changed to ...
12310 (<sse2_avx_avx512f>_vpermil<mode>): This.
12311
12312 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12313 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12314 Sergey Lega <sergey.s.lega@intel.com>
12315 Anna Tikhonova <anna.tikhonova@intel.com>
12316 Ilya Tocar <ilya.tocar@intel.com>
12317 Andrey Turetskiy <andrey.turetskiy@intel.com>
12318 Ilya Verbin <ilya.verbin@intel.com>
12319 Kirill Yukhin <kirill.yukhin@intel.com>
12320 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12321
12322 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
12323 (<sse>_comi): Ditto.
12324 (<sse>_ucomi): Ditto.
12325 (sse_cvtss2siq_2): Ditto.
12326 (sse2_cvtsd2si): Ditto.
12327 (sse2_cvtsd2siq): Ditto.
12328 (sse2_cvttsd2si): Ditto.
12329 (sse2_cvttsd2siq): Ditto.
12330 (<shift_insn><mode>3): Ditto.
12331 (sse2_cvtsi2sdq): Update constraint and prefix.
12332 (sse_cvtsi2ss): Update prefix.
12333 (sse_cvtsi2ssq): Ditto.
12334
12335 2013-10-11 Jakub Jelinek <jakub@redhat.com>
12336
12337 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
12338 ignore internal calls.
12339
12340 2013-10-11 Richard Biener <rguenther@suse.de>
12341
12342 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
12343 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
12344 TREE_OVERFLOW is set.
12345
12346 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
12347
12348 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
12349
12350 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
12351 * gimple.h: Likewise.
12352
12353 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
12354
12355 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
12356 macros.
12357
12358 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
12359
12360 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
12361 * configure: Regenerate.
12362
12363 2013-10-11 Jakub Jelinek <jakub@redhat.com>
12364
12365 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
12366 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
12367 formatting fixes, use pp_colon instead of pp_character (..., ':'),
12368 similarly pp_right_paren.
12369 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
12370 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
12371 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
12372 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
12373 clauses.
12374 (omp_declare_simd_clauses_equal,
12375 omp_remove_redundant_declare_simd_attrs): New functions.
12376 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
12377 (walk_tree_1): Handle new OpenMP 4.0 clauses.
12378 * tree.h (OMP_LOOP_CHECK): Define.
12379 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
12380 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
12381 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
12382 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
12383 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
12384 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
12385 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
12386 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
12387 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
12388 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
12389 OMP_CLAUSE_SIMDLEN_EXPR): Define.
12390 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
12391 (omp_remove_redundant_declare_simd_attrs): New prototype.
12392 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
12393 GIMPLE_OMP_TEAMS): New codes.
12394 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
12395 * omp-low.c (struct omp_context): Add cancel_label and cancellable
12396 fields.
12397 (target_nesting_level): New variable.
12398 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
12399 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
12400 for collapse > 1 static schedule unless ordered.
12401 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
12402 (determine_parallel_type): Adjust get_ws_args_for caller.
12403 (install_var_field): Handle mask & 4 for double indirection.
12404 (scan_sharing_clauses): Ignore shared clause on teams construct.
12405 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
12406 (create_omp_child_function): If inside target or declare target
12407 constructs, set "omp declare target" attribute on the child function.
12408 (find_combined_for): New function.
12409 (scan_omp_parallel): Handle combined loops.
12410 (scan_omp_target, scan_omp_teams): New functions.
12411 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
12412 restrictions and set ctx->cancellable for cancellable constructs.
12413 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
12414 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
12415 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
12416 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
12417 (omp_clause_aligned_alignment): New function.
12418 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
12419 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
12420 on teams constructs. Handle user defined reductions and new
12421 OpenMP 4.0 clauses.
12422 (lower_reduction_clauses): Don't set placeholder to address of ref
12423 if it has already the right type.
12424 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
12425 (expand_parallel_call): Use the new non-_start suffixed builtins,
12426 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
12427 and GOMP_parallel_end after the call.
12428 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
12429 (expand_omp_for_init_counts): Handle combined loops.
12430 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
12431 loops.
12432 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
12433 end of cancellable loops.
12434 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
12435 Likewise. Handle collapse > 1 loops.
12436 (expand_omp_simd): Handle combined loops.
12437 (expand_omp_for): Add inner_stmt argument, adjust callers of
12438 expand_omp_for* functions, use expand_omp_for_static*chunk even
12439 for collapse > 1 unless ordered.
12440 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
12441 of cancellable sections.
12442 (expand_omp_single): Remove need_barrier variable, just rely on
12443 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
12444 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
12445 (expand_omp_atomic_load, expand_omp_atomic_store,
12446 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
12447 (expand_omp_target): New function.
12448 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
12449 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
12450 (build_omp_regions_1): Immediately close region for
12451 GF_OMP_TARGET_KIND_UPDATE.
12452 (maybe_add_implicit_barrier_cancel): New function.
12453 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
12454 cancellation.
12455 (lower_omp_single): Likewise. Add clobber after the barrier.
12456 (lower_omp_taskgroup): New function.
12457 (lower_omp_for): Handle combined loops. Adjust
12458 lower_rec_input_clauses caller. Handle cancellation.
12459 (lower_depend_clauses): New function.
12460 (lower_omp_taskreg): Lower depend clauses. Adjust
12461 lower_rec_input_clauses caller. Add clobber after the call. Handle
12462 cancellation.
12463 (lower_omp_target, lower_omp_teams): New functions.
12464 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
12465 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
12466 and GOMP_cancellation_point calls.
12467 (lower_omp): Fold stmts inside of target region.
12468 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
12469 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12470 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
12471 (BT_FN_VOID_OMPFN_PTR_UINT,
12472 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
12473 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
12474 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
12475 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
12476 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
12477 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
12478 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
12479 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
12480 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
12481 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
12482 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12483 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
12484 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
12485 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
12486 BUILT_IN_GOMP_PARALLEL_END.
12487 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
12488 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12489 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
12490 GF_OMP_FOR_KIND_DISTRIBUTE.
12491 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
12492 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
12493 (dump_gimple_omp_return): Print lhs if it has any.
12494 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
12495 gimple_omp_atomic_seq_cst_p.
12496 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
12497 and GIMPLE_OMP_TEAMS.
12498 * langhooks.c (lhd_omp_mappable_type): New function.
12499 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
12500 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
12501 hook.
12502 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
12503 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
12504 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
12505 (struct gimplify_omp_ctx): Add combined_loop field.
12506 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
12507 on stmts inside of target region.
12508 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
12509 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
12510 ORT_TARGET and ORT_TARGET_DATA.
12511 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
12512 Handle GOVD_MAP.
12513 (omp_notice_threadprivate_variable): Complain about threadprivate
12514 variables in target region.
12515 (omp_notice_variable): Complain about vars with non-mappable type
12516 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
12517 (omp_check_private): Ignore ORT_TARGET* regions.
12518 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
12519 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
12520 (find_combined_omp_for): New function.
12521 (gimplify_omp_for): Handle gimplification of combined loops.
12522 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
12523 OMP_TEAMS.
12524 (gimplify_omp_target_update): New function.
12525 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
12526 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
12527 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
12528 (gimplify_body): If fndecl has "omp declare target" attribute, add
12529 implicit ORT_TARGET context around it.
12530 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
12531 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
12532 * tree-nested.c (convert_nonlocal_reference_stmt,
12533 convert_local_reference_stmt, convert_gimple_call): Handle
12534 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12535 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
12536 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
12537 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
12538 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
12539 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
12540 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
12541 BUILT_IN_GOMP_LOOP_END_CANCEL,
12542 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
12543 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
12544 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
12545 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
12546 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
12547 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
12548 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
12549 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
12550 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
12551 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
12552 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
12553 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
12554 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
12555 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
12556 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
12557 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12558 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
12559 gimple_build_omp_teams): New functions.
12560 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
12561 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
12562 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
12563 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12564 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
12565 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
12566 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
12567 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
12568 GF_OMP_ATOMIC_SEQ_CST): New.
12569 (gimple_build_omp_taskgroup, gimple_build_omp_target,
12570 gimple_build_omp_teams): New prototypes.
12571 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
12572 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12573 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
12574 GIMPLE_OMP_SINGLE as end of range.
12575 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
12576 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
12577 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
12578 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
12579 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
12580 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
12581 gimple_omp_target_kind, gimple_omp_target_set_kind,
12582 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
12583 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
12584 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
12585 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
12586 gimple_omp_teams_set_clauses): New inlines.
12587 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
12588 and GIMPLE_OMP_TASKGROUP.
12589 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
12590 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
12591 enum omp_clause_proc_bind_kind): New.
12592 (union omp_clause_subcode): Add depend_kind, map_kind and
12593 proc_bind_kind fields.
12594 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
12595 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12596 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
12597 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
12598 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
12599
12600 2013-10-10 Teresa Johnson <tejohnson@google.com>
12601
12602 * predict.c (tree_estimate_probability): Add new parameter
12603 for estimate_bb_frequencies.
12604 (estimate_bb_frequencies): Add new parameter to force estimation.
12605 (rebuild_frequencies): When max frequency in function is small,
12606 recompute counts from frequencies.
12607 * predict.h (estimate_bb_frequencies): New parameter.
12608
12609 2013-10-10 David Malcolm <dmalcolm@redhat.com>
12610
12611 * ipa-inline.c (ipa_inline): Fix leak of "order" when
12612 optimizations are disabled.
12613
12614 2013-10-10 David Malcolm <dmalcolm@redhat.com>
12615
12616 * coverage.c (coverage_finish): Fix leak of da_file_name.
12617
12618 2013-10-10 Jan Hubicka <jh@suse.cz>
12619
12620 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
12621 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
12622 Bobcat and generic.
12623
12624 2013-10-10 Jakub Jelinek <jakub@redhat.com>
12625
12626 PR middle-end/58670
12627 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
12628 if any labels are in FALLTHRU_BB, use a special label emitted
12629 immediately after the asm goto insn rather than label_rtx
12630 of the LABEL_DECL.
12631 (expand_asm_stmt): Adjust caller.
12632 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
12633 edge if the last insn in predecessor is a jump with single successor,
12634 but it isn't simplejump_p.
12635
12636 2013-10-10 Richard Biener <rguenther@suse.de>
12637
12638 PR tree-optimization/58656
12639 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
12640
12641 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12642
12643 * gimplify.c: Include expr.h and tm_p.h for targets with special
12644 va-arg padding requirements.
12645
12646 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12647
12648 * tree-flow.h: Move some prototypes to gimple.h.
12649 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
12650 * gimple.h: Relocate some prototypes from tree-flow.h
12651 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
12652 Move to gimplify.c.
12653 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
12654 (build_va_arg_indirect_ref): Relocate and make static.
12655 (std_gimplify_va_arg_expr): Relocate here.
12656 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
12657 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
12658
12659 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12660
12661 * doc/md.texi: Document the mnemonic attribute.
12662
12663 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12664
12665 PR target/57377
12666 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
12667 (set_attr_alternative x ...) when searching for user defined
12668 mnemonic attribute.
12669
12670 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12671
12672 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
12673
12674 2013-10-09 Easwaran Raman <eraman@google.com>
12675
12676 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
12677 * cfgexpand.c (defer_stack_allocation): ...use here
12678 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
12679
12680 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
12681
12682 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
12683 (operand_equal_for_value_replacement): New function, extracted from
12684 value_replacement and enhanced to catch more cases.
12685 (value_replacement): Use operand_equal_for_value_replacement.
12686
12687 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12688
12689 * loop-doloop.c (doloop_modify, doloop_optimize): Use
12690 get_max_loop_iterations.
12691
12692 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12693
12694 * config/arm/aarch-common.c (arm_early_load_addr_dep):
12695 Place comment above function.
12696
12697 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12698
12699 * tree-flow.h: Remove all remaining prototypes, enums and structs that
12700 are not related to tree-cfg.c.
12701 * tree-ssa-address.h: New file. Relocate prototypes.
12702 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
12703 (addr_for_mem_ref): New. Combine call to get_address_description and
12704 return addr_for_mem_ref.
12705 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
12706 * tree-ssa-live.h: Adjust prototypes.
12707 * passes.c: Include tree-ssa-live.h.
12708 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
12709 * graphite.c (graphite_transform_loops): Make static.
12710 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12711 make_pass_graphite, pass_data_graphite_transforms,
12712 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
12713 * ipa-pure-const.c (warn_function_noreturn): Make static.
12714 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12715 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12716 Relocate from tree-cfg.c
12717 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
12718 static.
12719 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12720 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12721 Move to ipa-pure-const.c.
12722 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
12723 Relocate from tree-optimize.c.
12724 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
12725 make_pass_fixup_cfg): Move to tree-cfg.c.
12726 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
12727 Relocate some prototypes.
12728 * tree-data-ref.h (tree_check_data_deps) Add prototype.
12729 * tree-dump.c (dump_function_to_file): Remove prototype.
12730 Add tree-flow.h to the include file.
12731 * tree-dump.h: Remove prototype.
12732 * tree-parloops.h: New File. Add prototypes.
12733 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
12734 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
12735 from tree-ssa-loop.c.
12736 * tree-predcom.c (run_tree_predictive_commoning,
12737 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
12738 Relocate here from tree-ssa-loop.c.
12739 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
12740 ssa_name_values.release ().
12741 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
12742 (ssa_name_values): Relocate from tree-flow.h.
12743 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
12744 * tree-ssa-loop.c (run_tree_predictive_commoning,
12745 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
12746 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12747 make_pass_graphite, pass_data_graphite_transforms,
12748 make_pass_graphite_transforms, gate_tree_parallelize_loops,
12749 tree_parallelize_loops, pass_data_parallelize_loops,
12750 make_pass_parallelize_loops): Move to other files.
12751 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
12752 moved here.
12753 * tree.h: Remove prototypes from tree-address.c.
12754
12755 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12756
12757 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
12758 (struct int_tree_map): Move to tree-hasher.h
12759 (SCALE, LABEL, PERCENT): Move to gimple.h
12760 * tree-flow-inline.h: Delete. Move functions to other files.
12761 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
12762 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
12763 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
12764 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
12765 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
12766 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
12767 * tree-hasher.h: Don't include tree-flow.h.
12768 (struct int_tree_map): Relocate from tree-flow.h.
12769 * tree-sra.c (contains_view_convert_expr_p): Relocate from
12770 tree-flow-inline.h and make static.
12771 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
12772 tree-flow-inline.h.
12773 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
12774 tree-flow-inline.h and make static.
12775 * tree.h (is_global_var, may_be_aliased): Relocate from
12776 tree-flow-inline.h.
12777 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
12778 * value-prof.c: No longer include tree-flow-inline.h.
12779 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
12780
12781 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12782
12783 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
12784 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
12785 (enum move_pos): Move to tree-ssa-loop-im.h
12786 * cfgloop.h: Move some prototypes.
12787 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
12788 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
12789 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
12790 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
12791 (loop_containing_stmt): Relocate from tree-flow-inline.h.
12792 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
12793 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
12794 (enum move_pos): Relocate here.
12795 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
12796 tree-ssa-loop.c.
12797 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
12798 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
12799 make_pass_lim): Relocate here from tree-ssa-loop.c.
12800 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
12801 tree-ssa-loop.c.
12802 (loop_edge_to_cancel, unloop_loops): Make static.
12803 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12804 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
12805 (tree_complete_unroll, gate_tree_complete_unroll,
12806 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
12807 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12808 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
12809 * tree-ssa-loop-ivopts.c: Remove local prototypes.
12810 (stmt_invariant_in_loop_p): Remove unused function.
12811 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
12812 * tree-ssa-loop-manip.h: New file. Add prototypes.
12813 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
12814 (gcov_type_to_double_int): Move to cfgloop.h.
12815 (double_int_cmp, bound_index,
12816 estimate_numbers_of_iterations_loop): Make static.
12817 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
12818 (max_loop_iterations): Factor out get_max_loop_iterations.
12819 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
12820 cfgloop.c.
12821 * tree-ssa-loop-niter.h: New file. Add prototypes.
12822 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
12823 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
12824 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
12825 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
12826 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
12827 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
12828 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
12829 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
12830 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
12831 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
12832 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12833 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
12834 pass_data_complete_unroll, make_pass_complete_unroll,
12835 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12836 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
12837 tree-ssa-loop-ivcanon.c.
12838 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
12839 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
12840 tree-ssa-loop-prefetch.c.
12841 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
12842 tree-ssa-loop-im.c.
12843 (get_lsm_tmp_name): Relocate and add suffix parameter.
12844 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
12845 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
12846 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
12847 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
12848 (get_estimated_loop_iterations): Factor out accessor from
12849 estimated_loop_iterations in tree-ssa-loop-niter.c.
12850 (get_max_loop_iterations): Factor out accessor from
12851 _max_loop_iterations in tree-ssa-niter.c.
12852 * loop-unroll.c (decide_unroll_constant_iterations,
12853 decide_unroll_runtime_iterations, decide_peel_simple,
12854 decide_unroll_stupid): Use new get_* accessors.
12855
12856 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
12857
12858 PR tree-optimization/20318
12859 * doc/extend.texi (returns_nonnull): New function attribute.
12860 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
12861 attribute.
12862 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
12863 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
12864
12865 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
12866
12867 PR middle-end/58570
12868 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
12869 false if both components are bitfields.
12870
12871 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12872
12873 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
12874 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
12875 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
12876 * config/aarch64/aarch64.h
12877 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
12878 * config/aarch64/aarch64-simd-builtins.def
12879 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
12880
12881 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12882
12883 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
12884
12885 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12886
12887 * config/aarch64/arm_neon.h (vdiv_f64): Added.
12888
12889 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12890
12891 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
12892 (vneg_f64): New intrinsic.
12893 (vneg_s8): Asm replaced with C.
12894 (vneg_s16): Likewise.
12895 (vneg_s32): Likewise.
12896 (vneg_s64): New intrinsic.
12897 (vnegq_f32): Asm replaced with C.
12898 (vnegq_f64): Likewise.
12899 (vnegq_s8): Likewise.
12900 (vnegq_s16): Likewise.
12901 (vnegq_s32): Likewise.
12902 (vnegq_s64): Likewise.
12903
12904 2013-10-09 Renlin Li <Renlin.Li@arm.com>
12905
12906 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
12907
12908 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12909
12910 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
12911 packed stack special handling.
12912 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12913 back to fixed stack slots for FPRs saved due to stdarg.
12914
12915 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12916
12917 * config/s390/s390.c (s390_frame_info): Restructure function.
12918
12919 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12920
12921 * config/s390/s390.c (struct s390_frame_layout): New field
12922 gpr_save_slots.
12923 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12924 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12925 regs_ever_clobbered to char*.
12926 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12927 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
12928 (s390_register_info): Enable FPR save slots. Move/Copy some
12929 functionality into ...
12930 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12931 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12932 function.
12933 (s390_frame_info): Do gpr slot allocation here now. stdarg does
12934 not imply a stack frame.
12935 (s390_init_frame_layout): Remove variable clobbered_regs.
12936 (s390_update_register_info): Remove function.
12937 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12938 cannot be used for register renaming.
12939 (s390_hard_regno_scratch_ok): New function.
12940 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12941 (s390_initial_elimination_offset): Change offset calculation of
12942 the return address pointer.
12943 (save_gprs): Deal with only r6 being saved from the call-saved regs.
12944 (restore_gprs): Set frame related flag.
12945 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12946 (s390_emit_prologue): Call s390_register_info instead of
12947 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
12948 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12949 (s390_optimize_prologue): Call s390_optimize_register_info.
12950 Try to remove also FPR slot save/restore INSNs. Remove frame
12951 related flags from restore INSNs.
12952
12953 2013-10-08 DJ Delorie <dj@redhat.com>
12954
12955 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12956 (movhi): Likewise.
12957
12958 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12959 avoid conflict with the MI use of %c.
12960 * config/rl78/rl78-real.md: change %c to %C throughout.
12961 * config/rl78/rl78-virt.md: Likewise.
12962
12963 2013-10-08 Jan Hubicka <jh@suse.cz>
12964
12965 * config/i386/i386.c (ix86_option_override_internal): Switch
12966 to SSE math for -ffast-math when target ISA supports SSE2.
12967
12968 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
12969
12970 * tree-flow.h: Remove some prototypes.
12971 * tree.h: Remove some protypes, add a couple.
12972 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12973 using_eh_for_cleanups_p): Add interface routines for front ends.
12974 * tree-eh.h: New file. Add protoptyes.
12975 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12976 (add_stmt_to_eh_lp_fn): Make static.
12977 (lower_try_finally): Use new using_eh_for_cleanups_p.
12978 * emit-rtl.c: Include tree-eh.h.
12979 * gimple.h: Include tree-eh.h.
12980
12981 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
12982
12983 PR tree-optimization/58480
12984 * tree-vrp.c (infer_nonnull_range): New function.
12985 (infer_value_range): Call infer_nonnull_range.
12986
12987 2013-10-08 Dehao Chen <dehao@google.com>
12988
12989 PR tree-optimization/58619
12990 * tree-inline.c (copy_phis_for_bb): Combine location data
12991 only if non-null.
12992
12993 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12994
12995 PR target/58423
12996 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12997 RTX_FRAME_RELATED_P on INSN.
12998
12999 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13000
13001 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
13002 (altivec_expand_vec_perm_const): Call it.
13003
13004 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13005
13006 * config/rs6000/vector.md (mov<mode>): Emit permuted move
13007 sequences for LE VSX loads and stores at expand time.
13008 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
13009 prototype.
13010 * config/rs6000/rs6000.c (rs6000_const_vec): New.
13011 (rs6000_gen_le_vsx_permute): New.
13012 (rs6000_gen_le_vsx_load): New.
13013 (rs6000_gen_le_vsx_store): New.
13014 (rs6000_gen_le_vsx_move): New.
13015 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
13016 (*vsx_le_perm_load_v4si): New.
13017 (*vsx_le_perm_load_v8hi): New.
13018 (*vsx_le_perm_load_v16qi): New.
13019 (*vsx_le_perm_store_v2di): New.
13020 (*vsx_le_perm_store_v4si): New.
13021 (*vsx_le_perm_store_v8hi): New.
13022 (*vsx_le_perm_store_v16qi): New.
13023 (*vsx_xxpermdi2_le_<mode>): New.
13024 (*vsx_xxpermdi4_le_<mode>): New.
13025 (*vsx_xxpermdi8_le_V8HI): New.
13026 (*vsx_xxpermdi16_le_V16QI): New.
13027 (*vsx_lxvd2x2_le_<mode>): New.
13028 (*vsx_lxvd2x4_le_<mode>): New.
13029 (*vsx_lxvd2x8_le_V8HI): New.
13030 (*vsx_lxvd2x16_le_V16QI): New.
13031 (*vsx_stxvd2x2_le_<mode>): New.
13032 (*vsx_stxvd2x4_le_<mode>): New.
13033 (*vsx_stxvd2x8_le_V8HI): New.
13034 (*vsx_stxvd2x16_le_V16QI): New.
13035
13036 2013-10-07 Renlin Li <Renlin.Li@arm.com>
13037
13038 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
13039
13040 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13041
13042 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
13043 loop to work also for 31bit ABI.
13044 Save the stack pointer for frame_size > 0.
13045
13046 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13047
13048 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
13049 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
13050 constraint letters from expanders.
13051 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
13052 retry count to general_operand.
13053 ("tabort"): Give operand 0 a mode.
13054 ("tabort_1"): Add mode and constraint letter for operand 0.
13055 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
13056
13057 2013-10-04 Jeff Law <law@redhat.com>
13058
13059 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
13060
13061 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
13062 out of ...
13063 (thread_across_edge): Here. Call it.
13064
13065 2013-10-04 Cary Coutant <ccoutant@google.com>
13066
13067 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
13068 discarding a location list expression (or a piece of one).
13069
13070 2013-10-03 Jan Hubicka <jh@suse.cz>
13071
13072 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
13073 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
13074 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
13075
13076 2013-10-03 Jan Hubicka <jh@suse.cz>
13077
13078 * config/i386/i386.c (ix86_option_override_internal): Do not enable
13079 accumulate-outgoing-args when producing unwind info.
13080
13081 2013-10-03 Wei Mi <wmi@google.com>
13082
13083 * lra-constraints.c (insert_move_for_subreg): New function
13084 extracted from simplify_operand_subreg.
13085 (simplify_operand_subreg): Add reload for paradoxical subreg.
13086
13087 2013-10-03 Rong Xu <xur@google.com>
13088
13089 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
13090 the candidate of builtin_expect such that we should fix the
13091 size/time estimation.
13092 (estimate_function_body_sizes): Do the acutally size/time fix-up
13093 for builtin_expect.
13094
13095 2013-10-03 Rong Xu <xur@google.com>
13096
13097 * predict.c (tree_predict_by_opcode): Get the probability
13098 for builtin_expect from param builtin_expect_probability.
13099 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
13100 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
13101 * doc/invoke.texi: Add documentation for builtin-expect-probability.
13102
13103 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
13104
13105 PR c++/19476
13106 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
13107 * calls.c (alloca_call_p): Use get_callee_fndecl.
13108 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
13109 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
13110 Likewise.
13111 (vrp_visit_stmt): Remove duplicated code.
13112
13113 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13114
13115 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
13116 ceildf2, btruncdf2, instead of vsx_* name.
13117
13118 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
13119 iterators to only do V2DF and V4SF here. Move the DF code to
13120 rs6000.md where it is combined with SF mode. Replace <VSv> with
13121 just 'v' since only vector operations are handled with these insns
13122 after moving the DF support to rs6000.md.
13123 (vsx_sub<mode>3): Likewise.
13124 (vsx_mul<mode>3): Likewise.
13125 (vsx_div<mode>3): Likewise.
13126 (vsx_fre<mode>2): Likewise.
13127 (vsx_neg<mode>2): Likewise.
13128 (vsx_abs<mode>2): Likewise.
13129 (vsx_nabs<mode>2): Likewise.
13130 (vsx_smax<mode>3): Likewise.
13131 (vsx_smin<mode>3): Likewise.
13132 (vsx_sqrt<mode>2): Likewise.
13133 (vsx_rsqrte<mode>2): Likewise.
13134 (vsx_fms<mode>4): Likewise.
13135 (vsx_nfma<mode>4): Likewise.
13136 (vsx_copysign<mode>3): Likewise.
13137 (vsx_btrunc<mode>2): Likewise.
13138 (vsx_floor<mode>2): Likewise.
13139 (vsx_ceil<mode>2): Likewise.
13140 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
13141 (vsx_sminsf3): Likewise.
13142 (vsx_fmadf4): Likewise.
13143 (vsx_fmsdf4): Likewise.
13144 (vsx_nfmadf4): Likewise.
13145 (vsx_nfmsdf4): Likewise.
13146 (vsx_cmpdf_internal1): Likewise.
13147
13148 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
13149 simpler to select whether a target has SPE or traditional floating
13150 point support in iterators.
13151 (TARGET_DF_SPE): Likewise.
13152 (TARGET_SF_FPR): Likewise.
13153 (TARGET_DF_FPR): Likewise.
13154 (TARGET_SF_INSN): Macros to say whether floating point support
13155 exists for a given operation for expanders.
13156 (TARGET_DF_INSN): Likewise.
13157
13158 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
13159 combining of SF/DF mode operations, using both traditional and VSX
13160 registers.
13161 (Fvsx): Likewise.
13162 (Ff): Likewise.
13163 (Fv): Likewise.
13164 (Fs): Likewise.
13165 (Ffre): Likewise.
13166 (FFRE): Likewise.
13167 (abs<mode>2): Combine SF/DF modes using traditional floating point
13168 instructions. Add support for using the upper DF registers with
13169 VSX support, and SF registers with power8-vector support. Update
13170 expanders for operations supported by both the SPE and traditional
13171 floating point units.
13172 (abs<mode>2_fpr): Likewise.
13173 (nabs<mode>2): Likewise.
13174 (nabs<mode>2_fpr): Likewise.
13175 (neg<mode>2): Likewise.
13176 (neg<mode>2_fpr): Likewise.
13177 (add<mode>3): Likewise.
13178 (add<mode>3_fpr): Likewise.
13179 (sub<mode>3): Likewise.
13180 (sub<mode>3_fpr): Likewise.
13181 (mul<mode>3): Likewise.
13182 (mul<mode>3_fpr): Likewise.
13183 (div<mode>3): Likewise.
13184 (div<mode>3_fpr): Likewise.
13185 (sqrt<mode>3): Likewise.
13186 (sqrt<mode>3_fpr): Likewise.
13187 (fre<Fs>): Likewise.
13188 (rsqrt<mode>2): Likewise.
13189 (cmp<mode>_fpr): Likewise.
13190 (smax<mode>3): Likewise.
13191 (smin<mode>3): Likewise.
13192 (smax<mode>3_vsx): Likewise.
13193 (smin<mode>3_vsx): Likewise.
13194 (negsf2): Delete SF operations that are merged with DF.
13195 (abssf2): Likewise.
13196 (addsf3): Likewise.
13197 (subsf3): Likewise.
13198 (mulsf3): Likewise.
13199 (divsf3): Likewise.
13200 (fres): Likewise.
13201 (fmasf4_fpr): Likewise.
13202 (fmssf4_fpr): Likewise.
13203 (nfmasf4_fpr): Likewise.
13204 (nfmssf4_fpr): Likewise.
13205 (sqrtsf2): Likewise.
13206 (rsqrtsf_internal1): Likewise.
13207 (smaxsf3): Likewise.
13208 (sminsf3): Likewise.
13209 (cmpsf_internal1): Likewise.
13210 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
13211 (negdf2): Delete DF operations that are merged with SF.
13212 (absdf2): Likewise.
13213 (nabsdf2): Likewise.
13214 (adddf3): Likewise.
13215 (subdf3): Likewise.
13216 (muldf3): Likewise.
13217 (divdf3): Likewise.
13218 (fred): Likewise.
13219 (rsqrtdf_internal1): Likewise.
13220 (fmadf4_fpr): Likewise.
13221 (fmsdf4_fpr): Likewise.
13222 (nfmadf4_fpr): Likewise.
13223 (nfmsdf4_fpr): Likewise.
13224 (sqrtdf2): Likewise.
13225 (smaxdf3): Likewise.
13226 (smindf3): Likewise.
13227 (cmpdf_internal1): Likewise.
13228 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
13229 (btrunc<mode>2): Delete separate expander, and combine with the
13230 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
13231 (btrunc<mode>2_fpr): Likewise.
13232 (ceil<mode>2): Likewise.
13233 (ceil<mode>2_fpr): Likewise.
13234 (floor<mode>2): Likewise.
13235 (floor<mode>2_fpr): Likewise.
13236 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
13237 Add support for using the upper registers with VSX and
13238 power8-vector. Move insns to be closer to the define_expands. On
13239 VSX systems, prefer the traditional form of FMA over the VSX
13240 version, since the traditional form allows the target not to
13241 overlap with the inputs.
13242 (fms<mode>4_fpr): Likewise.
13243 (nfma<mode>4_fpr): Likewise.
13244 (nfms<mode>4_fpr): Likewise.
13245
13246 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13247 Richard Earnshaw <richard.earnshaw@arm.com>
13248
13249 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
13250 (struct mult_cost_table): Likewise.
13251 (struct mem_cost_table): Likewise.
13252 (struct fp_cost_table): Likewise.
13253 (struct vector_cost_table): Likewise.
13254 (cpu_cost_table): Likewise.
13255 * config/arm/arm.opt (mold-rts-costs): New option.
13256 (mnew-generic-costs): Likewise.
13257 * config/arm/arm.c (generic_extra_costs): New table.
13258 (cortexa15_extra_costs): Likewise.
13259 (arm_slowmul_tune): Use NULL as new costs.
13260 (arm_fastmul_tune): Likewise.
13261 (arm_strongarm_tune): Likewise.
13262 (arm_xscale_tune): Likewise.
13263 (arm_9e_tune): Likewise.
13264 (arm_v6t2_tune): Likewise.
13265 (arm_cortex_a5_tune): Likewise.
13266 (arm_cortex_a9_tune): Likewise.
13267 (arm_v6m_tune): Likewise.
13268 (arm_fa726te_tune): Likewise.
13269 (arm_cortex_a15_tune): Use cortex15_extra_costs.
13270 (arm_cortex_tune): Use generict_extra_costs.
13271 (shifter_op_p): New function.
13272 (arm_unspec_cost): Likewise.
13273 (LIBCALL_COST): Define.
13274 (arm_new_rtx_costs): New function.
13275 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
13276 table is available. Use old costs otherwise unless mnew-generic-costs
13277 is specified.
13278 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
13279 (cpu_cost_table): Declare.
13280
13281 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
13282
13283 PR target/58460
13284 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
13285 (*subs_mul_imm_<mode>)
13286 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
13287 (*sub_<shift>_<mode>)
13288 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
13289 Remove k constraint.
13290
13291 2013-10-03 Ian Bolton <ian.bolton@arm.com>
13292
13293 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
13294 code.
13295 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
13296
13297 2013-10-02 Teresa Johnson <tejohnson@google.com>
13298
13299 * predict.c (probably_never_executed): New function.
13300 (probably_never_executed_bb_p): Invoke probably_never_executed.
13301 (probably_never_executed_edge_p): Ditto.
13302 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
13303 Treat profile insanities conservatively.
13304
13305 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
13306
13307 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
13308
13309 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
13310
13311 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
13312 use it. Use smaller increase for scratch. Don't increase reject
13313 for early clobber scratch.
13314 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
13315 setting eliminated regs except setting fp from hfp.
13316 (lra_eliminate): Check lra_insn_recog_data on NULL.
13317
13318 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13319
13320 PR target/58587
13321 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
13322 setting -mvsx-timode by default until the underlying problem is fixed.
13323 (RS6000_CPU, power7 defaults): Likewise.
13324
13325 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
13326
13327 * config/x-linux (host-linux.o): Remove header dependencies.
13328 Use $(COMPILE) and $(POSTCOMPILE).
13329 * config/t-linux-android (linux-android.o): Ditto.
13330
13331 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
13332
13333 * Makefile.in (expmed.o-warn): Remove.
13334
13335 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13336
13337 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
13338 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
13339
13340 2013-10-02 Teresa Johnson <tejohnson@google.com>
13341
13342 * dojump.c (do_jump_1): Divide probability between
13343 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
13344
13345 2013-10-02 Tom Tromey <tromey@redhat.com>
13346
13347 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
13348
13349 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13350
13351 * tree-flow.h: Remove some prototypes.
13352 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
13353 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
13354 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
13355 mark_virtual_phi_result_for_renaming): Relocate here.
13356 * tree-into-ssa.h: Add prototypes.
13357 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
13358 single_pred_before_succ_order.
13359 (blocks_in_phiopt_order): Rename and move to cfganal.c.
13360 (nonfreeing_call_p) Move to gimple.c.
13361 * cfganal.c (single_pred_before_succ_order): Move and renamed from
13362 tree-ssa-phiopt.c.
13363 * basic-block.h (single_pred_before_succ_order): Add prototype.
13364 * gimple.c (nonfreeing_call_p): Relocate here.
13365 * gimple.h: Add prototype.
13366 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
13367 * tree-ssa-dom.h: New file. Relocate prototypes here.
13368 * tree-ssa.h: Include tree-ssa-dom.h.
13369
13370 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
13371
13372 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
13373 Use $(COMPILE) and $(POSTCOMPILE).
13374
13375 * config/alpha/x-alpha (driver-alpha.o): Ditto.
13376
13377 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13378
13379 * tree-flow.h: Remove some prototypes.
13380 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
13381 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
13382 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
13383 propagate_tree_value*): Move from here to...
13384 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
13385 propagate_tree_value*): Relocate here.
13386 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
13387 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
13388 * gimple-fold.c: Remove gimple-fold.h from include list.
13389 * tree-vrp.c: Remove gimple-fold.h from include list.
13390 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
13391 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
13392 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
13393 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
13394 * sese.c: Add tree-ssa-propagate.h to include list.
13395
13396 2013-10-02 Richard Biener <rguenther@suse.de>
13397
13398 * tree-loop-distribution.c: Include tree-vectorizer.h for
13399 find_loop_location.
13400 (enum partition_kind): Remove PKIND_REDUCTION.
13401 (struct partition_s): Remove has_writes member, add reduction_p member.
13402 (partition_alloc): Adjust.
13403 (partition_builtin_p): Likewise.
13404 (partition_has_writes): Remove.
13405 (partition_reduction_p): New function.
13406 (partition_merge_into): Likewise.
13407 (generate_code_for_partition): Commonize builtin partition
13408 handling tail.
13409 (rdg_cannot_recompute_vertex_p): Remove.
13410 (already_processed_vertex_p): Likewise.
13411 (rdg_flag_vertex): Do not set has_writes.
13412 (classify_partition): Adjust.
13413 (rdg_build_partitions): Do not set has_writes, treat all
13414 partitions as useful.
13415 (distribute_loop): Record number of library calls generated. Adjust.
13416 (tree_loop_distribution): Report number of loops and library
13417 calls generated as opt-info.
13418
13419 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13420
13421 * tree-flow.h: Include new .h files. Move prototypes.
13422 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
13423 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
13424 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
13425 * tree-pretty-print.h: Add prototypes from tree-flow.h.
13426 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
13427 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
13428 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
13429 * tree.h (get_ref_base_and_extent): Move prototype out.
13430 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
13431 tree-dfa.h.
13432 * gimple-low.h: New File. Add prototypes from tree-flow.h.
13433 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
13434 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
13435 * tree-scalar-evolution.c: Include tree.h.
13436 * sese.c: Include tree.h.
13437 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
13438 * dwarf2out.c: Include tree-dfa.h.
13439 * tree-chrec.c: Include tree.h.
13440 * tree-data-ref.c: Include tree.h.
13441
13442 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
13443
13444 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
13445 Fix whitespace.
13446
13447 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13448
13449 * config/t-sol2 (sol2-c.o): Remove header dependencies.
13450 Use $(COMPILE) and $(POSTCOMPILE).
13451 (sol2-cxx.o): Likewise.
13452 (sol2-stubs.o): Likewise.
13453 (sol2.o): Likewise.
13454 * config/x-solaris (host-solaris.o): Likewise.
13455
13456 * config/sparc/t-sparc (sparc.o): Remove.
13457 (sparc-c.o): Remove header dependencies.
13458 Use $(COMPILE) and $(POSTCOMPILE).
13459 * config/sparc/x-sparc: Likewise.
13460
13461 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
13462
13463 * config/arc/arc-opts.h: Add 2013 to Copyright years.
13464 * config/arc/arc700.md: Likewise.
13465 * config/arc/arc-modes.def: Likewise.
13466 * config/arc/arc-simd.h: Likewise.
13467 * config/arc/t-arc-uClibc: Likewise.
13468 * config/arc/t-arc-newlib: Likewise.
13469
13470 2013-10-02 Renlin Li <renlin.li@arm.com>
13471
13472 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13473 plus_constant.
13474 (aarch64_expand_epilogue): Likewise.
13475
13476 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13477 Yufeng Zhang <yufeng.zhang@arm.com>
13478
13479 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
13480 declaration.
13481 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
13482 'base_in' represent a conversion and legal_cast_p_1 holds; set
13483 'base_in' with the returned value from get_unwidened.
13484
13485 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13486
13487 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
13488 plus_constant is not used.
13489
13490 2013-10-01 Wei Mi <wmi@google.com>
13491
13492 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
13493 * config/i386/i386.md: Add define_peephole2 to
13494 break partial reg stall for cvtss2sd/cvtsd2ss.
13495
13496 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13497
13498 * config/arc/arc.c (pass_arc_ifcvt::clone):
13499 Update for ctxt_ -> m_ctxt change.
13500
13501 2013-10-01 Jeff Law <law@redhat.com>
13502
13503 * tree-ssa-threadupdate.c (struct redirection_data): Delete
13504 outgoing_edge and intermediate_edge fields. Instead store the path.
13505 (redirection_data::hash): Hash on the last edge's destination index.
13506 (redirection_data::equal): Check the entire thread path.
13507 (lookup_redirectio_data): Corresponding changes.
13508 (create_edge_and_update_destination_phis): Likewise.
13509 (thread_single_edge): Likewise.
13510
13511 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13512 Diego Novillo <dnovillo@google.com>
13513
13514 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
13515 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
13516 (vld32wh_insn, vld32wl_insn): Delete commented-out old
13517 versions of these patterns.
13518
13519 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
13520 (__builtin_arc_aligned): Likewise.
13521
13522 * config/arc/arc.md: Expand adc_0 comment stating the intended
13523 purpose and why it isn't ready.
13524 Replace commented out call_value_via_label_mixed with a
13525 plain comment about bl_s.
13526
13527 * config/arc/arc.c (stdio.h): Don't include directly.
13528 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
13529 Remove if (1) condition.
13530 (arc_encode_section_info): Fix comment.
13531
13532 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13533
13534 * config/arc/arc.c (arc_conditional_register_usage):
13535 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
13536 Also set reg_alloc_order for DMA config regs.
13537
13538 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13539 Jeremy Bennett <jeremy.bennett@embecosm.com>
13540
13541 * doc/install.texi (--with-cpu): Mention ARC.
13542 (arc-*-elf32): New paragraph.
13543 (arc-linux-uclibc): Likewise.
13544 * doc/md.texi (Machine Constraints): Add ARC part.
13545 * doc/invoke.texi: (menu): Add ARC Options.
13546 (Machine Dependent Options) <ARC Options>: Add synopsis.
13547 (node ARC Options): Add.
13548 * doc/extend.texi (long_call / short_call attribute): Add ARC.
13549 (ARC Built-in Functions): New section defining
13550 generic ARC built-in functions.
13551 (ARC SIMD Built-in Functions): New section defining SIMD specific
13552 built-in functions.
13553 (Declaring Attributes of Functions): Extended
13554 description of short_call and long_call attributes for ARC and
13555 added index entries.
13556
13557 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
13558 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
13559 Joern Rennecke <joern.rennecke@embecosm.com>
13560 Muhammad Khurram Riaz <khurram.riaz@arc.com>
13561 Brendan Kehoe <brendan@zen.org>
13562 Michael Eager <eager@eagercon.com>
13563 Simon Cook <simon.cook@embecosm.com>
13564 Jeremy Bennett <jeremy.bennett@embecosm.com>
13565
13566 * config/arc, common/config/arc: New directories.
13567
13568 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13569 Brendan Kehoe <brendan@zen.org>
13570 Simon Cook <simon.cook@embecosm.com>
13571
13572 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
13573
13574 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
13575
13576 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
13577 * tree-ssa-coalesce.h: New. Move prototype to here.
13578 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
13579 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
13580 (gimple_can_coalesce_p): Move to...
13581 * gimple.c (gimple_can_coalesce_p): Here.
13582
13583 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
13584
13585 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
13586 (dump_decl_set): Move to gimple.c.
13587 * gimple.h: Don't include tree-ssa-operands.h.
13588 (dump_decl_set): Add prototype.
13589 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13590 Move to gimple-ssa.h.
13591 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
13592 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
13593 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
13594 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
13595 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
13596 than PHI_ARG_DEF.
13597 (dump_decl_set): Relocate here.
13598 * gimple-ssa.h: New file.
13599 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13600 Relocate from gimple.h.
13601 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
13602 * tree-ssa-operands.c (swap_ssa_operands): Rename from
13603 swap_tree_operands and remove non-ssa path.
13604 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
13605 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
13606 swap_ssa_operands.
13607 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
13608 vect_is_simple_reduction_1): Use swap_ssa_operands.
13609 * tree-flow.h: Move various prototypes to tree-phinodes.h.
13610 (enum need_phi_state): Move to tree-into-ssa.c.
13611 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13612 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
13613 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
13614 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
13615 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13616 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13617 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13618 num_imm_uses): Move to ssa-iterators.h.
13619 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
13620 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
13621 tree-phinodes.h.
13622 (op_iter_done, op_iter_next_def, op_iter_next_tree,
13623 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
13624 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
13625 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
13626 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
13627 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
13628 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
13629 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
13630 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
13631 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
13632 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
13633 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
13634 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
13635 (set_phi_nodes): Move to tree-phinodes.h.
13636 * tree-ssa-operands.h (enum ssa_op_iter_type,
13637 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
13638 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
13639 (dump_decl_set): Remove prototype.
13640 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
13641 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
13642 (set_phi_nodes): Relocate from tree-flow-inline.h.
13643 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
13644 tree-flow-inline.h
13645 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
13646 include list. Temporarily add gimple.h to include list.
13647 * ssa-iterators.h: New file.
13648 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13649 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
13650 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
13651 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
13652 Relocate from tree-ssa-operands.h.
13653 (delink_imm_use, link_imm_use_to_list, link_imm_use,
13654 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13655 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13656 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13657 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
13658 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
13659 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
13660 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
13661 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
13662 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
13663 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
13664 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
13665 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
13666 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
13667 Relocate from tree-flow-inline.h.
13668 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
13669
13670 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
13671
13672 * aarch64-simd.md
13673 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
13674 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
13675 Insert '\t' to output template.
13676 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
13677 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
13678 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
13679 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
13680
13681 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
13682
13683 * doc/install.texi (Host/target specific installation notes for GCC):
13684 Put @anchor before @heading.
13685 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
13686 Use @email for email addresses.
13687
13688 2013-10-01 Jeff Law <law@redhat.com>
13689
13690 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
13691 a vec. Only delete the path if we create one without successfully
13692 registering a jump thread.
13693 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
13694 as a pointer.
13695 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
13696 (paths): New vector of jump threading paths.
13697 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
13698 (THREAD_PATH): New accessor macro for the entire thread path.
13699 (lookup_redirection_data): Get intermediate and final outgoing edge
13700 from the thread path.
13701 (create_edge_and_update_destination_phis): Copy the threading path.
13702 (ssa_fix_duplicate_block_edges): Get edges and block types from the
13703 jump threading path.
13704 (ssa_redirect_edges): Get edges and block types from the jump threading
13705 path. Free the path vector.
13706 (thread_block): Get edges from the jump threading path. Look at the
13707 entire path to see if we thread to a loop exit. If we cancel a jump
13708 thread request, then free the path vector.
13709 (thread_single_edge): Get edges and block types from the jump threading
13710 path. Free the path vector.
13711 (thread_through_loop_header): Get edges and block types from the jump
13712 threading path. Free the path vector.
13713 (mark_threaded_blocks): Iterate over the vector of paths and store
13714 the path on the appropriate edge. Get edges and block types from the
13715 jump threading path.
13716 (mark_threaded_blocks): Get edges and block types from the jump
13717 threading path. Free the path vector.
13718 (thread_through_all_blocks): Use the vector of paths rather than
13719 a vector of 3-edge sets.
13720 (register_jump_thread): Accept pointer to a path vector rather
13721 than the path vector itself. Store the path vector for later use.
13722 Simplify.
13723
13724 2013-10-01 Jakub Jelinek <jakub@redhat.com>
13725 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13726
13727 PR target/58574
13728 * config/s390/s390.c (s390_split_branches): Modify check for table
13729 jump insns.
13730 (s390_chunkify_start): Rearrange table jump insn check in order to
13731 deal with compare and branch insns correctly.
13732
13733 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
13734
13735 PR target/58578
13736 Revert
13737 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
13738 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
13739 define_insn_and_split.
13740 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
13741 (shiftsi3_compare): New pattern.
13742 (rrx): New pattern.
13743 * config/arm/unspecs.md (UNSPEC_RRX): New.
13744
13745 2013-10-01 Alan Modra <amodra@gmail.com>
13746
13747 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
13748 casing inout operands.
13749
13750 2013-10-01 Richard Biener <rguenther@suse.de>
13751
13752 PR tree-optimization/58553
13753 * tree-loop-distribution.c (struct partition_s): Add niter member.
13754 (classify_partition): Populate niter member for the partition
13755 and properly identify whether the relevant store happens before
13756 or after the loop exit.
13757 (generate_memset_builtin): Use niter member from the partition.
13758 (generate_memcpy_builtin): Likewise.
13759
13760 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13761
13762 * vec.h (vec_prefix, vec): Prefix member names with "m_".
13763 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
13764
13765 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13766
13767 * basic-block.h (edge_list): Prefix member names with "m_".
13768 * context.h (context): Likewise.
13769 * domwalk.h (dom_walker): Likewise.
13770 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
13771 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
13772 * hash-table.h (hash_table): Likewise.
13773 * machmode.h (bit_field_mode_iterator): Likewise.
13774 * pass_manager.h (pass_list): Likewise.
13775 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
13776 * tree-pass.h (pass_data): Likewise.
13777 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
13778 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
13779 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
13780 * asan.c (pass_data_asan): Update accordingly.
13781 * cfganal.c (control_dependences::find_control_dependence): Likewise.
13782 (control_dependences::control_dependences): Likewise.
13783 (control_dependences::~control_dependences): Likewise.
13784 (control_dependences::~control_dependences): Likewise.
13785 (control_dependences::get_edges_dependent_on): Likewise.
13786 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
13787 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
13788 * context.c (gcc::context::context): Likewise.
13789 * cprop.c (pass_rtl_cprop::clone): Likewise.
13790 * domwalk.c (dom_walker::walk): Likewise.
13791 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
13792 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
13793 * mode-switching.c (pass_mode_switching::clone): Likewise.
13794 * passes.c (opt_pass::opt_pass): Likewise.
13795 (pass_manager::pass_manager): Likewise.
13796 * predict.c (pass_strip_predict_hints::clone): Likewise.
13797 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
13798 (pass_split_all_insns::clone): Likewise.
13799 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
13800 Likewise.
13801 (bit_field_mode_iterator::next_mode): Likewise.
13802 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
13803 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
13804 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
13805 * tree-complex.c (pass_lower_complex::clone): Likewise.
13806 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
13807 * tree-object-size.c (pass_object_sizes::clone): Likewise.
13808 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
13809 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
13810 (pass_fold_builtins::clone): Likewise.
13811 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
13812 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
13813 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
13814 (pass_cd_dce::clone): Likewise.
13815 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
13816 (pass_phi_only_cprop::clone): Likewise.
13817 * tree-ssa-dse.c (pass_dse::clone): Likewise.
13818 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
13819 * tree-ssa-loop.c (pass_lim::clone): Likewise.
13820 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
13821 * tree-ssa-pre.c (pass_fre::clone): Likewise.
13822 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
13823 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
13824 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
13825 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
13826 * tree-vrp.c (pass_vrp::clone): Likewise.
13827 * tsan.c (pass_tsan::clone): Likewise.
13828
13829 2013-09-30 Jakub Jelinek <jakub@redhat.com>
13830
13831 PR middle-end/58564
13832 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
13833 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
13834
13835 PR middle-end/58564
13836 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
13837 optimization, punt if sign_bit_p looked through any zero extension.
13838
13839 2013-09-30 Teresa Johnson <tejohnson@google.com>
13840
13841 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
13842 Update redirected out edge count in joiner case.
13843 (ssa_redirect_edges): Common the joiner and non-joiner cases
13844 so that joiner case gets profile updates.
13845
13846 2013-09-30 Richard Biener <rguenther@suse.de>
13847
13848 PR tree-optimization/58554
13849 * tree-loop-distribution.c (classify_partition): Require
13850 unconditionally executed stores for memcpy and memset recognition.
13851 (tree_loop_distribution): Calculate dominance info.
13852
13853 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
13854
13855 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
13856 (NO_PROFILE_COUNTERS): Likewise.
13857 (PROFILE_HOOK): Likewise.
13858 (FUNCTION_PROFILER): Likewise.
13859 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
13860
13861 2013-09-30 Iain Sandoe <iain@codesourcery.com>
13862
13863 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
13864 calls and defines in TARGET_MACHO conditional.
13865 (load_macho_picbase_di): Likewise.
13866 (reload_macho_picbase): Likewise.
13867 (reload_macho_picbase_si): Likewise.
13868 (reload_macho_picbase_di): Likewise.
13869 (nonlocal_goto_receiver): Likewise.
13870
13871 2013-09-30 Nick Clifton <nickc@redhat.com>
13872
13873 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
13874 that use the MSP430X ISA.
13875 (msp430_option_override): Scan -mmcu command line option for any
13876 MCU name that supports the MSP430X ISA.
13877 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
13878 -mmcu options which enable the MSP430X ISA.
13879
13880 2013-09-30 Richard Biener <rguenther@suse.de>
13881
13882 PR middle-end/58532
13883 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
13884 before looking for setjmp-like calls.
13885
13886 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13887
13888 PR target/10901
13889 * config/darwin-protos.h (machopic_get_function_picbase): New.
13890 * config/darwin.c (machopic_get_function_picbase): New.
13891 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
13892 label for a new func. (load_macho_picbase_di): Likewise.
13893 (reload_macho_picbase): New expand.
13894 (reload_macho_picbase_si): New insn.
13895 (reload_macho_picbase_di): New insn.
13896 (nonlocal_goto_receiver): New define and split.
13897 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
13898 (unspecv enum): Add UNSPECV_NLGR.
13899
13900 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13901
13902 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
13903 that altivec registers are correctly sized on Darwin.
13904
13905 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13906
13907 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
13908 darwin-driver.o): Use COMPILE and POSTCOMPILE.
13909 * config/x-darwin (host-darwin.o): Likewise.
13910 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13911 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13912 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13913
13914 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
13915
13916 * doc/invoke.texi: Fix usage of @tie{} command.
13917
13918 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
13919
13920 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13921
13922 2013-09-28 Jan Hubicka <jh@suse.cz>
13923
13924 * config/i386/x86-tune.def: Add documentation for each of the options;
13925 add whitespace.
13926
13927 2013-09-28 Jan Hubicka <jh@suse.cz>
13928
13929 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13930 generic.
13931 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13932 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13933 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13934 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13935 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13936
13937 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
13938
13939 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13940 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13941 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13942 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13943 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13944 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13945 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13946 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13947 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13948 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13949 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13950 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13951 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13952 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13953 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13954 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13955 gimple.h, godump.c, graphite-clast-to-gimple.c,
13956 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13957 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13958 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13959 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13960 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13961 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13962 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13963 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13964 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13965 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13966 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13967 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13968 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13969 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13970 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13971 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13972 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13973 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13974 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13975 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13976 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13977 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13978 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13979 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13980 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13981 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13982 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13983 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13984 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13985 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13986 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13987 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13988 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13989 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13990 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13991 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13992 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13993 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13994 whitespace before "(".
13995
13996 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
13997
13998 * expr.h (extract_bit_field): Remove packedp parameter.
13999 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
14000 from forward declaration.
14001 (store_split_bit_field): Remove packedp arg from calls to
14002 extract_fixed_bit_field.
14003 (extract_bit_field_1): Remove packedp parameter and packedp
14004 argument from recursive calls and calls to extract_fixed_bit_field.
14005 (extract_bit_field): Remove packedp parameter and corresponding
14006 arg to extract_bit_field_1.
14007 (extract_fixed_bit_field): Remove packedp parameter. Remove code
14008 to issue warnings.
14009 (extract_split_bit_field): Remove packedp arg from call to
14010 extract_fixed_bit_field.
14011 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
14012 (copy_blkmode_from_reg): Likewise.
14013 (copy_blkmode_to_reg): Likewise.
14014 (read_complex_part): Likewise.
14015 (store_field): Likewise.
14016 (expand_expr_real_1): Likewise.
14017 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
14018 to extract_bit_field.
14019 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
14020 call to extract_bit_field.
14021 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
14022 call to extract_bit_field.
14023 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
14024 and special packedp behavior from -fstrict-volatile-bitfields
14025 documentation.
14026
14027 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14028
14029 * lra-eliminations.c (init_elim_table): Guard value_p.
14030
14031 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
14032
14033 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
14034 DFmode, DImode, and SFmode in the upper VSX registers based on the
14035 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
14036 if -mpower8-vector. Combine -mvsx-timode handling with the rest
14037 of the VSX register handling.
14038
14039 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
14040 (f32_sv): Likewise.
14041 (zero_extendsidi2_lfiwzx): Add support for loading into the
14042 Altivec registers with -mpower8-vector. Use wu/wv constraints to
14043 only do VSX memory options on Altivec registers.
14044 (extendsidi2_lfiwax): Likewise.
14045 (extendsfdf2_fpr): Likewise.
14046 (mov<mode>_hardfloat, SF/SD modes): Likewise.
14047 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
14048 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
14049 (movdi_internal64): Likewise.
14050
14051 2013-09-27 Xinliang David Li <davidxl@google.com>
14052
14053 * opts.c (finish_options): Adjust parameters
14054 according to vect cost model.
14055 (common_handle_option): Set dynamic vect cost
14056 model for FDO.
14057 targhooks.c (default_add_stmt_cost): Compute stmt cost
14058 unconditionally.
14059 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
14060 Use helper function.
14061 * tree-vectorizer.h (unlimited_cost_model): New function.
14062 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
14063 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
14064 function.
14065 (vect_enhance_data_refs_alignment): Ditto.
14066 * flag-types.h: New enum.
14067 * common/config/i386/i386-common.c (ix86_option_init_struct):
14068 No need to initialize vect_cost_model flag.
14069 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
14070 unconditionally.
14071
14072 2013-09-27 Diego Novillo <dnovillo@google.com>
14073
14074 * gimple.h (enum ssa_mode): Remove.
14075
14076 2013-09-27 Paulo Matos <pmatos@broadcom.com>
14077
14078 * cfgloop.h (number_of_loops): Fix typo in check for null.
14079
14080 2013-09-27 Jakub Jelinek <jakub@redhat.com>
14081
14082 PR middle-end/58551
14083 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
14084 are children of outermost saved_cfun's loop, and set it up to
14085 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
14086 if loop != loop0 and SESE region contains bbs that belong to loop0.
14087
14088 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
14089
14090 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
14091 (binary_scale_code_p, get_base_term, get_index_term): New functions.
14092 (set_address_segment, set_address_base, set_address_index)
14093 (set_address_disp): Accept the argument unconditionally.
14094 (baseness): Remove must_be_base_p and must_be_index_p checks.
14095 (decompose_normal_address): Classify as much as possible in the
14096 main loop.
14097
14098 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
14099
14100 * cse.c (count_reg_usage): Handle INT_LIST.
14101 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
14102 * reginfo.c (reg_scan_mark_refs): Likewise.
14103 * reload1.c (eliminate_regs_1): Likewise.
14104
14105 2013-09-27 Iain Sandoe <iain@codesourcery.com>
14106
14107 PR middle-end/58547
14108 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
14109 signed.
14110
14111 2013-09-27 Richard Biener <rguenther@suse.de>
14112
14113 PR tree-optimization/58459
14114 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
14115 restriction not propagating into loops.
14116
14117 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
14118
14119 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
14120 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
14121 * doc/tree-ssa.texi (Walking use-def chains): Delete.
14122
14123 2013-09-26 Richard Biener <rguenther@suse.de>
14124
14125 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
14126
14127 2013-09-26 Richard Biener <rguenther@suse.de>
14128
14129 * alias.h (component_uses_parent_alias_set): Rename to ...
14130 (component_uses_parent_alias_set_from): ... this.
14131 * alias.c (component_uses_parent_alias_set): Rename to ...
14132 (component_uses_parent_alias_set_from): ... this and return
14133 the desired parent.
14134 (reference_alias_ptr_type_1): Use the result from
14135 component_uses_parent_alias_set_from instead of stripping
14136 components one at a time.
14137 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
14138
14139 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
14140
14141 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
14142 Move prototypes to...
14143 * tree-ssa-ter.h: New File. Move prototypes here.
14144 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
14145 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
14146 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
14147 from is_replaceable_p.
14148 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
14149 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
14150 (process_replaceable): Use ter_is_replaceable_p.
14151 (find_replaceable_in_bb): Use ter_is_replaceable_p.
14152 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
14153 newly refactored ssa_is_replaceable_p.
14154 * cfgexpand.c: Include tree-outof-ssa.h.
14155 * ssaexpand.h: Delete.
14156
14157 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
14158
14159 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
14160 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
14161 tree-ssa.c
14162 (create_gimple_tmp): Delete.
14163 (get_expr_type, build_assign, build_type_cast): Move to...
14164 * gimple-builder.c: New File.
14165 (get_expr_type): Relocate from gimple.c.
14166 (build_assign, build_type_cast): Change to only create ssanames.
14167 * gimple.h: Move prototypes to...
14168 * gimple-builder.h: New File. Here.
14169 * tree-ssa.h: And here.
14170 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
14171 count_uses_and_derefs): Relocate from gimple.c.
14172 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
14173 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
14174 * tree-ssa-math-opts (execute_cse_reciprocals): Use
14175 gimple_replace_ssa_lhs.
14176 * asan.c: Include gimple-builder.h.
14177 * Makefile.in: Add gimple-builder.o.
14178
14179 2013-09-26 Richard Biener <rguenther@suse.de>
14180
14181 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
14182 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
14183 (loe_visit_block): Use gcc_checking_assert.
14184 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
14185 gimple_assign_ssa_name_copy_p.
14186 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
14187 change.
14188
14189 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
14190
14191 * config/rs6000/t-rs6000 (rs6000.o): Remove.
14192 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
14193
14194 2013-09-26 Richard Biener <rguenther@suse.de>
14195
14196 PR tree-optimization/58539
14197 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
14198 the fact that debug statements are not taking part in loop-closed
14199 SSA construction.
14200
14201 2013-09-26 Nick Clifton <nickc@redhat.com>
14202
14203 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
14204 time warning message.
14205 (msp430_print_operand_raw): Delete unused letter parameter.
14206 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14207 (msp430_print_operand_address): New function.
14208 (msp430_print_operand): Move address printing code from here to
14209 new function.
14210 * config/msp430/msp430.md (movsipsi2): Add comment in generated
14211 assembler.
14212 (zero_extendpsisi2): Likewise.
14213 (extendpsisi2): New pattern.
14214 (andneghi3): New pattern.
14215
14216 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
14217
14218 * config/aarch64/aarch64.opt (mlra): New option.
14219 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
14220 (TARGET_LRA_P): Define.
14221
14222 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
14223
14224 * expr.c (expand_assignment): Remove obsolete comment.
14225
14226 2013-09-25 Jeff Law <law@redhat.com>
14227
14228 * tree-flow.h (thread_through_all_blocks): Prototype moved into
14229 tree-ssa-threadupdate.h.
14230 (register_jump_thread): Similarly.
14231 * tree-ssa-threadupdate.h: New header file.
14232 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
14233 * tree-vrp.c: Likewise.
14234 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
14235 (thread_around_empty_blocks): Change type of path vector argument to
14236 an edge,type pair from just an edge. Initialize both elements when
14237 appending to a jump threading path. Tweak references to elements
14238 appropriately.
14239 (thread_across_edge): Similarly. Release memory for the elements
14240 as needed.
14241 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
14242 (dump_jump_thread_path): New function broken out from
14243 register_jump_thread.
14244 (register_jump_thread): Use dump_jump_thread_path. Change type of
14245 path vector entries. Search the path for NULL edges and dump
14246 the path if one is found. Tweak the conversion of path to 3-edge
14247 form to use the block copy type information embedded in the path.
14248
14249 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
14250
14251 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
14252
14253 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
14254 Vladimir Makarov <vmakarov@redhat.com>
14255
14256 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
14257 from the least significant bit.
14258 (strip_address_mutations): Add bitfield operations handling.
14259 (must_be_index_p): Add shifting and rotate operations handling.
14260 (set_address_base): Use must_be_base_p predicate.
14261 (set_address_index): Use must_be_index_p predicate.
14262
14263 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
14264 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14265 Sergey Lega <sergey.s.lega@intel.com>
14266 Anna Tikhonova <anna.tikhonova@intel.com>
14267 Ilya Tocar <ilya.tocar@intel.com>
14268 Andrey Turetskiy <andrey.turetskiy@intel.com>
14269 Ilya Verbin <ilya.verbin@intel.com>
14270 Kirill Yukhin <kirill.yukhin@intel.com>
14271 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14272
14273 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
14274 Use new names.
14275 (ix86_expand_vector_move_misalign): Support new unaligned load and
14276 stores and use new names.
14277 (CODE_FOR_sse2_storedqu): Rename to ...
14278 (CODE_FOR_sse2_storedquv16qi): ... this.
14279 (CODE_FOR_sse2_loaddqu): Rename to ...
14280 (CODE_FOR_sse2_loaddquv16qi): ... this.
14281 (CODE_FOR_avx_loaddqu256): Rename to ...
14282 (CODE_FOR_avx_loaddquv32qi): ... this.
14283 (CODE_FOR_avx_storedqu256): Rename to ...
14284 (CODE_FOR_avx_storedquv32qi): ... this.
14285 * config/i386/i386.md (fpint_logic): New.
14286 * config/i386/sse.md (VMOVE): Extend for AVX512.
14287 (VF): Ditto.
14288 (VF_128_256): New.
14289 (VF_512): Ditto.
14290 (VI_UNALIGNED_LOADSTORE): Ditto.
14291 (sse2_avx_avx512f): Ditto.
14292 (sse2_avx2): Extend for AVX512.
14293 (sse4_1_avx2): Ditto.
14294 (avx2_avx512f): New.
14295 (sse): Extend for AVX512.
14296 (sse2): Ditto.
14297 (sse4_1): Ditto.
14298 (avxsizesuffix): Ditto.
14299 (sseintvecmode): Ditto.
14300 (ssePSmode): Ditto.
14301 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
14302 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
14303 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
14304 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
14305 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
14306 (<sse2_avx_avx512f>_storedqu<mode): ... this.
14307 (<sse>_movnt<mode>): Replace constraint "x" with "v".
14308 (STORENT_MODE): Extend for AVX512.
14309 (*absneg<mode>2): Replace constraint "x" with "v".
14310 (*mul<mode>3): Ditto.
14311 (*ieee_smin<mode>3): Ditto.
14312 (*ieee_smax<mode>3): Ditto.
14313 (avx_cmp<mode>3): Replace VF with VF_128_256.
14314 (*<sse>_maskcmp<mode>3_comm): Ditto.
14315 (<sse>_maskcmp<mode>3): Ditto.
14316 (<sse>_andnot<mode>3): Extend for AVX512.
14317 (<code><mode>3, anylogic): Replace VF with VF_128_256.
14318 (<code><mode>3, fpint_logic): New.
14319 (*<code><mode>3): Extend for AVX512.
14320 (avx512flogicsuff): New.
14321 (avx512f_<logic><mode>): Ditto.
14322 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
14323 VF_128_256.
14324 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
14325 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
14326 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
14327 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
14328 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
14329 (xop_vpermil2<mode>3): Ditto.
14330 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
14331 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
14332 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
14333 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
14334
14335 2013-09-25 Tom Tromey <tromey@redhat.com>
14336
14337 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
14338 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
14339 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
14340 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
14341 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
14342 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
14343 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
14344 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
14345 (GRAPHITE_HTAB_H): Remove.
14346
14347 2013-09-25 Tom Tromey <tromey@redhat.com>
14348
14349 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
14350
14351 2013-09-25 Tom Tromey <tromey@redhat.com>
14352
14353 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
14354
14355 2013-09-25 Tom Tromey <tromey@redhat.com>
14356
14357 * config/i386/t-i386 (i386.o): Remove.
14358 (i386-c.o): Use COMPILE and POSTCOMPILE.
14359
14360 2013-09-25 Tom Tromey <tromey@redhat.com>
14361
14362 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
14363
14364 2013-09-25 Tom Tromey <tromey@redhat.com>
14365
14366 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
14367 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
14368 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
14369 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
14370 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
14371 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
14372 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
14373 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
14374 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
14375 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
14376 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
14377 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
14378 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
14379 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
14380 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
14381 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
14382 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
14383 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
14384 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
14385 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
14386 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
14387 (tree-ssa-pre.o, tree-ssa-sccvn.o)
14388 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
14389 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
14390 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
14391 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
14392 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
14393 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
14394 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
14395 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
14396 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
14397 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
14398 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
14399 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
14400 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
14401 (graphite-clast-to-gimple.o, graphite-dependences.o)
14402 (graphite-interchange.o, graphite-poly.o)
14403 (graphite-scop-detection.o, graphite-sese-to-poly.o)
14404 (graphite-optimize-isl.o, tree-vect-loop.o)
14405 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
14406 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
14407 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
14408 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
14409 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
14410 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
14411 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
14412 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
14413 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
14414 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
14415 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
14416 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
14417 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
14418 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
14419 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
14420 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
14421 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
14422 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
14423 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
14424 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
14425 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
14426 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
14427 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
14428 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
14429 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
14430 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
14431 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
14432 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
14433 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
14434 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
14435 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
14436 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
14437 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
14438 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
14439 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
14440 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
14441 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
14442 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
14443 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
14444 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
14445 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
14446 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
14447 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
14448 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
14449 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
14450 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
14451 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
14452 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
14453 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
14454 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
14455 (gcov-dump.o): Remove.
14456 (default-c.o): Use COMPILE and POSTCOMPILE.
14457 (CFLAGS-gcc.o): New variable.
14458 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
14459
14460 2013-09-25 Tom Tromey <tromey@redhat.com>
14461
14462 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
14463 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
14464 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
14465 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
14466 (c-family/c-pragma.o, c-family/c-pretty-print.o)
14467 (c-family/c-semantics.o, c-family/c-ada-spec.o)
14468 (c-family/array-notation-common.o, c-family/stub-objc.o)
14469 (c-family/c-ubsan.o): Remove.
14470
14471 2013-09-25 Tom Tromey <tromey@redhat.com>
14472
14473 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
14474
14475 2013-09-25 Tom Tromey <tromey@redhat.com>
14476
14477 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
14478 to add -DENABLE_SHARED_LIBGCC.
14479 (gcc.o): Don't use subshell.
14480
14481 2013-09-25 Tom Tromey <tromey@redhat.com>
14482
14483 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
14484 * configure.ac: Don't invoke AM_PROG_CC_C_O.
14485 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
14486 * configure, config.in: Rebuild.
14487
14488 2013-09-25 Tom Tromey <tromey@redhat.com>
14489
14490 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
14491 (COMPILE, POSTCOMPILE): New variables.
14492 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
14493 (DEPFILES): New variable.
14494 Include ".Po" files.
14495 * configure.ac: Add checks for dependency checking.
14496 * configure, aclocal.m4: Regenerate.
14497
14498 2013-09-25 Tom Tromey <tromey@redhat.com>
14499
14500 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
14501 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
14502
14503 2013-09-25 Tom Tromey <tromey@redhat.com>
14504
14505 * Makefile.in (generated_files): Add options.h,
14506 target-hooks-def.h, insn-opinit.h,
14507 common/common-target-hooks-def.h, pass-instances.def,
14508 c-family/c-target-hooks-def.h.
14509
14510 2013-09-25 Jeff Law <law@redhat.com>
14511
14512 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
14513 than foo[foo.length () - 1] to access last member in a vec.
14514 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
14515
14516 2013-09-25 Richard Biener <rguenther@suse.de>
14517
14518 PR middle-end/58521
14519 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
14520
14521 2013-09-25 Jan Hubicka <jh@suse.cz>
14522
14523 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
14524 test.
14525
14526 2013-09-25 Marek Polacek <polacek@redhat.com>
14527
14528 PR sanitizer/58420
14529 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
14530 when determining the type name.
14531
14532 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
14533
14534 * config/sh/sh.md: Fix formatting.
14535
14536 2013-09-24 Xinliang David Li <davidxl@google.com>
14537
14538 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
14539 max peel iterations parameter.
14540 * param.def: New parameter.
14541 * doc/invoke.texi: Document New parameter.
14542
14543 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
14544
14545 * gimple-pretty-print.c: Various whitespace tweaks.
14546 * tree-core.h: Likewise.
14547 * tree-pretty-print.c: Likewise.
14548 * tree-ssa-alias.c: Likewise.
14549 * tree-ssa-copy.c: Likewise.
14550 * tree-ssanames.c: Likewise.
14551 * tree-ssanames.h: Likewise.
14552 * tree-vrp.c: Likewise.
14553
14554 2013-09-24 Alan Modra <amodra@gmail.com>
14555
14556 PR middle-end/57134
14557 PR middle-end/57586
14558 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
14559 for output operands that disallow regs. Don't use EXPAND_WRITE on
14560 inout operands.
14561
14562 2013-09-24 Richard Biener <rguenther@suse.de>
14563
14564 PR middle-end/58513
14565 * tree.c (reference_alias_ptr_type): Move ...
14566 * alias.c (reference_alias_ptr_type): ... here and implement
14567 in terms of the new reference_alias_ptr_type_1.
14568 (ref_all_alias_ptr_type_p): New helper.
14569 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
14570 use ref_all_alias_ptr_type_p.
14571 (get_deref_alias_set): Add flag_strict_aliasing check here.
14572 (reference_alias_ptr_type_1): New function, split out from ...
14573 (get_alias_set): ... here.
14574 (alias_ptr_types_compatible_p): New function.
14575 * alias.h (reference_alias_ptr_type): Declare.
14576 (alias_ptr_types_compatible_p): Likewise.
14577 * tree.h (reference_alias_ptr_type): Remove.
14578 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
14579 to compare MEM_REF alias types.
14580
14581 2013-09-24 Richard Biener <rguenther@suse.de>
14582
14583 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
14584
14585 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14586
14587 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
14588 reload helper function arrays into a single array reg_addr.
14589 (reload_fpr_gpr): Likewise.
14590 (reload_gpr_vsx): Likewise.
14591 (reload_vsx_gpr): Likewise.
14592 (struct rs6000_reg_addr): Likewise.
14593 (reg_addr): Likewise.
14594 (rs6000_debug_reg_global): Change rs6000_vector_reload,
14595 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
14596 (rs6000_init_hard_regno_mode_ok): Likewise.
14597 (rs6000_secondary_reload_direct_move): Likewise.
14598 (rs6000_secondary_reload): Likewise.
14599
14600 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
14601 constraints: wu, ww, and wy. Repurpose wv constraint added during
14602 power8 changes. Put wg constraint in alphabetical order.
14603
14604 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
14605 for future work to add ISA 2.07 VSX single precision support.
14606 (-mvsx-scalar-double): Change default from -1 to 1, update
14607 documentation comment.
14608 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
14609 (-mupper-regs-df): New debug switch to control whether DF values
14610 can go in the traditional Altivec registers.
14611 (-mupper-regs-sf): New debug switch to control whether SF values
14612 can go in the traditional Altivec registers.
14613
14614 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
14615 and wy constraints.
14616 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
14617 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
14618 Add new constraints, wu/ww/wy. Repurpose wv constraint.
14619 (rs6000_debug_legitimate_address_p): Print if we are running
14620 before, during, or after reload.
14621 (rs6000_secondary_reload): Add a comment.
14622 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
14623
14624 * config/rs6000/constraints.md (wa constraint): Sort w<x>
14625 constraints. Update documentation string.
14626 (wd constraint): Likewise.
14627 (wf constraint): Likewise.
14628 (wg constraint): Likewise.
14629 (wn constraint): Likewise.
14630 (ws constraint): Likewise.
14631 (wt constraint): Likewise.
14632 (wx constraint): Likewise.
14633 (wz constraint): Likewise.
14634 (wu constraint): New constraint for ISA 2.07 SFmode scalar
14635 instructions.
14636 (ww constraint): Likewise.
14637 (wy constraint): Likewise.
14638 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
14639 in the previous submissions.
14640 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
14641
14642 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
14643
14644 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
14645 (REG_BR_PROB): Say that the probability is stored in an int_list.
14646 * reg-notes.def: Update commentary to mention INT_LIST.
14647 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
14648 (INT_LIST): New rtx.
14649 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
14650 * rtlanal.c (int_reg_note_p): New function.
14651 (alloc_reg_note): Assert that the note does not have an int argument.
14652 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
14653 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
14654 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
14655 rather than an INSN_LIST. Handle INT_LIST.
14656 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
14657 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
14658 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
14659 Manipulate them as ints rather than rtxes.
14660 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
14661 * regmove.c (copy_src_to_dest): Likewise.
14662 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
14663
14664 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
14665 into the cases that need it.
14666 * config/arm/arm.c (arm_unwind_emit): Likewise.
14667
14668 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
14669 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
14670 * loop-doloop.c (add_test, doloop_modify): Likewise.
14671 * loop-unswitch.c (compare_and_jump_seq): Likewise.
14672 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
14673 * predict.c (combine_predictions_for_insn): Likewise.
14674 * print-rtl.c (print_rtx): Handle INT_LIST.
14675 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
14676 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
14677 * config/arm/arm.c (emit_unlikely_jump): Likewise.
14678 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
14679 (ix86_split_fp_branch, predict_jump): Likewise.
14680 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
14681 * config/sh/sh.c (expand_cbranchsi4): Likewise.
14682 * config/spu/spu.c (ea_load_store_inline): Likewise.
14683
14684 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
14685 value of a REG_BR_PROB note.
14686 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
14687 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
14688 * emit-rtl.c (try_split): Likewise.
14689 * predict.c (br_prob_note_reliable_p): Likewise.
14690 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
14691 * reorg.c (mostly_true_jump): Likewise.
14692 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
14693 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
14694 * config/i386/i386.c (ix86_print_operand): Likewise.
14695 * config/ia64/ia64.c (ia64_print_operand): Likewise.
14696 * config/mmix/mmix.c (mmix_print_operand): Likewise.
14697 * config/rs6000/rs6000.c (output_cbranch): Likewise.
14698 * config/s390/s390.c (s390_expand_tbegin): Likewise.
14699 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
14700 * config/sparc/sparc.c (output_cbranch): Likewise.
14701 * config/spu/spu.c (get_branch_target): Likewise.
14702 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
14703 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
14704
14705 2013-09-23 Jan Hubicka <jh@suse.cz>
14706
14707 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
14708 for ipa-devirt.
14709 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
14710 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
14711 of external calls
14712 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
14713 (gimple_fold_call): Dump inconsistent devirtualizations; add
14714 sanity check for type based devirtualizations.
14715 * ipa-prop.c: Include ipa-utils.h
14716 (ipa_intraprocedural_devirtualization): Add sanity check.
14717 (try_make_edge_direct_virtual_call): Likewise.
14718
14719 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
14720
14721 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
14722 assignment statements.
14723
14724 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14725
14726 * gimple-pretty-print.c (dump_ssaname_info): New function.
14727 (dump_gimple_phi): Call it.
14728 (pp_gimple_stmt_1): Likewise.
14729 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
14730 (range_info_def): Declare.
14731 * tree-pretty-print.c (pp_double_int): New function.
14732 (dump_generic_node): Call it.
14733 * tree-pretty-print.h (pp_double_int): Declare.
14734 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
14735 * tree-ssanames.h (range_info_def): New structure.
14736 (value_range_type): Move definition here.
14737 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
14738 Declare.
14739 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
14740 initialization.
14741 (set_range_info): New function.
14742 (get_range_info): Likewise.
14743 (duplicate_ssa_name_range_info): Likewise.
14744 (duplicate_ssa_name_fn): Check pointer type and call
14745 duplicate_ssa_name_range_info.
14746 * tree-ssa-copy.c (fini_copy_prop): Likewise.
14747 * tree-vrp.c (value_range_type): Remove definition, now in
14748 tree-ssanames.h.
14749 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
14750 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
14751 (SSA_NAME_RANGE_INFO): New macro.
14752
14753 2013-09-23 Richard Biener <rguenther@suse.de>
14754
14755 PR tree-optimization/58464
14756 * tree-ssa-pre.c (phi_trans_lookup): Remove.
14757 (phi_trans_add): Change to add conditionally on being not present.
14758 (phi_translate_1): Remove recursion detection here.
14759 (phi_translate): Pre-seed the cache with NULL to catch
14760 recursion here in a more generic way.
14761 (bitmap_find_leader): Adjust comment.
14762 (get_representative_for): Dump value-numbers.
14763 (create_expression_by_pieces): Likewise.
14764 (insert_into_preds_of_block): Likewise.
14765
14766 2013-09-23 Christian Bruel <christian.bruel@st.com>
14767
14768 PR target/58475
14769 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
14770 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
14771
14772 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
14773
14774 Revert r202780:
14775 2013-09-20 Renlin Li <renlin.li@arm.com>
14776
14777 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14778 plus_constant.
14779 (aarch64_expand_epilogue): Likewise.
14780 (aarch64_legitimize_reload_address): Likewise.
14781
14782 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
14783
14784 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
14785 NULL_TREE before pushing them onto the vector. Likewise for labels.
14786
14787 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
14788
14789 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
14790 comparison operators when -fno-trapping-math is in effect.
14791 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
14792 comparison operators in TFmode and assert that unsupported operators
14793 cannot reach here.
14794 (ia64_print_operand): Likewise.
14795
14796 2013-09-21 Jan Hubicka <jh@suse.cz>
14797
14798 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
14799 (sse_typeless_stores): Enable for core
14800 (sse_load0_by_pxor): Likewise.
14801 (four_jump_limit): Disable for core.
14802 (pad_returns): Likewise.
14803 (avoid_vector_decode): Likewise.
14804 (fuse_cmp_and_branch): Enable for cores.
14805 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
14806
14807 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14808
14809 PR middle-end/56791
14810 * config/pa/pa.c (pa_option_override): Disable auto increment and
14811 decrement instructions until reload is completed.
14812
14813 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
14814 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
14815 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14816
14817 2013-09-20 DJ Delorie <dj@redhat.com>
14818 Nick Clifton <nickc@redhat.com>
14819
14820 * config/rl78/rl78.c: Various whitespace and comment tweaks.
14821 (need_to_save): Save bank 0 on interrupts.
14822 (characterize_address): Strip far address wrappers.
14823 (rl78_as_legitimate_address): Likewise.
14824 (transcode_memory_rtx): Likewise.
14825 (rl78_peep_movhi_p): Disable this peephole after devirt.
14826 (rl78_propogate_register_origins): Forget all origins when a
14827 CLOBBER is seen.
14828 * config/rl78/rl78-virt.md: Various whitespace tweaks.
14829 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
14830 peephole2's.
14831 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
14832 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
14833 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
14834 relocating.
14835 * config/rl78/constraints.md: Various whitespace and paren tweaks.
14836
14837 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14838
14839 * config/pa/pa.md: In "scc" insn patterns, change output template to
14840 handle const0_rtx in reg_or_0_operand operands.
14841
14842 2013-09-20 Martin Husemann <martin@NetBSD.org>
14843
14844 PR target/56875
14845 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
14846 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
14847
14848 2013-09-20 Richard Biener <rguenther@suse.de>
14849
14850 PR middle-end/58484
14851 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
14852 remembering SSA name version and block index.
14853 (new_scev_info_str): Adjust.
14854 (hash_scev_info): Likewise. Also hash the block index.
14855 (eq_scev_info): Adjust.
14856 (find_var_scev_info): Likewise.
14857 (struct instantiate_cache_entry): Remove.
14858 (struct instantiate_cache_type): Use a htab to map name, block
14859 to chrec.
14860 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14861 (get_instantiated_value_entry): Likewise.
14862 (hash_idx_scev_info, eq_idx_scev_info): New functions.
14863 (instantiate_scev_name): Adjust.
14864
14865 2013-09-20 Jeff Law <law@redhat.com>
14866
14867 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
14868
14869 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
14870
14871 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
14872 Call aarch64_simd_expand_args to update op[argc].
14873
14874 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14875
14876 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
14877 plugin argument.
14878
14879 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14880
14881 * gengtype.c (file_rules): Added rule for *.cc files.
14882 (get_output_file_with_visibility): Give fatal message when no
14883 rules found.
14884
14885 2013-09-20 Renlin Li <renlin.li@arm.com>
14886
14887 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
14888 (aarch64_expand_epilogue): Likewise.
14889 (aarch64_legitimize_reload_address): Likewise.
14890
14891 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14892
14893 PR middle-end/57748
14894 * expr.c (expand_assignment): Remove misalignp code path.
14895
14896 2013-09-20 Marek Polacek <polacek@redhat.com>
14897
14898 PR sanitizer/58413
14899 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
14900 TYPE_PRECISION. Add asserts.
14901
14902 2013-09-20 Richard Biener <rguenther@suse.de>
14903
14904 PR tree-optimization/58453
14905 * tree-loop-distribution.c (distribute_loop): Apply the cost
14906 model for -ftree-loop-distribute-patterns, too.
14907
14908 2013-09-20 Richard Biener <rguenther@suse.de>
14909
14910 PR middle-end/58473
14911 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
14912 make type comparison less strict.
14913
14914 2013-09-20 Alan Modra <amodra@gmail.com>
14915
14916 * configure: Regenerate.
14917 * aclocal.m4: Regenerate.
14918
14919 2013-09-20 Marek Polacek <polacek@redhat.com>
14920
14921 PR other/58467
14922 * doc/extend.texi: Document that attribute used is meant to be used
14923 on variables with static storage duration.
14924
14925 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14926
14927 PR tree-optimization/58472
14928 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14929 simd_lane_access set inv_p = false.
14930 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14931 the simduid magic VAR_DECL.
14932
14933 2013-09-19 Jan Hubicka <jh@suse.cz>
14934
14935 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14936
14937 2013-09-17 Jeff Law <law@redhat.com>
14938
14939 * tree-ssa-dom.c (record_temporary_equivalences): New function
14940 split out of dom_opt_dom_walker::after_dom_children.
14941 (dom_opt_dom_walker::thread_across_edge): Move common code
14942 in here from dom_opt_dom_walker::after_dom_children.
14943 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14944
14945 2013-09-19 Jan Hubicka <jh@suse.cz>
14946
14947 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14948 (TARGET_GENERIC): Use PROCESOR_GENERIC
14949 (enum processor_type): Unify generic32 and 64.
14950 * i386.md (cpu): Likewise.
14951 * x86-tune.def (use_leave): Enable for generic32.
14952 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14953 * athlon.md: Change generic64 to generic in all occurences.
14954 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14955 (ix86_target_macros_internal): Likewise.
14956 * driver-i386.c (host_detect_local_cpu): Likewise.
14957 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14958 to ..
14959 (generic_memcpy, generic_memset, generic_cost): This one.
14960 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14961 (m_GENERIC32, m_GENERIC64): Remove.
14962 (m_GENERIC): Turn into one flag.
14963 (processor_target): Unify generic tunnings.
14964 (ix86_option_override_internal): Replace generic32/64 by generic.
14965 (ix86_issue_rate): Likewise.
14966 (ix86_adjust_cost): Likewise.
14967
14968 2013-09-19 Jan Hubicka <jh@suse.cz>
14969
14970 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14971 of speculative flag.
14972
14973 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14974
14975 * omp-low.c (expand_omp_sections): Always pass len - 1 to
14976 GOMP_sections_start, even if !exit_reachable.
14977
14978 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14979
14980 * lra-constraints.c (need_for_all_save_p): Use macro
14981 HARD_REGNO_CALL_PART_CLOBBERED.
14982 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14983 set up pseudo conflict hard regs.
14984
14985 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14986
14987 PR target/58452
14988 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14989 operands.
14990
14991 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14992
14993 PR rtl-optimization/58438
14994 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14995 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14996 from previous subpasses.
14997
14998 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
14999
15000 * arm.c (arm_get_frame_offsets): Validate architecture supports
15001 LDRD/STRD before accepting the tuning preference.
15002 (arm_expand_prologue): Likewise.
15003 (arm_expand_epilogue): Likewise.
15004
15005 2013-09-18 Richard Biener <rguenther@suse.de>
15006
15007 PR tree-optimization/58417
15008 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
15009 have chrecs with symbols defined in the loop as operands.
15010 (chrec_fold_multiply): Likewise.
15011 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
15012 parameters before folding binary operations.
15013 (struct instantiate_cache_entry_hasher): Remove.
15014 (struct instantiate_cache_type): Use a pointer-map.
15015 (instantiate_cache_type::instantiate_cache_type): New function.
15016 (instantiate_cache_type::get): Likewise.
15017 (instantiate_cache_type::set): Likewise.
15018 (instantiate_cache_type::~instantiate_cache_type): Adjust.
15019 (get_instantiated_value_entry): Likewise.
15020 (global_cache): New global.
15021 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
15022 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
15023 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
15024 (instantiate_scev_name): Adjust.
15025 (instantiate_scev): Construct global instead of local cache.
15026 (resolve_mixers): Likewise.
15027
15028 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
15029 Paolo Carlini <paolo.carlini@oracle.com>
15030
15031 PR c++/58458
15032 * doc/implement-cxx.texi: Fix references to the C++ standards.
15033
15034 2013-09-18 Jakub Jelinek <jakub@redhat.com>
15035
15036 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
15037 * tree-vect-data-refs.c (vect_analyze_data_refs): For
15038 simd_lane_access drs, update also DR_ALIGNED_TO.
15039
15040 2013-09-18 Marek Polacek <polacek@redhat.com>
15041
15042 PR sanitizer/58411
15043 * doc/extend.texi: Document no_sanitize_undefined attribute.
15044 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
15045 no_sanitize_undefined attribute.
15046
15047 2013-09-18 Nick Clifton <nickc@redhat.com>
15048
15049 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
15050 (ASM_DECLARE_FUNCTION_NAME): Define.
15051
15052 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
15053
15054 * compare-elim.c (find_comparison_dom_walker): New class
15055 (find_comparisons_in_bb): Rename to
15056 find_comparison_dom_walker::before_dom_children
15057 (find_comparisons): Adjust
15058 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
15059 adjust.
15060 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
15061 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
15062 (init_walk_dominator_tree): Remove declaration.
15063 (fini_walk_dominator_tree): Remove declaration.
15064 * fwprop.c (single_def_use_dom_walker): New class
15065 (single_def_use_enter_block): Convert to
15066 single_def_use_dom_walker::before_dom_children.
15067 (single_def_use_leave_block): Convert to
15068 single_def_use_dom_walker::after_dom_children.
15069 (build_single_def_use_links): Adjust.
15070 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
15071 class.
15072 (find_candidates_in_block): Convert to
15073 find_candidates_dom_walker::before_dom_children.
15074 (execute_strength_reduction): Adjust.
15075 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
15076 (sese_dom_walker): New class.
15077 (sese_dom_walker::sese_dom_walker): New constructor.
15078 (sese_dom_walker::~sese_dom_walker): New destructor.
15079 (build_sese_conditions_before): Convert to
15080 sese_dom_walker::before_dom_children.
15081 (build_sese_conditions_after): Convert to
15082 sese_dom_walker::after_dom_children.
15083 (build_poly_scop): Adjust
15084 * tree-into-ssa.c (rewrite_dom_walker): New class
15085 (rewrite_enter_block): Convert to
15086 rewrite_dom_walker::before_dom_children.
15087 (rewrite_leave_block): Convert to
15088 rewrite_dom_walker::after_dom_children.
15089 (rewrite_update_dom_walker): New class.
15090 (rewrite_update_enter_block): Convert to
15091 rewrite_update_dom_walker::before_dom_children.
15092 (rewrite_update_leave_block): Convert to
15093 rewrite_update_dom_walker::after_dom_children.
15094 (rewrite_blocks, rewrite_into_ssa): Adjust.
15095 (mark_def_dom_walker): New class.
15096 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
15097 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
15098 (mark_def_sites_blocks): Convert to
15099 mark_def_dom_walker::before_dom_children.
15100 (mark_def_site_blocks): Remove.
15101 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
15102 (tree_ssa_dominator_optimize): Adjust.
15103 (dom_thread_across_edge): Convert to method
15104 dom_opt_dom_walker::thread_across_edge.
15105 (dom_opt_enter_block): Convert to member function
15106 dom_opt_dom_walker::before_dom_children.
15107 (dom_opt_leave_block): Convert to member function
15108 dom_opt_dom_walker::after_dom_children.
15109 * tree-ssa-dse.c (dse_dom_walker): New class.
15110 (dse_enter_block): Convert to member function
15111 dse_dom_walker::before_dom_children.
15112 (tree_ssa_dse): Adjust.
15113 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
15114 (determine_invariantness_stmt): Convert to method
15115 invariantness_dom_walker::before_dom_children.
15116 (determine_invariantness): Remove
15117 (move_computations_dom_walker): New class.
15118 (move_computations_stmt): Convert to method
15119 move_computations_dom_walker::before_dom_children.
15120 (move_computations, tree_ssa_lim): Adjust.
15121 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
15122 (nt_init_block): Convert to method
15123 notrappping_dom_walker::before_dom_children.
15124 (nt_fini_block): Convert to method
15125 method nontrapping_dom_walker::after_dom_children.
15126 (get_non_trapping): Adjust.
15127 * tree-ssa-pre.c (eliminate_dom_walker): New class.
15128 (eliminate_bb): Convert to method
15129 eliminate_dom_walker::before_dom_children.
15130 (eliminate_leave_block): Convert to method
15131 eliminate_dom_walker::after_dom_children.
15132 (eliminate): Adjust.
15133 * tree-ssa-strlen.c (strlen_dom_walker): New class.
15134 (strlen_enter_block): Convert to method
15135 strlen_dom_walker::before_dom_children.
15136 (strlen_leave_block): Convert to method
15137 method strlen_dom_walker::after_dom_children.
15138 (tree_ssa_strlen): Adjust.
15139 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
15140 (tree_ssa_uncprop): Adjust.
15141 (uncprop_leave_block): Convert to method
15142 uncprop_dom_walker::after_dom_children.
15143 (uncprop_leave_block): Convert to method
15144 uncprop_dom_walker::before_dom_children.
15145
15146 2013-09-18 Bin Cheng <bin.cheng@arm.com>
15147
15148 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
15149 branch in same basic block. Check both src and dest of the move insn.
15150
15151 2013-09-17 Nick Clifton <nickc@redhat.com>
15152
15153 * config/rl78/rl78-real.md (bf): New pattern.
15154 (bt): New pattern.
15155 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
15156 (rl78_print_operand): Do not put a # before a %B.
15157 * config/rl78/rl78.opt: Tweak doc strings.
15158
15159 2013-09-17 DJ Delorie <dj@redhat.com>
15160
15161 * config/rl78/constraints.md (Wcv): Allow up to $r31.
15162 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
15163 (rl78_option_override): Likewise, if -mallregs.
15164 (is_virtual_register): Likewise.
15165 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
15166 (REGNO_OK_FOR_BASE_P): Likewise.
15167 * config/rl78/rl78.opt (-mallregs): New.
15168
15169 2013-09-17 Nick Clifton <nickc@redhat.com>
15170
15171 * config/rl78/rl78.c (need_to_save): Change return type to bool.
15172 For interrupt functions: save all call clobbered registers if the
15173 interrupt handler is not a leaf function.
15174 (rl78_expand_prologue): Always recompute the frame information.
15175 For interrupt functions: only select bank 0 if one of the bank 0
15176 registers is going to be psuhed.
15177
15178 2013-09-17 DJ Delorie <dj@redhat.com>
15179
15180 * config/rl78/constraints.md: For each W* constraint, rename to C*
15181 and create a W* constraint that checks for an optional ES: prefix
15182 pattern also.
15183 * config/rl78/rl78.md (UNS_ES_ADDR): New.
15184 (es_addr): New. Used to wrap far addresses.
15185 * config/rl78/rl78-protos.h (rl78_es_addr): New.
15186 (rl78_es_base): New.
15187 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
15188 wrapped far addresses.
15189 (rl78_print_operand_1): Unwrap far addresses before processing.
15190 (rl78_lo16): Wrap far addresses in unspecs.
15191 (rl78_es_addr): New.
15192 (rl78_es_base): New.
15193 (insn_ok_now): Check for not-yet-wrapped far addresses.
15194 (transcode_memory_rtx): Properly re-wrap far addresses.
15195
15196 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
15197
15198 * config/sparc/t-rtems: Add leon3 multilibs.
15199
15200 2013-09-17 Cong Hou <congh@google.com>
15201
15202 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
15203 when checking the dot production pattern. The type of rhs operand
15204 of multiply is now checked correctly.
15205
15206 2013-09-17 Jeff Law <law@redhat.com>
15207
15208 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15209 edge implied equivalences into successor phis.
15210 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
15211 here from tree-ssa-threadedge.c.
15212 (mark_threaded_blocks): When threading through a joiner, if both
15213 successors of the joiner's clone reach the same block, verify the
15214 PHI arguments are equal. If not, cancel the jump threading request.
15215 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
15216 tree-ssa-threadupdate.c
15217 (thread_across_edge): Don't check PHI argument equality when
15218 threading through joiner block here.
15219
15220 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
15221
15222 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
15223 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
15224 (warn_uninit, warn_uninitialized_vars,
15225 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
15226 Move to tree-ssa-uninit.c.
15227 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
15228 (has_undefined_value_p): New. Pass dependant parts of
15229 ssa_undefined_value_p.
15230 (uninit_undefined_value_p): Use has_undefined_value_p.
15231 (warn_uninit, warn_uninitialized_vars,
15232 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
15233 Move from tree-ssa.c.
15234 * tree-ssa.h: Adjust prototypes.
15235
15236 2013-09-17 Jan Hubicka <jh@suse.cz>
15237
15238 PR middle-end/58332
15239 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
15240 * ipa-inline.c (can_inline_edge_p): Do not downgrade
15241 FUNCTION_NOT_OPTIMIZED.
15242 * ipa-inline-analysis.c (compute_inline_parameters): Function
15243 not optimized is not inlinable unless it is alwaysinline.
15244 (inline_analyze_function): Force calls in not optimized
15245 function not inlinable.
15246
15247 2013-09-17 Jan Hubicka <jh@suse.cz>
15248
15249 PR middle-end/58329
15250 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
15251 to return NULL.
15252 * ipa.c (function_and_variable_visibility): Likewise.
15253 * ipa-profile.c (ipa_profile): Likewise.
15254
15255 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
15256
15257 PR ipa/58398
15258 * cgraph.c (cgraph_function_body_availability): Check for ifunc
15259 attribute, and don't inline the resolver in this case.
15260
15261 2013-09-17 Teresa Johnson <tejohnson@google.com>
15262
15263 * coverage.c (get_coverage_counts): Add missing newline.
15264
15265 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15266
15267 PR tree-optimization/58088
15268 * fold-const.c (mask_with_trailing_zeros): New function.
15269 (fold_binary_loc): Make sure we don't recurse infinitely
15270 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
15271 Use mask_with_trailing_zeros where appropriate.
15272
15273 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
15274
15275 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
15276 of 'prev' var to get better distance estimation.
15277
15278 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
15279
15280 * tree-inline.h (struct copy_body_data): Add transform_parameter.
15281 * tree-inline.c (is_parameter_of): New predicate.
15282 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
15283 a parameter has been remapped.
15284 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
15285 (optimize_inline_calls): Initialize transform_parameter.
15286 (copy_gimple_seq_and_replace_locals): Likewise.
15287 (tree_function_versioning): Likewise.
15288 (maybe_inline_call_in_expr): Likewise.
15289
15290 2013-09-17 Nick Clifton <nickc@redhat.com>
15291
15292 * config/msp430/msp430-protos.h: Add prototypes for new functions.
15293 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
15294 interrupt handlers.
15295 (is_attr_func): New function.
15296 (msp430_is_interrupt_func): New function.
15297 (is_naked_func): New function.
15298 (is_reentrant_func): New function.
15299 (is_critical_func): New function.
15300 (msp430_start_function): Add annotations for function attributes.
15301 (msp430_attr): New function.
15302 (msp430_attribute_table): New.
15303 (msp430_function_section): New function.
15304 (TARGET_ASM_FUNCTION_SECTION): Define.
15305 (msp430_builtin): New enum.
15306 (msp430_init_builtins): New function.
15307 (msp430_builtin_devl): New function.
15308 (msp430_expand_builtin): New function.
15309 (TARGET_INIT_BUILTINS): Define.
15310 (TARGET_EXPAND_BUILTINS): Define.
15311 (TARGET_BUILTIN_DECL): Define.
15312 (msp430_expand_prologue): Add support for naked, interrupt,
15313 critical and reentrant functions.
15314 (msp430_expand_epilogue): Likewise.
15315 (msp430_print_operand): Handle 'O' character.
15316 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
15317 NO_TRAMPOLINES.
15318 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
15319 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
15320 (pushm): Use a 'n' rather than an 'i' constraint.
15321 (msp_return): Add generation of the interrupt return instruction.
15322 (disable_interrupts): New pattern.
15323 (enable_interrupts): New pattern.
15324 (push_intr_state): New pattern.
15325 (pop_intr_state): New pattern.
15326 (bic_SR): New pattern.
15327 (bis_SR): New pattern.
15328 * doc/extend.texi: Document MSP430 function attributes and builtin
15329 functions.
15330
15331 2013-09-17 Richard Biener <rguenther@suse.de>
15332
15333 PR tree-optimization/58432
15334 * tree-loop-distribution.c (tree_loop_distribution): Also
15335 scan PHIs for outside loop uses and seed a partition from them.
15336
15337 2013-09-17 Bin Cheng <bin.cheng@arm.com>
15338
15339 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
15340 (restructure_reference): Call backtrace_base_for_ref.
15341
15342 2013-09-17 Alan Modra <amodra@gmail.com>
15343
15344 PR target/57589
15345 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
15346 patch.
15347
15348 2013-09-16 DJ Delorie <dj@redhat.com>
15349
15350 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
15351 vregs location for RL78/G10.
15352 (rl78_expand_prologue): Avoid SEL on G10.
15353 (rl78_expand_epilogue): Likewise.
15354 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
15355 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
15356 __RL78_G10__ when appropriate.
15357 (ASM_SPEC): Pass -mg10 along to the assembler.
15358 * config/rl78/rl78.md (sel_rb): Disable for G10.
15359 * config/rl78/rl78.opt: Add -mg10 option.
15360 * config/rl78/t-rl78: Add -mg10 multilib.
15361
15362 2013-09-16 Xinliang David Li <davidxl@google.com>
15363
15364 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
15365 * omp-low.c (omp_max_vf): Ditto.
15366 (expand_omp_simd): Ditto.
15367 * tree-vectorizer.c (vectorize_loops): Ditto.
15368 (gate_vect_slp): Ditto.
15369 (gate_increase_alignment): Ditto.
15370 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
15371 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
15372 (gate_tree_vectorize): Name change.
15373 (tree_vectorize): Ditto.
15374 (pass_vectorize::gate): Call new function.
15375 (pass_vectorize::execute): Ditto.
15376 * opts.c: O3 default setting change.
15377 (finish_options): Check new flag.
15378 * doc/invoke.texi: Document new flags.
15379 * common.opt: New flags.
15380
15381 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
15382
15383 * doc/tm.texi.in (Cond Exec Macros): Remove node.
15384 (Condition Code): Don't reference it.
15385 * doc/tm.texi: Regenerate.
15386
15387 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
15388
15389 PR middle-end/58418
15390 * lra-constraints.c (undo_optional_reloads): Consider all optional
15391 reload even if it did not get a hard reg.
15392
15393 2013-09-16 Teresa Johnson <tejohnson@google.com>
15394
15395 * dumpfile.c (dump_loc): Remove newline emission.
15396 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
15397 emission to dump_printf_loc calls where missing.
15398 (vect_mark_for_runtime_alias_test): Ditto.
15399 (vect_analyze_data_ref_dependence): Ditto.
15400 (vect_analyze_data_ref_dependences): Ditto.
15401 (vect_slp_analyze_data_ref_dependence): Ditto.
15402 (vect_slp_analyze_data_ref_dependences): Ditto.
15403 (vect_compute_data_ref_alignment): Ditto.
15404 (vect_update_misalignment_for_peel): Ditto.
15405 (vect_verify_datarefs_alignment): Ditto.
15406 (vector_alignment_reachable_p): Ditto.
15407 (vect_get_data_access_cost): Ditto.
15408 (vect_enhance_data_refs_alignment): Ditto.
15409 (vect_find_same_alignment_drs): Ditto.
15410 (vect_analyze_data_refs_alignment): Ditto.
15411 (vect_analyze_group_access): Ditto.
15412 (vect_analyze_data_ref_access): Ditto.
15413 (vect_analyze_data_ref_accesses): Ditto.
15414 (vect_prune_runtime_alias_test_list): Ditto.
15415 (vect_analyze_data_refs): Ditto.
15416 (vect_create_addr_base_for_vector_ref): Ditto.
15417 (vect_create_data_ref_ptr): Ditto.
15418 (vect_grouped_store_supported): Ditto.
15419 (vect_grouped_load_supported): Ditto.
15420 * value-prof.c (check_counter): Ditto.
15421 (check_ic_target): Ditto.
15422 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
15423 (vect_recog_widen_mult_pattern): Ditto.
15424 (vect_recog_widen_sum_pattern): Ditto.
15425 (vect_recog_over_widening_pattern): Ditto.
15426 (vect_recog_widen_shift_pattern): Ditto.
15427 (vect_recog_rotate_pattern): Ditto.
15428 (vect_recog_vector_vector_shift_pattern): Ditto.
15429 (vect_recog_divmod_pattern): Ditto.
15430 (vect_recog_mixed_size_cond_pattern): Ditto.
15431 (vect_recog_bool_pattern): Ditto.
15432 (vect_pattern_recog_1): Ditto.
15433 (vect_pattern_recog): Ditto.
15434 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
15435 (vect_is_simple_iv_evolution): Ditto.
15436 (vect_analyze_scalar_cycles_1): Ditto.
15437 (vect_get_loop_niters): Ditto.
15438 (vect_analyze_loop_1): Ditto.
15439 (vect_analyze_loop_form): Ditto.
15440 (vect_analyze_loop_operations): Ditto.
15441 (vect_analyze_loop_2): Ditto.
15442 (vect_analyze_loop): Ditto.
15443 (report_vect_op): Ditto.
15444 (vect_is_slp_reduction): Ditto.
15445 (vect_is_simple_reduction_1): Ditto.
15446 (vect_get_known_peeling_cost): Ditto.
15447 (vect_estimate_min_profitable_iters): Ditto.
15448 (vect_model_reduction_cost): Ditto.
15449 (vect_model_induction_cost): Ditto.
15450 (get_initial_def_for_induction): Ditto.
15451 (vect_create_epilog_for_reduction): Ditto.
15452 (vectorizable_reduction): Ditto.
15453 (vectorizable_induction): Ditto.
15454 (vectorizable_live_operation): Ditto.
15455 (vect_loop_kill_debug_uses): Ditto.
15456 (vect_transform_loop): Ditto.
15457 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
15458 (vect_stmt_relevant_p): Ditto.
15459 (process_use): Ditto.
15460 (vect_mark_stmts_to_be_vectorized): Ditto.
15461 (vect_model_simple_cost): Ditto.
15462 (vect_model_promotion_demotion_cost): Ditto.
15463 (vect_model_store_cost): Ditto.
15464 (vect_get_store_cost): Ditto.
15465 (vect_model_load_cost): Ditto.
15466 (vect_get_load_cost): Ditto.
15467 (vect_init_vector_1): Ditto.
15468 (vect_get_vec_def_for_operand): Ditto.
15469 (vect_finish_stmt_generation): Ditto.
15470 (vectorizable_call): Ditto.
15471 (vectorizable_conversion): Ditto.
15472 (vectorizable_assignment): Ditto.
15473 (vectorizable_shift): Ditto.
15474 (vectorizable_operation): Ditto.
15475 (vectorizable_store): Ditto.
15476 (vectorizable_load): Ditto.
15477 (vectorizable_condition): Ditto.
15478 (vect_analyze_stmt): Ditto.
15479 (vect_transform_stmt): Ditto.
15480 (vect_is_simple_use): Ditto.
15481 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
15482 (vect_can_advance_ivs_p): Ditto.
15483 (vect_update_ivs_after_vectorizer): Ditto.
15484 (vect_do_peeling_for_loop_bound): Ditto.
15485 (vect_gen_niters_for_prolog_loop): Ditto.
15486 (vect_update_inits_of_drs): Ditto.
15487 (vect_create_cond_for_alias_checks): Ditto.
15488 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
15489 (vect_build_slp_tree_1): Ditto.
15490 (vect_supported_load_permutation_p): Ditto.
15491 (vect_analyze_slp_instance): Ditto.
15492 (vect_analyze_slp): Ditto.
15493 (vect_make_slp_decision): Ditto.
15494 (vect_detect_hybrid_slp): Ditto.
15495 (vect_bb_vectorization_profitable_p): Ditto.
15496 (vect_slp_analyze_bb_1): Ditto.
15497 (vect_update_slp_costs_according_to_vf): Ditto.
15498 (vect_get_mask_element): Ditto.
15499 (vect_transform_slp_perm_load): Ditto.
15500 (vect_schedule_slp_instance): Ditto.
15501 (vect_schedule_slp): Ditto.
15502 (vect_slp_transform_bb): Ditto.
15503 * profile.c (read_profile_edge_counts): Ditto.
15504 (compute_branch_probabilities): Ditto.
15505 * coverage.c (get_coverage_counts): Ditto.
15506
15507 2013-09-16 Diego Novillo <dnovillo@google.com>
15508
15509 * tree-core.h: Add missing comment lines from refactoring of tree.h.
15510
15511 2013-09-16 Jan Hubicka <jh@suse.cz>
15512
15513 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
15514 abstract functions; for static functions check the presence of body.
15515
15516 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15517
15518 * config/aarch64/aarch64-simd-builtins.def (fma): New.
15519 * config/aarch64/aarch64-simd.md
15520 (aarch64_mla_elt<mode>): New.
15521 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
15522 (aarch64_mls_elt<mode>): Likewise.
15523 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
15524 (aarch64_fma4_elt<mode>): Likewise.
15525 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
15526 (aarch64_fma4_elt_to_128v2df): Likewise.
15527 (aarch64_fma4_elt_to_64df): Likewise.
15528 (fnma<mode>4): Likewise.
15529 (aarch64_fnma4_elt<mode>): Likewise.
15530 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
15531 (aarch64_fnma4_elt_to_128v2df): Likewise.
15532 (aarch64_fnma4_elt_to_64df): Likewise.
15533 * config/aarch64/iterators.md (VDQSF): New.
15534 * config/aarch64/arm_neon.h
15535 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
15536 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
15537
15538 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15539
15540 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
15541 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
15542 (aarch64_mul3_elt_to_128df): Likewise.
15543 (aarch64_mul3_elt_to_64v2df): Likewise.
15544 * config/aarch64/iterators.md (VEL): Also handle DFmode.
15545 (VMUL): New.
15546 (VMUL_CHANGE_NLANES) Likewise.
15547 (h_con): Likewise.
15548 (f): Likewise.
15549 * config/aarch64/arm_neon.h
15550 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
15551
15552 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15553
15554 * config/aarch64/arm_neon.h
15555 (vcvtx_high_f32_f64): Fix parameters.
15556
15557 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15558 Uros Bizjak <ubizjak@gmail.com>
15559
15560 * config/alpha.c: Include tree-ssanames.h.
15561
15562 2013-09-16 Richard Biener <rguenther@suse.de>
15563
15564 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
15565 (dot_rdg_1): Handle control_dd.
15566 (create_edge_for_control_dependence): New function.
15567 (create_rdg_edges): Add control dependences if asked for.
15568 (build_rdg): Likewise.
15569 (generate_loops_for_partition): If there are not necessary
15570 control stmts remove all their dependencies.
15571 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
15572 (distribute_loop): Pass on control dependences.
15573 (tree_loop_distribution): Compute control dependences and remove
15574 restriction on number of loop nodes.
15575
15576 2013-09-16 Jakub Jelinek <jakub@redhat.com>
15577
15578 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
15579 for internal calls.
15580
15581 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
15582
15583 * cse.c (try_const_anchors): Punt on CC modes.
15584
15585 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15586
15587 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
15588
15589 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
15590
15591 PR target/58382
15592 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
15593 calls to word_mode.
15594
15595 2013-09-14 Iain Sandoe <iain@codesourcery.com>
15596
15597 PR target/48094
15598 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
15599 seen.
15600 (darwin_objc1_section): Likewise.
15601 (darwin_file_end): Emit Image Info section when required.
15602
15603 2013-09-14 Jan Hubicka <jh@suse.cz>
15604
15605 * tree-into-ssa.c (gate_into_ssa): New.
15606 (pass_data_build_ssa): Use it.
15607 * cgraph.h (expand_thunk): Update prototype.
15608 * cgraphunit.c (analyze_function): Expand thunks early.
15609 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
15610 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
15611 set lowered flag; do not add new function.
15612 (assemble_thunks_and_aliases): Update.
15613 * tree-ssa.c (gate_init_datastructures): New gate.
15614 (pass_data_init_datastructures): Use it.
15615
15616 2013-09-14 Iain Sandoe <iain@codesourcery.com>
15617
15618 PR target/58269
15619 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
15620 xmm register set described in the psABI.
15621
15622 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
15623
15624 * dwarf2out.c (should_emit_struct_debug): Add check
15625 for type_decl variable is not NULL.
15626
15627 2013-09-13 Jacek Caban <jacek@codeweavers.com>
15628
15629 * config.gcc: Use new winnt-c.c target hooks
15630 * config/t-winnt: New file
15631 * config/winnt-c.c: New file
15632 * doc/tm.texi.in: Document new hook
15633 * doc/tm.texi: Regenerated
15634
15635 2013-09-13 Jan Hubicka <jh@suse.cz>
15636
15637 PR middle-end/58094
15638 * ipa-inline.c (check_callers): New function.
15639 (check_caller_edge): Remove.
15640 (want_inline_function_to_all_callers_p): Also permit alises that are
15641 called dirrectly.
15642 (inline_to_all_callers): Terminate the walk when devirtualization
15643 introduce new calls.
15644
15645 2013-09-13 Jan Hubicka <jh@suse.cz>
15646
15647 * ipa-inline-analysis.c (struct growth_data): Add node.
15648 (do_estimate_growth_1): Fix detection of recursion.
15649
15650 2013-09-13 Jakub Jelinek <jakub@redhat.com>
15651
15652 PR tree-optimization/58392
15653 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
15654 to avoid shadowing of outer loop variable. If
15655 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
15656 replace_by_duplicate_decl simduid of loops that have it set and
15657 set dest_cfun->has_simduid_loops and/or
15658 dest_cfun->has_force_vect_loops.
15659 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
15660 instead of maybe_lookup_decl.
15661 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
15662 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
15663 call. Copy over force_vect and copy and remap simduid. Set
15664 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
15665 (copy_cfg_body): Remove blocks_to_copy argument. Use
15666 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
15667 caller. Don't set cfun->has_simduid_loops and/or
15668 cfun->has_force_vect_loops here.
15669 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
15670 caller.
15671 (expand_call_inline, tree_function_versioning): Adjust copy_body
15672 callers.
15673
15674 2013-09-13 Martin Jambor <mjambor@suse.cz>
15675
15676 PR bootstrap/58388
15677 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
15678 the assert if the edge was a speculative one.
15679
15680 2013-09-13 Richard Biener <rguenther@suse.de>
15681
15682 * tree-data-ref.h (known_dependences_p): Move here ...
15683 * tree-loop-distribution.c (known_dependences_p): ... from here.
15684 (dump_rdg_component, debug_rdg_component): Remove.
15685 (dump_rdg): Adjust.
15686 (generate_loops_for_partition): Use gimple_uid instead of
15687 relying on matching stmt visit order.
15688 (rdg_build_partitions): Take starting stmt vector.
15689 (ldist_gen): Merge into ...
15690 (distribute_loop): ... this function. Do not compute starting
15691 vertices vector.
15692 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
15693
15694 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15695
15696 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
15697 Set type attribute correctly. Set predicable_short_it attribute.
15698 (cmpsi_shiftsi): Remove %? from output template.
15699
15700 2013-09-13 Richard Biener <rguenther@suse.de>
15701
15702 * tree-loop-distribution.c (struct rdg_component,
15703 rdg_defs_used_in_other_loops_p, free_rdg_components,
15704 rdg_build_components): Remove.
15705 (stmts_from_loop): Do not record virtual PHIs.
15706 (generate_loops_for_partition): Skip virtual PHIs.
15707 (build_rdg_partition_for_component): Rename to ...
15708 (build_rdg_partition_for_vertex): ... this and adjust.
15709 (rdg_build_partitions): Take a vector of starting vertices
15710 instead of components. Remove unnecessary leftover handling.
15711 (ldist_gen): Do not build components or record other stores.
15712 (distribute_loop): Do not distribute loops containing stmts
15713 with side-effects.
15714
15715 2013-09-13 Christian Bruel <christian.bruel@st.com>
15716
15717 PR target/58314
15718 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
15719
15720 2013-09-13 Kai Tietz <ktietz@redhat.com>
15721
15722 * config.gcc: Separate cases for mingw and cygwin targets,
15723 and add 64-bit cygwin target case.
15724
15725 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
15726 dll-export inline-functions.
15727 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
15728
15729 2013-09-13 Jeff Law <law@redhat.com>
15730
15731 PR middle-end/58387
15732 Revert:
15733 2013-09-06 Jeff Law <law@redhat.com>
15734
15735 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15736 edge implied equivalences into successor phis.
15737
15738 2013-09-12 DJ Delorie <dj@redhat.com>
15739
15740 * config/rl78/rl78-virt.md: Change from | to \; for asm line
15741 separators.
15742
15743 2013-09-12 Brooks Moses <bmoses@google.com>
15744
15745 PR driver/42955
15746 * Makefile.in: Do not install driver binaries in $(target)/bin.
15747
15748 2013-09-12 DJ Delorie <dj@redhat.com>
15749
15750 * config/rl78/rl78.opt (mrelax): New.
15751 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
15752 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
15753
15754 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
15755 between SP and FP.
15756 (rl78_expand_epilogue): Likewise.
15757
15758 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
15759
15760 PR middle-end/58335
15761 * lra-eliminations.c (remove_reg_equal_offset_note): New.
15762 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
15763 pointer elimination with using remove_reg_equal_offset_note.
15764
15765 2013-09-12 DJ Delorie <dj@redhat.com>
15766
15767 * config/msp430/: New port.
15768 * config.gcc (msp430): Added.
15769 * doc/invoke.texi: Document MSP430 options.
15770 * doc/install.texi: Document msp430-elf
15771 * doc/md.texi: Document msp430-elf
15772 * doc/contrib.texi: Document msp430-elf
15773
15774 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
15775 PSImode.
15776
15777 2013-09-12 Martin Jambor <mjambor@suse.cz>
15778
15779 PR ipa/58389
15780 * ipa-prop.c (remove_described_reference): Give up if the edge in the
15781 reference descriptor is NULL.
15782 (ipa_edge_removal_hook): If owning a reference descriptor, set its
15783 edge to NULL.
15784
15785 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15786
15787 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
15788 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
15789 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
15790 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
15791 make_temp_ssa_name): move to tree-ssanames.h
15792 * tree-ssa-alias.h: Move prototype.
15793 * tree-ssa.h: Include tree-ssanames.h.
15794 * tree-ssanames.c (FREE_SSANAMES): Move to here.
15795 * tree-ssanames.h: New. Move items from tree-flow*.h
15796 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
15797
15798 2013-09-12 Richard Biener <rguenther@suse.de>
15799
15800 PR tree-optimization/58404
15801 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15802 propagate non-invariant addresses into dereferences wrapped
15803 in component references.
15804
15805 2013-09-12 Richard Biener <rguenther@suse.de>
15806
15807 PR tree-optimization/58402
15808 * passes.def: Move pass_late_warn_uninitialized later.
15809
15810 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15811
15812 * tree-ssa.h: New. Move content from tree-flow.h and
15813 tree-flow-inline.h.
15814 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
15815 Move prototypes belonging to tree-ssa.c.
15816 * tree-flow-inline.h (redirect_edge_var_map_def,
15817 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
15818 tree-ssa.h.
15819 * gimple.h: Adjust prototypes.
15820 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
15821 to...
15822 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
15823 * tree.h: Move prototype to tree-ssa.h.
15824 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
15825 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
15826 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
15827 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
15828 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
15829 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
15830 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
15831 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
15832 graphite-blocking.c, graphite-clast-to-gimple.c,
15833 graphite-dependences.c, graphite-interchange.c,
15834 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
15835 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
15836 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
15837 ipa-reference.c, ipa-split.c, ipa-utils.c,
15838 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
15839 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
15840 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
15841 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15842 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
15843 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
15844 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
15845 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
15846 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
15847 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
15848 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
15849 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15850 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15851 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
15852 value-prof.c, var-tracking.c,
15853 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
15854
15855 2013-09-12 Richard Biener <rguenther@suse.de>
15856
15857 PR tree-optimization/58396
15858 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
15859 (build_rdg): Take a loop-nest parameter, fix memleaks.
15860 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
15861
15862 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
15863
15864 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
15865 for SLM.
15866
15867 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
15868
15869 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
15870 The FMA instruction names should have a 'v' prefix.
15871
15872 2013-09-12 Richard Biener <rguenther@suse.de>
15873
15874 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
15875 (dot_rdg): Use popen instead of system in optional code.
15876 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
15877 (already_processed_vertex_p): Adjust.
15878 (has_anti_or_output_dependence, predecessor_has_mem_write,
15879 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
15880 rdg_flag_uses): Remove.
15881 (rdg_flag_vertex): Simplify.
15882 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
15883 remove recursion.
15884 (build_rdg_partition_for_component): Process the first vertex
15885 of a component only.
15886 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
15887
15888 2013-09-12 Alan Modra <amodra@gmail.com>
15889
15890 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
15891
15892 2013-09-11 DJ Delorie <dj@redhat.com>
15893 Nick Clifton <nickc@redhat.com>
15894
15895 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
15896 (rl78_stack_based_mem): New.
15897 * config/rl78/constraints.md (Iv08): New.
15898 (Iv16): New.
15899 (Iv24): New.
15900 (Is09): New.
15901 (Is17): New.
15902 (Is25): New.
15903 (ISsi): New.
15904 (IShi): New.
15905 (ISqi): New.
15906 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
15907 (movhi): Likewise.
15908 (movsi): Change from expand to insn-and-split.
15909 (ashrsi3): Clobber AX.
15910 (lshrsi3): New.
15911 (ashlsi3): New.
15912 (cbranchsi4): New.
15913 * config/rl78/rl78.md (CC_REG): Fix.
15914 (addsi3): Allow memory and immediate operands.
15915 (addsi3_internal): Split into...
15916 (addsi3_internal_virt): ...new, and ...
15917 (addsi3_internal_real): ...new.
15918 (subsi): New.
15919 (subsi3_internal_virt): New.
15920 (subsi3_internal_real): New.
15921 (mulsi3): Add memory operand.
15922 (mulsi3_rl78): Likewise.
15923 (mulsi3_g13): Likewise.
15924 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15925 (cbranchqi4_real): Add more constraint options.
15926 (cbranchhi4_real): Expand pattern.
15927 (cbranchhi4_real_signed): New.
15928 (cbranchhi4_real_inverted): New.
15929 (cbranchsi4_real_lt): New.
15930 (cbranchsi4_real_ge): New.
15931 (cbranchsi4_real_signed): New.
15932 (cbranchsi4_real): New.
15933 (peephole2): New.
15934 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15935 constant shifts.
15936 (lshrsi3_virt): Likewise.
15937 (ashlsi3_virt): Likewise.
15938 (cbranchqi4_virt_signed): New.
15939 (cbranchhi4_virt_signed): New.
15940 (cbranchsi4_virt): New.
15941 * config/rl78/rl78.c: Whitespace fixes throughout.
15942 (move_elim_pass): New.
15943 (pass_data_rl78_move_elim): New.
15944 (pass_rl78_move_elim): New.
15945 (make_pass_rl78_move_elim): New.
15946 (rl78_devirt_info): Run devirt earlier.
15947 (rl78_move_elim_info): New.
15948 (rl78_asm_file_start): Register it.
15949 (rl78_split_movsi): New.
15950 (rl78_as_legitimate_address): Allow virtual base registers when
15951 appropriate.
15952 (rl78_addr_space_convert): Remove spurious debug stuff.
15953 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15954 (rl78_print_operand): More cases for not printing '#'.
15955 (rl78_expand_compare): Remove most of the logic.
15956 (content_memory): New.
15957 (clear_content_memory): New.
15958 (get_content_index): New.
15959 (get_content_name): New.
15960 (display_content_memory): New.
15961 (update_content): New.
15962 (record_content): New.
15963 (already_contains): New.
15964 (insn_ok_now): Re-recog insns with virtual registers.
15965 (add_postponed_content_update): New.
15966 (process_postponed_content_update): New.
15967 (gen_and_emit_move): New.
15968 (transcode_memory_rtx): Record new location content.
15969 Use gen_and_emit_move.
15970 (force_into_acc): New.
15971 (move_to_acc): Use gen_and_emit_move.
15972 (move_from_acc): Likewise.
15973 (move_acc_to_reg): Likewise.
15974 (move_to_x): Likewise.
15975 (move_to_hl): Likewise.
15976 (move_to_de): Likewise.
15977 (rl78_alloc_physical_registers_op1): Record location content.
15978 (has_constraint): New.
15979 (rl78_alloc_physical_registers_op2): Record location content.
15980 Optimize use of HL.
15981 (rl78_alloc_physical_registers_ro1): Likewise.
15982 (rl78_alloc_physical_registers_cmp): Likewise.
15983 (rl78_alloc_physical_registers_umul): Likewise.
15984 (rl78_alloc_address_registers_macax): New.
15985 (rl78_alloc_physical_registers): Initialize and set location
15986 content memory as needed.
15987 (rl78_reorg): Make sure split2 is called.
15988 (rl78_rtx_costs): New.
15989
15990 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
15991
15992 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15993 for (not (neg ...)) and (neg (not ...)) cases.
15994
15995 2013-09-11 Richard Biener <rguenther@suse.de>
15996
15997 PR middle-end/58377
15998 * passes.def: Split critical edges before late uninit warning passes.
15999 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
16000
16001 2013-09-11 Jakub Jelinek <jakub@redhat.com>
16002
16003 PR tree-optimization/58385
16004 * fold-const.c (build_range_check): If both low and high are NULL,
16005 use omit_one_operand_loc to preserve exp side-effects.
16006
16007 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16008
16009 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
16010
16011 2013-09-11 Richard Biener <rguenther@suse.de>
16012
16013 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
16014 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
16015 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
16016 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
16017 stmts_from_loop, known_dependences_p, build_empty_rdg,
16018 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
16019 * tree-loop-distribution.c: ... here.
16020 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
16021 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
16022 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
16023 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
16024 * tree-loop-distribution.c: ... here.
16025 * tree-loop-distribution.c: Include gimple-pretty-print.h.
16026 (struct partition_s): Add loops member.
16027 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
16028 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
16029 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
16030
16031 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16032 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16033 Sergey Lega <sergey.s.lega@intel.com>
16034 Anna Tikhonova <anna.tikhonova@intel.com>
16035 Ilya Tocar <ilya.tocar@intel.com>
16036 Andrey Turetskiy <andrey.turetskiy@intel.com>
16037 Ilya Verbin <ilya.verbin@intel.com>
16038 Kirill Yukhin <kirill.yukhin@intel.com>
16039 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16040
16041 * config/i386/constraints.md (k): New.
16042 (Yk): Ditto.
16043 * config/i386/i386.c (const regclass_map): Add new mask registers.
16044 (dbx_register_map): Ditto.
16045 (dbx64_register_map): Ditto.
16046 (svr4_dbx_register_map): Ditto.
16047 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
16048 disabled.
16049 (ix86_preferred_reload_class): Disable constants for mask registers.
16050 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
16051 (ix86_hard_regno_mode_ok): Support new mask registers.
16052 (x86_order_regs_for_local_alloc): Ditto.
16053 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
16054 (FIXED_REGISTERS): Add new mask registers.
16055 (CALL_USED_REGISTERS): Ditto.
16056 (REG_ALLOC_ORDER): Ditto.
16057 (VALID_MASK_REG_MODE): New.
16058 (FIRST_MASK_REG): Ditto.
16059 (LAST_MASK_REG): Ditto.
16060 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
16061 (MAYBE_MASK_CLASS_P): New.
16062 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
16063 (REG_CLASS_CONTENTS): Ditto.
16064 (MASK_REGNO_P): New.
16065 (ANY_MASK_REG_P): Ditto.
16066 (HI_REGISTER_NAMES): Add new mask registers.
16067 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
16068 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
16069 mask registers.
16070 (attribute "type"): Add mskmov, msklog.
16071 (attribute "length_immediate"): Support them.
16072 (attribute "memory"): Ditto.
16073 (attribute "prefix_0f"): Ditto.
16074 (*movhi_internal): Support new mask registers.
16075 (*movqi_internal): Ditto.
16076 (define_split): Split out clobber pattern is a logic
16077 insn on mask registers.
16078 (*k<logic><mode>): New.
16079 (*andhi_1): Extend to support mask regs.
16080 (*andqi_1): Extend to support mask regs.
16081 (kandn<mode>): New.
16082 (define_split): Split and-not to and and not if operands
16083 are not mask regs.
16084 (*<code><mode>_1): Separate HI mode to new pattern...
16085 (*<code>hi_1): This.
16086 (*<code>qi_1): Extend to support mask regs.
16087 (kxnor<mode>): New.
16088 (kortestzhi): Ditto.
16089 (kortestchi): Ditto.
16090 (kunpckhi): Ditto.
16091 (*one_cmpl<mode>2_1): Remove HImode and handle it...
16092 (*one_cmplhi2_1): ...Here, now with mask registers support.
16093 (*one_cmplqi2_1): Support new mask registers.
16094 (HI/QImode arithmetics splitter): Don't split if mask registers
16095 are used.
16096 (HI/QImode not splitter): Ditto.
16097 * config/i386/predicated.md (mask_reg_operand): New.
16098 (general_reg_operand): Ditto.
16099
16100 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16101
16102 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
16103 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
16104
16105 2013-09-10 Jeff Law <law@redhat.com>
16106
16107 PR tree-optimization/58380
16108 * tree-ssa-threadupdate.c (thread_block): Recognize another case
16109 of threading through a buried loop header.
16110
16111 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
16112 return value for single successor case.
16113
16114 2013-09-10 Jan Hubicka <jh@suse.cz>
16115
16116 * ipa-devirt.c (ipa_devirt): Enable with LTO.
16117
16118 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
16119
16120 PR target/58361
16121 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
16122 support conditional execution.
16123 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
16124
16125 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
16126
16127 * lra.c (lra): Clear lra_optional_reload_pseudos before every
16128 constraint pass.
16129 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
16130 Check destination too to check move insn.
16131 (undo_optional_reloads): Add check that the original peudo did not
16132 changed its allocation and the optional reload was inherited on last
16133 inheritance pass. Break loop after deciding to keep optional reload.
16134 (lra_undo_inheritance): Add check that inherited pseudo still in
16135 memory.
16136
16137 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
16138
16139 * config/aarch64/aarch64.md (generic_sched): New.
16140 * config/aarch64/aarch64-generic.md (load): Make conditional
16141 on generic_sched attribute.
16142 (nonload): Likewise.
16143
16144 2013-09-10 Jan Hubicka <jh@suse.cz>
16145
16146 * lto-cgraph.c: Include ipa-utils.h.
16147 (compute_ltrans_boundary): Also add possible targets into the boundary.
16148
16149 2013-09-10 Jan Hubicka <jh@suse.cz>
16150
16151 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
16152 VAR_DECL of vtable rather than full expression.
16153
16154 2013-09-10 Jan Hubicka <jh@suse.cz>
16155 Paolo Carlini <paolo.carlini@oracle.com>
16156
16157 * cgraphunit.c (analyze_functions): Save input_location, set it
16158 to UNKNOWN_LOCATION and restore it at the end.
16159
16160 2013-09-10 Martin Jambor <mjambor@suse.cz>
16161
16162 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
16163 represented by a thunk.
16164
16165 2013-09-10 Jeff Law <law@redhat.com>
16166
16167 PR tree-optimization/58343
16168 * tree-ssa-threadupdate.c (thread_block): Identify and disable
16169 jump threading requests through loop headers buried in the middle
16170 of a jump threading path.
16171
16172 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
16173 in return value/type.
16174
16175 2013-09-10 Jakub Jelinek <jakub@redhat.com>
16176
16177 PR rtl-optimization/58365
16178 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
16179 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
16180 it differs.
16181
16182 2013-09-10 Richard Biener <rguenther@suse.de>
16183
16184 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
16185 * tree-data-ref.c (create_rdg_vertices): Collect all data
16186 references, signal failure to the caller, use data-ref API.
16187 (build_rdg): Compute data references only once. Maintain lifetime
16188 of data references and data dependences from within RDG.
16189 (free_rdg): Free dependence relations.
16190 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
16191 inventing extra dependences.
16192 (distribute_loop): Update for RDG API changes.
16193
16194 2013-09-10 Kai Tietz <ktietz@redhat.com>
16195
16196 * doc/invoke.texi (fms-extensions): Document changed
16197 behavior for ms-abi targets.
16198 * config/i386/i386.c (ix86_option_override_internal):
16199 Set default value of option -fms-extension for ms-abi targets.
16200
16201 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
16202
16203 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
16204
16205 2013-09-10 Alan Modra <amodra@gmail.com>
16206
16207 PR target/58330
16208 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
16209
16210 2013-09-10 Alan Modra <amodra@gmail.com>
16211
16212 * config/rs6000/predicates.md (add_cint_operand): New.
16213 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
16214 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
16215 using add_cint_operand.
16216 (largetoc_high_plus_aix): Likewise.
16217
16218 2013-09-09 Jakub Jelinek <jakub@redhat.com>
16219
16220 PR tree-optimization/58364
16221 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
16222 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
16223 the current range can't be an unconditional true or false.
16224
16225 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
16226
16227 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
16228
16229 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
16230
16231 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
16232
16233 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
16234
16235 PR c++/43452
16236 * doc/invoke.texi (-Wdelete-incomplete): Document it.
16237
16238 2013-09-09 Ian Bolton <ian.bolton@arm.com>
16239
16240 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
16241 NO_REGS for immediate that can't be moved directly into FP_REGS.
16242
16243 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16244
16245 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
16246 comparison with negated operand.
16247 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
16248 RTL form.
16249
16250 2013-09-09 Richard Biener <rguenther@suse.de>
16251
16252 PR middle-end/58326
16253 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
16254 of a subloop record all its block as affecting loop-closed SSA form.
16255
16256 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16257
16258 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
16259 of an rtx/bitpos pair.
16260 (store_fixed_bit_field): Update accordingly.
16261
16262 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16263
16264 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
16265 GEN_INT.
16266 * builtins.c (expand_errno_check): Likewise.
16267 * dwarf2cfi.c (init_return_column_size): Likewise.
16268 * except.c (sjlj_mark_call_sites): Likewise.
16269 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
16270 * lra-constraints.c (emit_inc): Likewise.
16271 * ree.c (combine_set_extension): Likewise.
16272 * regmove.c (fixup_match_2): Likewise.
16273 * reload1.c (inc_for_reload): Likewise.
16274
16275 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16276
16277 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
16278 (force_to_mode, simplify_shift_const_1, simplify_comparison):
16279 Use gen_int_mode with the mode of the associated simplify_* call.
16280 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
16281 * expmed.c (expand_shift_1): Likewise.
16282 * function.c (instantiate_virtual_regs_in_insn): Likewise.
16283 * loop-iv.c (iv_number_of_iterations): Likewise.
16284 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
16285 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16286
16287 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16288
16289 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
16290 of the associated expand_* call.
16291 (asan_emit_stack_protection): Likewise.
16292 * builtins.c (round_trampoline_addr): Likewise.
16293 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
16294 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
16295 (emit_store_flag): Likewise.
16296 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
16297 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
16298 Likewise.
16299 * function.c (instantiate_virtual_regs_in_insn): Likewise.
16300 * ifcvt.c (noce_try_store_flag_constants): Likewise.
16301 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
16302 * modulo-sched.c (generate_prolog_epilog): Likewise.
16303 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
16304 (expand_ctz, expand_ffs, expand_unop): Likewise.
16305
16306 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16307
16308 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
16309 of the associated gen_rtx_* call.
16310 * caller-save.c (init_caller_save): Likewise.
16311 * combine.c (find_split_point, make_extraction): Likewise.
16312 (make_compound_operation): Likewise.
16313 * dwarf2out.c (mem_loc_descriptor): Likewise.
16314 * explow.c (plus_constant, probe_stack_range): Likewise.
16315 * expmed.c (expand_mult_const): Likewise.
16316 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
16317 * reload1.c (init_reload): Likewise.
16318 * valtrack.c (cleanup_auto_inc_dec): Likewise.
16319 * var-tracking.c (adjust_mems): Likewise.
16320 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
16321 rather than gen_rtx_fmt_ee.
16322
16323 2013-09-09 Jan Hubicka <jh@suse.cz>
16324
16325 PR middle-end/58294
16326 * value-prof.c (gimple_ic): Copy also abnormal edges.
16327
16328 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16329
16330 * asan.c (asan_shadow_cst): Use gen_int_mode.
16331
16332 2013-09-08 Jan Hubicka <jh@suse.cz>
16333
16334 * ipa-profile.c: Add toplevel comment.
16335 (ipa_propagate_frequency_1): Be more conservative when profile is read.
16336 (contains_hot_call_p): New function.
16337 (ipa_propagate_frequency): Set frequencies based on counts when
16338 profile is read.
16339 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
16340 profile; do not tamper with profile after inlining if it is read.
16341
16342 2013-09-08 Jan Hubicka <jh@suse.cz>
16343
16344 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
16345 speculative edges.
16346
16347 2013-09-08 Jan Hubicka <jh@suse.cz>
16348
16349 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
16350 summary generation.
16351
16352 2013-09-08 Jeff Law <law@redhat.com>
16353
16354 PR bootstrap/58340
16355 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
16356 of 'found'.
16357
16358 2013-09-08 Andi Kleen <ak@linux.intel.com>
16359
16360 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
16361
16362 2013-09-08 Jan Hubicka <jh@suse.cz>
16363
16364 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
16365
16366 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
16367
16368 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
16369 for non-debug insns.
16370 * lra.c (new_insn_reg): Take the containing insn as a parameter.
16371 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
16372 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
16373 accordingly.
16374
16375 2013-09-08 Jan Hubicka <jh@suse.cz>
16376
16377 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
16378 targets and devirtualize to BUILT_IN_UNREACHABLE.
16379 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
16380 * ipa.c (walk_polymorphic_call_targets): New function.
16381 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
16382 functions; use the new timevar.
16383 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
16384 was removed from the program.
16385 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
16386 not consider it in the walk when its vtable is dead.
16387 (possible_polymorphic_call_targets_1): Pass anonymous flag to
16388 record_binfo.
16389 (devirt_variable_node_removal_hook): New function.
16390 (possible_polymorphic_call_targets): Also register
16391 devirt_variable_node_removal_hook.
16392 (ipa_devirt): Do not do non-speculative devirtualization.
16393 (gate_ipa_devirt): One execute if devirtualizing speculatively.
16394
16395 2013-09-08 Jan Hubicka <jh@suse.cz>
16396
16397 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
16398 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
16399 varpool_remove_variable_insertion_hook): Declare.
16400 * varpool.c (varpool_node_hook_list): New structure.
16401 (first_varpool_node_removal_hook,
16402 first_varpool_variable_insertion_hook): New variables.
16403 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
16404 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
16405 varpool_remove_variable_insertion_hook,
16406 varpool_call_variable_insertion_hooks): New functions.
16407 (varpool_remove_node): Use it.
16408
16409 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
16410
16411 PR c++/54941
16412 * diagnostic.c (diagnostic_build_prefix): When s.file is
16413 "<built-in>" don't output line and column numbers.
16414
16415 2013-09-06 Jan Hubicka <jh@suse.cz>
16416
16417 * cgraphunit.c (expand_thunk): Get body before touching arguments.
16418 * lto-streamer-out.c: Stream thunks, too.
16419 * lto-streamer-in.c (input_function): Pop cfun here
16420 (lto_read_body): Instead of here.
16421
16422 2013-09-06 Caroline Tice <cmtice@google.com>
16423
16424 * doc/install.texi: Add documentation for the --enable-vtable-verify
16425 and the --disable-libvtv configure options.
16426
16427 2013-09-06 Jeff Law <law@redhat.com>
16428
16429 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16430 edge implied equivalences into successor phis.
16431
16432 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
16433
16434 * resource.c (mark_referenced_resources): Handle COND_EXEC.
16435
16436 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
16437
16438 * resource.c (mark_target_live_regs): Compute resources taking
16439 into account if a call is predicated or not.
16440
16441 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
16442
16443 * toplev.c (output_stack_usage): Be prepared for suffixes created by
16444 the compiler in the function names.
16445
16446 2013-09-06 Jan Hubicka <jh@suse.cz>
16447
16448 PR middle-end/58094
16449 * ipa-inline.c (has_caller_p): New function.
16450 (want_inline_function_to_all_callers_p): Use it.
16451 (sum_callers, inline_to_all_callers): Break out from ...
16452 (ipa_inline): ... here.
16453
16454 2013-09-06 Jan Hubicka <jh@suse.cz>
16455
16456 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
16457 only when AVX is enabled.
16458
16459 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16460
16461 * config/aarch64/aarch64.md
16462 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
16463 is fpsimd_<load/store>2.
16464 (load_pair<mode>): Likewise.
16465 (store_pair<mode>): Likewise.
16466
16467 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16468
16469 * config/arm/types.md (type): Add "mrs" type.
16470 * config/aarch64/aarch64.md
16471 (aarch64_load_tp_hard): Make type "mrs".
16472 * config/arm/arm.md
16473 (load_tp_hard): Make type "mrs".
16474 * config/arm/cortex-a15.md: Update with new attributes.
16475 * config/arm/cortex-a5.md: Update with new attributes.
16476 * config/arm/cortex-a53.md: Update with new attributes.
16477 * config/arm/cortex-a7.md: Update with new attributes.
16478 * config/arm/cortex-a8.md: Update with new attributes.
16479 * config/arm/cortex-a9.md: Update with new attributes.
16480 * config/arm/cortex-m4.md: Update with new attributes.
16481 * config/arm/cortex-r4.md: Update with new attributes.
16482 * config/arm/fa526.md: Update with new attributes.
16483 * config/arm/fa606te.md: Update with new attributes.
16484 * config/arm/fa626te.md: Update with new attributes.
16485 * config/arm/fa726te.md: Update with new attributes.
16486
16487 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16488
16489 * config/aarch64/aarch64.md
16490 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
16491 (*movtf_aarch64): Likewise.
16492 * config/arm/arm.md
16493 (thumb1_movdi_insn): Use "multiple" for type where more than one
16494 instruction is used for a move.
16495 (*arm32_movhf): Likewise.
16496 (*thumb_movdf_insn): Likewise.
16497
16498 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16499
16500 * config/arm/types.md (type): Rename fcpys to fmov.
16501 * config/arm/vfp.md
16502 (*arm_movsi_vfp): Rename type fcpys as fmov.
16503 (*thumb2_movsi_vfp): Likewise
16504 (*movhf_vfp_neon): Likewise
16505 (*movhf_vfp): Likewise
16506 (*movsf_vfp): Likewise
16507 (*thumb2_movsf_vfp): Likewise
16508 (*movsfcc_vfp): Likewise
16509 (*thumb2_movsfcc_vfp): Likewise
16510 * config/aarch64/aarch64-simd.md
16511 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
16512 * config/aarch64/aarch64.md
16513 (*movsi_aarch64): Replace type mov_reg with fmovs.
16514 (*movdi_aarch64): Likewise
16515 (*movsf_aarch64): Likewise
16516 (*movdf_aarch64): Likewise
16517 * config/arm/arm.c
16518 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
16519 * config/arm/iwmmxt.md
16520 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
16521 * config/arm/arm1020e.md: Update with new attributes.
16522 * config/arm/cortex-a15-neon.md: Update with new attributes.
16523 * config/arm/cortex-a5.md: Update with new attributes.
16524 * config/arm/cortex-a53.md: Update with new attributes.
16525 * config/arm/cortex-a7.md: Update with new attributes.
16526 * config/arm/cortex-a8-neon.md: Update with new attributes.
16527 * config/arm/cortex-a9.md: Update with new attributes.
16528 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16529 * config/arm/cortex-r4f.md: Update with new attributes.
16530 * config/arm/marvell-pj4.md: Update with new attributes.
16531 * config/arm/vfp11.md: Update with new attributes.
16532
16533 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16534
16535 * config/aarch64/aarch64.md
16536 (*madd<mode>): Fix type attribute.
16537 (*maddsi_uxtw): Likewise.
16538 (*msub<mode>): Likewise.
16539 (*msubsi_uxtw): Likewise.
16540 (<su_optab>maddsidi4): Likewise.
16541 (<su_optab>msubsidi4): Likewise.
16542
16543 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16544
16545 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
16546 * config/arm/arm.md (core_cycles): Remove fdiv.
16547 * config/arm/vfp.md:
16548 (*sqrtsf2_vfp): Update for attribute changes.
16549 (*sqrtdf2_vfp): Likewise.
16550 * config/aarch64/aarch64.md:
16551 (sqrt<mode>2): Update for attribute changes.
16552 * config/arm/arm1020e.md: Update with new attributes.
16553 * config/arm/cortex-a15-neon.md: Update with new attributes.
16554 * config/arm/cortex-a5.md: Update with new attributes.
16555 * config/arm/cortex-a53.md: Update with new attributes.
16556 * config/arm/cortex-a7.md: Update with new attributes.
16557 * config/arm/cortex-a8-neon.md: Update with new attributes.
16558 * config/arm/cortex-a9.md: Update with new attributes.
16559 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16560 * config/arm/cortex-r4f.md: Update with new attributes.
16561 * config/arm/marvell-pj4.md: Update with new attributes.
16562 * config/arm/vfp11.md: Update with new attributes.
16563
16564 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16565
16566 * config/arm/types.md
16567 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
16568 * config/aarch64/aarch64.md
16569 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
16570 new attributes.
16571 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16572 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
16573 (float<GPI:mode><GPF:mode>2): Likewise.
16574 * config/arm/vfp.md
16575 (*truncsisf2_vfp): Update with new attributes.
16576 (*truncsidf2_vfp): Likewise.
16577 (fixuns_truncsfsi2): Likewise.
16578 (fixuns_truncdfsi2): Likewise.
16579 (*floatsisf2_vfp): Likewise.
16580 (*floatsidf2_vfp): Likewise.
16581 (floatunssisf2): Likewise.
16582 (floatunssidf2): Likewise.
16583 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
16584 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
16585 * config/arm/arm1020e.md: Update with new attributes.
16586 * config/arm/cortex-a15-neon.md: Update with new attributes.
16587 * config/arm/cortex-a5.md: Update with new attributes.
16588 * config/arm/cortex-a53.md: Update with new attributes.
16589 * config/arm/cortex-a7.md: Update with new attributes.
16590 * config/arm/cortex-a8-neon.md: Update with new attributes.
16591 * config/arm/cortex-a9.md: Update with new attributes.
16592 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16593 * config/arm/cortex-r4f.md: Update with new attributes.
16594 * config/arm/marvell-pj4.md: Update with new attributes.
16595 * config/arm/vfp11.md: Update with new attributes.
16596
16597 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16598
16599 * config/aarch64/arm_neon.h
16600 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
16601 (vqtbx<1,2,3,4><q>_s8): Likewise.
16602
16603 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16604
16605 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
16606 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
16607 (add<mode>3): Add type attribute.
16608 (add<mode>3): Likewise.
16609 (usadd<mode>3): Likewise.
16610 (ssadd<mode>3): Likewise.
16611 (sub<mode>3): Likewise.
16612 (sub<mode>3): Likewise.
16613 (ussub<mode>3): Likewise.
16614 (sssub<mode>3): Likewise.
16615 (ssmulsa3): Likewise.
16616 (usmulusa3): Likewise.
16617 (arm_usatsihi): Likewise.
16618 * config/arm/vfp.md
16619 (*movdi_vfp): Add types for all instructions.
16620 (*movdi_vfp_cortexa8): Likewise.
16621 (*movhf_vfp_neon): Likewise.
16622 (*movhf_vfp): Likewise.
16623 (*movdf_vfp): Likewise.
16624 (*thumb2_movdf_vfp): Likewise.
16625 (*thumb2_movdfcc_vfp): Likewise.
16626 * config/arm/arm.md: Add type attribute to all insn patterns.
16627 (*thumb1_adddi3): Add type attribute.
16628 (*arm_adddi3): Likewise.
16629 (*adddi_sesidi_di): Likewise.
16630 (*adddi_zesidi_di): Likewise.
16631 (*thumb1_addsi3): Likewise.
16632 (addsi3_compare0): Likewise.
16633 (*addsi3_compare0_scratch): Likewise.
16634 (*compare_negsi_si): Likewise.
16635 (cmpsi2_addneg): Likewise.
16636 (*addsi3_carryin_<optab>): Likewise.
16637 (*addsi3_carryin_alt2_<optab>): Likewise.
16638 (*addsi3_carryin_clobercc_<optab>): Likewise.
16639 (*subsi3_carryin): Likewise.
16640 (*subsi3_carryin_const): Likewise.
16641 (*subsi3_carryin_compare): Likewise.
16642 (*subsi3_carryin_compare_const): Likewise.
16643 (*arm_subdi3): Likewise.
16644 (*thumb_subdi3): Likewise.
16645 (*subdi_di_zesidi): Likewise.
16646 (*subdi_di_sesidi): Likewise.
16647 (*subdi_zesidi_di): Likewise.
16648 (*subdi_sesidi_di): Likewise.
16649 (*subdi_zesidi_ze): Likewise.
16650 (thumb1_subsi3_insn): Likewise.
16651 (*arm_subsi3_insn): Likewise.
16652 (*anddi3_insn): Likewise.
16653 (*anddi_zesidi_di): Likewise.
16654 (*anddi_sesdi_di): Likewise.
16655 (*ne_zeroextracts): Likewise.
16656 (*ne_zeroextracts): Likewise.
16657 (*ite_ne_zeroextr): Likewise.
16658 (*ite_ne_zeroextr): Likewise.
16659 (*anddi_notdi_di): Likewise.
16660 (*anddi_notzesidi): Likewise.
16661 (*anddi_notsesidi): Likewise.
16662 (andsi_notsi_si): Likewise.
16663 (thumb1_bicsi3): Likewise.
16664 (*iordi3_insn): Likewise.
16665 (*iordi_zesidi_di): Likewise.
16666 (*iordi_sesidi_di): Likewise.
16667 (*thumb1_iorsi3_insn): Likewise.
16668 (*xordi3_insn): Likewise.
16669 (*xordi_zesidi_di): Likewise.
16670 (*xordi_sesidi_di): Likewise.
16671 (*arm_xorsi3): Likewise.
16672 (*andsi_iorsi3_no): Likewise.
16673 (*smax_0): Likewise.
16674 (*smax_m1): Likewise.
16675 (*arm_smax_insn): Likewise.
16676 (*smin_0): Likewise.
16677 (*arm_smin_insn): Likewise.
16678 (*arm_umaxsi3): Likewise.
16679 (*arm_uminsi3): Likewise.
16680 (*minmax_arithsi): Likewise.
16681 (*minmax_arithsi_): Likewise.
16682 (*satsi_<SAT:code>): Likewise.
16683 (arm_ashldi3_1bit): Likewise.
16684 (arm_ashrdi3_1bit): Likewise.
16685 (arm_lshrdi3_1bit): Likewise.
16686 (*arm_negdi2): Likewise.
16687 (*thumb1_negdi2): Likewise.
16688 (*arm_negsi2): Likewise.
16689 (*thumb1_negsi2): Likewise.
16690 (*negdi_extendsid): Likewise.
16691 (*negdi_zero_extend): Likewise.
16692 (*arm_abssi2): Likewise.
16693 (*thumb1_abssi2): Likewise.
16694 (*arm_neg_abssi2): Likewise.
16695 (*thumb1_neg_abss): Likewise.
16696 (one_cmpldi2): Likewise.
16697 (extend<mode>di2): Likewise.
16698 (*compareqi_eq0): Likewise.
16699 (*arm_extendhisi2addsi): Likewise.
16700 (*arm_movdi): Likewise.
16701 (*thumb1_movdi_insn): Likewise.
16702 (*arm_movt): Likewise.
16703 (*thumb1_movsi_insn): Likewise.
16704 (pic_add_dot_plus_four): Likewise.
16705 (pic_add_dot_plus_eight): Likewise.
16706 (tls_load_dot_plus_eight): Likewise.
16707 (*thumb1_movhi_insn): Likewise.
16708 (*thumb1_movsf_insn): Likewise.
16709 (*movdf_soft_insn): Likewise.
16710 (*thumb_movdf_insn): Likewise.
16711 (cbranchsi4_insn): Likewise.
16712 (cbranchsi4_scratch): Likewise.
16713 (*negated_cbranchsi4): Likewise.
16714 (*tbit_cbranch): Likewise.
16715 (*tlobits_cbranch): Likewise.
16716 (*tstsi3_cbranch): Likewise.
16717 (*cbranchne_decr1): Likewise.
16718 (*addsi3_cbranch): Likewise.
16719 (*addsi3_cbranch_scratch): Likewise.
16720 (*arm_cmpdi_insn): Likewise.
16721 (*arm_cmpdi_unsig): Likewise.
16722 (*arm_cmpdi_zero): Likewise.
16723 (*thumb_cmpdi_zero): Likewise.
16724 (*deleted_compare): Likewise.
16725 (*mov_scc): Likewise.
16726 (*mov_negscc): Likewise.
16727 (*mov_notscc): Likewise.
16728 (*cstoresi_eq0_thumb1_insn): Likewise.
16729 (cstoresi_nltu_thumb1): Likewise.
16730 (cstoresi_ltu_thu): Likewise.
16731 (thumb1_addsi3_addgeu): Likewise.
16732 (*arm_jump): Likewise.
16733 (*thumb_jump): Likewise.
16734 (*check_arch2): Likewise.
16735 (arm_casesi_internal): Likewise.
16736 (thumb1_casesi_dispatch): Likewise.
16737 (*arm_indirect_jump): Likewise.
16738 (*thumb1_indirect_jump): Likewise.
16739 (nop): Likewise.
16740 (*and_scc): Likewise.
16741 (*ior_scc): Likewise.
16742 (*compare_scc): Likewise.
16743 (*cond_move): Likewise.
16744 (*cond_arith): Likewise.
16745 (*cond_sub): Likewise.
16746 (*cmp_ite0): Likewise.
16747 (*cmp_ite1): Likewise.
16748 (*cmp_and): Likewise.
16749 (*cmp_ior): Likewise.
16750 (*ior_scc_scc): Likewise.
16751 (*ior_scc_scc_cmp): Likewise.
16752 (*and_scc_scc): Likewise.
16753 (*and_scc_scc_cmp): Likewise.
16754 (*and_scc_scc_nod): Likewise.
16755 (*negscc): Likewise.
16756 (movcond_addsi): Likewise.
16757 (movcond): Likewise.
16758 (*ifcompare_plus_move): Likewise.
16759 (*if_plus_move): Likewise.
16760 (*ifcompare_move_plus): Likewise.
16761 (*if_move_plus): Likewise.
16762 (*ifcompare_arith_arith): Likewise.
16763 (*if_arith_arith): Likewise.
16764 (*ifcompare_arith_move): Likewise.
16765 (*if_arith_move): Likewise.
16766 (*ifcompare_move_arith): Likewise.
16767 (*if_move_arith): Likewise.
16768 (*ifcompare_move_not): Likewise.
16769 (*if_move_not): Likewise.
16770 (*ifcompare_not_move): Likewise.
16771 (*if_not_move): Likewise.
16772 (*ifcompare_shift_move): Likewise.
16773 (*if_shift_move): Likewise.
16774 (*ifcompare_move_shift): Likewise.
16775 (*if_move_shift): Likewise.
16776 (*ifcompare_shift_shift): Likewise.
16777 (*ifcompare_not_arith): Likewise.
16778 (*ifcompare_arith_not): Likewise.
16779 (*if_arith_not): Likewise.
16780 (*ifcompare_neg_move): Likewise.
16781 (*if_neg_move): Likewise.
16782 (*ifcompare_move_neg): Likewise.
16783 (*if_move_neg): Likewise.
16784 (prologue_thumb1_interwork): Likewise.
16785 (*cond_move_not): Likewise.
16786 (*sign_extract_onebit): Likewise.
16787 (*not_signextract_onebit): Likewise.
16788 (stack_tie): Likewise.
16789 (align_4): Likewise.
16790 (align_8): Likewise.
16791 (consttable_end): Likewise.
16792 (consttable_1): Likewise.
16793 (consttable_2): Likewise.
16794 (consttable_4): Likewise.
16795 (consttable_8): Likewise.
16796 (consttable_16): Likewise.
16797 (*thumb1_tablejump): Likewise.
16798 (prefetch): Likewise.
16799 (force_register_use): Likewise.
16800 (thumb_eh_return): Likewise.
16801 (load_tp_hard): Likewise.
16802 (load_tp_soft): Likewise.
16803 (tlscall): Likewise.
16804 (*arm_movtas_ze): Likewise.
16805 (*arm_rev): Likewise.
16806 (*arm_revsh): Likewise.
16807 (*arm_rev16): Likewise.
16808 * config/arm/thumb2.md
16809 (*thumb2_smaxsi3): Likewise.
16810 (*thumb2_sminsi3): Likewise.
16811 (*thumb32_umaxsi3): Likewise.
16812 (*thumb2_uminsi3): Likewise.
16813 (*thumb2_negdi2): Likewise.
16814 (*thumb2_abssi2): Likewise.
16815 (*thumb2_neg_abss): Likewise.
16816 (*thumb2_movsi_insn): Likewise.
16817 (tls_load_dot_plus_four): Likewise.
16818 (*thumb2_movhi_insn): Likewise.
16819 (*thumb2_mov_scc): Likewise.
16820 (*thumb2_mov_negs): Likewise.
16821 (*thumb2_mov_negs): Likewise.
16822 (*thumb2_mov_nots): Likewise.
16823 (*thumb2_mov_nots): Likewise.
16824 (*thumb2_movsicc_): Likewise.
16825 (*thumb2_movsfcc_soft_insn): Likewise.
16826 (*thumb2_indirect_jump): Likewise.
16827 (*thumb2_and_scc): Likewise.
16828 (*thumb2_ior_scc): Likewise.
16829 (*thumb2_ior_scc_strict_it): Likewise.
16830 (*thumb2_cond_move): Likewise.
16831 (*thumb2_cond_arith): Likewise.
16832 (*thumb2_cond_ari): Likewise.
16833 (*thumb2_cond_sub): Likewise.
16834 (*thumb2_negscc): Likewise.
16835 (*thumb2_movcond): Likewise.
16836 (thumb2_casesi_internal): Likewise.
16837 (thumb2_casesi_internal_pic): Likewise.
16838 (*thumb2_alusi3_short): Likewise.
16839 (*thumb2_mov<mode>_shortim): Likewise.
16840 (*thumb2_addsi_short): Likewise.
16841 (*thumb2_subsi_short): Likewise.
16842 (thumb2_addsi3_compare0): Likewise.
16843 (*thumb2_cbz): Likewise.
16844 (*thumb2_cbnz): Likewise.
16845 (*thumb2_one_cmplsi2_short): Likewise.
16846 (*thumb2_negsi2_short): Likewise.
16847 (*orsi_notsi_si): Likewise.
16848 * config/arm/arm1020e.md: Update with new attributes.
16849 * config/arm/arm1026ejs.md: Update with new attributes.
16850 * config/arm/arm1136jfs.md: Update with new attributes.
16851 * config/arm/arm926ejs.md: Update with new attributes.
16852 * config/arm/cortex-a15.md: Update with new attributes.
16853 * config/arm/cortex-a5.md: Update with new attributes.
16854 * config/arm/cortex-a53.md: Update with new attributes.
16855 * config/arm/cortex-a7.md: Update with new attributes.
16856 * config/arm/cortex-a8.md: Update with new attributes.
16857 * config/arm/cortex-a9.md: Update with new attributes.
16858 * config/arm/cortex-m4.md: Update with new attributes.
16859 * config/arm/cortex-r4.md: Update with new attributes.
16860 * config/arm/fa526.md: Update with new attributes.
16861 * config/arm/fa606te.md: Update with new attributes.
16862 * config/arm/fa626te.md: Update with new attributes.
16863 * config/arm/fa726te.md: Update with new attributes.
16864
16865 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16866
16867 * config/aarch64/aarch64-simd.md
16868 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
16869 <vwx> iterator to ensure correct register choice.
16870 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
16871 (aarch64_sqdmull_n<mode>): Likewise.
16872 (aarch64_sqdmull2_n<mode>_internal): Likewise.
16873 * config/aarch64/arm_neon.h
16874 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
16875 (vml<as><q>_n_<su>16): Likewise.
16876 (vml<as>l_high_lane<q>_<su>16): Likewise.
16877 (vml<as>l_high_n_<su>16): Likewise.
16878 (vml<as>l_lane<q>_<su>16): Likewise.
16879 (vml<as>l_n_<su>16): Likewise.
16880 (vmul<q>_lane<q>_<su>16): Likewise.
16881 (vmul<q>_n_<su>16): Likewise.
16882 (vmull_lane<q>_<su>16): Likewise.
16883 (vmull_n_<su>16): Likewise.
16884 (vmull_high_lane<q>_<su>16): Likewise.
16885 (vmull_high_n_<su>16): Likewise.
16886 (vqrdmulh<q>_n_s16): Likewise.
16887
16888 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
16889
16890 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
16891 have the correct lane parameter.
16892
16893 2013-09-06 Richard Biener <rguenther@suse.de>
16894
16895 * cfganal.c (control_dependences::~control_dependences):
16896 Properly free all of the vector.
16897
16898 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
16899
16900 PR target/58269
16901 * config/i386/i386.c (ix86_conditional_register_usage):
16902 Proper initialize extended SSE registers.
16903
16904 2013-09-06 Jan Hubicka <jh@suse.cz>
16905
16906 PR tree-optimization/58311
16907 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
16908
16909 2013-09-06 Jan Hubicka <jh@suse.cz>
16910
16911 * Makefile.in (tree-sra.o): Update dependencies.
16912 * tree-sra.c: Include ipa-utils.h
16913 (scan_function): Use recursive_call_p.
16914 (has_caller_p): New function.
16915 (cgraph_for_node_and_aliases): Count also callers of aliases.
16916
16917 2013-09-06 Jan Hubicka <jh@suse.cz>
16918
16919 PR middle-end/58094
16920 * cgraph.h (symtab_semantically_equivalent_p): Declare.
16921 * tree-tailcall.c: Include ipa-utils.h.
16922 (find_tail_calls): Use it.
16923 * ipa-pure-const.c (check_call): Likewise.
16924 * ipa-utils.c (recursive_call_p): New function.
16925 * ipa-utils.h (recursive_call_p): Dclare.
16926 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16927 (symtab_semantically_equivalent_p): New function.
16928 * Makefile.in (tree-tailcall.o): Update dependencies.
16929
16930 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
16931
16932 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16933 non-inlinable part.
16934
16935 2013-09-06 Richard Biener <rguenther@suse.de>
16936
16937 * lto-streamer.h (lto_global_var_decls): Remove.
16938 * Makefile.in (OBJS): Remove lto-symtab.o.
16939 (lto-symtab.o): Remove.
16940 (GTFILES): Remove lto-symtab.c
16941 * lto-symtab.c: Move to lto/
16942
16943 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16944
16945 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16946 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16947 (UNSPEC_FPINT_RINT): New constant definitions.
16948 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16949 definition with 2 attributes.
16950 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16951 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16952 definitions.
16953
16954 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16955
16956 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16957 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16958 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
16959 attribute to "z196_alone".
16960 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16961 "zEC12_simple".
16962
16963 2013-09-06 Richard Biener <rguenther@suse.de>
16964
16965 * basic-block.h (class control_dependences): New.
16966 * tree-ssa-dce.c (control_dependence_map): Remove.
16967 (cd): New global.
16968 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16969 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16970 find_pdom, find_control_dependence, find_all_control_dependences):
16971 Move to cfganal.c.
16972 (mark_control_dependent_edges_necessary,
16973 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16974 tree_dce_done, perform_tree_ssa_dce): Adjust.
16975 * cfganal.c (set_control_dependence_map_bit,
16976 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16977 find_all_control_dependences): Move from tree-ssa-dce.c and
16978 implement as methods of control_dependences class.
16979 (control_dependences::control_dependences): New.
16980 (control_dependences::~control_dependences): Likewise.
16981 (control_dependences::get_edges_dependent_on): Likewise.
16982 (control_dependences::get_edge): Likewise.
16983
16984 2013-09-04 Jan Hubicka <jh@suse.cz>
16985
16986 * tree.c (types_same_for_odr): Drop overactive check.
16987 * ipa-devirt.c (hash_type_name): Likewise.
16988
16989 2013-09-04 Jan Hubicka <jh@suse.cz>
16990
16991 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16992 (analyze_functions): ... here.
16993
16994 2013-09-04 Jan Hubicka <jh@suse.cz>
16995
16996 PR middle-end/58201
16997 * cgraphunit.c (analyze_functions): Clear AUX fields
16998 after processing; initialize assembler name has.
16999
17000 2013-09-05 Jeff Law <law@redhat.com>
17001
17002 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
17003 from thread_around_empty_block. Record threading path into PATH.
17004 Recurse if threading through the initial block is successful.
17005 (thread_across_edge): Corresponding changes to slightly simplify.
17006
17007 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
17008
17009 * config/aarch64/aarch64.md
17010 (type): Remove frecpe, frecps, frecpx.
17011 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
17012 fix to be a TARGET_SIMD instruction.
17013 (aarch64_frecps): Remove.
17014 * config/aarch64/aarch64-simd.md
17015 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
17016 (aarch64_frecps<mode>): Handle all float/vector of float modes.
17017
17018 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
17019 Sofiane Naci <sofiane.naci@arm.com>
17020
17021 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
17022 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
17023 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
17024 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
17025 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
17026 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
17027 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
17028 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
17029 into "clz, "rbit". Rename "shift" to "shift_imm".
17030 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
17031 changes. Update for attribute changes all occurrences of arlo_* and
17032 shift* types.
17033 * config/arm/arm-fixed.md: Update for attribute changes
17034 all occurrences of arlo_* types.
17035 * config/arm/thumb2.md: Update for attribute changes all occurrences
17036 of arlo_* types.
17037 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
17038 (cortexa7_older_only): Likewise.
17039 (cortexa7_younger): Likewise.
17040 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
17041 (1020alu_shift_op): Likewise.
17042 (1020alu_shift_reg_op): Likewise.
17043 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
17044 (alu_shift_op): Likewise.
17045 (alu_shift_reg_op): Likewise.
17046 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
17047 (11_alu_shift_op): Likewise.
17048 (11_alu_shift_reg_op): Likewise.
17049 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
17050 (9_alu_shift_reg_op): Likewise.
17051 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
17052 attribute changes.
17053 (cortex_a15_alu_shift): Likewise.
17054 (cortex_a15_alu_shift_reg): Likewise.
17055 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
17056 attribute changes.
17057 (cortex_a5_alu_shift): Likewise.
17058 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
17059 attribute changes.
17060 (cortex_a53_alu_shift): Likewise.
17061 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
17062 attribute changes.
17063 (cortex_a7_alu_reg): Likewise.
17064 (cortex_a7_alu_shift): Likewise.
17065 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
17066 attribute changes.
17067 (cortex_a8_alu_shift): Likewise.
17068 (cortex_a8_alu_shift_reg): Likewise.
17069 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
17070 (cortex_a9_dp_shift): Likewise.
17071 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
17072 attribute changes.
17073 * config/arm/cortex-r4.md
17074 (cortex_r4_alu): Update for attribute changes.
17075 (cortex_r4_mov): Likewise.
17076 (cortex_r4_alu_shift_reg): Likewise.
17077 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
17078 (526_alu_shift_op): Likewise.
17079 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
17080 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
17081 (626te_alu_shift_op): Likewise.
17082 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
17083 (726te_alu_shift_op): Likewise.
17084 (726te_alu_shift_reg_op): Likewise.
17085 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
17086 (mp626_alu_shift_op): Likewise.
17087 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
17088 (pj4_alu_conds): Likewise.
17089 (pj4_shift): Likewise.
17090 (pj4_shift_conds): Likewise.
17091 (pj4_alu_shift): Likewise.
17092 (pj4_alu_shift_conds): Likewise.
17093 * config/aarch64/aarch64.md: Update for attribute change
17094 all occurrences of arlo_* and shift* types.
17095
17096 2013-09-05 Mike Stump <mikestump@comcast.net>
17097
17098 * tree.h: Move documentation for tree_function_decl to tree-core.h
17099 with the declaration.
17100
17101 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
17102
17103 PR target/58139
17104 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
17105 looking for widest mode.
17106
17107 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
17108
17109 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
17110
17111 2013-09-05 Richard Biener <rguenther@suse.de>
17112
17113 PR tree-optimization/58137
17114 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
17115 Do not create vectors of pointers.
17116 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
17117 types for the components of the vector initializer.
17118 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
17119 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
17120
17121 2013-09-05 Martin Jambor <mjambor@suse.cz>
17122
17123 * ipa-prop.c (remove_described_reference): Accept missing references,
17124 return false if that hppens, otherwise return true.
17125 (cgraph_node_for_jfunc): New function.
17126 (try_decrement_rdesc_refcount): Likewise.
17127 (try_make_edge_direct_simple_call): Use them.
17128 (ipa_edge_removal_hook): Remove references from rdescs.
17129 (ipa_edge_duplication_hook): Clone rdescs and their references
17130 when the new edge has the same caller as the old one.
17131 * cgraph.c (cgraph_resolve_speculation): Remove speculative
17132 reference before removing any edges.
17133
17134 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
17135
17136 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
17137 initial store.
17138 * thumb2.md (thumb2_storewb_parisi): New pattern.
17139
17140 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
17141
17142 * config/aarch64/aarch64-option-extensions.def: Add
17143 AARCH64_OPT_EXTENSION of 'crc'.
17144 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
17145 (AARCH64_ISA_CRC): Ditto.
17146 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
17147 description of the CRC extension.
17148
17149 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
17150
17151 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
17152 * config/rs6000/linux.h: Ditto.
17153 * alpha/linux.h: Ditto.
17154 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
17155 no_c99_libc_has_function.
17156 * config/c6x/uclinux-elf.h: Ditto.
17157 * config/lm32/uclinux-elf.h: Ditto.
17158 * config/m68k/uclinux.h: Ditto.
17159 * config/moxie/uclinux.h: Ditto.
17160 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
17161 (crisv32-*-linux*, cris-*-linux*): Ditto.
17162 * config/bfin/bfin.c: Include "tm_p.h".
17163
17164 2013-09-05 Richard Biener <rguenther@suse.de>
17165
17166 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
17167 check for a definition without a basic-block.
17168
17169 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
17170 Sofiane Naci <sofiane.naci@arm.com>
17171
17172 * config/aarch64/aarch64.md
17173 (*movti_aarch64): Rename r_2_f and f_2_r.
17174 (*movsf_aarch64): Likewise.
17175 (*movdf_aarch64): Likewise.
17176 (*movtf_aarch64): Likewise.
17177 (aarch64_movdi_<mode>low): Likewise.
17178 (aarch64_movdi_<mode>high): Likewise.
17179 (aarch64_mov<mode>high_di): Likewise.
17180 (aarch64_mov<mode>low_di): Likewise.
17181 (aarch64_movtilow_tilow): Likewise.
17182 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
17183 values to config/arm/types.md
17184 (attribute "conds"): Update for attribute change.
17185 (anddi3_insn): Likewise.
17186 (iordi3_insn): Likewise.
17187 (xordi3_insn): Likewise.
17188 (one_cmpldi2): Likewise.
17189 * config/arm/types.md (type): Add Neon types.
17190 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
17191 use "type" attribute.
17192 (movmisalign<mode>_neon_store): Likewise.
17193 (movmisalign<mode>_neon_load): Likewise.
17194 (vec_set<mode>_internal): Likewise.
17195 (vec_setv2di_internal): Likewise.
17196 (vec_extract<mode>): Likewise.
17197 (vec_extractv2di): Likewise.
17198 (add<mode>3_neon): Likewise.
17199 (adddi3_neon): Likewise.
17200 (sub<mode>3_neon): Likewise.
17201 (subdi3_neon): Likewise.
17202 (mul<mode>3_neon): Likewise.
17203 (mul<mode>3add<mode>_neon): Likewise.
17204 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
17205 (fma<VCVTF:mode>4)): Likewise.
17206 (fma<VCVTF:mode>4_intrinsic): Likewise.
17207 (fmsub<VCVTF:mode>4)): Likewise.
17208 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
17209 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
17210 (ior<mode>3): Likewise.
17211 (and<mode>3): Likewise.
17212 (anddi3_neon): Likewise.
17213 (orn<mode>3_neon): Likewise.
17214 (orndi3_neon): Likewise.
17215 (bic<mode>3_neon): Likewise.
17216 (bicdi3_neon): Likewise.
17217 (xor<mode>3): Likewise.
17218 (one_cmpl<mode>2): Likewise.
17219 (abs<mode>2): Likewise.
17220 (neg<mode>2): Likewise.
17221 (umin<mode>3_neon): Likewise.
17222 (umax<mode>3_neon): Likewise.
17223 (smin<mode>3_neon): Likewise.
17224 (smax<mode>3_neon): Likewise.
17225 (vashl<mode>3): Likewise.
17226 (vashr<mode>3_imm): Likewise.
17227 (vlshr<mode>3_imm): Likewise.
17228 (ashl<mode>3_signed): Likewise.
17229 (ashl<mode>3_unsigned): Likewise.
17230 (neon_load_count): Likewise.
17231 (ashldi3_neon_noclobber): Likewise.
17232 (signed_shift_di3_neon): Likewise.
17233 (unsigned_shift_di3_neon): Likewise.
17234 (ashrdi3_neon_imm_noclobber): Likewise.
17235 (lshrdi3_neon_imm_noclobber): Likewise.
17236 (widen_ssum<mode>3): Likewise.
17237 (widen_usum<mode>3): Likewise.
17238 (quad_halves_<code>v4si): Likewise.
17239 (quad_halves_<code>v4sf): Likewise.
17240 (quad_halves_<code>v8hi): Likewise.
17241 (quad_halves_<code>v16qi): Likewise.
17242 (reduc_splus_v2di): Likewise.
17243 (neon_vpadd_internal<mode>): Likewise.
17244 (neon_vpsmin<mode>): Likewise.
17245 (neon_vpsmax<mode>): Likewise.
17246 (neon_vpumin<mode>): Likewise.
17247 (neon_vpumax<mode>): Likewise.
17248 (ss_add<mode>_neon): Likewise.
17249 (us_add<mode>_neon): Likewise.
17250 (ss_sub<mode>_neon): Likewise.
17251 (us_sub<mode>_neon): Likewise.
17252 (neon_vadd<mode>_unspec): Likewise.
17253 (neon_vaddl<mode>): Likewise.
17254 (neon_vaddw<mode>): Likewise.
17255 (neon_vhadd<mode>): Likewise.
17256 (neon_vqadd<mode>): Likewise.
17257 (neon_vaddhn<mode>): Likewise.
17258 (neon_vmul<mode>): Likewise.
17259 (neon_vmla<mode>): Likewise.
17260 (neon_vmlal<mode>): Likewise.
17261 (neon_vmls<mode>): Likewise.
17262 (neon_vmlsl<mode>): Likewise.
17263 (neon_vqdmulh<mode>): Likewise.
17264 (neon_vqdmlal<mode>): Likewise.
17265 (neon_vqdmlsl<mode>): Likewise.
17266 (neon_vmull<mode>): Likewise.
17267 (neon_vqdmull<mode>): Likewise.
17268 (neon_vsub<mode>_unspec): Likewise.
17269 (neon_vsubl<mode>): Likewise.
17270 (neon_vsubw<mode>): Likewise.
17271 (neon_vqsub<mode>): Likewise.
17272 (neon_vhsub<mode>): Likewise.
17273 (neon_vsubhn<mode>): Likewise.
17274 (neon_vceq<mode>): Likewise.
17275 (neon_vcge<mode>): Likewise.
17276 (neon_vcgeu<mode>): Likewise.
17277 (neon_vcgt<mode>): Likewise.
17278 (neon_vcgtu<mode>): Likewise.
17279 (neon_vcle<mode>): Likewise.
17280 (neon_vclt<mode>): Likewise.
17281 (neon_vcage<mode>): Likewise.
17282 (neon_vcagt<mode>): Likewise.
17283 (neon_vtst<mode>): Likewise.
17284 (neon_vabd<mode>): Likewise.
17285 (neon_vabdl<mode>): Likewise.
17286 (neon_vaba<mode>): Likewise.
17287 (neon_vabal<mode>): Likewise.
17288 (neon_vmax<mode>): Likewise.
17289 (neon_vmin<mode>): Likewise.
17290 (neon_vpaddl<mode>): Likewise.
17291 (neon_vpadal<mode>): Likewise.
17292 (neon_vpmax<mode>): Likewise.
17293 (neon_vpmin<mode>): Likewise.
17294 (neon_vrecps<mode>): Likewise.
17295 (neon_vrsqrts<mode>): Likewise.
17296 (neon_vqabs<mode>): Likewise.
17297 (neon_vqneg<mode>): Likewise.
17298 (neon_vcls<mode>): Likewise.
17299 (clz<mode>2): Likewise.
17300 (popcount<mode>2): Likewise.
17301 (neon_vrecpe): Likewise.
17302 (neon_vrsqrte): Likewise.
17303 (neon_vget_lane<mode>_sext_internal): Likewise.
17304 (neon_vget_lane<mode>_zext_internal): Likewise.
17305 (neon_vdup_n<mode>): Likewise.
17306 (neon_vdup_nv2di): Likewise.
17307 (neon_vdpu_lane<mode>_internal): Likewise.
17308 (neon_vswp<mode>): Likewise.
17309 (float<mode><V_cvtto>2): Likewise.
17310 (floatuns<mode><V_cvtto>2): Likewise.
17311 (fix_trunc<mode><V_cvtto>)2): Likewise
17312 (fixuns_trunc<mode><V_cvtto)2): Likewise.
17313 (neon_vcvt<mode>): Likewise.
17314 (neon_vcvtv4sfv4hf): Likewise.
17315 (neon_vcvtv4hfv4sf): Likewise.
17316 (neon_vcvt_n<mode>): Likewise.
17317 (neon_vmovn<mode>): Likewise.
17318 (neon_vqmovn<mode>): Likewise.
17319 (neon_vqmovun<mode>): Likewise.
17320 (neon_vmovl<mode>): Likewise.
17321 (neon_vmul_lane<mode>): Likewise.
17322 (neon_vmull_lane<mode>): Likewise.
17323 (neon_vqdmull_lane<mode>): Likewise.
17324 (neon_vqdmulh_lane<mode>): Likewise.
17325 (neon_vmla_lane<mode>): Likewise.
17326 (neon_vmlal_lane<mode>): Likewise.
17327 (neon_vqdmlal_lane<mode>): Likewise.
17328 (neon_vmls_lane<mode>): Likewise.
17329 (neon_vmlsl_lane<mode>): Likewise.
17330 (neon_vqdmlsl_lane<mode>): Likewise.
17331 (neon_vext<mode>): Likewise.
17332 (neon_vrev64<mode>): Likewise.
17333 (neon_vrev32<mode>): Likewise.
17334 (neon_vrev16<mode>): Likewise.
17335 (neon_vbsl<mode>_internal): Likewise.
17336 (neon_vshl<mode>): Likewise.
17337 (neon_vqshl<mode>): Likewise.
17338 (neon_vshr_n<mode>): Likewise.
17339 (neon_vshrn_n<mode>): Likewise.
17340 (neon_vqshrn_n<mode>): Likewise.
17341 (neon_vqshrun_n<mode>): Likewise.
17342 (neon_vshl_n<mode>): Likewise.
17343 (neon_vqshl_n<mode>): Likewise.
17344 (neon_vqshlu_n<mode>): Likewise.
17345 (neon_vshll_n<mode>): Likewise.
17346 (neon_vsra_n<mode>): Likewise.
17347 (neon_vsri_n<mode>): Likewise.
17348 (neon_vsli_n<mode>): Likewise.
17349 (neon_vtbl1v8qi): Likewise.
17350 (neon_vtbl2v8qi): Likewise.
17351 (neon_vtbl3v8qi): Likewise.
17352 (neon_vtbl4v8qi): Likewise.
17353 (neon_vtbx1v8qi): Likewise.
17354 (neon_vtbx2v8qi): Likewise.
17355 (neon_vtbx3v8qi): Likewise.
17356 (neon_vtbx4v8qi): Likewise.
17357 (neon_vtrn<mode>_internal): Likewise.
17358 (neon_vzip<mode>_internal): Likewise.
17359 (neon_vuzp<mode>_internal): Likewise.
17360 (neon_vld1<mode>): Likewise.
17361 (neon_vld1_lane<mode>): Likewise.
17362 (neon_vld1_dup<mode>): Likewise.
17363 (neon_vld1_dupv2di): Likewise.
17364 (neon_vst1<mode>): Likewise.
17365 (neon_vst1_lane<mode>): Likewise.
17366 (neon_vld2<mode>): Likewise.
17367 (neon_vld2_lane<mode>): Likewise.
17368 (neon_vld2_dup<mode>): Likewise.
17369 (neon_vst2<mode>): Likewise.
17370 (neon_vst2_lane<mode>): Likewise.
17371 (neon_vld3<mode>): Likewise.
17372 (neon_vld3qa<mode>): Likewise.
17373 (neon_vld3qb<mode>): Likewise.
17374 (neon_vld3_lane<mode>): Likewise.
17375 (neon_vld3_dup<mode>): Likewise.
17376 (neon_vst3<mode>): Likewise.
17377 (neon_vst3qa<mode>): Likewise.
17378 (neon_vst3qb<mode>): Likewise.
17379 (neon_vst3_lane<mode>): Likewise.
17380 (neon_vld4<mode>): Likewise.
17381 (neon_vld4qa<mode>): Likewise.
17382 (neon_vld4qb<mode>): Likewise.
17383 (neon_vld4_lane<mode>): Likewise.
17384 (neon_vld4_dup<mode>): Likewise.
17385 (neon_vst4<mode>): Likewise.
17386 (neon_vst4qa<mode>): Likewise.
17387 (neon_vst4qb<mode>): Likewise.
17388 (neon_vst4_lane<mode>): Likewise.
17389 (neon_vec_unpack<US>_lo_<mode>): Likewise.
17390 (neon_vec_unpack<US>_hi_<mode>): Likewise.
17391 (neon_vec_<US>mult_lo_<mode>): Likewise.
17392 (neon_vec_<US>mult_hi_<mode>): Likewise.
17393 (neon_vec_<US>shiftl_<mode>): Likewise.
17394 (neon_unpack<US>_<mode>): Likewise.
17395 (neon_vec_<US>mult_<mode>): Likewise.
17396 (vec_pack_trunc_<mode>): Likewise.
17397 (neon_vec_pack_trunk_<mode>): Likewise.
17398 (neon_vabd<mode>_2): Likewise.
17399 (neon_vabd<mode>_3): Likewise.
17400 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
17401 (thumb2_movsi_vfp): Likewise.
17402 (movdi_vfp): Likewise.
17403 (movdi_vfp_cortexa8): Likewise.
17404 (movhf_vfp_neon): Likewise.
17405 (movhf_vfp): Likewiwse.
17406 (movsf_vfp): Likewiwse.
17407 (thumb2_movsf_vfp): Likewiwse.
17408 (movdf_vfp): Likewise.
17409 (thumb2_movdf_vfp): Likewise.
17410 (movsfcc_vfp): Likewise.
17411 (thumb2_movsfcc_vfp): Likewise.
17412 (movdfcc_vfp): Likewise.
17413 (thumb2_movdfcc_vfp): Likewise.
17414 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
17415 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
17416 (v10_v2c): Likewise.
17417 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
17418 attribute change.
17419 (cortex_a15_neon_int_2): Likewise.
17420 (cortex_a15_neon_int_3): Likewise.
17421 (cortex_a15_neon_int_4): Likewise.
17422 (cortex_a15_neon_int_5): Likewise.
17423 (cortex_a15_neon_vqneg_vqabs): Likewise.
17424 (cortex_a15_neon_vmov): Likewise.
17425 (cortex_a15_neon_vaba): Likewise.
17426 (cortex_a15_neon_vaba_qqq): Likewise.
17427 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17428 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17429 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
17430 scalar_64_32_long_scalar): Likewise.
17431 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17432 (cortex_a15_neon_mla_qqq_8_16): Likewise.
17433 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17434 lotype_qdd_64_32_long): Likewise.
17435 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17436 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17437 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
17438 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17439 (cortex_a15_neon_shift_1): Likewise.
17440 (cortex_a15_neon_shift_2): Likewise.
17441 (cortex_a15_neon_shift_3): Likewise.
17442 (cortex_a15_neon_vshl_ddd): Likewise.
17443 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17444 (cortex_a15_neon_vsra_vrsra): Likewise.
17445 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
17446 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
17447 (cortex_a15_neon_fp_vmul_ddd): Likewise.
17448 (cortex_a15_neon_fp_vmul_qqd): Likewise.
17449 (cortex_a15_neon_fp_vmla_ddd): Likewise.
17450 (cortex_a15_neon_fp_vmla_qqq): Likewise.
17451 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
17452 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
17453 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17454 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17455 (cortex_a15_neon_bp_simple): Likewise.
17456 (cortex_a15_neon_bp_2cycle): Likewise.
17457 (cortex_a15_neon_bp_3cycle): Likewise.
17458 (cortex_a15_neon_vld1_1_2_regs): Likewise.
17459 (cortex_a15_neon_vld1_3_4_regs): Likewise.
17460 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17461 (cortex_a15_neon_vld2_4_regs): Likewise.
17462 (cortex_a15_neon_vld3_vld4): Likewise.
17463 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17464 (cortex_a15_neon_vst1_3_4_regs): Likewise.
17465 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
17466 (cortex_a15_neon_vst3_vst4): Likewise.
17467 (cortex_a15_neon_vld1_vld2_lane): Likewise.
17468 (cortex_a15_neon_vld3_vld4_lane" 10
17469 (cortex_a15_neon_vst1_vst2_lane): Likewise.
17470 (cortex_a15_neon_vst3_vst4_lane): Likewise.
17471 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
17472 (cortex_a15_neon_ldm_2): Likewise.0
17473 (cortex_a15_neon_stm_2): Likewise.
17474 (cortex_a15_neon_mcr): Likewise.
17475 (cortex_a15_neon_mcr_2_mcrr): Likewise.
17476 (cortex_a15_neon_mrc): Likewise.
17477 (cortex_a15_neon_mrrc): Likewise.
17478 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
17479 change.
17480 (cortex_a15_alu_shift): Likewise.
17481 (cortex_a15_alu_shift_reg): Likewise.
17482 (cortex_a15_mult32): Likewise.
17483 (cortex_a15_mult64): Likewise.
17484 (cortex_a15_block): Likewise.
17485 (cortex_a15_branch): Likewise.
17486 (cortex_a15_load1): Likewise.
17487 (cortex_a15_load3): Likewise.
17488 (cortex_a15_store1): Likewise.
17489 (cortex_a15_store3): Likewise.
17490 (cortex_a15_call): Likewise.
17491 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
17492 (cortex_a5_f2r): Likewise.
17493 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
17494 change.
17495 (cortex_a53_f2r): Likewise.
17496 * config/arm/cortex-a7.md
17497 (cortex_a7_branch): Update for attribute change.
17498 (cortex_a7_call): Likewise.
17499 (cortex_a7_alu_imm): Likewise.
17500 (cortex_a7_alu_reg): Likewise.
17501 (cortex_a7_alu_shift): Likewise.
17502 (cortex_a7_mul): Likewise.
17503 (cortex_a7_load1): Likewise.
17504 (cortex_a7_store1): Likewise.
17505 (cortex_a7_load2): Likewise.
17506 (cortex_a7_store2): Likewise.
17507 (cortex_a7_load3): Likewise.
17508 (cortex_a7_store3): Likewise.
17509 (cortex_a7_load4): Likewise.
17510 (cortex_a7_store4): Likewise.
17511 (cortex_a7_fpalu): Likewise.
17512 (cortex_a7_fconst): Likewise.
17513 (cortex_a7_fpmuls): Likewise.
17514 (cortex_a7_neon_mul): Likewise.
17515 (cortex_a7_fpmacs): Likewise.
17516 (cortex_a7_neon_mla: Likewise.
17517 (cortex_a7_fpmuld: Likewise.
17518 (cortex_a7_fpmacd: Likewise.
17519 (cortex_a7_fpfmad: Likewise.
17520 (cortex_a7_fdivs: Likewise.
17521 (cortex_a7_fdivd: Likewise.
17522 (cortex_a7_r2f: Likewise.
17523 (cortex_a7_f2r: Likewise.
17524 (cortex_a7_f_flags: Likewise.
17525 (cortex_a7_f_loads: Likewise.
17526 (cortex_a7_f_loadd: Likewise.
17527 (cortex_a7_f_stores: Likewise.
17528 (cortex_a7_f_stored: Likewise.
17529 (cortex_a7_neon): Likewise.
17530 * config/arm/cortex-a8-neon.md
17531 (cortex_a8_neon_mrc): Update for attribute change.
17532 (cortex_a8_neon_mrrc): Likewise.
17533 (cortex_a8_neon_int_1): Likewise.
17534 (cortex_a8_neon_int_2): Likewise.
17535 (cortex_a8_neon_int_3): Likewise.
17536 (cortex_a8_neon_int_4): Likewise.
17537 (cortex_a8_neon_int_5): Likewise.
17538 (cortex_a8_neon_vqneg_vqabs): Likewise.
17539 (cortex_a8_neon_vmov): Likewise.
17540 (cortex_a8_neon_vaba): Likewise.
17541 (cortex_a8_neon_vaba_qqq): Likewise.
17542 (cortex_a8_neon_vsma): Likewise.
17543 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17544 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17545 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17546 long_scalar): Likewise.
17547 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17548 (cortex_a8_neon_mla_qqq_8_16): Likewise.
17549 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17550 long_scalar_qdd_64_32_long): Likewise.
17551 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17552 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17553 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
17554 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17555 (cortex_a8_neon_shift_1): Likewise.
17556 (cortex_a8_neon_shift_2): Likewise.
17557 (cortex_a8_neon_shift_3): Likewise.
17558 (cortex_a8_neon_vshl_ddd): Likewise.
17559 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17560 (cortex_a8_neon_vsra_vrsra): Likewise.
17561 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
17562 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
17563 (cortex_a8_neon_fp_vsum): Likewise.
17564 (cortex_a8_neon_fp_vmul_ddd): Likewise.
17565 (cortex_a8_neon_fp_vmul_qqd): Likewise.
17566 (cortex_a8_neon_fp_vmla_ddd): Likewise.
17567 (cortex_a8_neon_fp_vmla_qqq): Likewise.
17568 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
17569 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
17570 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17571 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17572 (cortex_a8_neon_bp_simple): Likewise.
17573 (cortex_a8_neon_bp_2cycle): Likewise.
17574 (cortex_a8_neon_bp_3cycle): Likewise.
17575 (cortex_a8_neon_ldr): Likewise.
17576 (cortex_a8_neon_str): Likewise.
17577 (cortex_a8_neon_vld1_1_2_regs): Likewise.
17578 (cortex_a8_neon_vld1_3_4_regs): Likewise.
17579 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17580 (cortex_a8_neon_vld2_4_regs): Likewise.
17581 (cortex_a8_neon_vld3_vld4): Likewise.
17582 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17583 (cortex_a8_neon_vst1_3_4_regs): Likewise.
17584 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
17585 (cortex_a8_neon_vst3_vst4): Likewise.
17586 (cortex_a8_neon_vld1_vld2_lane): Likewise.
17587 (cortex_a8_neon_vld3_vld4_lane): Likewise.
17588 (cortex_a8_neon_vst1_vst2_lane): Likewise.
17589 (cortex_a8_neon_vst3_vst4_lane): Likewise.
17590 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
17591 (cortex_a8_neon_mcr): Likewise.
17592 (cortex_a8_neon_mcr_2_mcrr): Likewise.
17593 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
17594 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
17595 change.
17596 (ca9_neon_mrrc): Likewise.
17597 (cortex_a9_neon_int_1): Likewise.
17598 (cortex_a9_neon_int_2): Likewise.
17599 (cortex_a9_neon_int_3): Likewise.
17600 (cortex_a9_neon_int_4): Likewise.
17601 (cortex_a9_neon_int_5): Likewise.
17602 (cortex_a9_neon_vqneg_vqabs): Likewise.
17603 (cortex_a9_neon_vmov): Likewise.
17604 (cortex_a9_neon_vaba): Likewise.
17605 (cortex_a9_neon_vaba_qqq): Likewise.
17606 (cortex_a9_neon_vsma): Likewise.
17607 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17608 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17609 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17610 long_scalar): Likewise.
17611 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17612 (cortex_a9_neon_mla_qqq_8_16): Likewise.
17613 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17614 long_scalar_qdd_64_32_long): Likewise.
17615 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17616 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17617 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
17618 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17619 (cortex_a9_neon_shift_1): Likewise.
17620 (cortex_a9_neon_shift_2): Likewise.
17621 (cortex_a9_neon_shift_3): Likewise.
17622 (cortex_a9_neon_vshl_ddd): Likewise.
17623 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17624 (cortex_a9_neon_vsra_vrsra): Likewise.
17625 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
17626 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
17627 (cortex_a9_neon_fp_vsum): Likewise.
17628 (cortex_a9_neon_fp_vmul_ddd): Likewise.
17629 (cortex_a9_neon_fp_vmul_qqd): Likewise.
17630 (cortex_a9_neon_fp_vmla_ddd): Likewise.
17631 (cortex_a9_neon_fp_vmla_qqq): Likewise.
17632 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
17633 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
17634 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17635 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17636 (cortex_a9_neon_bp_simple): Likewise.
17637 (cortex_a9_neon_bp_2cycle): Likewise.
17638 (cortex_a9_neon_bp_3cycle): Likewise.
17639 (cortex_a9_neon_ldr): Likewise.
17640 (cortex_a9_neon_str): Likewise.
17641 (cortex_a9_neon_vld1_1_2_regs): Likewise.
17642 (cortex_a9_neon_vld1_3_4_regs): Likewise.
17643 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17644 (cortex_a9_neon_vld2_4_regs): Likewise.
17645 (cortex_a9_neon_vld3_vld4): Likewise.
17646 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17647 (cortex_a9_neon_vst1_3_4_regs): Likewise.
17648 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
17649 (cortex_a9_neon_vst3_vst4): Likewise.
17650 (cortex_a9_neon_vld1_vld2_lane): Likewise.
17651 (cortex_a9_neon_vld3_vld4_lane): Likewise.
17652 (cortex_a9_neon_vst1_vst2_lane): Likewise.
17653 (cortex_a9_neon_vst3_vst4_lane): Likewise.
17654 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
17655 (cortex_a9_neon_mcr): Likewise.
17656 (cortex_a9_neon_mcr_2_mcrr): Likewise.
17657 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
17658 (cortex_a9_fps): Likewise.
17659 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
17660 change.
17661 (cortex_m4_fmuls): Likewise.
17662 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
17663 change.
17664 (cortex_r4_mrc): Likewise.
17665 * config/arm/iterators.md: Update comment referring to neon_type.
17666 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
17667 (iwmmxt_movsi_insn): Likewise.
17668 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
17669 attribute change.
17670 (pj4_core_to_vfp): Likewise.
17671 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
17672 attribute change.
17673 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
17674 (vfp_fstore): Likewise.
17675 * doc/md.texi: Change references to neon_type to refer to type.
17676
17677 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17678
17679 * tree.h (DECL_BUILT_IN): Fix typo in comment.
17680
17681 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
17682
17683 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
17684 lglobl if not weak.
17685
17686 2013-09-04 Easwaran Raman <eraman@google.com>
17687
17688 PR middle-end/57370
17689 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
17690 (build_and_add_sum): Use it.
17691 (appears_later_in_bb): Simplify code.
17692
17693 2013-09-04 Teresa Johnson <tejohnson@google.com>
17694
17695 * dumpfile.c (dump_finish): Don't close stderr/stdout.
17696
17697 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
17698
17699 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
17700
17701 2013-09-04 Jan Hubicka <jh@suse.cz>
17702
17703 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
17704 * ipa-devirt.c: Include diganostic.h
17705 (odr_type_d): Add types and types_set.
17706 (hash_type_name): Work for types with vtables during LTO.
17707 (odr_hasher::remove): Fix comment; destroy types_set.
17708 (add_type_duplicate): New function,
17709 (get_odr_type): Use it.
17710 (dump_type_inheritance_graph): Dump type duplicates.
17711 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
17712 graph.
17713 * tree.c (types_same_for_odr): Give exact answers on types with
17714 virtual tables.
17715
17716 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17717
17718 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
17719 explaining their differences.
17720
17721 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
17722
17723 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
17724
17725 2013-09-03 Jeff Law <law@redhat.com>
17726
17727 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
17728 when not threading through a joiner block. Pass joiner/no joiner
17729 state to register_jump_thread.
17730 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
17731 state from argument rather than implying on path length.
17732 Dump the entire jump thread path into debugging dump.
17733 * tree-flow.h (register_jump_thread): Update prototype.
17734
17735 2013-08-29 Xinliang David Li <davidxl@google.com>
17736
17737 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17738 Remove a trivial gcc_assert.
17739
17740 2013-08-29 Xinliang David Li <davidxl@google.com>
17741
17742 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
17743 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
17744 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17745 Delay base decl alignment adjustment.
17746 * tree-vectorizer.c (vect_destroy_datarefs): New function.
17747 * tree-vectorizer.h: New data structure.
17748 (set_dr_misalignment): New function.
17749 (dr_misalignment): Ditto.
17750 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
17751 (vectorizable_load): Ditto.
17752 (ensure_base_align): New function.
17753 (vectorize_loops): Add dbg_cnt support.
17754 (execute_vect_slp): Ditto.
17755 * dbgcnt.def: New debug counter.
17756 * Makefile: New dependency.
17757
17758 2013-09-03 Meador Inge <meadori@codesourcery.com>
17759
17760 Revert:
17761
17762 2013-08-30 Meador Inge <meadori@codesourcery.com>
17763
17764 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17765
17766 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
17767
17768 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
17769 function descriptor.
17770
17771 2013-09-03 Richard Biener <rguenther@suse.de>
17772
17773 * tree-affine.c (add_elt_to_tree): Fix association issue,
17774 avoid useless converts and make sure to always return a
17775 properly typed result.
17776
17777 2013-09-03 Richard Biener <rguenther@suse.de>
17778
17779 PR middle-end/57656
17780 * fold-const.c (negate_expr_p): Fix division case.
17781 (negate_expr): Likewise.
17782
17783 2013-09-03 Richard Biener <rguenther@suse.de>
17784
17785 PR lto/58285
17786 * tree-streamer-out.c: Include tm.h.
17787 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
17788
17789 2013-09-03 Jan Hubicka <jh@suse.cz>
17790
17791 * tree-profile.c (tree_profiling): Cleanup CFG when done.
17792
17793 2013-09-03 Alan Modra <amodra@gmail.com>
17794
17795 * config.gcc (powerpc*-*-linux*): Add support for little-endian
17796 multilibs to big-endian target and vice versa.
17797 * config/rs6000/t-linux64: Use := assignment on all vars.
17798 (MULTILIB_EXTRA_OPTS): Remove fPIC.
17799 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
17800 * config/rs6000/t-linux64le: New file.
17801 * config/rs6000/t-linux64bele: New file.
17802 * config/rs6000/t-linux64lebe: New file.
17803
17804 2013-09-02 Jan Hubicka <jh@suse.cz>
17805
17806 * ipa-inline-transform.c (inline_transform): Do not
17807 optimize_inline_calls when not optimizing.
17808
17809 2013-09-02 Jan Hubicka <jh@suse.cz>
17810
17811 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
17812 duplicated nodes for assembler names.
17813 * symtab.c (symtab_unregister_node): Do not attempt to unlink
17814 hard registers from assembler name hash.
17815
17816 2013-09-02 Jan Hubicka <jh@suse.cz>
17817
17818 * ipa-split.c (execute_split_functions): Split externally visible
17819 functions called once.
17820
17821 2013-09-02 Martin Jambor <mjambor@suse.cz>
17822
17823 PR ipa/58106
17824 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
17825 linked list. When finding the correct duplicate, also consider also
17826 the caller in additon to its inlined_to node.
17827
17828 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
17829
17830 * config/aarch64/aarch64-simd-builtins.def
17831 (dup_lane_scalar): Remove.
17832 * config/aarch64/aarch64-simd.md
17833 (aarch64_simd_dup): Add 'w->w' alternative.
17834 (aarch64_dup_lane<mode>): Allow for VALL.
17835 (aarch64_dup_lane_scalar<mode>): Remove.
17836 (aarch64_dup_lane_<vswap_width_name><mode>): New.
17837 (aarch64_get_lane_signed<mode>): Add w->w altenative.
17838 (aarch64_get_lane_unsigned<mode>): Likewise.
17839 (aarch64_get_lane<mode>): Likewise.
17840 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
17841 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
17842 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
17843 (VCON): Change container of V2SF.
17844 (vswap_width_name): Likewise.
17845 * config/aarch64/arm_neon.h
17846 (__aarch64_vdup_lane_any): New.
17847 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17848 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
17849 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17850
17851 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
17852
17853 PR middle-end/56382
17854 * expr.c (emit_move_complex): Do not move complex FP values as parts if
17855 the source or the destination is a single hard register.
17856
17857 2013-09-02 Richard Biener <rguenther@suse.de>
17858
17859 PR middle-end/57511
17860 * tree-scalar-evolution.c (instantiate_scev_name): Allow
17861 non-linear SCEVs.
17862
17863 2013-09-02 Richard Biener <rguenther@suse.de>
17864
17865 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
17866 arithmetic to sizetype.
17867
17868 2013-09-02 Bin Cheng <bin.cheng@arm.com>
17869
17870 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
17871 Find auto-increment use both before and after candidate.
17872
17873 2013-09-02 Marek Polacek <polacek@redhat.com>
17874
17875 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
17876
17877 2013-09-01 Jan Hubicka <jh@suse.cz>
17878
17879 * Makefile.in: Add ipa-profile.o
17880 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
17881 * cgraph.c (struct cgraph_propagate_frequency_data,
17882 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
17883 ipa-profile.c; replace cgraph_ by ipa_ prefix.
17884 * cgraph.h (cgraph_propagate_frequency): Remove.
17885 * ipa-inline-analysis.c: Include ipa-utils.h;
17886 drop duplicated cfgloop.h.
17887 (inline_update_callee_summaries): Update.
17888 * ipa-profile.c: New file.
17889 * ipa-utils.h (ipa_propagate_frequency): Declare.
17890 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
17891 data-streamer.h, value-prof.h.
17892 (symtab_remove_unreachable_nodes): Update profile.
17893 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
17894 account_time_size, cmp_counts, dump_histogram,
17895 ipa_profile_generate_summary, ipa_profile_write_summary,
17896 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
17897 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
17898 Move to ipa-profile.c.
17899
17900 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
17901
17902 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
17903
17904 2013-09-01 Jan Hubicka <jh@suse.cz>
17905
17906 * common.opt (fdevirtualize-speculatively): New function.
17907 * invoke.texi (fdevirtualize-speculatively): Document.
17908 * ipa-devirt.c: Include ipa-inline.h
17909 (likely_target_p): New function.
17910 (ipa_devirt): New function.
17911 (gate_ipa_devirt): New function.
17912 (pass_data_ipa_devirt): New static var.
17913 (pass_ipa_devirt): Likewise.
17914 (make_pass_ipa_devirt): New function.
17915 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17916 (common_handle_option): Disable devirtualization when
17917 value range profiling is available.
17918 * passes.def (pass_ipa_devirt): Add.
17919 * timever.def (TV_IPA_DEVIRT): New timevar.
17920 * tree-pass.h (make_pass_ipa_devirt):
17921
17922 2013-09-01 Iain Sandoe <iain@codesourcery.com>
17923
17924 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17925 include sanitize(undefined).
17926
17927 2013-08-31 Diego Novillo <dnovillo@google.com>
17928
17929 * Makefile.in (TREE_CORE_H): Define.
17930 (TREE_H): Use.
17931 (GTFILES): Add tree-core.h.
17932 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17933 size the array.
17934 * tree-core.h: New file.
17935 Move all data structures, enum, typedefs, global
17936 declarations and constants from ...
17937 * tree.h: ... here.
17938
17939 2013-08-31 Jan Hubicka <jh@suse.cz>
17940
17941 * bulitins.c (expand_builtin): Do not early exit for gcov
17942 instrumented functions.
17943
17944 2013-08-31 Marek Polacek <polacek@redhat.com>
17945
17946 * ubsan.c: Include tm_p.h.
17947
17948 2013-08-31 Jan Hubicka <jh@suse.cz>
17949
17950 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17951 warning.
17952
17953 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17954 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17955 * tree-cfg.c (verify_gimple_label): ... here.
17956 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17957 (ipa_merge_profiles): New function.
17958 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17959 (lto_input_function_body): Likewise.
17960 * ipa-utils.h (ipa_merge_profiles): Declare.
17961 * lto-streamer.h (lto_input_function_body): Update prototype.
17962 (emit_label_in_global_context_p): Remove.
17963 * lto-symtab.c: Include ipa-utils.h
17964 (lto_cgraph_replace_node): Use ipa_merge_profiles.
17965
17966 2013-08-31 Jan Hubicka <jh@suse.cz>
17967
17968 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17969
17970 2013-08-31 Jan Hubicka <jh@suse.cz>
17971
17972 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17973
17974 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
17975
17976 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17977 "cmp" RTX before signed_comparison_operator check to account
17978 for "code" changes.
17979
17980 2013-08-30 Jan Hubicka <jh@suse.cz>
17981
17982 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17983 (detect_type_change_1): Rename to ...
17984 (detect_type_change): ... this one; early return on non-polymorphic
17985 types.
17986 (detect_type_change_ssa): Add comp_type parameter; update
17987 use of detect_type_change.
17988 (compute_complex_assign_jump_func): Add param_type parameter;
17989 update use of detect_type_change_ssa.
17990 (compute_complex_ancestor_jump_func): Likewise.
17991 (ipa_get_callee_param_type): New function.
17992 (ipa_compute_jump_functions_for_edge): Compute parameter type;
17993 update calls to the jump function computation functions.
17994
17995 2013-08-30 Teresa Johnson <tejohnson@google.com>
17996 Steven Bosscher <steven@gcc.gnu.org>
17997
17998 * cfgrtl.c (fixup_new_cold_bb): New routine.
17999 (commit_edge_insertions): Invoke fixup_partitions.
18000 (find_partition_fixes): New routine.
18001 (fixup_partitions): Ditto.
18002 (verify_hot_cold_block_grouping): Update comments.
18003 (rtl_verify_edges): Invoke find_partition_fixes.
18004 (rtl_verify_bb_pointers): Update comments.
18005 (rtl_verify_bb_layout): Ditto.
18006 * basic-block.h (probably_never_executed_edge_p): Declare.
18007 (fixup_partitions): Ditto.
18008 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
18009 * bb-reorder.c (sanitize_hot_paths): New function.
18010 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
18011 sanitize_hot_paths.
18012 * predict.c (probably_never_executed_edge_p): New routine.
18013 * cfg.c (check_bb_profile): Add partition insanity warnings.
18014
18015 2013-08-30 Meador Inge <meadori@codesourcery.com>
18016
18017 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
18018
18019 2013-08-30 Marek Polacek <polacek@redhat.com>
18020
18021 * Makefile.in (ubsan.o): Add.
18022 (c-family/c-ubsan.o): Add.
18023 (builtins.o): Add ubsan.h dependency.
18024 * ubsan.h: New file.
18025 * ubsan.c: New file.
18026 * common.opt: Add -fsanitize=undefined option.
18027 (flag_sanitize): Add variable.
18028 (fsanitize=): Add option. Add Driver.
18029 (fsanitize=thread): Remove option.
18030 (fsanitize=address): Likewise.
18031 (static-libubsan): New option.
18032 * doc/invoke.texi: Document the new flag and -static-libubsan.
18033 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
18034 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
18035 * builtin-attrs.def (ATTR_COLD): Define.
18036 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
18037 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
18038 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
18039 * flag-types.h (sanitize_code): New enum.
18040 * opts.c (common_handle_option): Parse command line arguments
18041 of -fsanitize=. Add -fsanitize=unreachable option.
18042 * varasm.c (get_variable_section): Adjust.
18043 (assemble_noswitch_variable): Likewise.
18044 (assemble_variable): Likewise.
18045 (output_constant_def_contents): Likewise.
18046 (categorize_decl_for_section): Likewise.
18047 (place_block_symbol): Likewise.
18048 (output_object_block): Likewise.
18049 * builtins.def: Likewise.
18050 * toplev.c (compile_file): Likewise.
18051 (process_options): Likewise.
18052 * cppbuiltin.c: Likewise.
18053 * tsan.c (tsan_pass): Likewise.
18054 (tsan_gate): Likewise.
18055 (tsan_gate_O0): Likewise.
18056 * cfgexpand.c (partition_stack_vars): Likewise.
18057 (expand_stack_vars): Likewise.
18058 (defer_stack_allocation): Likewise.
18059 (expand_used_vars): Likewise.
18060 * cfgcleanup.c (old_insns_match_p): Likewise.
18061 * asan.c (asan_finish_file): Likewise.
18062 (asan_instrument): Likewise.
18063 (gate_asan): Likewise.
18064 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
18065 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
18066 (asan_global_struct): Use pointer_sized_int_node instead
18067 calling build_nonstandard_integer_type.
18068 (initialize_sanitizer_builtins): Likewise.
18069 (asan_finish_file): Likewise.
18070 * gcc.c: Document %{%:function(args):X}.
18071 (static_spec_functions): Add sanitize.
18072 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
18073 store funcval != NULL there.
18074 (do_spec_1): Adjust handle_spec_function caller.
18075 (handle_braces): Allow %:function(args) as condition.
18076 (sanitize_spec_function): New function.
18077 (ADD_STATIC_LIBUBSAN_LIBS): Define.
18078 (LIBUBSAN_SPEC): Likewise.
18079 (LIBUBSAN_EARLY_SPEC): Likewise.
18080 (SANITIZER_SPEC): Handle libubsan.
18081 (SANITIZER_EARLY_SPEC): Likewise.
18082 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
18083 instead of fsanitize=address.
18084 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
18085 instead of fsanitize=address*.
18086 * builtins.c: Include ubsan.h.
18087 (fold_builtin_0): Instrument __builtin_unreachable.
18088 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
18089 instead of flag_asan.
18090 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
18091 (pointer_sized_int_node): Define.
18092 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
18093
18094 2013-08-30 Mike Stump <mikestump@comcast.net>
18095
18096 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
18097 with RE patterns.
18098
18099 2013-08-29 Jan Hubicka <jh@suse.cz>
18100
18101 * cgraph.c (cgraph_function_body_availability): Handle weakref
18102 correctly.
18103 * passes.def: Remove pass_fixup_cfg.
18104 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
18105 track when we need to remove functions.
18106 (gate_ipa_inline): Execute inlining always; add comment why.
18107 (pass_data_ipa_inline): Remove TODO_remove_functions.
18108 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
18109 do not produce summaries.
18110 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
18111 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
18112 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
18113 constant pool and vtable.
18114
18115 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
18116
18117 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
18118 New arm_neon.h's internal macros to specify 64-bit constants.
18119 Avoid using stdint.h's macros.
18120
18121 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
18122
18123 * recog.c (verify_changes): Verify that changes[i].old is non-zero
18124 before applying REG_P.
18125
18126 2013-08-30 Jakub Jelinek <jakub@redhat.com>
18127
18128 PR tree-optimization/58277
18129 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
18130 after seeing too many stmts with vdef in between dombb and current
18131 bb, invalidate everything.
18132
18133 2013-08-30 Richard Biener <rguenther@suse.de>
18134
18135 * fold-const.c (fold_single_bit_test): Fix overflow test.
18136
18137 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
18138
18139 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
18140 and which can live in a register, always retrieve the value on entry.
18141 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
18142 passed by invisible reference specially.
18143 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
18144 (vt_add_function_parameter): Correctly deal with a parameter passed by
18145 invisible reference.
18146
18147 2013-08-30 Jan Hubicka <jh@suse.cz>
18148
18149 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
18150
18151 2013-08-30 Richard Biener <rguenther@suse.de>
18152
18153 PR tree-optimization/58228
18154 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
18155 allow invariant loads in nested loop vectorization.
18156
18157 2013-08-30 Richard Biener <rguenther@suse.de>
18158
18159 PR tree-optimization/58223
18160 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
18161 (has_anti_or_output_dependence): ... this and adjust to also
18162 look for output dependences.
18163 (mark_nodes_having_upstream_mem_writes): Adjust.
18164 (rdg_flag_uses): Likewise.
18165
18166 2013-08-30 Richard Biener <rguenther@suse.de>
18167
18168 PR tree-optimization/58010
18169 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
18170 assert that we have a loop-closed PHI.
18171
18172 2013-08-29 Jan Hubicka <jh@suse.cz>
18173
18174 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
18175 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
18176 * lto-section-in.c (lto_free_function_in_decl_state): New function.
18177 (lto_free_function_in_decl_state_for_node): New function.
18178
18179 2013-08-29 Xinliang David Li <davidxl@google.com>
18180
18181 * loop-unroll.c (report_unroll_peel): Minor message change.
18182 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
18183 Emit alignment peeling message with default -fopt-info.
18184 (vect_loop_versioning): Emit loop version info message.
18185 * tree-vectorizer.c (vectorize_loops): Minor message change.
18186 (execute_vect_slp): Ditto.
18187
18188 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
18189
18190 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
18191 of the clone from the DECL_NAME of the original function.
18192
18193 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
18194
18195 * passes.c (register_pass): Add overload.
18196 * tree-pass.h (register_pass): Forward declare it. Add comment.
18197
18198 2013-08-29 Jan Hubicka <jh@suse.cz>
18199
18200 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
18201 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
18202 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
18203 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
18204 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
18205 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
18206 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
18207 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
18208
18209 2013-08-29 Teresa Johnson <tejohnson@google.com>
18210
18211 * dumpfile.c (dump_loc): Output column number.
18212 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
18213 * doc/invoke.texi: Document optall -fopt-info flag.
18214 * profile.c (read_profile_edge_counts): Use new dump framework.
18215 (compute_branch_probabilities): Ditto.
18216 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
18217 when pass not in any opt group.
18218 * pass_manager.h (pass_manager::get_pass_profile): New method.
18219 * value-prof.c (check_counter): Use new dump framework.
18220 (check_ic_target): Ditto.
18221 * coverage.c (get_coverage_counts): Ditto.
18222 (coverage_init): Setup new dump framework.
18223
18224 2013-08-29 Richard Biener <rguenther@suse.de>
18225
18226 PR tree-optimization/58246
18227 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
18228 handle the dominance check inside a basic-block.
18229
18230 2013-08-29 Richard Biener <rguenther@suse.de>
18231
18232 PR middle-end/57287
18233 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
18234 of default defs that appear in abnormal PHI nodes.
18235
18236 2013-08-29 Richard Biener <rguenther@suse.de>
18237
18238 PR tree-optimization/57685
18239 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
18240 single-use operands to avoid exponential complexity.
18241
18242 2013-08-28 Dehao Chen <dehao@google.com>
18243
18244 * ipa-inline.c (edge_badness): Fix integer underflow.
18245
18246 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
18247
18248 * gtm-builtins.def (_ITM_free): Declare leaf.
18249
18250 2013-08-28 Jakub Jelinek <jakub@redhat.com>
18251
18252 PR target/58067
18253 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
18254 (*tls_local_dynamic_base_64_largepic): Likewise.
18255 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
18256 Remove predicate from call operand.
18257 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
18258 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
18259
18260 2013-08-28 Jeff Law <law@redhat.com>
18261
18262 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
18263 checks for the number of predecessors and successors allowed.
18264 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
18265 which require copying a joiner block if there is a request which
18266 is a subpath that requires no joiner block copying.
18267
18268 2013-08-28 Jan Hubicka <jh@suse.cz>
18269
18270 * lto-streamer-out.c (DFS_write_tree_body): Drop
18271 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
18272 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
18273 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
18274 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
18275 Do not read DECL_ERROR_ISSUED.
18276 (unpack_ts_decl_with_vis_value_fields): Do not read
18277 DECL_DEFER_OUTPUT.
18278 (lto_input_ts_binfo_tree_pointers): Do not read
18279 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
18280 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
18281 write DECL_ERROR_ISSUED..
18282 (pack_ts_decl_with_vis_value_fields): Do not write
18283 DECL_DEFER_OUTPUT.
18284 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
18285 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
18286 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
18287 * tree.h (tree_decl_common): Update comment.
18288 (DECL_ERROR_ISSUED): Remove.
18289
18290 2013-08-28 Jakub Jelinek <jakub@redhat.com>
18291
18292 PR middle-end/58257
18293 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
18294
18295 2013-08-28 Jan Hubicka <jh@suse.cz>
18296
18297 * builtins.def (free): Declare leaf.
18298
18299 2013-08-27 David Malcolm <dmalcolm@redhat.com>
18300
18301 * gdbhooks.py: New.
18302 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
18303 * configure: Regenerate.
18304
18305 2013-08-27 Martin Jambor <mjambor@suse.cz>
18306
18307 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
18308 (ipa_ancestor_jf_data): Likewise.
18309 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
18310 (ipa_get_jf_pass_through_type_preserved): New function.
18311 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
18312 (ipa_get_jf_ancestor_type_preserved): New function.
18313 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
18314 (ipa_get_jf_ancestor_result): Likewise.
18315 (propagate_vals_accross_pass_through): Use
18316 ipa_get_jf_pass_through_result to do all the value mappings.
18317 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
18318 type_preserved flag.
18319 (ipa_set_jf_cst_copy): New function.
18320 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
18321 (ipa_set_jf_arith_pass_through): Likewise.
18322 (ipa_set_ancestor_jf): Likewise.
18323 (compute_complex_assign_jump_func): Set type_preserved instead of
18324 punting.
18325 (ipa_compute_jump_functions_for_edge): Likewise.
18326 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
18327 (update_jump_functions_after_inlining): Update type_preserved.
18328 Explicitely create jump functions when combining one with pass_through.
18329 (ipa_write_jump_function): Stream the type_preserved flags.
18330 (ipa_read_jump_function): Likewise.
18331
18332 2013-08-27 Jakub Jelinek <jakub@redhat.com>
18333 Aldy Hernandez <aldyh@redhat.com>
18334
18335 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
18336 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
18337 * function.h (struct function): Add has_force_vect_loops and
18338 has_simduid_loops.
18339 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
18340 * gimple.c (gimple_build_omp_critical): Add KIND argument and
18341 handle it.
18342 * gimple.def: Update CLAUSES comments.
18343 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
18344 (gimple_build_omp_for): Add argument to prototype.
18345 (gimple_omp_for_kind): New.
18346 (gimple_omp_for_set_kind): New.
18347 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
18348 GOVD_DATA_SHARE_CLASS.
18349 (enum omp_region_type): Add ORT_SIMD.
18350 (gimple_add_tmp_var): Handle ORT_SIMD.
18351 (gimplify_var_or_parm_decl): Same.
18352 (is_gimple_stmt): Same.
18353 (omp_firstprivatize_variable): Same.
18354 (omp_add_variable): Only use splay_tree_insert if lookup failed.
18355 (omp_notice_variable): Handle ORT_SIMD.
18356 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
18357 (omp_check_private): Handle ORT_SIMD.
18358 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
18359 OMP_CLAUSE_SAFELEN.
18360 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
18361 Handle OMP_CLAUSE_LASTPRIVATE.
18362 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
18363 OMP_CLAUSE_SAFELEN.
18364 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
18365 (gimplify_expr): Handle OMP_SIMD.
18366 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
18367 (expand_GOMP_SIMD_VF): New.
18368 (expand_GOMP_SIMD_LAST_LANE): New.
18369 * internal-fn.def (GOMP_SIMD_LANE): New.
18370 (GOMP_SIMD_VF): New.
18371 (GOMP_SIMD_LAST_LANE): New.
18372 * omp-low.c: Include target.h.
18373 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
18374 OMP_CLAUSE_SAFELEN.
18375 (check_omp_nesting_restrictions): Same.
18376 (omp_max_vf): New.
18377 (lower_rec_simd_input_clauses): New.
18378 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
18379 OMP_CLAUSE_LINEAR.
18380 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
18381 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
18382 (expand_omp_build_assign): New.
18383 (expand_omp_for_init_counts): New.
18384 (expand_omp_for_init_vars): New.
18385 (extract_omp_for_update_vars): New.
18386 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
18387 and rewrite accordingly.
18388 (expand_omp_simd): New.
18389 (expand_omp_for): Use expand_omp_simd.
18390 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
18391 (lower_omp_for): Do not lower the body.
18392 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
18393 in their own loops.
18394 * tree-flow.h (find_omp_clause): Remove prototype.
18395 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
18396 forcing vectorization of the loop, or if flag_tree_vectorize.
18397 (gate_tree_if_conversion): Similarly.
18398 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
18399 gimple_build_omp_for.
18400 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
18401 * tree-parloops (create_parallel_loop): Pass kind argument to
18402 gimple_build_omp_for.
18403 * tree-pretty-print.c (dump_omp_clause): Add cases for
18404 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
18405 OMP_CLAUSE__SIMDUID_.
18406 (dump_generic_node): Handle OMP_SIMD.
18407 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
18408 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
18409 unroll OMP_SIMD loops here.
18410 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
18411 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
18412 loop->safelen.
18413 (vect_analyze_data_refs): Handle simd loops.
18414 * tree-vect-loop.c (vectorizable_live_operation): Handle
18415 IFN_GOMP_SIMD*.
18416 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
18417 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
18418 (vectorizable_load): Same.
18419 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
18420 (struct simduid_to_vf): New.
18421 (simduid_to_vf::hash): New.
18422 (simduid_to-vf::equal): New.
18423 (struct simd_array_to_simduid): New.
18424 (simd_array_to_simduid::hash): New.
18425 (simd_array_to_simduid::equal): New.
18426 (adjust_simduid_builtins): New.
18427 (struct note_simd_array_uses_struct): New.
18428 (note_simd_array_uses_cb): New.
18429 (note_simd_array_uses): New.
18430 (vectorize_loops): Handle simd hints and adjust simd builtins
18431 accordingly.
18432 * tree-vectorizer.h (struct _stmt_vec_info): Add
18433 simd_lane_access_p field.
18434 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
18435 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
18436 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
18437 (omp_clause_code_name): Same.
18438 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
18439 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
18440 * tree.def (OMP_SIMD): New entry.
18441 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
18442 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
18443 (OMP_CLAUSE_DECL): Adjust range for new clauses.
18444 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
18445 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
18446 (OMP_CLAUSE_LINEAR_STEP): New.
18447 (OMP_CLAUSE_SAFELEN_EXPR): New.
18448 (OMP_CLAUSE__SIMDUID__DECL): New.
18449 (find_omp_clause): New prototype.
18450
18451 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
18452
18453 * config/i386/driver-i386.c (host_detect_local_cpu): Update
18454 Haswell processor detection.
18455
18456 2013-08-27 Christian Widmer <shadow@umbrox.de>
18457
18458 PR target/57927
18459 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
18460 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
18461 AVX2 capable processors.
18462
18463 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
18464
18465 * config/aarch64/arm_neon.h: Replace all inline asm implementations
18466 of vget_low_* with implementations in terms of other intrinsics.
18467
18468 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
18469
18470 PR middle-end/57219
18471 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
18472 values to -1, 0 and 1.
18473
18474 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
18475
18476 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
18477 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
18478 (<optab><mode>3_insn): Remove.
18479 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
18480 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
18481 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18482 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
18483 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
18484 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
18485 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
18486 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
18487 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
18488 (ror<mode>3_insn): Likewise.
18489 * config/aarch64/predicates.md (aarch64_simd_register): New.
18490
18491 2013-08-27 Richard Biener <rguenther@suse.de>
18492
18493 PR tree-optimization/57521
18494 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
18495 one edge is non-critical.
18496 (find_phi_replacement_condition): Make sure to use a non-critical
18497 edge. Cleanup and remove old bug workarounds.
18498 (bb_postdominates_preds): Remove.
18499 (if_convertible_loop_p_1): Do not compute post-dominators.
18500 (combine_blocks): Do not free post-dominators.
18501 (main_tree_if_conversion): Likewise.
18502 (pass_data_if_conversion): Add TODO_verify_ssa.
18503
18504 2013-08-27 DJ Delorie <dj@redhat.com>
18505
18506 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
18507
18508 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
18509
18510 * function.c (assign_parm_find_data_types): Set passed_mode and
18511 nominal_mode to the TYPE_MODE of nominal_type for the built
18512 pointer type in case of the struct-pass-by-reference.
18513
18514 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18515
18516 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
18517 (UINT16_TYPE): Change default to "unsigned int".
18518
18519 * config/avr/avr.opt (mfract-convert-truncate): New option.
18520 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
18521 is set, round negative fractional integers according to n1169
18522 when converting to integer types.
18523
18524 2013-08-26 Jan Hubicka <jh@suse.cz>
18525
18526 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
18527 methods can not be called indirectly when their address is not taken.
18528
18529 2013-08-26 Jan Hubicka <jh@suse.cz>
18530
18531 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
18532 ctor_for_folding.
18533
18534 2013-08-26 Jan Hubicka <jh@suse.cz>
18535
18536 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
18537 can be unshared.
18538
18539 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18540
18541 * reload.c (find_valid_class): Allow classes that do not include
18542 FIRST_PSEUDO_REGISTER - 1.
18543
18544 2013-08-26 Jan Hubicka <jh@suse.cz>
18545
18546 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
18547 fix edge count/frequency when speculation failed; fix type check
18548 for the direct call.
18549
18550 2013-08-26 Jan Hubicka <jh@suse.cz>
18551
18552 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
18553
18554 2013-08-26 Jan Hubicka <jh@suse.cz>
18555
18556 * ipa-inline-transform.c (inline_transform): Be ready for basic block
18557 to be changed by edge redirection.
18558
18559 2013-08-26 Jan Hubicka <jh@suse.cz>
18560
18561 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
18562 formating; add sanity check.
18563 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
18564 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
18565 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
18566 (resolve_noninline_speculation): Update callee keys, too.
18567
18568 2013-08-26 Jan Hubicka <jh@suse.cz>
18569
18570 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
18571 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
18572
18573 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18574
18575 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
18576 into proper place.
18577
18578 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
18579
18580 * config/i386/i386.c (ix86_debug_options): Remove prototype.
18581 (x86_64_elf_select_section): Ditto.
18582 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
18583 arguments.
18584 (ix86_pass_by_reference): Ditto.
18585 (output_set_got): Ditto.
18586 (ix86_unary_operator_ok): Ditto.
18587 (ix86_expand_builtin): Ditto.
18588
18589 2013-08-23 Jan Hubicka <jh@suse.cz>
18590
18591 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
18592
18593 2013-08-23 Jan Hubicka <jh@suse.cz>
18594
18595 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
18596 (tree_decl_with_vis): Add FINAL field.
18597
18598 2013-08-23 Jeff Law <law@redhat.com>
18599
18600 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
18601 the debugging dump when the expression is fully redundant.
18602
18603 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
18604
18605 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
18606 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
18607 * pretty-print.c (pp_formatted_text_data): Likewise.
18608 (pp_write_text_to_stream): Likewise.
18609 (pp_write_text_as_dot_label_to_stream): Likewise.
18610 (pp_append_r): Likewise.
18611 (pp_format): Likewise.
18612 (pp_flush): Likewise.
18613 (pp_clear_output_area): Likewise.
18614 (pp_append_text): Likewise.
18615 (pp_formatted_text): Likewise.
18616 (pp_remaining_character_count_for_line): Likewise.
18617 (pp_newline): Likewise.
18618 (pp_character): Likewise.
18619 (output_buffer::~output_buffer): Define.
18620 (pretty_printer::~pretty_printer): Destruct output buffer.
18621 * pretty-print.h (output_buffer::~output_buffer): Declare.
18622 (pretty_printer::~pretty_printer): Declare virtual.
18623
18624 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
18625
18626 PR other/57324
18627 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
18628 HOST_WIDE_INT_M1U): New macros.
18629 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
18630 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
18631 unsigned -1 for lshift.
18632 * cse.c (cse_insn): Likewise.
18633 * double-int.c (rshift_double, lshift_double): Likewise.
18634 * builtins.c (fold_builtin_bitop): Likewise.
18635 * combine.c (force_to_mode): Likewise.
18636 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
18637 * simplify-rtx.c (simplify_const_unary_operation,
18638 simplify_const_binary_operation): Likewise.
18639 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
18640 check_va_list_escapes): Likewise.
18641 * rtlanal.c (nonzero_bits1): Likewise.
18642 * expmed.c (expand_smod_pow2): Likewise.
18643 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
18644
18645 2013-08-23 Jan Hubicka <jh@suse.cz>
18646
18647 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
18648 as having address taken.
18649
18650 2013-08-23 Jan Hubicka <jh@suse.cz>
18651
18652 * ipa-utils.h (method_class_type): Declare.
18653 * ipa-devirt.c (method_class_type): Export.
18654
18655 * cgraphunit.c (analyze_functions): Do basic devirtualization;
18656 do not walk base classes of anonymous types.
18657
18658 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
18659
18660 PR rtl-optimization/58220
18661 PR regression/58221
18662 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
18663 handle SEQUENCE insns properly.
18664
18665 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
18666
18667 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
18668 definition.
18669 (pp_newline_and_indent): Likewise.
18670 (pp_separate_with): Likewise.
18671 * pretty-print.c (pp_newline_and_flush): Define.
18672 (pp_newline_and_indent): Likewise.
18673 (pp_separate_with): Likewise.
18674
18675 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18676
18677 PR target/58218
18678 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
18679 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
18680
18681 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
18682
18683 * config/i386/predicates.md (ext_sse_reg_operand): New.
18684 * config/i386/i386.md (*movti_internal): Use
18685 predicate to determine if EVEX is needed.
18686 (*movsi_internal): Ditto.
18687 (*movdf_internal): Ditto.
18688 (*movsf_internal): Ditto.
18689 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
18690
18691 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18692
18693 PR tree-optimization/58209
18694 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
18695 (find_tail_calls): Give up for pointer result types if m is non-NULL.
18696 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
18697 emit POINTER_PLUS_EXPR.
18698 (create_tailcall_accumulator): For pointer result type accumulate in
18699 sizetype type.
18700
18701 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
18702
18703 * configure.ac: Add backslashes missing from the last change.
18704 * configure: Regenerate.
18705
18706 2013-08-22 Jan Hubicka <jh@susue.cz>
18707
18708 * ipa.c (function_and_variable_visibility): First remember function
18709 was global and then make it local.
18710
18711 2013-08-22 Julian Brown <julian@codesourcery.com>
18712
18713 * configure.ac: Add aarch64 to list of arches which use "nop" in
18714 debug_line test.
18715 * configure: Regenerate.
18716
18717 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18718
18719 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
18720 gnu_libc_has_function.
18721 * config/s390/tpf.h: Likewise.
18722
18723 2013-08-22 Jan Hubicka <jh@susue.cz>
18724
18725 * timevar.c (validate_phases): Add cast.
18726
18727 2013-08-22 Jan Hubicka <jh@susue.cz>
18728
18729 * timevar.c (validate_phases): Use size_t for memory.
18730 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
18731
18732 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
18733
18734 * pretty-print.h (output_buffer::output_buffer): Declare.
18735 (pretty_printer::pretty_printer): Likewise.
18736 (pp_construct): Remove.
18737 * pretty-print.c (output_buffer::output_buffer): Define.
18738 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
18739 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
18740 (print_gimple_expr): Likewise.
18741 (print_gimple_seq): Likewise.
18742 (gimple_dump_bb): Likewise.
18743 * sched-vis.c (dump_value_slim): Likewise.
18744 (dump_insn_slim): Likewise.
18745 (dump_rtl_slim): Likewise.
18746 (str_pattern_slim): Likewise.
18747 * tree-mudflap.c (mf_varname_tree): Likewise.
18748 * graph.c (print_graph_cfg): Likewise.
18749 (start_graph_dump): Likewise.
18750 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
18751 placement-new.
18752 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
18753 pretty printer initialization.
18754 * coretypes.h (diagnostic_context): Remove superflous type alias
18755 declaration.
18756 (pretty_printer): Likewise. Declare directly as a class.
18757 (pretty_print_info): Remove declaration as class.
18758 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
18759 and pp_clear_output_area.
18760 (asan_add_global): Likewise.
18761
18762 2013-08-22 Jan Hubicka <jh@suse.cz>
18763
18764 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
18765 * ipa-utils.h (update_type_inheritance_graph): Declare.
18766 (possible_polymorphic_call_target_p): Declare.
18767 (possible_polymorphic_call_target_p): New.
18768 * ipa-devirt.c: Update toplevel comments.
18769 (cached_polymorphic_call_targets): Move up.
18770 (odr_type_d): Move ID down.
18771 (polymorphic_type_binfo_p): Update comment.
18772 (odr_hasher::remove): Likewise;
18773 (get_odr_type): Set anonymous_namespace.
18774 (dump_odr_type): Dump it.
18775 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
18776 (maybe_record_node): Record node in cached_polymorphic_call_targets.
18777 (record_binfo): Add comment.
18778 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
18779 built.
18780 (devirt_node_removal_hook): Do not iCE when cache is freed.
18781 (possible_polymorphic_call_target_p): New predicate.
18782 (update_type_inheritance_graph): New function.
18783
18784 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
18785 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18786 Sergey Lega <sergey.s.lega@intel.com>
18787 Anna Tikhonova <anna.tikhonova@intel.com>
18788 Ilya Tocar <ilya.tocar@intel.com>
18789 Andrey Turetskiy <andrey.turetskiy@intel.com>
18790 Ilya Verbin <ilya.verbin@intel.com>
18791 Kirill Yukhin <kirill.yukhin@intel.com>
18792 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18793
18794 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
18795 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
18796 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
18797 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
18798 (OPTION_MASK_ISA_AVX2_UNSET): Update.
18799 (OPTION_MASK_ISA_AVX512F_UNSET): New.
18800 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
18801 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
18802 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
18803 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
18804 OPT_mavx512pf, OPT_mavx512er cases.
18805 * config/i386/constraints.md (v): New constraint.
18806 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
18807 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
18808 (bit_AVX512CD): New.
18809 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18810 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
18811 * config/i386/i386-c.c (ix86_target_macros_internal):
18812 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
18813 __AVX512PF__.
18814 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
18815 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
18816 * config/i386/i386.c (regclass_map, dbx_register_map)
18817 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
18818 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
18819 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
18820 -mavx512pf options.
18821 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
18822 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
18823 -mavx512pf options. Fix formatting.
18824 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
18825 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
18826 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
18827 -mavx512cd, -mavx512pf options.
18828 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
18829 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
18830 (ix86_preferred_output_reload_class): Replace SSE_REGS with
18831 ALL_SSE_REGS.
18832 (ix86_hard_regno_mode_ok): Support 512-bit registers.
18833 (ix86_set_reg_reg_cost): Ditto.
18834 (x86_order_regs_for_local_alloc): Ditto.
18835 (MAX_VECT_LEN): Extend to 64-byte.
18836 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
18837 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
18838 (TARGET_AVX512ER, TARGET_AVX512CD): New.
18839 (BIGGEST_ALIGNMENT): Extend to 512-bits.
18840 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
18841 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
18842 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
18843 (SSE_REG_MODE_P): Support new modes.
18844 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
18845 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
18846 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
18847 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
18848 (REG_CLASS_CONTENTS): Add new registers.
18849 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
18850 (EXT_REX_SSE_REGNO_P): New.
18851 (HI_REGISTER_NAMES): Add new registers.
18852 * config/i386/i386.md: Define constants for new registers.
18853 (mode): Add new 512-bit modes.
18854 (prefix): Support evex prefix.
18855 (isa): Support avx512f, noavx512f, fma_avx512f.
18856 (ssemodesuffix): Add new 512-bit modes.
18857 (movxi): New.
18858 (*movxi_internal_avx512f): Ditto.
18859 (*movdi_internal): Replace constraint "x" with the new constraint "v".
18860 Support MODE_XI.
18861 (*movsi_internal): Likewise.
18862 (*movdf_internal): Likewise.
18863 (*movsf_internal): Likewise.
18864 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
18865 (<code><mode>3): Likewise.
18866 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
18867 New.
18868 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
18869 with the new constraint "v".
18870 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
18871 modes.
18872 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
18873 with the new constraint "v".
18874 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
18875 (<sse2>_storedqu<avxsizesuffix>): Likewise.
18876 (*<plusminus_insn><mode>3): Likewise.
18877 (<sse>_vm<plusminus_insn><mode>3): Likewise.
18878 (*mul<mode>3): Likewise.
18879 (<sse>_vmmul<mode>3): Likewise.
18880 (<sse>_div<mode>3): Likewise.
18881 (<sse>_vmdiv<mode>3): Likewise.
18882 (<sse>_sqrt<mode>2): Likewise.
18883 (<sse>_vmsqrt<mode>2): Likewise.
18884 (*<code><mode>3_finite): Likewise.
18885 (*<code><mode>3) <smaxmin>: Likewise.
18886 (<sse>_vm<code><mode>3): Likewise.
18887 (*<code><mode>3) <any_logic>: Likewise.
18888 (*fma_fmadd_<mode>): Likewise.
18889 (*fma_fmsub_<mode>): Likewise.
18890 (*fma_fnmadd_<mode>): Likewise.
18891 (*fma_fnmsub_<mode>): Likewise.
18892 (*fma_fmaddsub_<mode>): Likewise.
18893 (*fma_fmsubadd_<mode>): Likewise.
18894 (*fmai_fmadd_<mode>): Likewise.
18895 (*fmai_fmsub_<mode>): Likewise.
18896 (*fmai_fnmadd_<mode>): Likewise.
18897 (*fmai_fnmsub_<mode>): Likewise.
18898 (sse_cvtsi2ss): Likewise.
18899 (sse_cvtsi2ssq): Likewise.
18900 (sse_cvtss2si): Likewise.
18901 (sse_cvtss2si_2): Likewise.
18902 (sse_cvtss2siq): Likewise.
18903 (sse_cvtss2siq_2): Likewise.
18904 (sse_cvttss2si): Likewise.
18905 (sse_cvtss2siq_2): Likewise.
18906 (float<sseintvecmodelower><mode>2): Likewise.
18907 (sse2_cvtsd2si_2): Likewise.
18908 (sse2_cvtsd2siq_2): Likewise.
18909 (*<plusminus_insn><mode>3): Likewise.
18910 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
18911 (*<sse4_1_avx2>_mul<mode>3): Likewise.
18912 (ashr<mode>3): Likewise.
18913 (<shift_insn><mode>3): Likewise.
18914 (avx2_<code><mode>3): Likewise.
18915 (*avx2_<code><mode>3): Likewise.
18916 (*andnot<mode>3): Likewise.
18917 (*<code><mode>3) <any_logic>: Likewise.
18918 (abs<mode>2): Likewise.
18919 (avx2_permvar<mode>): Likewise.
18920 (avx2_perm<mode>_1): Likewise.
18921 (*avx_vpermilp<mode>): Likewise.
18922 (avx_vpermilvar<mode>3): Likewise.
18923 (avx2_ashrv<mode>): Likewise.
18924 (avx2_<shift_insn>v<mode>): Likewise.
18925 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18926 -mavx512cd.
18927 * doc/rtl.texi: Document XImode.
18928
18929 2013-08-21 Jeff Law <law@redhat.com>
18930
18931 * tree-flow.h (register_jump_thread): Pass vector of edges
18932 instead of each important edge.
18933 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18934 thread path into a vector and pass that to register_jump_thread.
18935 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18936 passed in edge vector to the current 3-edge form.
18937
18938 Revert:
18939 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18940
18941 * dce.c (fini_dce): Call df_analyze again just in case
18942 delete_unmarked_insns removed anything.
18943
18944 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
18945
18946 * reload.h (struct reg_equivs): Rename to ..
18947 (struct reg_equivs_s): .. this.
18948
18949 2013-08-20 Martin Liska <marxin.liska@gmail.com>
18950
18951 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18952
18953 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18954
18955 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18956
18957 2013-08-21 Jeff Law <law@redhat.com>
18958
18959 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18960 simplify assignments too. If the RHS collapses to a singleton
18961 range, then return the value for the range.
18962
18963 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
18964
18965 * config/i386/sse.md (V16): Rename to...
18966 (VMOVE): this.
18967 (mov<mode>): Update iterator name.
18968 (*mov<mode>_internal): Ditto.
18969 (push<mode>1): Ditto.
18970 (movmisalign<mode>): Ditto.
18971
18972 2013-08-20 Jan Hubicka <jh@suse.cz>
18973
18974 PR bootstrap/58186
18975 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18976 entry for direct edges.
18977 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18978
18979 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18980
18981 Revert my last two changes, r201865 and r201864:
18982
18983 Revert r201865:
18984 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18985
18986 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18987 instances can own GC refs.
18988
18989 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18990 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18991 (gcc::context::gt_pch_nx): Likewise.
18992 (gcc::context::gt_pch_nx): Likewise.
18993 * ggc.h (gt_ggc_mx <T>): New.
18994 (gt_pch_nx_with_op <T>): New.
18995 (gt_pch_nx <T>): New.
18996 * passes.c (opt_pass::gt_ggc_mx): New.
18997 (opt_pass::gt_pch_nx): New.
18998 (opt_pass::gt_pch_nx_with_op): New.
18999 (pass_manager::gt_ggc_mx): New.
19000 (pass_manager::gt_pch_nx): New.
19001 (pass_manager::gt_pch_nx_with_op): New.
19002 (pass_manager::operator new): Use
19003 ggc_internal_cleared_alloc_stat rather than xcalloc.
19004 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
19005 (pass_manager::gt_ggc_mx): New.
19006 (pass_manager::gt_pch_nx): New.
19007 (pass_manager::gt_pch_nx_with_op): New.
19008 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
19009 (opt_pass::operator new): New.
19010 (opt_pass::gt_ggc_mx): New.
19011 (opt_pass::gt_pch_nx): New.
19012 (opt_pass::gt_pch_nx_with_op): New.
19013
19014 Revert r201864:
19015 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19016
19017 * Makefile.in (GTFILES): Add context.h.
19018 * context.c (gcc::context::operator new): New.
19019 (gcc::context::gt_ggc_mx): New.
19020 (gcc::context::gt_pch_nx): New.
19021 (gcc::context::gt_pch_nx): New.
19022 * context.h (gcc::context): Add GTY((user)) marking.
19023 (gcc::context::operator new): New.
19024 (gcc::context::gt_ggc_mx): New.
19025 (gcc::context::gt_pch_nx): New.
19026 (gcc::context::gt_pch_nx): New.
19027 (g): Add GTY marking.
19028 (gt_ggc_mx (gcc::context *)): New.
19029 (gt_pch_nx (gcc::context *)): New.
19030 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
19031 void *cookie)): New.
19032 * gengtype.c (open_base_files) <ifiles>: Add context.h.
19033
19034 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
19035
19036 * dce.c (fini_dce): Call df_analyze again just in case
19037 delete_unmarked_insns removed anything.
19038
19039 2013-08-20 Teresa Johnson <tejohnson@google.com>
19040
19041 PR rtl-optimizations/57451
19042 * final.c (reemit_insn_block_notes): Prevent lexical blocks
19043 from crossing split section boundaries.
19044
19045 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
19046
19047 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
19048 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
19049 with MULTLIB_DEFAULTS.
19050
19051 2013-08-20 Nick Clifton <nickc@redhat.com>
19052
19053 * target.def (narrow_volatile_bitfield): Note that the default
19054 value is false, not !TARGET_STRICT_ALIGN.
19055 * doc/tm.texi: Regenerate.
19056
19057 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
19058
19059 Fix LIB_SPEC for systems without libpthread.
19060
19061 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
19062 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
19063 for Android.
19064 * config/i386/linux-common.h: Likewise.
19065 * config/mips/linux-common.h: Likewise.
19066
19067 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19068
19069 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
19070 checks.
19071
19072 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19073
19074 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
19075 instances can own GC refs.
19076
19077 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
19078 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
19079 (gcc::context::gt_pch_nx): Likewise.
19080 (gcc::context::gt_pch_nx): Likewise.
19081 * ggc.h (gt_ggc_mx <T>): New.
19082 (gt_pch_nx_with_op <T>): New.
19083 (gt_pch_nx <T>): New.
19084 * passes.c (opt_pass::gt_ggc_mx): New.
19085 (opt_pass::gt_pch_nx): New.
19086 (opt_pass::gt_pch_nx_with_op): New.
19087 (pass_manager::gt_ggc_mx): New.
19088 (pass_manager::gt_pch_nx): New.
19089 (pass_manager::gt_pch_nx_with_op): New.
19090 (pass_manager::operator new): Use
19091 ggc_internal_cleared_alloc_stat rather than xcalloc.
19092 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
19093 (pass_manager::gt_ggc_mx): New.
19094 (pass_manager::gt_pch_nx): New.
19095 (pass_manager::gt_pch_nx_with_op): New.
19096 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
19097 (opt_pass::operator new): New.
19098 (opt_pass::gt_ggc_mx): New.
19099 (opt_pass::gt_pch_nx): New.
19100 (opt_pass::gt_pch_nx_with_op): New.
19101
19102 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19103
19104 * Makefile.in (GTFILES): Add context.h.
19105 * context.c (gcc::context::operator new): New.
19106 (gcc::context::gt_ggc_mx): New.
19107 (gcc::context::gt_pch_nx): New.
19108 (gcc::context::gt_pch_nx): New.
19109 * context.h (gcc::context): Add GTY((user)) marking.
19110 (gcc::context::operator new): New.
19111 (gcc::context::gt_ggc_mx): New.
19112 (gcc::context::gt_pch_nx): New.
19113 (gcc::context::gt_pch_nx): New.
19114 (g): Add GTY marking.
19115 (gt_ggc_mx (gcc::context *)): New.
19116 (gt_pch_nx (gcc::context *)): New.
19117 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
19118 void *cookie)): New.
19119 * gengtype.c (open_base_files) <ifiles>: Add context.h.
19120
19121 2013-08-20 Alan Modra <amodra@gmail.com>
19122
19123 PR target/57865
19124 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
19125 (rs6000_emit_epilogue): Likewise.
19126
19127 2013-08-19 Dehao Chen <dehao@google.com>
19128
19129 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
19130
19131 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
19132 Jakub Jelinek <jakub@redhat.com>
19133
19134 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
19135 (BUILT_IN_FABSD64): Likewise.
19136 (BUILT_IN_FABSD128): Likewise.
19137 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
19138 (fold_builtin_1): Likewise.
19139 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
19140 destination and source operands.
19141 (*abstd2_fpr): Likewise.
19142 (*nabstd2_fpr): Likewise.
19143
19144 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
19145
19146 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
19147 JUMP_P and INSN_P.
19148
19149 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
19150
19151 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
19152 incomplete.
19153
19154 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
19155
19156 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
19157 * builtins.c (default_libc_has_function): New.
19158 (gnu_libc_has_function): Ditto.
19159 (no_c99_libc_has_function): Ditto.
19160 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
19161 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
19162 (fold_builtin_sincos): Likewise.
19163 (fold_builtin_cexp): Likewise.
19164 * builtins.def (DEF_C94_BUILTIN): Likewise.
19165 (DEF_C99_BUILTIN): Likewise.
19166 (DEF_C99_C90RES_BUILTIN): Likewise.
19167 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
19168 definitions to using this define.
19169 * config/darwin-protos.h (darwin_libc_has_function): New.
19170 * config/darwin.c (darwin_libc_has_function): Ditto.
19171 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
19172 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
19173 * config/darwin.h: Ditto.
19174 * config/elfos.h: Ditto.
19175 * config/freebsd.h: Ditto.
19176 * config/i386/cygming.h: Ditto.
19177 * config/i386/djgpp.h: Ditto.
19178 * config/i386/i386-interix.h: Ditto.
19179 * config/microblaze/microblaze.h: Ditto.
19180 * config/mmix/mmix.h: Ditto.
19181 * config/gnu-user.h: Ditto.
19182 * config/ia64/hpux.h: Ditto.
19183 * config/pa/pa-hpux.h: Ditto.
19184 * config/pdp11/pdp11.h: Ditto.
19185 * config/picochip/picochip.h: Ditto.
19186 * config/linux.h: Ditto.
19187 * config/netbsd.h: Ditto.
19188 * config/openbsd.h: Ditto.
19189 * config/rs6000/aix43.h: Ditto.
19190 * config/rs6000/aix51.h: Ditto.
19191 * config/rs6000/aix52.h: Ditto.
19192 * config/rs6000/aix53.h: Ditto.
19193 * config/rs6000/aix61.h: Ditto.
19194 * config/rs6000/darwin.h: Ditto.
19195 * config/rs6000/linux.h: Ditto.
19196 * config/rs6000/linux64.h: Ditto.
19197 * config/s390/tpf.h: Ditto.
19198 * config/sol2-10.h: Ditto.
19199 * config/sol2.h: Ditto.
19200 * config/vms/vms.h: Ditto.
19201 * config/vxworks.h: Ditto.
19202 * config/linux-android.c (linux_android_libc_has_function):
19203 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
19204 * config/linux-protos.h (linux_android_libc_has_function):
19205 New declaration.
19206 * config/i386/i386.c (ix86_libc_has_function): New.
19207 * config/i386/i386-protos.h
19208 (ix86_libc_has_function): New declaration.
19209 * config/i386/i386.md
19210 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
19211 ("isinf<mode>2): Likewise.
19212 * convert.c (convert_to_integer): Using new target hook
19213 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
19214 TARGET_C99_FUNCTIONS.
19215 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
19216 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
19217 * coretypes.h (function_class): New enum for different
19218 classes of functions.
19219 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
19220 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
19221 (TARGET_HAS_SINCOS): Likewise.
19222 (TARGET_LIBC_HAS_FUNCTION): New.
19223 * doc/tm.texi: Regenerated.
19224 * targhooks.h (default_libc_has_function): New declaration.
19225 (no_c99_libc_has_function): Ditto.
19226 (gnu_libc_has_function): Ditto.
19227 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
19228 and TARGET_HAS_SINCOS.
19229
19230 2013-08-18 Jan Hubicka <jh@suse.cz>
19231
19232 * Makeifle-in (ipa-devirt.o): New.
19233 (GTFILES): Add ipa-utils.h and ipa-devirt.c
19234 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
19235 (analyze_functions): Look into possible targets of polymorphic call.
19236 * dumpfile.c (dump_files): Add type-inheritance dump.
19237 * dumpfile.h (TDI_inheritance): New.
19238 * ipa-devirt.c: New file.
19239 * ipa-utils.h (odr_type_d): Forward declare.
19240 (odr_type): New type.
19241 (build_type_inheritance_graph): Declare.
19242 (possible_polymorphic_call_targets): Declare and introduce inline
19243 variant when only edge is pased.
19244 (dump_possible_polymorphic_call_targets): Likewise.
19245 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
19246 * tree.c (type_in_anonymous_namespace_p): Break out from ...
19247 (types_same_for_odr): ... here.
19248 * tree.h (type_in_anonymous_namespace_p): Declare.
19249
19250 2013-08-18 Jakub Jelinek <jakub@redhat.com>
19251
19252 PR tree-optimization/58006
19253 * tree-parloops.c (take_address_of): Don't ICE if get_name
19254 returns NULL.
19255 (eliminate_local_variables_stmt): Remove clobber stmts.
19256
19257 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
19258
19259 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
19260 error message is issued for an alias to undefined symbol.
19261
19262 2013-08-18 Jan Hubicka <jh@suse.cz>
19263
19264 * cgraph.c (cgraph_create_indirect_edge): Discover
19265 polymorphic calls and record basic info into indirect_info.
19266 * gimple-fold.c (gimple_fold_call): When doing BINFO based
19267 devirtualization, ignore objc function calls.
19268 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
19269 call with no parm index info.
19270 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
19271 * tree.c (virtual_method_call_p): New function.
19272 * tree.h (virtual_method_call_p): Declare.
19273
19274 2013-08-16 Jan Hubicka <jh@suse.cz>
19275
19276 PR middle-end/58179
19277 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
19278
19279 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
19280
19281 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
19282 attribute.
19283
19284 2013-08-16 David Malcolm <dmalcolm@redhat.com>
19285
19286 * gengtype.c (type_for_name): Add special-case support for
19287 locating types within the "gcc::" namespace.
19288 (open_base_files): Emit a "using namespace gcc" directive.
19289
19290 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
19291
19292 PR target/58160
19293 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
19294 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
19295
19296 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
19297 array instead of each individual operand as a separate argument.
19298 (emit_fusion_gpr_load): Likewise.
19299 (expand_fusion_gpr_load): Add new function declaration.
19300
19301 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
19302 signature to have the operands passed as an array, instead of as
19303 separate arguments. Allow ZERO_EXTEND to be in the memory
19304 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
19305 depend on the register live/dead flags when peepholes are run.
19306 (expand_fusion_gpr_load): New function to be called from the
19307 peephole2 pass, to change the register that addis sets to be the
19308 target register.
19309 (emit_fusion_gpr_load): Change the calling signature to have the
19310 operands passed as an array, instead of as separate arguments.
19311 Allow ZERO_EXTEND to be in the memory address, and also
19312 SIGN_EXTEND if -mpower8-fusion-sign.
19313
19314 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
19315 unspec enumeration.
19316 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
19317 adjust the register addis loads up in the peephole2 pass. Do not
19318 depend on the register live/dead state when the peephole pass is done.
19319
19320 2013-08-16 David Malcolm <dmalcolm@redhat.com>
19321
19322 * gengtype.c (create_user_defined_type): Ensure that the kind
19323 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
19324 declaration is seen before the GTY((user)) marking.
19325
19326 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
19327
19328 PR target/58105
19329 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
19330
19331 2013-08-16 Jan Hubicka <jh@suse.cz>
19332
19333 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
19334 arugment expected_type.
19335 (gimple_fold_call): Use it.
19336 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
19337 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
19338 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
19339 (try_make_edge_direct_virtual_call): Likewise.
19340 * tree.c (obj_type_ref_class): New.
19341 * tree.h (obj_type_ref_class): Use it.
19342
19343 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
19344
19345 * sched-vis.c (rtl_slim_pp_initialized): Remove.
19346 (rtl_slim_pp): Likewise.
19347 (init_rtl_slim_pretty_print): Likewise.
19348 (dump_value_slim): Don't call it. Use local pretty printer.
19349 (dump_insn_slim): Likewise.
19350 (dump_rtl_slim): Likewise.
19351 (str_pattern_slim): Likewise.
19352 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
19353 Simplify.
19354
19355 2013-08-16 Jakub Jelinek <jakub@redhat.com>
19356
19357 PR tree-optimization/58164
19358 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
19359 walk gimple_goto_dest of GIMPLE_GOTO.
19360
19361 PR tree-optimization/58165
19362 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
19363 bi_call must be the last stmt in a bb, don't split_block, instead
19364 use fallthru edge from it and give up if there is none.
19365 Release conds vector when returning early.
19366
19367 2013-08-14 Xinliang David Li <davidxl@google.com>
19368
19369 * config/i386/i386.c (ix86_option_override_internal):
19370 Remove unused variable and field.
19371
19372 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19373
19374 PR target/57949
19375 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
19376 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
19377 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
19378 and Linux, correct BLKmode alignment when 128-bit alignment is
19379 required and compatibility flag is not set.
19380 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
19381 for zero-size arguments when compatibility flag is not set.
19382
19383 2013-08-14 Jakub Jelinek <jakub@redhat.com>
19384
19385 PR tree-optimization/58145
19386 * tree-sra.c (build_ref_for_offset): If prev_base has
19387 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
19388
19389 2013-08-14 Xinliang David Li <davidxl@google.com>
19390
19391 * config/i386/i386.c (ix86_option_override_internal):
19392 Fix uninitialized variable error.
19393
19394 2013-08-14 Xinliang David Li <davidxl@google.com>
19395
19396 * config/i386/i386.opt: Define two new options.
19397 * config/i386/x86-tune.def: Add arch selector field in macros.
19398 * config/i386/i386.h: Adjust macro definition.
19399 * config/i386/i386.c (ix86_option_override_internal):
19400 Refactor the code.
19401 (parse_mtune_ctrl_str): New function.
19402 (set_ix86_tune_features): New function.
19403 (ix86_function_specific_restore): Call the new helper function.
19404
19405 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
19406
19407 PR rtl-optimization/57662
19408 * sel-sched.c (code_motion_process_successors): When the current insn
19409 is removed after the recursive traversal, break from the loop.
19410 Add comments and debug printouts.
19411
19412 2013-08-14 Jakub Jelinek <jakub@redhat.com>
19413 Alexandre Oliva <aoliva@redhat.com>
19414
19415 PR target/58067
19416 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
19417 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
19418 there also UNSPEC_PLTOFF.
19419
19420 2013-08-14 Marek Polacek <polacek@redhat.com>
19421
19422 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
19423 NUM_CONDITIONS bit positions.
19424
19425 2013-08-13 Cary Coutant <ccoutant@google.com>
19426
19427 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
19428 (attr_checksum): Hash vector contents instead of pointer.
19429 (attr_checksum_ordered): Likewise.
19430
19431 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
19432
19433 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
19434 when Pmode != word_mode. Add length_address attribute.
19435 (sse3_monitor_<mode>): Merge from sse3_monitor and
19436 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
19437 Pmode != word_mode. Update insn length attribute.
19438 * config/i386/i386.c (ix86_option_override_internal): Update
19439 ix86_gen_monitor selection for merged sse3_monitor insn.
19440
19441 2013-08-13 Julian Brown <julian@codesourcery.com>
19442
19443 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
19444 perform invalid legitimization on greater-than-word-size modes for
19445 TARGET_E500_DOUBLE.
19446
19447 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
19448
19449 * ira.c (setup_class_translate_array): Use aclass instead of cl
19450 for classes not fully covered by allocno classes.
19451
19452 2013-08-13 Jakub Jelinek <jakub@redhat.com>
19453
19454 PR tree-optimization/57661
19455 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
19456 * tree-inline.c (tree_function_versioning): Initialize it.
19457 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
19458 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
19459 that is not being copied.
19460
19461 PR sanitizer/56417
19462 * asan.c (instrument_strlen_call): Fix typo in comment.
19463 Use char * type even for the lhs of POINTER_PLUS_EXPR.
19464
19465 2013-08-13 Steve Ellcey <sellcey@mips.com>
19466
19467 * config/mips/mips.md (prefetch): Use lw instead of ld on
19468 loongson in 32bit mode.
19469
19470 2013-08-13 Nick Clifton <nickc@redhat.com>
19471
19472 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
19473
19474 2013-08-13 Jan Hubicka <jh@suse.cz>
19475
19476 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
19477 introduced edge; fix typo in sanity check.
19478 (cgraph_resolve_speculation): Export; improve diagnostic.
19479 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
19480 speculation at type mismatch.
19481 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
19482 (cgraph_resolve_speculation): Declare.
19483 (symtab_can_be_discarded): New function.
19484 * value-prof.c (gimple_ic_transform): Remove actual transform code.
19485 * ipa-inline-transform.c (speculation_removed): New global var.
19486 (clone_inlined_nodes): See if speculation can be removed.
19487 (inline_call): If speculations was removed, we growths may not match.
19488 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
19489 (speculation_useful_p): New function.
19490 (resolve_noninline_speculation): New function.
19491 (inline_small_functions): Resolve useless speculations.
19492 * ipa-inline.h (speculation_useful_p): Declare
19493 * ipa.c (can_replace_by_local_alias): Simplify.
19494 (ipa_profile): Produce speculative calls in non-lto, too;
19495 add simple cost model; produce local aliases.
19496
19497 2013-08-13 David Malcolm <dmalcolm@redhat.com>
19498
19499 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
19500 PASS_MANAGER_H.
19501
19502 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
19503
19504 * config/i386/i386.c (ix86_function_versions): Use error + inform.
19505
19506 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
19507
19508 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
19509 iterator instead of X87MODEF.
19510
19511 2013-08-12 Perez Read <netfirewall@gmail.com>
19512
19513 PR target/58132
19514 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
19515 operand 0 for intel asm alternative.
19516 (*movabs<mode>_2): Ditto for operand 1.
19517
19518 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
19519
19520 * config/aarch64/arm_none.h
19521 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
19522
19523 2013-08-12 Nick Clifton <nickc@redhat.com>
19524
19525 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
19526
19527 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
19528
19529 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
19530 expand for QI/HImode operand to produce more effictive code for
19531 unsigned char(short) --> float(double) conversion.
19532
19533 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
19534
19535 * doc/invoke.texi: Mention that -ftls-model does not force the final
19536 model.
19537
19538 2013-08-12 Marek Polacek <polacek@redhat.com>
19539 Marc Glisse <marc.glisse@inria.fr>
19540
19541 PR tree-optimization/57980
19542 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
19543 when creating -1 constant.
19544
19545 2013-08-10 Jan Hubicka <jh@suse.cz>
19546
19547 Workaround binutils PR14342.
19548 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
19549 (gimple_init_edge_profiler): Likewise.
19550 (gimple_gen_ic_func_profiler): Likewise.
19551
19552 2013-08-09 Jan Hubicka <jh@suse.cz>
19553
19554 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
19555
19556 2013-08-09 Xinliang David Li <davidxl@google.com>
19557
19558 * config/i386/stringop.def: New file.
19559 * config/i386/stringop.opt: New file.
19560 * config/i386/i386-opts.h: Include stringopt.def.
19561 * config/i386/i386.opt: Include stringopt.opt.
19562 * config/i386/i386.c (ix86_option_override_internal):
19563 Override default size based stringop inline strategies with options.
19564 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
19565 New function.
19566
19567 2013-08-09 Jan Hubicka <jh@suse.cz>
19568
19569 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
19570
19571 2013-08-09 Jan Hubicka <jh@suse.cz>
19572
19573 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
19574 CGRAPH_FREQ_MAX.
19575 (dump_cgraph_node): Dump profile-id.
19576 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
19577 and common_target_probability.
19578 * lto-cgraph.c (lto_output_edge): Stream common targets.
19579 (lto_output_node): Stream profile ids.
19580 (input_node): Stream profile ids.
19581 (input_edge): Stream common targets.
19582 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
19583 * ipa.c: Include value-prof.h
19584 (ipa_profile_generate_summary): Turn indirect call statement histograms
19585 into common targets.
19586 (ipa_profile): Turn common targets into speculative edges.
19587
19588 2013-08-09 Jan Hubicka <jh@suse.cz>
19589
19590 * cgraph.h (cgraph_node): Add profile_id.
19591 * value-prof.c (cgraph_node_map): Turn into pointer_map.
19592 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
19593 (del_node_map): Update.
19594 (find_func_by_funcdef_no): Replace by ...
19595 (find_func_by_profile_id): ... this one.
19596 (gimple_ic_transform): Do not remove useful histograms when
19597 speculation is not done; dump info when indirect call removal
19598 can happen at LTO.
19599 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
19600 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
19601 (__gcov_indirect_call_profiler_v2): .. this one.
19602 * profile.h (init_node_map): Update.
19603 * coverage.c (coverage_compute_profile_id): New function.
19604 * coverage.h (coverage_compute_profile_id): Declare.
19605 * tree-profile.c (init_ic_make_global_vars): Make
19606 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
19607 (gimple_init_edge_profiler): Update prototype of
19608 __gcov_indirect_call_profiler.
19609 (gimple_gen_ic_func_profiler): Simplify.
19610 (tree_profiling): Use init_node_map
19611
19612 2013-08-09 Jan Hubicka <jh@suse.cz>
19613
19614 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
19615 non-speculative refs.
19616 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
19617 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
19618 (cgraph_set_call_stmt): Likewise.
19619 (cgraph_create_edge_1): Fix release checking compilatoin;
19620 clear lto_stmt_uid.
19621 (cgraph_free_edge): Free indirect info.
19622 (cgraph_turn_edge_to_speculative): New function.
19623 (cgraph_speculative_call_info): New function.
19624 (cgraph_make_edge_direct): Return direct edge; handle speculation.
19625 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
19626 (dump_cgraph_node): Dump speculation.
19627 (verify_edge_count_and_frequency): Accept speculative edges.
19628 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
19629 (verify_cgraph_node): Handle speculation.
19630 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
19631 (cgraph_set_call_stmt): Update prototype.
19632 (cgraph_make_edge_direct): Update prototype.
19633 (cgraph_speculative_call_info): Declare.
19634 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
19635 to change; update call of ipa_find_references.
19636 * ipa-ref.c (ipa_record_reference): Fix return value; clear
19637 lto_stmt_uid and speculative flags.
19638 (ipa_dump_references): Dump speculation.
19639 (ipa_clone_references): Clone speculative flag.
19640 (ipa_clone_referring): Likewise.
19641 (ipa_clone_ref): New function.
19642 (ipa_find_reference): Look into lto_stmt_uids
19643 (ipa_clear_stmts_in_references): Do not clear speculative calls.
19644 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
19645 (ipa_find_reference): Update declaration.
19646 (ipa_clone_ref): Declare.
19647 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
19648 stream speculative flag.
19649 (lto_output_ref): Stream statements uids and speculation.
19650 (input_ref): Likewise.
19651 (input_edge): Stream speuclation.
19652 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
19653 (cgraph_set_call_stmt_including_clones): Handle speculation.
19654 * ipa-inline.c (heap_edge_removal_hook): New function.
19655 (inline_small_functions): Register it.
19656 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
19657 also initialize refs.
19658 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
19659 edge to change.
19660 (try_make_edge_direct_simple_call): Likewise.
19661 (try_make_edge_direct_simple_call): Likewise.
19662 (update_indirect_edges_after_inlining): Likewise.
19663 (remove_described_reference): Look proper lto_stmt_uid.
19664 (propagate_controlled_uses): Likewise.
19665 (propagate_controlled_uses): Liekwise.
19666 * tree-inline.c (copy_bb): Copy speculative edges.
19667 (redirect_all_calls): New function.
19668 (copy_cfg_body): Do redirection after loop info is updated.
19669 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
19670
19671 2013-08-09 Jan Hubicka <jh@suse.cz>
19672
19673 * lto-streamer-out.c (output_function): Renumber PHIs.
19674 * lto-streamer-in.c (input_function): Likewise.
19675
19676 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
19677
19678 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
19679 (get_lane_unsigned): Likewise.
19680 (dup_lane_scalar): Likewise.
19681 (get_lane): enable for VALL.
19682 * config/aarch64/aarch64-simd.md
19683 (aarch64_dup_lane_scalar<mode>): Remove.
19684 (aarch64_get_lane_signed<mode>): Likewise.
19685 (aarch64_get_lane_unsigned<mode>): Likewise.
19686 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
19687 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
19688 (aarch64_get_lane<mode>): Enable for all vector modes.
19689 (aarch64_get_lanedi): Remove misleading constraints.
19690 * config/aarch64/arm_neon.h
19691 (__aarch64_vget_lane_any): Define.
19692 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
19693 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
19694 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
19695 * config/aarch64/iterators.md (VDQQH): New.
19696 (VDQQHS): Likewise.
19697 (vwcore): Likewise.
19698
19699 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
19700
19701 * configure.ac: Add GAS check for LEON instructions on SPARC.
19702 * configure: Regenerate.
19703 * config.in: Likewise.
19704 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
19705 sparc*-*-* block.
19706 * config/sparc/sparc.opt (LEON, LEON3): New masks.
19707 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
19708 for LEON or LEON3.
19709 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
19710 (AS_LEON_FLAG): New macro.
19711 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
19712 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
19713 Deal with LEON and LEON3 for the memory model.
19714 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
19715 (atomic_compare_and_swap<mode>_1): Likewise.
19716 (*atomic_compare_and_swap<mode>_1): Likewise.
19717
19718 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19719
19720 * config/arm/neon.md (vcond): Fix floating-point vector
19721 comparisons against 0.
19722
19723 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
19724
19725 * lra-constraints.c (emit_spill_move): Remove assert.
19726 (process_alt_operands): Add more debugging
19727 output. Increase reject for spilling into memory. Decrease
19728 reject for reloading scratch.
19729 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
19730
19731 2013-08-08 Steve Ellcey <sellcey@mips.com>
19732
19733 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
19734 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
19735 micromips incompatible. Add nan2008.
19736 (MULTILIB_DIRNAMES): Add nan2008.
19737 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19738 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
19739 and micromips incompatible. Add nan2008.
19740 (MULTILIB_DIRNAMES): Add nan2008.
19741 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19742
19743 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
19744
19745 PR rtl-optimization/58079
19746 * combine.c (combine_simplify_rtx): Avoid using SUBST if
19747 simplify_comparison has widened a comparison with an integer.
19748
19749 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19750
19751 * config/arm/neon.md (movmisalign<mode>): Disable when we
19752 don't allow unaligned accesses.
19753 (*movmisalign<mode>_neon_store): Likewise.
19754 (*movmisalign<mode>_neon_load): Likewise.
19755 (*movmisalign<mode>_neon_store): Likewise.
19756 (*movmisalign<mode>_neon_load): Likewise.
19757
19758 2013-08-08 Jan Hubicka <jh@suse.cz>
19759
19760 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
19761 (make_pass_rebuild_cgraph_edges): Also clear references.
19762 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
19763 * ipa-inline-transform.c (inline_transform): Remove all references
19764 after inlining.
19765 * cgraphunit.c (expand_function): Remove all references after
19766 expansion.
19767 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
19768 (ipa_find_reference): Rewrite to iterator.
19769 (remove_stmt_references): Likewise.
19770 (ipa_clear_stmts_in_references): New function.
19771 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
19772 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
19773 clear references.
19774 * ipa-split.c (split_function): Remove references in split function.
19775
19776 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19777
19778 PR target/57431
19779 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
19780 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
19781
19782 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19783
19784 PR target/56979
19785 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
19786 suggested mode for the assignment isn't compatible with the
19787 registers required.
19788
19789 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
19790
19791 PR target/58065
19792 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
19793
19794 2013-08-07 Xinliang David Li <davidxl@google.com>
19795
19796 * config/i386/i386.opt: New option -mtune-ctrl=.
19797 * config/i386/x86-tune.def: New file.
19798 * config/i386/i386.h: include x86-tune.def.
19799 * config/i386/i386.c (ix86_option_override_internal):
19800 Parsing -mtune-ctrl= option and set tune features.
19801
19802 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
19803
19804 PR other/12081
19805 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
19806 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
19807 to gen_2arg_fn_t.
19808
19809 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19810
19811 * rtl.h (update_alignments): Declare.
19812 * final.c (grow_label_align): New function extracted from...
19813 (shorten_branches): ...here. Call it.
19814 (update_alignments): New function.
19815 * reorg.c (sibling_labels): New variable.
19816 (get_label_before): Add SIBLING parameter. If it is non-zero, push
19817 the new label along with it onto the sibling_labels vector.
19818 (fill_simple_delay_slots): Adjust call to get_label_before.
19819 (fill_slots_from_thread): Likewise.
19820 (relax_delay_slots): Likewise.
19821 (make_return_insns): Likewise.
19822 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
19823
19824 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19825
19826 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
19827 document its semantics.
19828 (diagnostic_report_diagnostic): Adjust accordingly.
19829
19830 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19831
19832 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
19833 (sparc_option_override): ...and port to new C++ pass API.
19834 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
19835
19836 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
19837
19838 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
19839
19840 2013-08-06 Caroline Tice <cmtice@google.com>
19841
19842 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
19843 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
19844 * tree-pass.h: Add pass_vtable_verify.
19845 * varasm.c (assemble_variable): Add code to properly set the comdat
19846 section and name for the .vtable_map_vars section.
19847 (assemble_vtyv_preinit_initializer): New function.
19848 (default_sectin_type_flags): Make sure .vtable_map_vars section has
19849 LINK_ONCE flag.
19850 * output.h: Add function decl for assemble_vtv_preinit_initializer.
19851 * vtable-verify.c: New file.
19852 * vtable-verify.h: New file.
19853 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
19854 initialiation levels.
19855 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
19856 * passes.def: Insert pass_vtable_verify.
19857 * aclocal.m4: Reorder includes.
19858 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
19859 -fvtv-counts options.
19860 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
19861 as appropriate, if -fvtable-verify=... is used.
19862 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
19863 -fvtable-verify=... is used.
19864 * Makefile.in (OBJS): Add vtable-verify.o to list.
19865 (vtable-verify.o): Add new build rule.
19866 (GTFILES): Add vtable-verify.c to list.
19867 * common.opt (fvtable-verify=): New flag.
19868 (vtv_priority): Values for fvtable-verify= flag.
19869 (fvtv-counts): New flag.
19870 (fvtv-debug): New flag.
19871 * tree.h (save_vtable_map_decl): New extern function decl.
19872
19873 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19874
19875 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
19876 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
19877 (pass_data_rl78_devirt): ...new pass_data instance and...
19878 (make_pass_rl78_devirt): ...new function.
19879 (rl78_asm_file_start): Port pass registration to new C++ API.
19880
19881 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19882
19883 * coretypes.h (rtl_opt_pass): Add.
19884 (gcc::context): Add.
19885 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
19886 (epiphany_init): Port to new C++ pass API.
19887 (epiphany_optimize_mode_switching): Likewise.
19888 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
19889 (pass_manager::get_pass_mode_switching): New.
19890 (pass_manager::get_pass_peephole2): New.
19891 * mode-switching.c (pass_mode_switching): Add clone method.
19892 * recog.c (pass_peephole2): Add clone method.
19893 (pass_split_all_insns): Add clone method.
19894
19895 2013-08-06 David Malcolm <dmalcolm@redhat.com>
19896
19897 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
19898 (mips_option_override): ...here, porting to new C++ API for passes.
19899
19900 2013-08-06 Jan Hubicka <jh@suse.cz>
19901
19902 * cgraph.c (cgraph_get_body): New function based on lto.c
19903 implementation.
19904 * cgraph.h (cgraph_get_body): Declare.
19905 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
19906 LTO paths.
19907 * cgraphunit.c (expand_function): Get body prior expanding.
19908 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
19909 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
19910 really need.
19911 * passes.c (do_per_function_toporder): Get body.
19912 * tree-inline.c (expand_call_inline): Get body prior inlining it.
19913 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19914
19915 2013-08-06 Martin Jambor <mjambor@suse.cz>
19916
19917 PR fortran/57987
19918 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19919 is not re-finalized. Rename second parameter to no_collect.
19920
19921 2013-08-06 Martin Jambor <mjambor@suse.cz>
19922
19923 PR middle-end/58041
19924 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19925 MEM_REF has proper alignment information.
19926
19927 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
19928
19929 PR other/12081
19930 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19931 class insn_gen_fn.
19932 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19933 rtx (*) (rtx, ...) with insn_gen_fn.
19934 * genoutput.c (output_insn_data): Cast gen_? function pointers to
19935 insn_gen_fn::stored_funcptr. Add initializer braces.
19936
19937 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19938
19939 Rewrite how instances of passes are cloned to remove assumptions
19940 about their sizes (thus allowing pass subclasses to have
19941 additional data fields, albeit non-GC-managed ones at this point).
19942
19943 * passes.c (make_pass_instance): Now that passes have clone
19944 methods, rewrite this function to eliminate XNEW and memcpy
19945 calls that used hardcoded sizes. Since this function no longer
19946 creates pass instances, rename it to...
19947 (add_pass_instance): ...this. Document the old way that passes were
19948 numbered and flagged, and rework this function to continue using it.
19949 (next_pass_1): Add an initial_pass argument for use by
19950 add_pass_instance.
19951 (position_pass): When adding multiple instances of a pass, use
19952 the pass's clone method, rather than relying on the XNEW/memcpy
19953 within the former make_pass_instance (now add_pass_instance).
19954 (pass_manager::pass_manager): When invoking next_pass_1, also supply
19955 the initial instance of the current pass within the pass manager.
19956
19957 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19958
19959 This is the automated part of the conversion of passes from C
19960 structs to C++ classes.
19961
19962 Patch autogenerated by refactor_passes.py from
19963 https://github.com/davidmalcolm/gcc-refactoring-scripts
19964 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19965
19966 * asan.c (pass_asan): Convert from a global struct to a subclass of
19967 gimple_opt_pass along with...
19968 (pass_data_asan): ...new pass_data instance and...
19969 (make_pass_asan): ...new function.
19970 (pass_asan_O0): Convert from a global struct to a subclass of
19971 gimple_opt_pass along with...
19972 (pass_data_asan_O0): ...new pass_data instance and...
19973 (make_pass_asan_O0): ...new function.
19974 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19975 subclass of rtl_opt_pass along with...
19976 (pass_data_inc_dec): ...new pass_data instance and...
19977 (make_pass_inc_dec): ...new function.
19978 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19979 a subclass of rtl_opt_pass along with...
19980 (pass_data_reorder_blocks): ...new pass_data instance and...
19981 (make_pass_reorder_blocks): ...new function.
19982 (pass_duplicate_computed_gotos): Convert from a global struct to a
19983 subclass of rtl_opt_pass along with...
19984 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19985 (make_pass_duplicate_computed_gotos): ...new function.
19986 (pass_partition_blocks): Convert from a global struct to a subclass of
19987 rtl_opt_pass along with...
19988 (pass_data_partition_blocks): ...new pass_data instance and...
19989 (make_pass_partition_blocks): ...new function.
19990 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19991 struct to a subclass of rtl_opt_pass along with...
19992 (pass_data_branch_target_load_optimize1): ...new pass_data instance
19993 and...
19994 (make_pass_branch_target_load_optimize1): ...new function.
19995 (pass_branch_target_load_optimize2): Convert from a global struct to a
19996 subclass of rtl_opt_pass along with...
19997 (pass_data_branch_target_load_optimize2): ...new pass_data instance
19998 and...
19999 (make_pass_branch_target_load_optimize2): ...new function.
20000 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
20001 of rtl_opt_pass along with...
20002 (pass_data_jump): ...new pass_data instance and...
20003 (make_pass_jump): ...new function.
20004 (pass_jump2): Convert from a global struct to a subclass of
20005 rtl_opt_pass along with...
20006 (pass_data_jump2): ...new pass_data instance and...
20007 (make_pass_jump2): ...new function.
20008 * cfgexpand.c (pass_expand): Convert from a global struct to a
20009 subclass of rtl_opt_pass along with...
20010 (pass_data_expand): ...new pass_data instance and...
20011 (make_pass_expand): ...new function.
20012 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
20013 of rtl_opt_pass along with...
20014 (pass_data_free_cfg): ...new pass_data instance and...
20015 (make_pass_free_cfg): ...new function.
20016 (pass_into_cfg_layout_mode): Convert from a global struct to a
20017 subclass of rtl_opt_pass along with...
20018 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
20019 (make_pass_into_cfg_layout_mode): ...new function.
20020 (pass_outof_cfg_layout_mode): Convert from a global struct to a
20021 subclass of rtl_opt_pass along with...
20022 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
20023 (make_pass_outof_cfg_layout_mode): ...new function.
20024 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
20025 struct to a subclass of gimple_opt_pass along with...
20026 (pass_data_build_cgraph_edges): ...new pass_data instance and...
20027 (make_pass_build_cgraph_edges): ...new function.
20028 (pass_rebuild_cgraph_edges): Convert from a global struct to a
20029 subclass of gimple_opt_pass along with...
20030 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
20031 (make_pass_rebuild_cgraph_edges): ...new function.
20032 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
20033 subclass of gimple_opt_pass along with...
20034 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
20035 and...
20036 (make_pass_remove_cgraph_callee_edges): ...new function.
20037 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
20038 struct to a subclass of rtl_opt_pass along with...
20039 (pass_data_stack_adjustments): ...new pass_data instance and...
20040 (make_pass_stack_adjustments): ...new function.
20041 * combine.c (pass_combine): Convert from a global struct to a subclass
20042 of rtl_opt_pass along with...
20043 (pass_data_combine): ...new pass_data instance and...
20044 (make_pass_combine): ...new function.
20045 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
20046 global struct to a subclass of rtl_opt_pass along with...
20047 (pass_data_compare_elim_after_reload): ...new pass_data instance
20048 and...
20049 (make_pass_compare_elim_after_reload): ...new function.
20050 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
20051 of rtl_opt_pass along with...
20052 (pass_data_rtl_cprop): ...new pass_data instance and...
20053 (make_pass_rtl_cprop): ...new function.
20054 * cse.c (pass_cse): Convert from a global struct to a subclass of
20055 rtl_opt_pass along with...
20056 (pass_data_cse): ...new pass_data instance and...
20057 (make_pass_cse): ...new function.
20058 (pass_cse2): Convert from a global struct to a subclass of
20059 rtl_opt_pass along with...
20060 (pass_data_cse2): ...new pass_data instance and...
20061 (make_pass_cse2): ...new function.
20062 (pass_cse_after_global_opts): Convert from a global struct to a
20063 subclass of rtl_opt_pass along with...
20064 (pass_data_cse_after_global_opts): ...new pass_data instance and...
20065 (make_pass_cse_after_global_opts): ...new function.
20066 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
20067 of rtl_opt_pass along with...
20068 (pass_data_ud_rtl_dce): ...new pass_data instance and...
20069 (make_pass_ud_rtl_dce): ...new function.
20070 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
20071 rtl_opt_pass along with...
20072 (pass_data_fast_rtl_dce): ...new pass_data instance and...
20073 (make_pass_fast_rtl_dce): ...new function.
20074 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
20075 a subclass of rtl_opt_pass along with...
20076 (pass_data_df_initialize_opt): ...new pass_data instance and...
20077 (make_pass_df_initialize_opt): ...new function.
20078 (pass_df_initialize_no_opt): Convert from a global struct to a
20079 subclass of rtl_opt_pass along with...
20080 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
20081 (make_pass_df_initialize_no_opt): ...new function.
20082 (pass_df_finish): Convert from a global struct to a subclass of
20083 rtl_opt_pass along with...
20084 (pass_data_df_finish): ...new pass_data instance and...
20085 (make_pass_df_finish): ...new function.
20086 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
20087 rtl_opt_pass along with...
20088 (pass_data_rtl_dse1): ...new pass_data instance and...
20089 (make_pass_rtl_dse1): ...new function.
20090 (pass_rtl_dse2): Convert from a global struct to a subclass of
20091 rtl_opt_pass along with...
20092 (pass_data_rtl_dse2): ...new pass_data instance and...
20093 (make_pass_rtl_dse2): ...new function.
20094 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
20095 subclass of rtl_opt_pass along with...
20096 (pass_data_dwarf2_frame): ...new pass_data instance and...
20097 (make_pass_dwarf2_frame): ...new function.
20098 * except.c (pass_set_nothrow_function_flags): Convert from a global
20099 struct to a subclass of rtl_opt_pass along with...
20100 (pass_data_set_nothrow_function_flags): ...new pass_data instance
20101 and...
20102 (make_pass_set_nothrow_function_flags): ...new function.
20103 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
20104 subclass of rtl_opt_pass along with...
20105 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
20106 and...
20107 (make_pass_convert_to_eh_region_ranges): ...new function.
20108 * final.c (pass_compute_alignments): Convert from a global struct to a
20109 subclass of rtl_opt_pass along with...
20110 (pass_data_compute_alignments): ...new pass_data instance and...
20111 (make_pass_compute_alignments): ...new function.
20112 (pass_final): Convert from a global struct to a subclass of
20113 rtl_opt_pass along with...
20114 (pass_data_final): ...new pass_data instance and...
20115 (make_pass_final): ...new function.
20116 (pass_shorten_branches): Convert from a global struct to a subclass of
20117 rtl_opt_pass along with...
20118 (pass_data_shorten_branches): ...new pass_data instance and...
20119 (make_pass_shorten_branches): ...new function.
20120 (pass_clean_state): Convert from a global struct to a subclass of
20121 rtl_opt_pass along with...
20122 (pass_data_clean_state): ...new pass_data instance and...
20123 (make_pass_clean_state): ...new function.
20124 * function.c (pass_instantiate_virtual_regs): Convert from a global
20125 struct to a subclass of rtl_opt_pass along with...
20126 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
20127 (make_pass_instantiate_virtual_regs): ...new function.
20128 (pass_leaf_regs): Convert from a global struct to a subclass of
20129 rtl_opt_pass along with...
20130 (pass_data_leaf_regs): ...new pass_data instance and...
20131 (make_pass_leaf_regs): ...new function.
20132 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
20133 subclass of rtl_opt_pass along with...
20134 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
20135 and...
20136 (make_pass_thread_prologue_and_epilogue): ...new function.
20137 (pass_match_asm_constraints): Convert from a global struct to a
20138 subclass of rtl_opt_pass along with...
20139 (pass_data_match_asm_constraints): ...new pass_data instance and...
20140 (make_pass_match_asm_constraints): ...new function.
20141 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
20142 subclass of rtl_opt_pass along with...
20143 (pass_data_rtl_fwprop): ...new pass_data instance and...
20144 (make_pass_rtl_fwprop): ...new function.
20145 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
20146 rtl_opt_pass along with...
20147 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
20148 (make_pass_rtl_fwprop_addr): ...new function.
20149 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
20150 rtl_opt_pass along with...
20151 (pass_data_rtl_pre): ...new pass_data instance and...
20152 (make_pass_rtl_pre): ...new function.
20153 (pass_rtl_hoist): Convert from a global struct to a subclass of
20154 rtl_opt_pass along with...
20155 (pass_data_rtl_hoist): ...new pass_data instance and...
20156 (make_pass_rtl_hoist): ...new function.
20157 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
20158 subclass of gimple_opt_pass along with...
20159 (pass_data_lower_cf): ...new pass_data instance and...
20160 (make_pass_lower_cf): ...new function.
20161 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
20162 from a global struct to a subclass of gimple_opt_pass along with...
20163 (pass_data_strength_reduction): ...new pass_data instance and...
20164 (make_pass_strength_reduction): ...new function.
20165 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
20166 of rtl_opt_pass along with...
20167 (pass_data_rtl_ifcvt): ...new pass_data instance and...
20168 (make_pass_rtl_ifcvt): ...new function.
20169 (pass_if_after_combine): Convert from a global struct to a subclass of
20170 rtl_opt_pass along with...
20171 (pass_data_if_after_combine): ...new pass_data instance and...
20172 (make_pass_if_after_combine): ...new function.
20173 (pass_if_after_reload): Convert from a global struct to a subclass of
20174 rtl_opt_pass along with...
20175 (pass_data_if_after_reload): ...new pass_data instance and...
20176 (make_pass_if_after_reload): ...new function.
20177 * init-regs.c (pass_initialize_regs): Convert from a global struct to
20178 a subclass of rtl_opt_pass along with...
20179 (pass_data_initialize_regs): ...new pass_data instance and...
20180 (make_pass_initialize_regs): ...new function.
20181 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
20182 of ipa_opt_pass_d along with...
20183 (pass_data_ipa_cp): ...new pass_data instance and...
20184 (make_pass_ipa_cp): ...new function.
20185 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
20186 global struct to a subclass of gimple_opt_pass along with...
20187 (pass_data_inline_parameters): ...new pass_data instance and...
20188 (make_pass_inline_parameters): ...new function.
20189 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
20190 subclass of gimple_opt_pass along with...
20191 (pass_data_early_inline): ...new pass_data instance and...
20192 (make_pass_early_inline): ...new function.
20193 (pass_ipa_inline): Convert from a global struct to a subclass of
20194 ipa_opt_pass_d along with...
20195 (pass_data_ipa_inline): ...new pass_data instance and...
20196 (make_pass_ipa_inline): ...new function.
20197 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
20198 struct to a subclass of gimple_opt_pass along with...
20199 (pass_data_local_pure_const): ...new pass_data instance and...
20200 (make_pass_local_pure_const): ...new function.
20201 (pass_ipa_pure_const): Convert from a global struct to a subclass of
20202 ipa_opt_pass_d along with...
20203 (pass_data_ipa_pure_const): ...new pass_data instance and...
20204 (make_pass_ipa_pure_const): ...new function.
20205 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
20206 to a subclass of ipa_opt_pass_d along with...
20207 (pass_data_ipa_reference): ...new pass_data instance and...
20208 (make_pass_ipa_reference): ...new function.
20209 * ipa-split.c (pass_split_functions): Convert from a global struct to
20210 a subclass of gimple_opt_pass along with...
20211 (pass_data_split_functions): ...new pass_data instance and...
20212 (make_pass_split_functions): ...new function.
20213 (pass_feedback_split_functions): Convert from a global struct to a
20214 subclass of gimple_opt_pass along with...
20215 (pass_data_feedback_split_functions): ...new pass_data instance and...
20216 (make_pass_feedback_split_functions): ...new function.
20217 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
20218 global struct to a subclass of simple_ipa_opt_pass along with...
20219 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
20220 instance and...
20221 (make_pass_ipa_function_and_variable_visibility): ...new function.
20222 (pass_ipa_free_inline_summary): Convert from a global struct to a
20223 subclass of simple_ipa_opt_pass along with...
20224 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
20225 (make_pass_ipa_free_inline_summary): ...new function.
20226 (pass_ipa_whole_program_visibility): Convert from a global struct to a
20227 subclass of ipa_opt_pass_d along with...
20228 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
20229 and...
20230 (make_pass_ipa_whole_program_visibility): ...new function.
20231 (pass_ipa_profile): Convert from a global struct to a subclass of
20232 ipa_opt_pass_d along with...
20233 (pass_data_ipa_profile): ...new pass_data instance and...
20234 (make_pass_ipa_profile): ...new function.
20235 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
20236 ipa_opt_pass_d along with...
20237 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
20238 (make_pass_ipa_cdtor_merge): ...new function.
20239 * ira.c (pass_ira): Convert from a global struct to a subclass of
20240 rtl_opt_pass along with...
20241 (pass_data_ira): ...new pass_data instance and...
20242 (make_pass_ira): ...new function.
20243 (pass_reload): Convert from a global struct to a subclass of
20244 rtl_opt_pass along with...
20245 (pass_data_reload): ...new pass_data instance and...
20246 (make_pass_reload): ...new function.
20247 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
20248 subclass of rtl_opt_pass along with...
20249 (pass_data_cleanup_barriers): ...new pass_data instance and...
20250 (make_pass_cleanup_barriers): ...new function.
20251 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
20252 of rtl_opt_pass along with...
20253 (pass_data_loop2): ...new pass_data instance and...
20254 (make_pass_loop2): ...new function.
20255 (pass_rtl_loop_init): Convert from a global struct to a subclass of
20256 rtl_opt_pass along with...
20257 (pass_data_rtl_loop_init): ...new pass_data instance and...
20258 (make_pass_rtl_loop_init): ...new function.
20259 (pass_rtl_loop_done): Convert from a global struct to a subclass of
20260 rtl_opt_pass along with...
20261 (pass_data_rtl_loop_done): ...new pass_data instance and...
20262 (make_pass_rtl_loop_done): ...new function.
20263 (pass_rtl_move_loop_invariants): Convert from a global struct to a
20264 subclass of rtl_opt_pass along with...
20265 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
20266 (make_pass_rtl_move_loop_invariants): ...new function.
20267 (pass_rtl_unswitch): Convert from a global struct to a subclass of
20268 rtl_opt_pass along with...
20269 (pass_data_rtl_unswitch): ...new pass_data instance and...
20270 (make_pass_rtl_unswitch): ...new function.
20271 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
20272 subclass of rtl_opt_pass along with...
20273 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
20274 and...
20275 (make_pass_rtl_unroll_and_peel_loops): ...new function.
20276 (pass_rtl_doloop): Convert from a global struct to a subclass of
20277 rtl_opt_pass along with...
20278 (pass_data_rtl_doloop): ...new pass_data instance and...
20279 (make_pass_rtl_doloop): ...new function.
20280 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
20281 a subclass of rtl_opt_pass along with...
20282 (pass_data_lower_subreg): ...new pass_data instance and...
20283 (make_pass_lower_subreg): ...new function.
20284 (pass_lower_subreg2): Convert from a global struct to a subclass of
20285 rtl_opt_pass along with...
20286 (pass_data_lower_subreg2): ...new pass_data instance and...
20287 (make_pass_lower_subreg2): ...new function.
20288 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
20289 struct to a subclass of ipa_opt_pass_d along with...
20290 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
20291 (make_pass_ipa_lto_gimple_out): ...new function.
20292 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
20293 of ipa_opt_pass_d along with...
20294 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
20295 (make_pass_ipa_lto_finish_out): ...new function.
20296 * mode-switching.c (pass_mode_switching): Convert from a global struct
20297 to a subclass of rtl_opt_pass along with...
20298 (pass_data_mode_switching): ...new pass_data instance and...
20299 (make_pass_mode_switching): ...new function.
20300 * modulo-sched.c (pass_sms): Convert from a global struct to a
20301 subclass of rtl_opt_pass along with...
20302 (pass_data_sms): ...new pass_data instance and...
20303 (make_pass_sms): ...new function.
20304 * omp-low.c (pass_expand_omp): Convert from a global struct to a
20305 subclass of gimple_opt_pass along with...
20306 (pass_data_expand_omp): ...new pass_data instance and...
20307 (make_pass_expand_omp): ...new function.
20308 (pass_lower_omp): Convert from a global struct to a subclass of
20309 gimple_opt_pass along with...
20310 (pass_data_lower_omp): ...new pass_data instance and...
20311 (make_pass_lower_omp): ...new function.
20312 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
20313 of gimple_opt_pass along with...
20314 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
20315 (make_pass_diagnose_omp_blocks): ...new function.
20316 * passes.c (pass_early_local_passes): Convert from a global struct to
20317 a subclass of simple_ipa_opt_pass along with...
20318 (pass_data_early_local_passes): ...new pass_data instance and...
20319 (make_pass_early_local_passes): ...new function.
20320 (pass_all_early_optimizations): Convert from a global struct to a
20321 subclass of gimple_opt_pass along with...
20322 (pass_data_all_early_optimizations): ...new pass_data instance and...
20323 (make_pass_all_early_optimizations): ...new function.
20324 (pass_all_optimizations): Convert from a global struct to a subclass
20325 of gimple_opt_pass along with...
20326 (pass_data_all_optimizations): ...new pass_data instance and...
20327 (make_pass_all_optimizations): ...new function.
20328 (pass_all_optimizations_g): Convert from a global struct to a subclass
20329 of gimple_opt_pass along with...
20330 (pass_data_all_optimizations_g): ...new pass_data instance and...
20331 (make_pass_all_optimizations_g): ...new function.
20332 (pass_rest_of_compilation): Convert from a global struct to a subclass
20333 of rtl_opt_pass along with...
20334 (pass_data_rest_of_compilation): ...new pass_data instance and...
20335 (make_pass_rest_of_compilation): ...new function.
20336 (pass_postreload): Convert from a global struct to a subclass of
20337 rtl_opt_pass along with...
20338 (pass_data_postreload): ...new pass_data instance and...
20339 (make_pass_postreload): ...new function.
20340 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
20341 subclass of rtl_opt_pass along with...
20342 (pass_data_gcse2): ...new pass_data instance and...
20343 (make_pass_gcse2): ...new function.
20344 * postreload.c (pass_postreload_cse): Convert from a global struct to
20345 a subclass of rtl_opt_pass along with...
20346 (pass_data_postreload_cse): ...new pass_data instance and...
20347 (make_pass_postreload_cse): ...new function.
20348 * predict.c (pass_profile): Convert from a global struct to a subclass
20349 of gimple_opt_pass along with...
20350 (pass_data_profile): ...new pass_data instance and...
20351 (make_pass_profile): ...new function.
20352 (pass_strip_predict_hints): Convert from a global struct to a subclass
20353 of gimple_opt_pass along with...
20354 (pass_data_strip_predict_hints): ...new pass_data instance and...
20355 (make_pass_strip_predict_hints): ...new function.
20356 * recog.c (pass_peephole2): Convert from a global struct to a subclass
20357 of rtl_opt_pass along with...
20358 (pass_data_peephole2): ...new pass_data instance and...
20359 (make_pass_peephole2): ...new function.
20360 (pass_split_all_insns): Convert from a global struct to a subclass of
20361 rtl_opt_pass along with...
20362 (pass_data_split_all_insns): ...new pass_data instance and...
20363 (make_pass_split_all_insns): ...new function.
20364 (pass_split_after_reload): Convert from a global struct to a subclass
20365 of rtl_opt_pass along with...
20366 (pass_data_split_after_reload): ...new pass_data instance and...
20367 (make_pass_split_after_reload): ...new function.
20368 (pass_split_before_regstack): Convert from a global struct to a
20369 subclass of rtl_opt_pass along with...
20370 (pass_data_split_before_regstack): ...new pass_data instance and...
20371 (make_pass_split_before_regstack): ...new function.
20372 (pass_split_before_sched2): Convert from a global struct to a subclass
20373 of rtl_opt_pass along with...
20374 (pass_data_split_before_sched2): ...new pass_data instance and...
20375 (make_pass_split_before_sched2): ...new function.
20376 (pass_split_for_shorten_branches): Convert from a global struct to a
20377 subclass of rtl_opt_pass along with...
20378 (pass_data_split_for_shorten_branches): ...new pass_data instance
20379 and...
20380 (make_pass_split_for_shorten_branches): ...new function.
20381 * ree.c (pass_ree): Convert from a global struct to a subclass of
20382 rtl_opt_pass along with...
20383 (pass_data_ree): ...new pass_data instance and...
20384 (make_pass_ree): ...new function.
20385 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
20386 subclass of rtl_opt_pass along with...
20387 (pass_data_stack_regs): ...new pass_data instance and...
20388 (make_pass_stack_regs): ...new function.
20389 (pass_stack_regs_run): Convert from a global struct to a subclass of
20390 rtl_opt_pass along with...
20391 (pass_data_stack_regs_run): ...new pass_data instance and...
20392 (make_pass_stack_regs_run): ...new function.
20393 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
20394 subclass of rtl_opt_pass along with...
20395 (pass_data_cprop_hardreg): ...new pass_data instance and...
20396 (make_pass_cprop_hardreg): ...new function.
20397 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
20398 subclass of rtl_opt_pass along with...
20399 (pass_data_reginfo_init): ...new pass_data instance and...
20400 (make_pass_reginfo_init): ...new function.
20401 * regmove.c (pass_regmove): Convert from a global struct to a subclass
20402 of rtl_opt_pass along with...
20403 (pass_data_regmove): ...new pass_data instance and...
20404 (make_pass_regmove): ...new function.
20405 * regrename.c (pass_regrename): Convert from a global struct to a
20406 subclass of rtl_opt_pass along with...
20407 (pass_data_regrename): ...new pass_data instance and...
20408 (make_pass_regrename): ...new function.
20409 * reorg.c (pass_delay_slots): Convert from a global struct to a
20410 subclass of rtl_opt_pass along with...
20411 (pass_data_delay_slots): ...new pass_data instance and...
20412 (make_pass_delay_slots): ...new function.
20413 (pass_machine_reorg): Convert from a global struct to a subclass of
20414 rtl_opt_pass along with...
20415 (pass_data_machine_reorg): ...new pass_data instance and...
20416 (make_pass_machine_reorg): ...new function.
20417 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
20418 of rtl_opt_pass along with...
20419 (pass_data_sched): ...new pass_data instance and...
20420 (make_pass_sched): ...new function.
20421 (pass_sched2): Convert from a global struct to a subclass of
20422 rtl_opt_pass along with...
20423 (pass_data_sched2): ...new pass_data instance and...
20424 (make_pass_sched2): ...new function.
20425 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
20426 to a subclass of rtl_opt_pass along with...
20427 (pass_data_stack_ptr_mod): ...new pass_data instance and...
20428 (make_pass_stack_ptr_mod): ...new function.
20429 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
20430 to a subclass of rtl_opt_pass along with...
20431 (pass_data_rtl_store_motion): ...new pass_data instance and...
20432 (make_pass_rtl_store_motion): ...new function.
20433 * tracer.c (pass_tracer): Convert from a global struct to a subclass
20434 of gimple_opt_pass along with...
20435 (pass_data_tracer): ...new pass_data instance and...
20436 (make_pass_tracer): ...new function.
20437 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
20438 to a subclass of gimple_opt_pass along with...
20439 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
20440 (make_pass_diagnose_tm_blocks): ...new function.
20441 (pass_lower_tm): Convert from a global struct to a subclass of
20442 gimple_opt_pass along with...
20443 (pass_data_lower_tm): ...new pass_data instance and...
20444 (make_pass_lower_tm): ...new function.
20445 (pass_tm_init): Convert from a global struct to a subclass of
20446 gimple_opt_pass along with...
20447 (pass_data_tm_init): ...new pass_data instance and...
20448 (make_pass_tm_init): ...new function.
20449 (pass_tm_mark): Convert from a global struct to a subclass of
20450 gimple_opt_pass along with...
20451 (pass_data_tm_mark): ...new pass_data instance and...
20452 (make_pass_tm_mark): ...new function.
20453 (pass_tm_edges): Convert from a global struct to a subclass of
20454 gimple_opt_pass along with...
20455 (pass_data_tm_edges): ...new pass_data instance and...
20456 (make_pass_tm_edges): ...new function.
20457 (pass_tm_memopt): Convert from a global struct to a subclass of
20458 gimple_opt_pass along with...
20459 (pass_data_tm_memopt): ...new pass_data instance and...
20460 (make_pass_tm_memopt): ...new function.
20461 (pass_ipa_tm): Convert from a global struct to a subclass of
20462 simple_ipa_opt_pass along with...
20463 (pass_data_ipa_tm): ...new pass_data instance and...
20464 (make_pass_ipa_tm): ...new function.
20465 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
20466 subclass of gimple_opt_pass along with...
20467 (pass_data_call_cdce): ...new pass_data instance and...
20468 (make_pass_call_cdce): ...new function.
20469 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
20470 subclass of gimple_opt_pass along with...
20471 (pass_data_build_cfg): ...new pass_data instance and...
20472 (make_pass_build_cfg): ...new function.
20473 (pass_split_crit_edges): Convert from a global struct to a subclass of
20474 gimple_opt_pass along with...
20475 (pass_data_split_crit_edges): ...new pass_data instance and...
20476 (make_pass_split_crit_edges): ...new function.
20477 (pass_warn_function_return): Convert from a global struct to a
20478 subclass of gimple_opt_pass along with...
20479 (pass_data_warn_function_return): ...new pass_data instance and...
20480 (make_pass_warn_function_return): ...new function.
20481 (pass_warn_function_noreturn): Convert from a global struct to a
20482 subclass of gimple_opt_pass along with...
20483 (pass_data_warn_function_noreturn): ...new pass_data instance and...
20484 (make_pass_warn_function_noreturn): ...new function.
20485 (pass_warn_unused_result): Convert from a global struct to a subclass
20486 of gimple_opt_pass along with...
20487 (pass_data_warn_unused_result): ...new pass_data instance and...
20488 (make_pass_warn_unused_result): ...new function.
20489 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
20490 a subclass of gimple_opt_pass along with...
20491 (pass_data_merge_phi): ...new pass_data instance and...
20492 (make_pass_merge_phi): ...new function.
20493 * tree-complex.c (pass_lower_complex): Convert from a global struct to
20494 a subclass of gimple_opt_pass along with...
20495 (pass_data_lower_complex): ...new pass_data instance and...
20496 (make_pass_lower_complex): ...new function.
20497 (pass_lower_complex_O0): Convert from a global struct to a subclass of
20498 gimple_opt_pass along with...
20499 (pass_data_lower_complex_O0): ...new pass_data instance and...
20500 (make_pass_lower_complex_O0): ...new function.
20501 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
20502 subclass of gimple_opt_pass along with...
20503 (pass_data_lower_eh): ...new pass_data instance and...
20504 (make_pass_lower_eh): ...new function.
20505 (pass_refactor_eh): Convert from a global struct to a subclass of
20506 gimple_opt_pass along with...
20507 (pass_data_refactor_eh): ...new pass_data instance and...
20508 (make_pass_refactor_eh): ...new function.
20509 (pass_lower_resx): Convert from a global struct to a subclass of
20510 gimple_opt_pass along with...
20511 (pass_data_lower_resx): ...new pass_data instance and...
20512 (make_pass_lower_resx): ...new function.
20513 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
20514 of gimple_opt_pass along with...
20515 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
20516 (make_pass_lower_eh_dispatch): ...new function.
20517 (pass_cleanup_eh): Convert from a global struct to a subclass of
20518 gimple_opt_pass along with...
20519 (pass_data_cleanup_eh): ...new pass_data instance and...
20520 (make_pass_cleanup_eh): ...new function.
20521 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
20522 to a subclass of simple_ipa_opt_pass along with...
20523 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
20524 (make_pass_ipa_lower_emutls): ...new function.
20525 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
20526 a subclass of gimple_opt_pass along with...
20527 (pass_data_if_conversion): ...new pass_data instance and...
20528 (make_pass_if_conversion): ...new function.
20529 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
20530 subclass of gimple_opt_pass along with...
20531 (pass_data_build_ssa): ...new pass_data instance and...
20532 (make_pass_build_ssa): ...new function.
20533 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
20534 global struct to a subclass of gimple_opt_pass along with...
20535 (pass_data_loop_distribution): ...new pass_data instance and...
20536 (make_pass_loop_distribution): ...new function.
20537 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
20538 subclass of gimple_opt_pass along with...
20539 (pass_data_mudflap_1): ...new pass_data instance and...
20540 (make_pass_mudflap_1): ...new function.
20541 (pass_mudflap_2): Convert from a global struct to a subclass of
20542 gimple_opt_pass along with...
20543 (pass_data_mudflap_2): ...new pass_data instance and...
20544 (make_pass_mudflap_2): ...new function.
20545 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
20546 subclass of gimple_opt_pass along with...
20547 (pass_data_mudflap_1): ...new pass_data instance and...
20548 (make_pass_mudflap_1): ...new function.
20549 (pass_mudflap_2): Convert from a global struct to a subclass of
20550 gimple_opt_pass along with...
20551 (pass_data_mudflap_2): ...new pass_data instance and...
20552 (make_pass_mudflap_2): ...new function.
20553 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
20554 gimple_opt_pass along with...
20555 (pass_data_nrv): ...new pass_data instance and...
20556 (make_pass_nrv): ...new function.
20557 (pass_return_slot): Convert from a global struct to a subclass of
20558 gimple_opt_pass along with...
20559 (pass_data_return_slot): ...new pass_data instance and...
20560 (make_pass_return_slot): ...new function.
20561 * tree-object-size.c (pass_object_sizes): Convert from a global struct
20562 to a subclass of gimple_opt_pass along with...
20563 (pass_data_object_sizes): ...new pass_data instance and...
20564 (make_pass_object_sizes): ...new function.
20565 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
20566 global struct to a subclass of gimple_opt_pass along with...
20567 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
20568 and...
20569 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20570 (pass_fixup_cfg): Convert from a global struct to a subclass of
20571 gimple_opt_pass along with...
20572 (pass_data_fixup_cfg): ...new pass_data instance and...
20573 (make_pass_fixup_cfg): ...new function.
20574 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
20575 (make_pass_mudflap_1): ...new function.
20576 (pass_mudflap_2): Replace declaration with that of...
20577 (make_pass_mudflap_2): ...new function.
20578 (pass_asan): Replace declaration with that of...
20579 (make_pass_asan): ...new function.
20580 (pass_asan_O0): Replace declaration with that of...
20581 (make_pass_asan_O0): ...new function.
20582 (pass_tsan): Replace declaration with that of...
20583 (make_pass_tsan): ...new function.
20584 (pass_tsan_O0): Replace declaration with that of...
20585 (make_pass_tsan_O0): ...new function.
20586 (pass_lower_cf): Replace declaration with that of...
20587 (make_pass_lower_cf): ...new function.
20588 (pass_refactor_eh): Replace declaration with that of...
20589 (make_pass_refactor_eh): ...new function.
20590 (pass_lower_eh): Replace declaration with that of...
20591 (make_pass_lower_eh): ...new function.
20592 (pass_lower_eh_dispatch): Replace declaration with that of...
20593 (make_pass_lower_eh_dispatch): ...new function.
20594 (pass_lower_resx): Replace declaration with that of...
20595 (make_pass_lower_resx): ...new function.
20596 (pass_build_cfg): Replace declaration with that of...
20597 (make_pass_build_cfg): ...new function.
20598 (pass_early_tree_profile): Replace declaration with that of...
20599 (make_pass_early_tree_profile): ...new function.
20600 (pass_cleanup_eh): Replace declaration with that of...
20601 (make_pass_cleanup_eh): ...new function.
20602 (pass_sra): Replace declaration with that of...
20603 (make_pass_sra): ...new function.
20604 (pass_sra_early): Replace declaration with that of...
20605 (make_pass_sra_early): ...new function.
20606 (pass_early_ipa_sra): Replace declaration with that of...
20607 (make_pass_early_ipa_sra): ...new function.
20608 (pass_tail_recursion): Replace declaration with that of...
20609 (make_pass_tail_recursion): ...new function.
20610 (pass_tail_calls): Replace declaration with that of...
20611 (make_pass_tail_calls): ...new function.
20612 (pass_tree_loop): Replace declaration with that of...
20613 (make_pass_tree_loop): ...new function.
20614 (pass_tree_loop_init): Replace declaration with that of...
20615 (make_pass_tree_loop_init): ...new function.
20616 (pass_lim): Replace declaration with that of...
20617 (make_pass_lim): ...new function.
20618 (pass_tree_unswitch): Replace declaration with that of...
20619 (make_pass_tree_unswitch): ...new function.
20620 (pass_predcom): Replace declaration with that of...
20621 (make_pass_predcom): ...new function.
20622 (pass_iv_canon): Replace declaration with that of...
20623 (make_pass_iv_canon): ...new function.
20624 (pass_scev_cprop): Replace declaration with that of...
20625 (make_pass_scev_cprop): ...new function.
20626 (pass_empty_loop): Replace declaration with that of...
20627 (make_pass_empty_loop): ...new function.
20628 (pass_record_bounds): Replace declaration with that of...
20629 (make_pass_record_bounds): ...new function.
20630 (pass_graphite): Replace declaration with that of...
20631 (make_pass_graphite): ...new function.
20632 (pass_graphite_transforms): Replace declaration with that of...
20633 (make_pass_graphite_transforms): ...new function.
20634 (pass_if_conversion): Replace declaration with that of...
20635 (make_pass_if_conversion): ...new function.
20636 (pass_loop_distribution): Replace declaration with that of...
20637 (make_pass_loop_distribution): ...new function.
20638 (pass_vectorize): Replace declaration with that of...
20639 (make_pass_vectorize): ...new function.
20640 (pass_slp_vectorize): Replace declaration with that of...
20641 (make_pass_slp_vectorize): ...new function.
20642 (pass_complete_unroll): Replace declaration with that of...
20643 (make_pass_complete_unroll): ...new function.
20644 (pass_complete_unrolli): Replace declaration with that of...
20645 (make_pass_complete_unrolli): ...new function.
20646 (pass_parallelize_loops): Replace declaration with that of...
20647 (make_pass_parallelize_loops): ...new function.
20648 (pass_loop_prefetch): Replace declaration with that of...
20649 (make_pass_loop_prefetch): ...new function.
20650 (pass_iv_optimize): Replace declaration with that of...
20651 (make_pass_iv_optimize): ...new function.
20652 (pass_tree_loop_done): Replace declaration with that of...
20653 (make_pass_tree_loop_done): ...new function.
20654 (pass_ch): Replace declaration with that of...
20655 (make_pass_ch): ...new function.
20656 (pass_ccp): Replace declaration with that of...
20657 (make_pass_ccp): ...new function.
20658 (pass_phi_only_cprop): Replace declaration with that of...
20659 (make_pass_phi_only_cprop): ...new function.
20660 (pass_build_ssa): Replace declaration with that of...
20661 (make_pass_build_ssa): ...new function.
20662 (pass_build_alias): Replace declaration with that of...
20663 (make_pass_build_alias): ...new function.
20664 (pass_build_ealias): Replace declaration with that of...
20665 (make_pass_build_ealias): ...new function.
20666 (pass_dominator): Replace declaration with that of...
20667 (make_pass_dominator): ...new function.
20668 (pass_dce): Replace declaration with that of...
20669 (make_pass_dce): ...new function.
20670 (pass_dce_loop): Replace declaration with that of...
20671 (make_pass_dce_loop): ...new function.
20672 (pass_cd_dce): Replace declaration with that of...
20673 (make_pass_cd_dce): ...new function.
20674 (pass_call_cdce): Replace declaration with that of...
20675 (make_pass_call_cdce): ...new function.
20676 (pass_merge_phi): Replace declaration with that of...
20677 (make_pass_merge_phi): ...new function.
20678 (pass_split_crit_edges): Replace declaration with that of...
20679 (make_pass_split_crit_edges): ...new function.
20680 (pass_pre): Replace declaration with that of...
20681 (make_pass_pre): ...new function.
20682 (pass_profile): Replace declaration with that of...
20683 (make_pass_profile): ...new function.
20684 (pass_strip_predict_hints): Replace declaration with that of...
20685 (make_pass_strip_predict_hints): ...new function.
20686 (pass_lower_complex_O0): Replace declaration with that of...
20687 (make_pass_lower_complex_O0): ...new function.
20688 (pass_lower_complex): Replace declaration with that of...
20689 (make_pass_lower_complex): ...new function.
20690 (pass_lower_vector): Replace declaration with that of...
20691 (make_pass_lower_vector): ...new function.
20692 (pass_lower_vector_ssa): Replace declaration with that of...
20693 (make_pass_lower_vector_ssa): ...new function.
20694 (pass_lower_omp): Replace declaration with that of...
20695 (make_pass_lower_omp): ...new function.
20696 (pass_diagnose_omp_blocks): Replace declaration with that of...
20697 (make_pass_diagnose_omp_blocks): ...new function.
20698 (pass_expand_omp): Replace declaration with that of...
20699 (make_pass_expand_omp): ...new function.
20700 (pass_expand_omp_ssa): Replace declaration with that of...
20701 (make_pass_expand_omp_ssa): ...new function.
20702 (pass_object_sizes): Replace declaration with that of...
20703 (make_pass_object_sizes): ...new function.
20704 (pass_strlen): Replace declaration with that of...
20705 (make_pass_strlen): ...new function.
20706 (pass_fold_builtins): Replace declaration with that of...
20707 (make_pass_fold_builtins): ...new function.
20708 (pass_stdarg): Replace declaration with that of...
20709 (make_pass_stdarg): ...new function.
20710 (pass_early_warn_uninitialized): Replace declaration with that of...
20711 (make_pass_early_warn_uninitialized): ...new function.
20712 (pass_late_warn_uninitialized): Replace declaration with that of...
20713 (make_pass_late_warn_uninitialized): ...new function.
20714 (pass_cse_reciprocals): Replace declaration with that of...
20715 (make_pass_cse_reciprocals): ...new function.
20716 (pass_cse_sincos): Replace declaration with that of...
20717 (make_pass_cse_sincos): ...new function.
20718 (pass_optimize_bswap): Replace declaration with that of...
20719 (make_pass_optimize_bswap): ...new function.
20720 (pass_optimize_widening_mul): Replace declaration with that of...
20721 (make_pass_optimize_widening_mul): ...new function.
20722 (pass_warn_function_return): Replace declaration with that of...
20723 (make_pass_warn_function_return): ...new function.
20724 (pass_warn_function_noreturn): Replace declaration with that of...
20725 (make_pass_warn_function_noreturn): ...new function.
20726 (pass_cselim): Replace declaration with that of...
20727 (make_pass_cselim): ...new function.
20728 (pass_phiopt): Replace declaration with that of...
20729 (make_pass_phiopt): ...new function.
20730 (pass_forwprop): Replace declaration with that of...
20731 (make_pass_forwprop): ...new function.
20732 (pass_phiprop): Replace declaration with that of...
20733 (make_pass_phiprop): ...new function.
20734 (pass_tree_ifcombine): Replace declaration with that of...
20735 (make_pass_tree_ifcombine): ...new function.
20736 (pass_dse): Replace declaration with that of...
20737 (make_pass_dse): ...new function.
20738 (pass_nrv): Replace declaration with that of...
20739 (make_pass_nrv): ...new function.
20740 (pass_rename_ssa_copies): Replace declaration with that of...
20741 (make_pass_rename_ssa_copies): ...new function.
20742 (pass_sink_code): Replace declaration with that of...
20743 (make_pass_sink_code): ...new function.
20744 (pass_fre): Replace declaration with that of...
20745 (make_pass_fre): ...new function.
20746 (pass_check_data_deps): Replace declaration with that of...
20747 (make_pass_check_data_deps): ...new function.
20748 (pass_copy_prop): Replace declaration with that of...
20749 (make_pass_copy_prop): ...new function.
20750 (pass_vrp): Replace declaration with that of...
20751 (make_pass_vrp): ...new function.
20752 (pass_uncprop): Replace declaration with that of...
20753 (make_pass_uncprop): ...new function.
20754 (pass_return_slot): Replace declaration with that of...
20755 (make_pass_return_slot): ...new function.
20756 (pass_reassoc): Replace declaration with that of...
20757 (make_pass_reassoc): ...new function.
20758 (pass_rebuild_cgraph_edges): Replace declaration with that of...
20759 (make_pass_rebuild_cgraph_edges): ...new function.
20760 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
20761 (make_pass_remove_cgraph_callee_edges): ...new function.
20762 (pass_build_cgraph_edges): Replace declaration with that of...
20763 (make_pass_build_cgraph_edges): ...new function.
20764 (pass_local_pure_const): Replace declaration with that of...
20765 (make_pass_local_pure_const): ...new function.
20766 (pass_tracer): Replace declaration with that of...
20767 (make_pass_tracer): ...new function.
20768 (pass_warn_unused_result): Replace declaration with that of...
20769 (make_pass_warn_unused_result): ...new function.
20770 (pass_diagnose_tm_blocks): Replace declaration with that of...
20771 (make_pass_diagnose_tm_blocks): ...new function.
20772 (pass_lower_tm): Replace declaration with that of...
20773 (make_pass_lower_tm): ...new function.
20774 (pass_tm_init): Replace declaration with that of...
20775 (make_pass_tm_init): ...new function.
20776 (pass_tm_mark): Replace declaration with that of...
20777 (make_pass_tm_mark): ...new function.
20778 (pass_tm_memopt): Replace declaration with that of...
20779 (make_pass_tm_memopt): ...new function.
20780 (pass_tm_edges): Replace declaration with that of...
20781 (make_pass_tm_edges): ...new function.
20782 (pass_split_functions): Replace declaration with that of...
20783 (make_pass_split_functions): ...new function.
20784 (pass_feedback_split_functions): Replace declaration with that of...
20785 (make_pass_feedback_split_functions): ...new function.
20786 (pass_strength_reduction): Replace declaration with that of...
20787 (make_pass_strength_reduction): ...new function.
20788 (pass_ipa_lower_emutls): Replace declaration with that of...
20789 (make_pass_ipa_lower_emutls): ...new function.
20790 (pass_ipa_function_and_variable_visibility): Replace declaration with
20791 that of...
20792 (make_pass_ipa_function_and_variable_visibility): ...new function.
20793 (pass_ipa_tree_profile): Replace declaration with that of...
20794 (make_pass_ipa_tree_profile): ...new function.
20795 (pass_early_local_passes): Replace declaration with that of...
20796 (make_pass_early_local_passes): ...new function.
20797 (pass_ipa_whole_program_visibility): Replace declaration with that
20798 of...
20799 (make_pass_ipa_whole_program_visibility): ...new function.
20800 (pass_ipa_lto_gimple_out): Replace declaration with that of...
20801 (make_pass_ipa_lto_gimple_out): ...new function.
20802 (pass_ipa_increase_alignment): Replace declaration with that of...
20803 (make_pass_ipa_increase_alignment): ...new function.
20804 (pass_ipa_inline): Replace declaration with that of...
20805 (make_pass_ipa_inline): ...new function.
20806 (pass_ipa_free_lang_data): Replace declaration with that of...
20807 (make_pass_ipa_free_lang_data): ...new function.
20808 (pass_ipa_free_inline_summary): Replace declaration with that of...
20809 (make_pass_ipa_free_inline_summary): ...new function.
20810 (pass_ipa_cp): Replace declaration with that of...
20811 (make_pass_ipa_cp): ...new function.
20812 (pass_ipa_reference): Replace declaration with that of...
20813 (make_pass_ipa_reference): ...new function.
20814 (pass_ipa_pure_const): Replace declaration with that of...
20815 (make_pass_ipa_pure_const): ...new function.
20816 (pass_ipa_pta): Replace declaration with that of...
20817 (make_pass_ipa_pta): ...new function.
20818 (pass_ipa_lto_finish_out): Replace declaration with that of...
20819 (make_pass_ipa_lto_finish_out): ...new function.
20820 (pass_ipa_tm): Replace declaration with that of...
20821 (make_pass_ipa_tm): ...new function.
20822 (pass_ipa_profile): Replace declaration with that of...
20823 (make_pass_ipa_profile): ...new function.
20824 (pass_ipa_cdtor_merge): Replace declaration with that of...
20825 (make_pass_ipa_cdtor_merge): ...new function.
20826 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
20827 of...
20828 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20829 (pass_init_datastructures): Replace declaration with that of...
20830 (make_pass_init_datastructures): ...new function.
20831 (pass_fixup_cfg): Replace declaration with that of...
20832 (make_pass_fixup_cfg): ...new function.
20833 (pass_expand): Replace declaration with that of...
20834 (make_pass_expand): ...new function.
20835 (pass_instantiate_virtual_regs): Replace declaration with that of...
20836 (make_pass_instantiate_virtual_regs): ...new function.
20837 (pass_rtl_fwprop): Replace declaration with that of...
20838 (make_pass_rtl_fwprop): ...new function.
20839 (pass_rtl_fwprop_addr): Replace declaration with that of...
20840 (make_pass_rtl_fwprop_addr): ...new function.
20841 (pass_jump): Replace declaration with that of...
20842 (make_pass_jump): ...new function.
20843 (pass_jump2): Replace declaration with that of...
20844 (make_pass_jump2): ...new function.
20845 (pass_lower_subreg): Replace declaration with that of...
20846 (make_pass_lower_subreg): ...new function.
20847 (pass_cse): Replace declaration with that of...
20848 (make_pass_cse): ...new function.
20849 (pass_fast_rtl_dce): Replace declaration with that of...
20850 (make_pass_fast_rtl_dce): ...new function.
20851 (pass_ud_rtl_dce): Replace declaration with that of...
20852 (make_pass_ud_rtl_dce): ...new function.
20853 (pass_rtl_dce): Replace declaration with that of...
20854 (make_pass_rtl_dce): ...new function.
20855 (pass_rtl_dse1): Replace declaration with that of...
20856 (make_pass_rtl_dse1): ...new function.
20857 (pass_rtl_dse2): Replace declaration with that of...
20858 (make_pass_rtl_dse2): ...new function.
20859 (pass_rtl_dse3): Replace declaration with that of...
20860 (make_pass_rtl_dse3): ...new function.
20861 (pass_rtl_cprop): Replace declaration with that of...
20862 (make_pass_rtl_cprop): ...new function.
20863 (pass_rtl_pre): Replace declaration with that of...
20864 (make_pass_rtl_pre): ...new function.
20865 (pass_rtl_hoist): Replace declaration with that of...
20866 (make_pass_rtl_hoist): ...new function.
20867 (pass_rtl_store_motion): Replace declaration with that of...
20868 (make_pass_rtl_store_motion): ...new function.
20869 (pass_cse_after_global_opts): Replace declaration with that of...
20870 (make_pass_cse_after_global_opts): ...new function.
20871 (pass_rtl_ifcvt): Replace declaration with that of...
20872 (make_pass_rtl_ifcvt): ...new function.
20873 (pass_into_cfg_layout_mode): Replace declaration with that of...
20874 (make_pass_into_cfg_layout_mode): ...new function.
20875 (pass_outof_cfg_layout_mode): Replace declaration with that of...
20876 (make_pass_outof_cfg_layout_mode): ...new function.
20877 (pass_loop2): Replace declaration with that of...
20878 (make_pass_loop2): ...new function.
20879 (pass_rtl_loop_init): Replace declaration with that of...
20880 (make_pass_rtl_loop_init): ...new function.
20881 (pass_rtl_move_loop_invariants): Replace declaration with that of...
20882 (make_pass_rtl_move_loop_invariants): ...new function.
20883 (pass_rtl_unswitch): Replace declaration with that of...
20884 (make_pass_rtl_unswitch): ...new function.
20885 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
20886 (make_pass_rtl_unroll_and_peel_loops): ...new function.
20887 (pass_rtl_doloop): Replace declaration with that of...
20888 (make_pass_rtl_doloop): ...new function.
20889 (pass_rtl_loop_done): Replace declaration with that of...
20890 (make_pass_rtl_loop_done): ...new function.
20891 (pass_web): Replace declaration with that of...
20892 (make_pass_web): ...new function.
20893 (pass_cse2): Replace declaration with that of...
20894 (make_pass_cse2): ...new function.
20895 (pass_df_initialize_opt): Replace declaration with that of...
20896 (make_pass_df_initialize_opt): ...new function.
20897 (pass_df_initialize_no_opt): Replace declaration with that of...
20898 (make_pass_df_initialize_no_opt): ...new function.
20899 (pass_reginfo_init): Replace declaration with that of...
20900 (make_pass_reginfo_init): ...new function.
20901 (pass_inc_dec): Replace declaration with that of...
20902 (make_pass_inc_dec): ...new function.
20903 (pass_stack_ptr_mod): Replace declaration with that of...
20904 (make_pass_stack_ptr_mod): ...new function.
20905 (pass_initialize_regs): Replace declaration with that of...
20906 (make_pass_initialize_regs): ...new function.
20907 (pass_combine): Replace declaration with that of...
20908 (make_pass_combine): ...new function.
20909 (pass_if_after_combine): Replace declaration with that of...
20910 (make_pass_if_after_combine): ...new function.
20911 (pass_ree): Replace declaration with that of...
20912 (make_pass_ree): ...new function.
20913 (pass_partition_blocks): Replace declaration with that of...
20914 (make_pass_partition_blocks): ...new function.
20915 (pass_match_asm_constraints): Replace declaration with that of...
20916 (make_pass_match_asm_constraints): ...new function.
20917 (pass_regmove): Replace declaration with that of...
20918 (make_pass_regmove): ...new function.
20919 (pass_split_all_insns): Replace declaration with that of...
20920 (make_pass_split_all_insns): ...new function.
20921 (pass_fast_rtl_byte_dce): Replace declaration with that of...
20922 (make_pass_fast_rtl_byte_dce): ...new function.
20923 (pass_lower_subreg2): Replace declaration with that of...
20924 (make_pass_lower_subreg2): ...new function.
20925 (pass_mode_switching): Replace declaration with that of...
20926 (make_pass_mode_switching): ...new function.
20927 (pass_sms): Replace declaration with that of...
20928 (make_pass_sms): ...new function.
20929 (pass_sched): Replace declaration with that of...
20930 (make_pass_sched): ...new function.
20931 (pass_ira): Replace declaration with that of...
20932 (make_pass_ira): ...new function.
20933 (pass_reload): Replace declaration with that of...
20934 (make_pass_reload): ...new function.
20935 (pass_clean_state): Replace declaration with that of...
20936 (make_pass_clean_state): ...new function.
20937 (pass_branch_prob): Replace declaration with that of...
20938 (make_pass_branch_prob): ...new function.
20939 (pass_value_profile_transformations): Replace declaration with that
20940 of...
20941 (make_pass_value_profile_transformations): ...new function.
20942 (pass_postreload_cse): Replace declaration with that of...
20943 (make_pass_postreload_cse): ...new function.
20944 (pass_gcse2): Replace declaration with that of...
20945 (make_pass_gcse2): ...new function.
20946 (pass_split_after_reload): Replace declaration with that of...
20947 (make_pass_split_after_reload): ...new function.
20948 (pass_branch_target_load_optimize1): Replace declaration with that
20949 of...
20950 (make_pass_branch_target_load_optimize1): ...new function.
20951 (pass_thread_prologue_and_epilogue): Replace declaration with that
20952 of...
20953 (make_pass_thread_prologue_and_epilogue): ...new function.
20954 (pass_stack_adjustments): Replace declaration with that of...
20955 (make_pass_stack_adjustments): ...new function.
20956 (pass_peephole2): Replace declaration with that of...
20957 (make_pass_peephole2): ...new function.
20958 (pass_if_after_reload): Replace declaration with that of...
20959 (make_pass_if_after_reload): ...new function.
20960 (pass_regrename): Replace declaration with that of...
20961 (make_pass_regrename): ...new function.
20962 (pass_cprop_hardreg): Replace declaration with that of...
20963 (make_pass_cprop_hardreg): ...new function.
20964 (pass_reorder_blocks): Replace declaration with that of...
20965 (make_pass_reorder_blocks): ...new function.
20966 (pass_branch_target_load_optimize2): Replace declaration with that
20967 of...
20968 (make_pass_branch_target_load_optimize2): ...new function.
20969 (pass_leaf_regs): Replace declaration with that of...
20970 (make_pass_leaf_regs): ...new function.
20971 (pass_split_before_sched2): Replace declaration with that of...
20972 (make_pass_split_before_sched2): ...new function.
20973 (pass_compare_elim_after_reload): Replace declaration with that of...
20974 (make_pass_compare_elim_after_reload): ...new function.
20975 (pass_sched2): Replace declaration with that of...
20976 (make_pass_sched2): ...new function.
20977 (pass_stack_regs): Replace declaration with that of...
20978 (make_pass_stack_regs): ...new function.
20979 (pass_stack_regs_run): Replace declaration with that of...
20980 (make_pass_stack_regs_run): ...new function.
20981 (pass_df_finish): Replace declaration with that of...
20982 (make_pass_df_finish): ...new function.
20983 (pass_compute_alignments): Replace declaration with that of...
20984 (make_pass_compute_alignments): ...new function.
20985 (pass_duplicate_computed_gotos): Replace declaration with that of...
20986 (make_pass_duplicate_computed_gotos): ...new function.
20987 (pass_variable_tracking): Replace declaration with that of...
20988 (make_pass_variable_tracking): ...new function.
20989 (pass_free_cfg): Replace declaration with that of...
20990 (make_pass_free_cfg): ...new function.
20991 (pass_machine_reorg): Replace declaration with that of...
20992 (make_pass_machine_reorg): ...new function.
20993 (pass_cleanup_barriers): Replace declaration with that of...
20994 (make_pass_cleanup_barriers): ...new function.
20995 (pass_delay_slots): Replace declaration with that of...
20996 (make_pass_delay_slots): ...new function.
20997 (pass_split_for_shorten_branches): Replace declaration with that of...
20998 (make_pass_split_for_shorten_branches): ...new function.
20999 (pass_split_before_regstack): Replace declaration with that of...
21000 (make_pass_split_before_regstack): ...new function.
21001 (pass_convert_to_eh_region_ranges): Replace declaration with that
21002 of...
21003 (make_pass_convert_to_eh_region_ranges): ...new function.
21004 (pass_shorten_branches): Replace declaration with that of...
21005 (make_pass_shorten_branches): ...new function.
21006 (pass_set_nothrow_function_flags): Replace declaration with that of...
21007 (make_pass_set_nothrow_function_flags): ...new function.
21008 (pass_dwarf2_frame): Replace declaration with that of...
21009 (make_pass_dwarf2_frame): ...new function.
21010 (pass_final): Replace declaration with that of...
21011 (make_pass_final): ...new function.
21012 (pass_rtl_seqabstr): Replace declaration with that of...
21013 (make_pass_rtl_seqabstr): ...new function.
21014 (pass_release_ssa_names): Replace declaration with that of...
21015 (make_pass_release_ssa_names): ...new function.
21016 (pass_early_inline): Replace declaration with that of...
21017 (make_pass_early_inline): ...new function.
21018 (pass_inline_parameters): Replace declaration with that of...
21019 (make_pass_inline_parameters): ...new function.
21020 (pass_update_address_taken): Replace declaration with that of...
21021 (make_pass_update_address_taken): ...new function.
21022 (pass_convert_switch): Replace declaration with that of...
21023 (make_pass_convert_switch): ...new function.
21024 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
21025 to a subclass of simple_ipa_opt_pass along with...
21026 (pass_data_ipa_tree_profile): ...new pass_data instance and...
21027 (make_pass_ipa_tree_profile): ...new function.
21028 * tree-sra.c (pass_sra_early): Convert from a global struct to a
21029 subclass of gimple_opt_pass along with...
21030 (pass_data_sra_early): ...new pass_data instance and...
21031 (make_pass_sra_early): ...new function.
21032 (pass_sra): Convert from a global struct to a subclass of
21033 gimple_opt_pass along with...
21034 (pass_data_sra): ...new pass_data instance and...
21035 (make_pass_sra): ...new function.
21036 (pass_early_ipa_sra): Convert from a global struct to a subclass of
21037 gimple_opt_pass along with...
21038 (pass_data_early_ipa_sra): ...new pass_data instance and...
21039 (make_pass_early_ipa_sra): ...new function.
21040 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
21041 subclass of gimple_opt_pass along with...
21042 (pass_data_ccp): ...new pass_data instance and...
21043 (make_pass_ccp): ...new function.
21044 (pass_fold_builtins): Convert from a global struct to a subclass of
21045 gimple_opt_pass along with...
21046 (pass_data_fold_builtins): ...new pass_data instance and...
21047 (make_pass_fold_builtins): ...new function.
21048 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
21049 subclass of gimple_opt_pass along with...
21050 (pass_data_copy_prop): ...new pass_data instance and...
21051 (make_pass_copy_prop): ...new function.
21052 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
21053 global struct to a subclass of gimple_opt_pass along with...
21054 (pass_data_rename_ssa_copies): ...new pass_data instance and...
21055 (make_pass_rename_ssa_copies): ...new function.
21056 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
21057 subclass of gimple_opt_pass along with...
21058 (pass_data_dce): ...new pass_data instance and...
21059 (make_pass_dce): ...new function.
21060 (pass_dce_loop): Convert from a global struct to a subclass of
21061 gimple_opt_pass along with...
21062 (pass_data_dce_loop): ...new pass_data instance and...
21063 (make_pass_dce_loop): ...new function.
21064 (pass_cd_dce): Convert from a global struct to a subclass of
21065 gimple_opt_pass along with...
21066 (pass_data_cd_dce): ...new pass_data instance and...
21067 (make_pass_cd_dce): ...new function.
21068 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
21069 subclass of gimple_opt_pass along with...
21070 (pass_data_dominator): ...new pass_data instance and...
21071 (make_pass_dominator): ...new function.
21072 (pass_phi_only_cprop): Convert from a global struct to a subclass of
21073 gimple_opt_pass along with...
21074 (pass_data_phi_only_cprop): ...new pass_data instance and...
21075 (make_pass_phi_only_cprop): ...new function.
21076 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
21077 subclass of gimple_opt_pass along with...
21078 (pass_data_dse): ...new pass_data instance and...
21079 (make_pass_dse): ...new function.
21080 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
21081 a subclass of gimple_opt_pass along with...
21082 (pass_data_forwprop): ...new pass_data instance and...
21083 (make_pass_forwprop): ...new function.
21084 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
21085 struct to a subclass of gimple_opt_pass along with...
21086 (pass_data_tree_ifcombine): ...new pass_data instance and...
21087 (make_pass_tree_ifcombine): ...new function.
21088 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
21089 subclass of gimple_opt_pass along with...
21090 (pass_data_ch): ...new pass_data instance and...
21091 (make_pass_ch): ...new function.
21092 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
21093 subclass of gimple_opt_pass along with...
21094 (pass_data_tree_loop): ...new pass_data instance and...
21095 (make_pass_tree_loop): ...new function.
21096 (pass_tree_loop_init): Convert from a global struct to a subclass of
21097 gimple_opt_pass along with...
21098 (pass_data_tree_loop_init): ...new pass_data instance and...
21099 (make_pass_tree_loop_init): ...new function.
21100 (pass_lim): Convert from a global struct to a subclass of
21101 gimple_opt_pass along with...
21102 (pass_data_lim): ...new pass_data instance and...
21103 (make_pass_lim): ...new function.
21104 (pass_tree_unswitch): Convert from a global struct to a subclass of
21105 gimple_opt_pass along with...
21106 (pass_data_tree_unswitch): ...new pass_data instance and...
21107 (make_pass_tree_unswitch): ...new function.
21108 (pass_predcom): Convert from a global struct to a subclass of
21109 gimple_opt_pass along with...
21110 (pass_data_predcom): ...new pass_data instance and...
21111 (make_pass_predcom): ...new function.
21112 (pass_vectorize): Convert from a global struct to a subclass of
21113 gimple_opt_pass along with...
21114 (pass_data_vectorize): ...new pass_data instance and...
21115 (make_pass_vectorize): ...new function.
21116 (pass_graphite): Convert from a global struct to a subclass of
21117 gimple_opt_pass along with...
21118 (pass_data_graphite): ...new pass_data instance and...
21119 (make_pass_graphite): ...new function.
21120 (pass_graphite_transforms): Convert from a global struct to a subclass
21121 of gimple_opt_pass along with...
21122 (pass_data_graphite_transforms): ...new pass_data instance and...
21123 (make_pass_graphite_transforms): ...new function.
21124 (pass_check_data_deps): Convert from a global struct to a subclass of
21125 gimple_opt_pass along with...
21126 (pass_data_check_data_deps): ...new pass_data instance and...
21127 (make_pass_check_data_deps): ...new function.
21128 (pass_iv_canon): Convert from a global struct to a subclass of
21129 gimple_opt_pass along with...
21130 (pass_data_iv_canon): ...new pass_data instance and...
21131 (make_pass_iv_canon): ...new function.
21132 (pass_scev_cprop): Convert from a global struct to a subclass of
21133 gimple_opt_pass along with...
21134 (pass_data_scev_cprop): ...new pass_data instance and...
21135 (make_pass_scev_cprop): ...new function.
21136 (pass_record_bounds): Convert from a global struct to a subclass of
21137 gimple_opt_pass along with...
21138 (pass_data_record_bounds): ...new pass_data instance and...
21139 (make_pass_record_bounds): ...new function.
21140 (pass_complete_unroll): Convert from a global struct to a subclass of
21141 gimple_opt_pass along with...
21142 (pass_data_complete_unroll): ...new pass_data instance and...
21143 (make_pass_complete_unroll): ...new function.
21144 (pass_complete_unrolli): Convert from a global struct to a subclass of
21145 gimple_opt_pass along with...
21146 (pass_data_complete_unrolli): ...new pass_data instance and...
21147 (make_pass_complete_unrolli): ...new function.
21148 (pass_parallelize_loops): Convert from a global struct to a subclass
21149 of gimple_opt_pass along with...
21150 (pass_data_parallelize_loops): ...new pass_data instance and...
21151 (make_pass_parallelize_loops): ...new function.
21152 (pass_loop_prefetch): Convert from a global struct to a subclass of
21153 gimple_opt_pass along with...
21154 (pass_data_loop_prefetch): ...new pass_data instance and...
21155 (make_pass_loop_prefetch): ...new function.
21156 (pass_iv_optimize): Convert from a global struct to a subclass of
21157 gimple_opt_pass along with...
21158 (pass_data_iv_optimize): ...new pass_data instance and...
21159 (make_pass_iv_optimize): ...new function.
21160 (pass_tree_loop_done): Convert from a global struct to a subclass of
21161 gimple_opt_pass along with...
21162 (pass_data_tree_loop_done): ...new pass_data instance and...
21163 (make_pass_tree_loop_done): ...new function.
21164 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
21165 struct to a subclass of gimple_opt_pass along with...
21166 (pass_data_cse_reciprocals): ...new pass_data instance and...
21167 (make_pass_cse_reciprocals): ...new function.
21168 (pass_cse_sincos): Convert from a global struct to a subclass of
21169 gimple_opt_pass along with...
21170 (pass_data_cse_sincos): ...new pass_data instance and...
21171 (make_pass_cse_sincos): ...new function.
21172 (pass_optimize_bswap): Convert from a global struct to a subclass of
21173 gimple_opt_pass along with...
21174 (pass_data_optimize_bswap): ...new pass_data instance and...
21175 (make_pass_optimize_bswap): ...new function.
21176 (pass_optimize_widening_mul): Convert from a global struct to a
21177 subclass of gimple_opt_pass along with...
21178 (pass_data_optimize_widening_mul): ...new pass_data instance and...
21179 (make_pass_optimize_widening_mul): ...new function.
21180 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
21181 subclass of gimple_opt_pass along with...
21182 (pass_data_phiopt): ...new pass_data instance and...
21183 (make_pass_phiopt): ...new function.
21184 (pass_cselim): Convert from a global struct to a subclass of
21185 gimple_opt_pass along with...
21186 (pass_data_cselim): ...new pass_data instance and...
21187 (make_pass_cselim): ...new function.
21188 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
21189 subclass of gimple_opt_pass along with...
21190 (pass_data_phiprop): ...new pass_data instance and...
21191 (make_pass_phiprop): ...new function.
21192 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
21193 subclass of gimple_opt_pass along with...
21194 (pass_data_pre): ...new pass_data instance and...
21195 (make_pass_pre): ...new function.
21196 (pass_fre): Convert from a global struct to a subclass of
21197 gimple_opt_pass along with...
21198 (pass_data_fre): ...new pass_data instance and...
21199 (make_pass_fre): ...new function.
21200 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
21201 subclass of gimple_opt_pass along with...
21202 (pass_data_reassoc): ...new pass_data instance and...
21203 (make_pass_reassoc): ...new function.
21204 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
21205 subclass of gimple_opt_pass along with...
21206 (pass_data_sink_code): ...new pass_data instance and...
21207 (make_pass_sink_code): ...new function.
21208 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
21209 subclass of gimple_opt_pass along with...
21210 (pass_data_strlen): ...new pass_data instance and...
21211 (make_pass_strlen): ...new function.
21212 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
21213 struct to a subclass of gimple_opt_pass along with...
21214 (pass_data_build_alias): ...new pass_data instance and...
21215 (make_pass_build_alias): ...new function.
21216 (pass_build_ealias): Convert from a global struct to a subclass of
21217 gimple_opt_pass along with...
21218 (pass_data_build_ealias): ...new pass_data instance and...
21219 (make_pass_build_ealias): ...new function.
21220 (pass_ipa_pta): Convert from a global struct to a subclass of
21221 simple_ipa_opt_pass along with...
21222 (pass_data_ipa_pta): ...new pass_data instance and...
21223 (make_pass_ipa_pta): ...new function.
21224 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
21225 subclass of gimple_opt_pass along with...
21226 (pass_data_uncprop): ...new pass_data instance and...
21227 (make_pass_uncprop): ...new function.
21228 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
21229 global struct to a subclass of gimple_opt_pass along with...
21230 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
21231 (make_pass_late_warn_uninitialized): ...new function.
21232 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
21233 to a subclass of gimple_opt_pass along with...
21234 (pass_data_init_datastructures): ...new pass_data instance and...
21235 (make_pass_init_datastructures): ...new function.
21236 (pass_early_warn_uninitialized): Convert from a global struct to a
21237 subclass of gimple_opt_pass along with...
21238 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
21239 (make_pass_early_warn_uninitialized): ...new function.
21240 (pass_update_address_taken): Convert from a global struct to a
21241 subclass of gimple_opt_pass along with...
21242 (pass_data_update_address_taken): ...new pass_data instance and...
21243 (make_pass_update_address_taken): ...new function.
21244 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
21245 struct to a subclass of gimple_opt_pass along with...
21246 (pass_data_release_ssa_names): ...new pass_data instance and...
21247 (make_pass_release_ssa_names): ...new function.
21248 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
21249 subclass of gimple_opt_pass along with...
21250 (pass_data_stdarg): ...new pass_data instance and...
21251 (make_pass_stdarg): ...new function.
21252 * tree-switch-conversion.c (pass_convert_switch): Convert from a
21253 global struct to a subclass of gimple_opt_pass along with...
21254 (pass_data_convert_switch): ...new pass_data instance and...
21255 (make_pass_convert_switch): ...new function.
21256 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
21257 to a subclass of gimple_opt_pass along with...
21258 (pass_data_tail_recursion): ...new pass_data instance and...
21259 (make_pass_tail_recursion): ...new function.
21260 (pass_tail_calls): Convert from a global struct to a subclass of
21261 gimple_opt_pass along with...
21262 (pass_data_tail_calls): ...new pass_data instance and...
21263 (make_pass_tail_calls): ...new function.
21264 * tree-vect-generic.c (pass_lower_vector): Convert from a global
21265 struct to a subclass of gimple_opt_pass along with...
21266 (pass_data_lower_vector): ...new pass_data instance and...
21267 (make_pass_lower_vector): ...new function.
21268 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
21269 gimple_opt_pass along with...
21270 (pass_data_lower_vector_ssa): ...new pass_data instance and...
21271 (make_pass_lower_vector_ssa): ...new function.
21272 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
21273 to a subclass of gimple_opt_pass along with...
21274 (pass_data_slp_vectorize): ...new pass_data instance and...
21275 (make_pass_slp_vectorize): ...new function.
21276 (pass_ipa_increase_alignment): Convert from a global struct to a
21277 subclass of simple_ipa_opt_pass along with...
21278 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
21279 (make_pass_ipa_increase_alignment): ...new function.
21280 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
21281 gimple_opt_pass along with...
21282 (pass_data_vrp): ...new pass_data instance and...
21283 (make_pass_vrp): ...new function.
21284 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
21285 subclass of simple_ipa_opt_pass along with...
21286 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
21287 (make_pass_ipa_free_lang_data): ...new function.
21288 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
21289 gimple_opt_pass along with...
21290 (pass_data_tsan): ...new pass_data instance and...
21291 (make_pass_tsan): ...new function.
21292 (pass_tsan_O0): Convert from a global struct to a subclass of
21293 gimple_opt_pass along with...
21294 (pass_data_tsan_O0): ...new pass_data instance and...
21295 (make_pass_tsan_O0): ...new function.
21296 * var-tracking.c (pass_variable_tracking): Convert from a global
21297 struct to a subclass of rtl_opt_pass along with...
21298 (pass_data_variable_tracking): ...new pass_data instance and...
21299 (make_pass_variable_tracking): ...new function.
21300 * web.c (pass_web): Convert from a global struct to a subclass of
21301 rtl_opt_pass along with...
21302 (pass_data_web): ...new pass_data instance and...
21303 (make_pass_web): ...new function.
21304 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
21305 declaration with that of...
21306 (make_pass_mode_switch_use): ...new function.
21307 (pass_resolve_sw_modes): Replace declaration with that of...
21308 (make_pass_resolve_sw_modes): ...new function.
21309 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
21310 from a global struct to a subclass of rtl_opt_pass along with...
21311 (pass_data_mode_switch_use): ...new pass_data instance and...
21312 (make_pass_mode_switch_use): ...new function.
21313 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
21314 from a global struct to a subclass of rtl_opt_pass along with...
21315 (pass_data_resolve_sw_modes): ...new pass_data instance and...
21316 (make_pass_resolve_sw_modes): ...new function.
21317 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
21318 struct to a subclass of rtl_opt_pass along with...
21319 (pass_data_insert_vzeroupper): ...new pass_data instance and...
21320 (make_pass_insert_vzeroupper): ...new function.
21321 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
21322 global struct to a subclass of rtl_opt_pass along with...
21323 (pass_data_work_around_errata): ...new pass_data instance and...
21324 (make_pass_work_around_errata): ...new function.
21325 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
21326 struct to a subclass of rtl_opt_pass along with...
21327 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
21328 (make_pass_mips_machine_reorg2): ...new function.
21329
21330 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21331
21332 * passes.c (pass_manager::operator new): New.
21333
21334 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21335
21336 Handwritten part of conversion of passes to C++ classes.
21337
21338 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
21339 (toplev.o): Add dep on PASS_MANAGER_H.
21340 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
21341 of early local pases to reflect this moving from a global to a
21342 member of gcc::pass_manager.
21343 (cgraph_add_new_function): Likewise.
21344 * lto-cgraph.c (lto_output_node): Update for conversion of
21345 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
21346 * passes.c (opt_pass::clone): New.
21347 (opt_pass::gate): New.
21348 (opt_pass::execute): New.
21349 (opt_pass::opt_pass): New.
21350 (pass_manager::execute_early_local_passes): New.
21351 (pass_manager::execute_pass_mode_switching): new.
21352 (finish_optimization_passes): Convert to...
21353 (pass_manager::finish_optimization_passes): ...this.
21354 (finish_optimization_passes): Update for conversion of passes to
21355 C++ classes.
21356 (register_dump_files_1): Use has_gate since we cannot portably
21357 check a vtable entry against NULL.
21358 (dump_one_pass): Likewise.
21359 (ipa_write_summaries_2): Likewise.
21360 (ipa_write_optimization_summaries_1): Likewise.
21361 (ipa_read_summaries_1): Likewise.
21362 (ipa_read_optimization_summaries_1): Likewise.
21363 (execute_ipa_stmt_fixups): Likewise.
21364 (pass_manager::pass_manager): Rewrite pass-creation, invoking
21365 pass-creation functions rather than wiring up globals, and
21366 storing the results in fields of pass_manager generated using
21367 pass-instances.def.
21368 (pass_manager::dump_profile_report): Update for conversion of
21369 passes to C++ classes.
21370 (pass_manager::execute_ipa_summary_passes): Likewise.
21371 (execute_one_ipa_transform_pass): Likewise.
21372 (execute_one_pass): Use has_gate and has_execute since we cannot
21373 portably check a vtable entry against NULL.
21374 * pass_manager.h (pass_manager::finish_optimization_passes): New.
21375 (pass_manager): Use pass-instances.def to add fields for the
21376 various pass instances.
21377 * toplev.c (finalize): Update for move of
21378 finish_optimization_passes to a method of gcc::pass_manager.
21379 * toplev.h (finish_optimization_passes): Move to method of class
21380 pass_manager.
21381 * tree-pass.h (struct pass_data): New.
21382 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
21383 (opt_pass::gate): Convert to virtual function.
21384 (opt_pass::~opt_pass): New.
21385 (opt_pass::clone): New.
21386 (opt_pass::execute): Convert to virtual function.
21387 (opt_pass::opt_pass): New.
21388 (opt_pass::ctxt_): new.
21389 (gimple_opt_pass): Convert to subclass of opt_pass.
21390 (gimple_opt_pass::gimple_opt_pass): New.
21391 (rtl_opt_pass): Convert to subclass of opt_pass.
21392 (rtl_opt_pass::rtl_opt_pass): New.
21393 (ipa_opt_pass_d): Convert to subclass of opt_pass.
21394 (ipa_opt_pass_d::ipa_opt_pass_d): New.
21395 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
21396 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
21397 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
21398 invocation of pass_mode_switching to reflect this moving from a
21399 global to a member of gcc::pass_manager.
21400 (ix86_option_override): Rework how pass_insert_vzeroupper is
21401 added to the pass_manager to reflect autogenerated changes.
21402 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
21403
21404 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
21405
21406 PR rtl-optimization/57708
21407 * recog.c (peep2_find_free_register): Validate all regs in a
21408 multi-reg mode.
21409
21410 2013-08-05 Jan Hubicka <jh@suse.cz>
21411
21412 PR lto/57602
21413 * cgraph.c (verify_cgraph_node): Accept local flags from other
21414 partitions.
21415 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
21416 (function_and_variable_visibility): Likewise.
21417 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
21418
21419 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
21420
21421 * graph.c (init_graph_slim_pretty_print): Remove.
21422 (print_graph_cfg): Do not call it. Use local pretty printer.
21423 (start_graph_dump): Likewise.
21424
21425 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
21426
21427 * gimple-pretty-print.c (buffer): Remove.
21428 (initialized): Likewise.
21429 (maybe_init_pretty_print): Likewise.
21430 (print_gimple_stmt): Do not call it. Use non-static local
21431 pretty_printer variable.
21432 (print_gimple_expr): Likewise.
21433 (print_gimple_seq): Likewise.
21434 (gimple_dump_bb): Likewise.
21435
21436 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
21437
21438 * asan.c (asan_pp): Remove.
21439 (asan_pp_initialized): Likewise.
21440 (asan_pp_initialize): Likewise.
21441 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
21442 (asan_emit_stack_protection): Tidy. Use local pretty printer.
21443 (asan_add_global): Likewise.
21444
21445 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
21446
21447 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
21448 * diagnostic.h (diagnostic_flush_buffer): Adjust.
21449 * pretty-print.c (pp_formatted_text_data): Likewise.
21450 (pp_indent): Rename from pp_base_indent.
21451 (pp_format): Rename from pp_base_format.
21452 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
21453 (pp_format_verbatim): Rename from pp_base_format_verbatim.
21454 (pp_flush): Rename from pp_base_flush.
21455 (pp_set_line_maximum_length): Rename from
21456 pp_base_set_line_maximum_length.
21457 (pp_clear_output_area): Rename from pp_base_clear_output_area.
21458 (pp_set_prefix): Rename from pp_base_set_prefix.
21459 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
21460 (pp_emit_prefix): Rename from pp_base_emit_prefix.
21461 (pp_append_text): Rename from pp_base_append_text.
21462 (pp_formatted_text): Rename from pp_base_formatted_text.
21463 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
21464 (pp_remaining_character_count_for_line): Rename from
21465 pp_base_remaining_character_count_for_line.
21466 (pp_newline): Rename from pp_base_newline.
21467 (pp_character): Rename from pp_base_character.
21468 (pp_string): Rename from pp_base_string.
21469 (pp_maybe_space): Rename from pp_base_maybe_space.
21470 * asan.c (asan_pp_string): Adjust.
21471 (asan_emit_stack_protection): Likewise.
21472 (asan_add_global): Likewise.
21473 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
21474 * tree-mudflap.c (mf_varname_tree): Likewise.
21475 * tree-pretty-print.c (pp_tree_identifier): Rename from
21476 pp_base_tree_identifier.
21477 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
21478 Declare as function.
21479
21480 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
21481
21482 * pretty-print.h (pp_bar_bar): New.
21483 (pp_ampersand_ampersand): Likewise.
21484 (pp_less_equal): Likewise.
21485 (pp_greater_equal): Likewise.
21486 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
21487 printer functions instead of pp_string or operators and punctuators.
21488 (dump_gimple_call): Likewise.
21489 (dump_gimple_omp_for): Likewise.
21490 (dump_gimple_transaction): Likewise.
21491 (dump_gimple_phi): Likewise.
21492 (pp_gimple_stmt_1): Likewise.
21493 * sched-vis.c (print_insn): Likewise.
21494 * tree-mudflap.c (mf_varname_tree): Likewise.
21495 * tree-pretty-print.c (dump_block_node): Likewise.
21496 (dump_generic_node): Likewise.
21497
21498 2013-08-02 Jan Hubicka <jh@suse.cz>
21499
21500 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
21501 boundaries.
21502 * lto-streamer-out.c (tree_is_indexable): Results decls and
21503 parm decls are not indexable.
21504 (DFS_write_tree_body): Do not follow args and results.
21505 (hash_tree): Likewise.
21506 (output_functions): Rearrange so struct function is needed
21507 only when real body is output; be able to also ouptut abstract
21508 functions; output DECL_ARGUMENTS and DECL_RESULT.
21509 (lto_output): When not in WPA, ale store abstract functions.
21510 (write_symbol): Do not care about RESULT_DECL.
21511 (output_symbol_p): Handle correctly sbtract decls.
21512 * lto-streamer-in.c (input_function): Rearrange so struct
21513 function can be NULL at entry; allow streaming of
21514 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
21515 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
21516 sanity check during LTO.
21517 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
21518 RESULT_DECl and DECL_ARGUMENTS.
21519 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
21520 Likewise.
21521
21522 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
21523
21524 * pretty-print.h (pp_underscore): New.
21525 (pp_comma): Tidy.
21526 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
21527 printer functions instead of pp_character.
21528 (dump_binary_rhs): Likewise.
21529 (dump_ternary_rhs): Likewise.
21530 (dump_gimple_call_args): Likewise.
21531 (pp_points_to_solution): Likewise.
21532 (dump_gimple_call): Likewise.
21533 (dump_gimple_switch): Likewise.
21534 (dump_gimple_cond): Likewise.
21535 (dump_gimple_bind): Likewise.
21536 (dump_gimple_try): Likewise.
21537 (dump_gimple_omp_for): Likewise.
21538 (dump_gimple_omp_continue): Likewise.
21539 (dump_gimple_omp_single): Likewise.
21540 (dump_gimple_omp_sections): Likewise.
21541 (dump_gimple_omp_block): Likewise.
21542 (dump_gimple_omp_critical): Likewise.
21543 (dump_gimple_transaction): Likewise.
21544 (dump_gimple_asm): Likewise.
21545 (dump_gimple_phi): Likewise.
21546 (dump_gimple_omp_parallel): Likewise.
21547 (dump_gimple_omp_task): Likewise.
21548 (dump_gimple_omp_atomic_load): Likewise.
21549 (dump_gimple_omp_atomic_store): Likewise.
21550 (dump_gimple_mem_ops): Likewise.
21551 (pp_gimple_stmt_1): Likewise.
21552 (pp_cfg_jump): Likewise.
21553 (dump_implicit_edges): Likewise.
21554 (gimple_dump_bb_for_graph): Likewise.
21555 * graph.c (draw_cfg_node): Likewise.
21556 * langhooks.c (lhd_print_error_function): Likewise.
21557 * sched-vis.c (print_exp): Likewise.
21558 (print_value): Likewise.
21559 (print_pattern): Likewise.
21560 (print_insn): Likewise.
21561 (rtl_dump_bb_for_graph): Likewise.
21562 * tree-pretty-print.c (dump_function_declaration): Likewise.
21563 (dump_array_domain): Likewise.
21564 (dump_omp_clause): Likewise.
21565 (dump_location): Likewise.
21566 (dump_generic_node): Likewise.
21567 (print_struct_decl): Likewise.
21568 * diagnostic.c (diagnostic_show_locus): Use pp_space.
21569
21570 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21571
21572 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
21573 candidate table when replacing a candidate statement.
21574 (replace_rhs_if_not_dup): Likewise.
21575 (replace_one_candidate): Likewise.
21576
21577 2013-08-02 Jan Hubicka <jh@suse.cz>
21578 Martin Liska <marxin.liska@gmail.com>
21579
21580 * cgraphunit.c (add_new_function): Fix logic when adding from
21581 late IPA pass.
21582 (assemble_thunk): Rename to ...
21583 (expand_thunk); .. this one; export; get it working with
21584 general functions; make produced gimple valid.
21585 * cgraph.h (expand_thunk): Declare.
21586
21587 2013-08-02 Jan Hubicka <jh@suse.cz>
21588
21589 * ipa-cp.c (gather_context_independent_values): Use
21590 ipa_get_param_move_cost.
21591 (get_replacement_map): Remove PARAM; move parameter folding
21592 into tree-inline.c
21593 (create_specialized_node): Update.
21594 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
21595 assert that we have gimple body; update move_cost.
21596 (count_formal_params): Assert that we have gimple body.
21597 (ipa_dump_param): New function.
21598 (ipa_alloc_node_params): Break out from ...
21599 (ipa_initialize_node_params): ... here.
21600 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
21601 (ipa_write_node_info): Stream move costs.
21602 (ipa_read_node_info): Read move costs.
21603 (ipa_update_after_lto_read): Do not recompute node params.
21604 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
21605 (ipa_get_param): Check we are not in WPA.
21606 (ipa_get_param_move_cost): New.
21607 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
21608 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
21609 parm numbers to be present.
21610
21611 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
21612
21613 PR rtl-optimization/58048
21614 * lra-constraints.c (process_alt_operands): Don't check asm
21615 operand on register.
21616
21617 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
21618
21619 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
21620 the implied StoreLoad barrier for atomic operations if before.
21621
21622 2013-08-02 Jan Hubicka <jh@suse.cz>
21623 Martin Liska <marxin.liska@gmail.com>
21624
21625 * cgraph.c (cgraph_function_body_availability): Do not check
21626 cgraph flags.
21627 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
21628 symtab_node_availability): Declare.
21629 * ipa.c (can_replace_by_local_alias): New.
21630 (function_and_variable_visibility): Use it.
21631 * symtab.c (symtab_for_node_and_aliases,
21632 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
21633
21634 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
21635
21636 PR rtl-optimization/57963
21637 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
21638 (lra_constraints): Use them.
21639
21640 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
21641
21642 * config/arm/types.md (define_attr "type"): Add "load_acq"
21643 and "store_rel".
21644 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
21645 changes.
21646 (cortex_a53_store1): Likewise.
21647
21648 2013-08-01 Jan Hubicka <jh@suse.cz>
21649
21650 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
21651 partitions are not needed.
21652
21653 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
21654
21655 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
21656 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
21657 MAYBE_NON_Q_CLASS_P where appropriate.
21658
21659 2013-08-01 Jan Hubicka <jh@suse.cz>
21660
21661 * cgraph.h (release_function_body): Declare.
21662 * tree.c (free_lang_data_in_decl): Free, parameters and return values
21663 of unused delcarations.
21664
21665 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21666
21667 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
21668 RTL form when subtracting a constant.
21669
21670 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21671
21672 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
21673 Generate canonical plus rtx with negated immediate instead of minus
21674 where appropriate.
21675 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
21676
21677 2013-08-01 Jan Hubicka <jh@suse.cz>
21678
21679 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
21680 (cgraph_release_function_body): Likewise.
21681 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
21682 * cgraph.h (cgrpah_node): Rename abstract_and_needed
21683 to used_as_abstract_origin.
21684 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
21685 symbols used as abstract origins.
21686 * cgraphunit.c (analyze_functions): Update.
21687 * ipa.c (symtab_remove_unreachable_nodes): Recompute
21688 used_as_abstract_origin.
21689 * tree-inline.c (tree_function_versioning): Update
21690 used_as_abstract_origin; be ready for DECL_RESULT and
21691 DECL_ARGUMENTS to be NULL.
21692
21693 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
21694 for abstract functions.
21695 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
21696 real symbols.
21697
21698 2013-08-01 Jan Hubicka <jh@suse.cz>
21699
21700 * profile.c (compute_value_histograms): Fix thinko.
21701
21702 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21703
21704 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
21705 aarch-common-protos.h to extra_headers.
21706 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21707 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
21708 * config/aarch64/t-aarch64 (aarch-common.o): Define.
21709
21710 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21711
21712 * config/aarch64/aarch64.md (define_attr "type"): Delete.
21713 Include "../arm/types.md". Define "type" attribute for all patterns.
21714 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
21715 attribute changes.
21716
21717 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21718
21719 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
21720 to support power8 load fusion.
21721 (fusion_gpr_mem_load): Likewise.
21722
21723 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
21724
21725 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
21726 declarations for power8 load fusion.
21727 (emit_fusion_gpr_load): Likewise.
21728
21729 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21730 tuning for power8, turn on fusion mode by default. Turn on sign
21731 extending fusion mode if normal fusion mode is on, and we are at
21732 -O2 or -O3.
21733 (fusion_gpr_load_p): New function, return true if we can fuse an
21734 addis instruction with a dependent load to a GPR.
21735 (emit_fusion_gpr_load): Emit the instructions for power8 load
21736 fusion to GPRs.
21737
21738 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
21739 (VSX load fusion peepholes): New peepholes to fuse together an
21740 addi instruction with a VSX load instruction.
21741
21742 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
21743 peepholes to fuse an addis instruction with a load to a GPR base
21744 register. If we are supporting sign extending fusions, convert
21745 sign extending loads to zero extending loads and add an explicit
21746 sign extension.
21747
21748 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21749
21750 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
21751 aarch-common-protos.h to extra_headers.
21752 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21753 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
21754 (arm_early_store_addr_dep): Likewise.
21755 (arm_no_early_alu_shift_dep): Likewise.
21756 (arm_no_early_alu_shift_value_dep): Likewise.
21757 (arm_no_early_mul_dep): Likewise.
21758 (arm_no_early_store_addr_dep): Likewise.
21759 (arm_mac_accumulator_is_mul_result): Likewise.
21760 (arm_mac_accumulator_is_result): Likewise.
21761 * config/arm/aarch-common.c: ... here. New file.
21762 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
21763 here to ...
21764 (arm_early_store_addr_dep): Likewise.
21765 (arm_no_early_alu_shift_dep): Likewise.
21766 (arm_no_early_alu_shift_value_dep): Likewise.
21767 (arm_no_early_mul_dep): Likewise.
21768 (arm_no_early_store_addr_dep): Likewise.
21769 (arm_mac_accumulator_is_mul_result): Likewise.
21770 (arm_mac_accumulator_is_result): Likewise.
21771 * config/arm/aarch-common-protos.h: ... here. New file.
21772 * config/arm/t-arm (aarch-common.o): Define.
21773
21774 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21775
21776 * config/arm/arm.md: Include new file "types.md".
21777 (define_attr "type"): Move from here to ...
21778 (define_attr "mul32"): Likewise.
21779 (define_attr "mul64"): Likewise.
21780 * config/arm/types.md: ... here. New file.
21781
21782 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
21783
21784 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
21785 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
21786
21787 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21788
21789 * gen-pass-instances.awk: Fix offset of substr().
21790
21791 2013-07-31 David Malcolm <dmalcolm@redhat.com>
21792
21793 * Makefile.in (pass-instances.def): New.
21794 (passes.o): Replace dependency on passes.def with one on
21795 pass-instances.def
21796
21797 * gen-pass-instances.awk: New.
21798
21799 * passes.c (pass_manager::pass_manager): Use pass-instances.def
21800 rather than passes.def, updating local definition of NEXT_PASS
21801 macro to add an extra NUM parameter (currently unused).
21802
21803 2013-07-30 David Malcolm <dmalcolm@redhat.com>
21804
21805 * Makefile.in (PASS_MANAGER_H): New.
21806 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
21807 (passes.o): Likewise.
21808 (statistics.o): Likewise.
21809 (cgraphunit.o): Likewise.
21810 (context.o): Depend on PASS_MANAGER_H.
21811
21812 * pass_manager.h: New.
21813
21814 * cgraphunit.c (cgraph_add_new_function): Update for moves
21815 of globals to fields of pass_manager.
21816 (analyze_function): Likewise.
21817 (expand_function): Likewise.
21818 (ipa_passes): Likewise.
21819 (compile): Likewise.
21820
21821 * context.c (context::context): New.
21822 * context.h (context::context): New.
21823 (context::get_passes): New.
21824 (context::passes_): New.
21825
21826 * lto-cgraph.c (input_node): Update for moves of globals to
21827 fields of pass_manager.
21828
21829 * passes.c (all_passes): Remove, in favor of a field of the
21830 same name within the new class pass_manager.
21831 (all_small_ipa_passes): Likewise.
21832 (all_lowering_passes): Likewise.
21833 (all_regular_ipa_passes): Likewise.
21834 (all_late_ipa_passes): Likewise.
21835 (all_lto_gen_passes): Likewise.
21836 (passes_by_id): Likewise.
21837 (passes_by_id_size): Likewise.
21838 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21839 the new class pass_manager.
21840 (set_pass_for_id): Convert to...
21841 (pass_manager::set_pass_for_id): ...method.
21842 (get_pass_for_id): Convert to...
21843 (pass_manager::get_pass_for_id): ...method.
21844 (register_one_dump_file): Move body of implementation into...
21845 (pass_manager::register_one_dump_file): ...here.
21846 (register_dump_files_1): Convert to...
21847 (pass_manager::register_dump_files_1): ...method.
21848 (register_dump_files): Convert to...
21849 (pass_manager::register_dump_files): ...method.
21850 (create_pass_tab): Update for moves of globals to fields of
21851 pass_manager.
21852 (dump_passes): Move body of implementation into...
21853 (pass_manager::dump_passes): ...here.
21854 (register_pass): Move body of implementation into...
21855 (pass_manager::register_pass): ...here.
21856 (init_optimization_passes): Convert into...
21857 (pass_manager::pass_manager): ...constructor for new
21858 pass_manager class, and initialize the pass_lists array.
21859 (check_profile_consistency): Update for moves of globals to
21860 fields of pass_manager.
21861 (dump_profile_report): Move body of implementation into...
21862 (pass_manager::dump_profile_report): ...here.
21863 (ipa_write_summaries_1): Update for moves of pass lists from
21864 being globals to fields of pass_manager.
21865 (ipa_write_optimization_summaries): Likewise.
21866 (ipa_read_summaries): Likewise.
21867 (ipa_read_optimization_summaries): Likewise.
21868 (execute_all_ipa_stmt_fixups): Likewise.
21869
21870 * statistics.c (statistics_fini): Update for moves of globals to
21871 fields of pass_manager.
21872
21873 * toplev.c (general_init): Replace call to
21874 init_optimization_passes with construction of the pass_manager
21875 instance.
21876
21877 * tree-pass.h (all_passes): Remove, in favor of a field of the
21878 same name within the new class pass_manager.
21879 (all_small_ipa_passes): Likewise.
21880 (all_lowering_passes): Likewise.
21881 (all_regular_ipa_passes): Likewise.
21882 (all_lto_gen_passes): Likewise.
21883 (all_late_ipa_passes): Likewise.
21884 (passes_by_id): Likewise.
21885 (passes_by_id_size): Likewise.
21886 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21887 the new class pass_manager.
21888 (get_pass_for_id): Remove.
21889
21890 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21891
21892 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
21893 configs.
21894
21895 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21896
21897 * arm.md (mulhi3): New expand pattern.
21898
21899 2013-07-30 Jan Hubicka <jh@suse.cz>
21900 Martin Liska <marxin.liska@gmail.com>
21901
21902 * profile.c (compute_value_histograms): Do not ICE when
21903 there is mismatch only on some counters.
21904
21905 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21906
21907 PR rtl-optimization/57637
21908 * function.c (move_insn_for_shrink_wrap): Also check the
21909 GEN set of the LIVE problem for the liveness analysis
21910 if it exists, otherwise give up.
21911
21912 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21913
21914 PR tree-optimization/57993
21915 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21916 replaced statement in the candidate table.
21917 (phi_add_costs): Return infinite cost when the hidden basis does
21918 not dominate all phis on which the candidate is dependent.
21919 (replace_one_candidate): Record replaced statement in the
21920 candidate table.
21921
21922 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
21923
21924 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21925 (ashlv2si3): New expander.
21926 (*ashlv2si3_i): New define_insn_and_split.
21927 * predicates.md (float_operation): Allow patterns with three
21928 basic sub-patterns.
21929
21930 PR rtl-optimization/58021
21931 * mode-switching.c (create_pre_exit): Always split off preceding
21932 insns if we are not at the basic block head.
21933
21934 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
21935
21936 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21937 (UCLIBC_DYNAMIC_LINKER): New macro.
21938 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21939 `-mnan=2008'.
21940 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21941 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
21942 `-mnan=2008'.
21943 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21944 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21945 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21946 for SF and DF modes. Use ieee_quad_format for TF mode.
21947 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21948 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21949 (mips_option_override): Handle `-mnan=legacy'.
21950 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21951 `-mabs=2008' and `-mnan=2008'.
21952 (OPTION_DEFAULT_SPECS): Add "nan" default.
21953 (ASM_SPEC): Handle `-mnan='.
21954 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21955 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21956 comment accordingly.
21957 (neg<mode>2): Likewise.
21958 * config/mips/mips.opt (mabs, mnan): New options.
21959 * doc/install.texi (Configuration): Document `--with-nan=' option.
21960 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21961 `-mnan=' options.
21962 (MIPS Options): Document them.
21963 * config.gcc <mips*-*-*>: Handle `--with-nan='.
21964 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21965 * configure: Regenerate.
21966 * config.in: Regenerate.
21967
21968 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21969
21970 * config/i386/i386.md (float post-reload splitters): Do not check
21971 for subregs of SSE registers.
21972
21973 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21974 H.J. Lu <hongjiu.lu@intel.com>
21975
21976 PR target/57954
21977 PR target/57988
21978 * config/i386/i386.md (post-reload splitter
21979 to avoid partial SSE reg dependency stalls): New pattern.
21980
21981 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21982
21983 * config/s390/s390.md ("movcc"): Swap load and store instructions.
21984
21985 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
21986
21987 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21988 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21989
21990 2013-07-26 Cary Coutant <ccoutant@google.com>
21991
21992 * dwarf2out.c (die_checksum_ordered): Don't include template
21993 instantiations in signature.
21994 (is_template_parameter): New function.
21995 (is_template_instantiation): New function.
21996 (generate_skeleton_bottom_up): Don't include template instantiations
21997 in type unit DIE.
21998 (generate_skeleton): Likewise.
21999 (break_out_comdat_types): Move recursive call to break out nested
22000 types earlier.
22001 (prune_unused_types_mark_generic_parms_dies): Call
22002 is_template_parameter.
22003
22004 2013-07-26 Ian Bolton <ian.bolton@arm.com>
22005
22006 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
22007 uses vector registers.
22008 * config/aarch64/iterators.md: Add attributes rtn and vas.
22009
22010 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22011 Richard Earnshaw <richard.earnshaw@arm.com>
22012
22013 * combine.c (simplify_comparison): Re-canonicalize operands
22014 where appropriate.
22015 * config/arm/arm.md (movcond_addsi): New splitter.
22016
22017 2013-07-25 Sterling Augustine <saugustine@google.com>
22018
22019 * dwarf2out.c (size_of_pubnames): Move code to...
22020 (include_pubname_in_output): ...here. New.
22021 (want_pubnames): Rearrange.
22022 (output_pubnames): Call include_pubname_in_output. Move assertion.
22023
22024 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
22025
22026 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
22027
22028 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
22029
22030 PR target/38836
22031 * doc/extend.texi: Remove obsolete builtins. Fix
22032 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
22033
22034 2013-07-25 Jan Hubicka <jh@suse.cz>
22035
22036 * cgraph.c (release_function_body): Break out from ...
22037 (cgraph_release_function_body): ... this one; also release DECL_RESULT
22038 and DECL_ARGUMENTS.
22039 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
22040 old_tree in the map.
22041 (create_specialized_node): Update.
22042 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
22043 into index.
22044 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
22045 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
22046 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
22047 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
22048 DECL_RESULT.
22049
22050 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22051
22052 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
22053 addsi3_carryin_alt2_<optab>): Correct output template.
22054
22055 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22056
22057 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
22058 Adjust for arm_restrict_it.
22059 Remove trailing whitespace.
22060
22061 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
22062
22063 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
22064 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
22065
22066 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
22067
22068 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
22069
22070 PR rtl-optimization/57960
22071 * lra-constraints.c (process_alt_operands): Use the right mode
22072 when checking strict_low.
22073
22074 2013-07-25 Jan Hubicka <jh@suse.cz>
22075
22076 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
22077 * cgraph.c (cgraph_remove_node): Do not release function body
22078 when in cgraph streaming.
22079 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
22080 in other partitions are not considered reachable; fix handling of
22081 clones.
22082
22083 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22084
22085 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
22086
22087 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22088
22089 PR target/19599
22090 PR target/57731
22091 PR target/57837
22092 * config/arm/arm.md ("*sibcall_insn): Replace use of
22093 Ss with US. Adjust output for v5 and v4t.
22094 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
22095
22096 * config/arm/constraints.md ("Ss"): Rename to US.
22097
22098 2013-07-25 Terry Guo <terry.guo@arm.com>
22099
22100 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
22101 shift_add/shift_sub0/shift_sub1 RTXs.
22102
22103 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
22104 Anton Blanchard <anton@au1.ibm.com>
22105
22106 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
22107 (altivec_vpks<VI_char>ss): Likewise.
22108 (altivec_vpks<VI_char>us): Likewise.
22109 (altivec_vpku<VI_char>us): Likewise.
22110 (altivec_vpku<VI_char>um): Likewise.
22111
22112 2013-07-24 David Malcolm <dmalcolm@redhat.com>
22113
22114 Introduce context class.
22115
22116 * Makefile.in (CONTEXT_H): New.
22117 (OBJS): Add context.o.
22118 (toplev.o): Add CONTEXT_H to dependencies.
22119 (context.o): New.
22120
22121 * toplev.c (general_init): Create the singleton gcc::context instance.
22122
22123 * context.c: New.
22124
22125 * context.h: New.
22126
22127 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
22128
22129 PR rtl-optimization/57968
22130 * mode-switching.c (create_pre_exit): Allow instructions that
22131 don't set a return register to need a non-exit mode.
22132
22133 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22134 Anton Blanchard <anton@au1.ibm.com>
22135
22136 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
22137 operands to vperm for little endian.
22138 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
22139 of lvsl to create the control mask for a vperm for little endian.
22140
22141 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22142 Anton Blanchard <anton@au1.ibm.com>
22143
22144 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
22145 two operands for little-endian.
22146
22147 2013-07-23 Steve Ellcey <sellcey@mips.com>
22148
22149 * config/mips/mips.c (mips_case_values_threshold): New.
22150 (TARGET_CASE_VALUES_THRESHOLD): Define.
22151
22152 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22153 Anton Blanchard <anton@au1.ibm.com>
22154
22155 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
22156 selection of field for vector splat in little endian mode.
22157
22158 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22159
22160 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
22161 expanders to rs6000.md.
22162 (ior<mode>3): Likewise.
22163 (and<mode>3): Likewise.
22164 (one_cmpl<mode>2): Likewise.
22165 (nor<mode>3): Likewise.
22166 (andc<mode>3): Likewise.
22167 (eqv<mode>3): Likewise.
22168 (nand<mode>3): Likewise.
22169 (orc<mode>3): Likewise.
22170
22171 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
22172 declaration.
22173
22174 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
22175 to split multi-word logical operations.
22176 (rs6000_split_logical_di): Likewise.
22177 (rs6000_split_logical): Likewise.
22178
22179 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
22180 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
22181 and allow TImode operations in 32-bit.
22182 (vsx_and<mode>3_64bit): Likewise.
22183 (vsx_ior<mode>3_32bit): Likewise.
22184 (vsx_ior<mode>3_64bit): Likewise.
22185 (vsx_xor<mode>3_32bit): Likewise.
22186 (vsx_xor<mode>3_64bit): Likewise.
22187 (vsx_one_cmpl<mode>2_32bit): Likewise.
22188 (vsx_one_cmpl<mode>2_64bit): Likewise.
22189 (vsx_nor<mode>3_32bit): Likewise.
22190 (vsx_nor<mode>3_64bit): Likewise.
22191 (vsx_andc<mode>3_32bit): Likewise.
22192 (vsx_andc<mode>3_64bit): Likewise.
22193 (vsx_eqv<mode>3_32bit): Likewise.
22194 (vsx_eqv<mode>3_64bit): Likewise.
22195 (vsx_nand<mode>3_32bit): Likewise.
22196 (vsx_nand<mode>3_64bit): Likewise.
22197 (vsx_orc<mode>3_32bit): Likewise.
22198 (vsx_orc<mode>3_64bit): Likewise.
22199
22200 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
22201 logical types in GPRs.
22202
22203 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
22204 logical insns to rs6000.md, and allow TImode operations in
22205 32-bit.
22206 (altivec_ior<mode>3): Likewise.
22207 (altivec_xor<mode>3): Likewise.
22208 (altivec_one_cmpl<mode>2): Likewise.
22209 (altivec_nor<mode>3): Likewise.
22210 (altivec_andc<mode>3): Likewise.
22211
22212 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
22213 attributes for moving the 128-bit logical operations into
22214 rs6000.md.
22215 (BOOL_REGS_OUTPUT): Likewise.
22216 (BOOL_REGS_OP1): Likewise.
22217 (BOOL_REGS_OP2): Likewise.
22218 (BOOL_REGS_UNARY): Likewise.
22219 (BOOL_REGS_AND_CR0): Likewise.
22220 (one_cmpl<mode>2): Add support for DI logical operations on
22221 32-bit, splitting the operations to 32-bit.
22222 (anddi3): Likewise.
22223 (iordi3): Likewise.
22224 (xordi3): Likewise.
22225 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
22226 changes to combine the 32/64-bit code, allow logical operations on
22227 TI mode in 32-bit, and to use similar match_operator patterns like
22228 scalar mode uses. Combine the Altivec and VSX code for logical
22229 operations, and move it here.
22230 (ior<mode>3, 128-bit types): Likewise.
22231 (xor<mode>3, 128-bit types): Likewise.
22232 (one_cmpl<mode>3, 128-bit types): Likewise.
22233 (nor<mode>3, 128-bit types): Likewise.
22234 (andc<mode>3, 128-bit types): Likewise.
22235 (eqv<mode>3, 128-bit types): Likewise.
22236 (nand<mode>3, 128-bit types): Likewise.
22237 (orc<mode>3, 128-bit types): Likewise.
22238 (and<mode>3_internal): Likewise.
22239 (bool<mode>3_internal): Likewise.
22240 (boolc<mode>3_internal1): Likewise.
22241 (boolc<mode>3_internal2): Likewise.
22242 (boolcc<mode>3_internal1): Likewise.
22243 (boolcc<mode>3_internal2): Likewise.
22244 (eqv<mode>3_internal1): Likewise.
22245 (eqv<mode>3_internal2): Likewise.
22246 (one_cmpl1<mode>3_internal): Likewise.
22247
22248 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
22249
22250 * config/microblaze/microblaze.c (microblaze_expand_prologue):
22251 Rename flag_stack_usage to flag_stack_usage_info.
22252
22253 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
22254
22255 * config/microblaze/sync.md: New file.
22256 * config/microblaze/microblaze.md: Include sync.md
22257 * config/microblaze/microblaze.c: Add print_operand 'y'.
22258 * config/microblaze/constraints.md: Add memory_contraint
22259 'Q' which is a single register.
22260
22261 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
22262
22263 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
22264
22265 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
22266
22267 * reload.c (find_reloads): Exit loop once we find this operand
22268 cannot be reloaded somehow for this alternative.
22269
22270 * reload.c (find_reloads): Exit loop once we find a hard register.
22271
22272 * rtlanal.c (computed_jump_p): Exit loop once we find label
22273 reference is used.
22274
22275 * i386.c (ix86_pad_returns): Exit loop after setting replace.
22276
22277 * cfgloopmanip.c (remove_path): Exit loop after setting
22278 irred_invalidated.
22279
22280 * gensupport.c (subst_dup): Avoid loop if code is not
22281 MATCH_DUP nor MATCH_OP_DUP.
22282
22283 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
22284
22285 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
22286
22287 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22288
22289 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
22290 true for SP_REGNUM if mode == ptr_mode.
22291 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
22292 with value R0_REGNUM + 31.
22293
22294 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22295
22296 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
22297 pad pointer-typed argument downward.
22298
22299 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22300
22301 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
22302 and __ILP32__ when the ILP32 model is in use.
22303
22304 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22305
22306 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
22307 (aarch64_load_symref_appropriately): In the case of
22308 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
22309 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
22310 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
22311 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
22312 if 'mode' doesn't equal to 'ptr_mode'.
22313 (aarch64_output_mi_thunk): Add an assertion on the alignment of
22314 'vcall_offset'; change to call aarch64_emit_move differently depending
22315 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
22316 to calculate the upper bound of 'vcall_offset'.
22317 (aarch64_cannot_force_const_mem): Change to also return true if
22318 mode != ptr_mode.
22319 (aarch64_legitimize_reload_address): In the case of large
22320 displacements, add new local variable 'xmode' and an assertion
22321 based on it; change to use 'xmode' to generate the new rtx and
22322 reload.
22323 (aarch64_asm_trampoline_template): Change to generate the template
22324 differently depending on TARGET_ILP32 or not; change to use
22325 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
22326 (aarch64_trampoline_size): Removed.
22327 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
22328 and replace immediate literals with it. Change to use 'ptr_mode'
22329 instead of 'DImode' and call convert_memory_address if the mode
22330 of 'fnaddr' doesn't equal to 'ptr_mode'.
22331 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
22332 to output symbol.
22333 (aarch64_elf_asm_destructor): Likewise.
22334 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
22335 on TARGET_ILP32 instead of aarch64_trampoline_size.
22336 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
22337 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
22338 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
22339 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
22340 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
22341 (storewb_pair<GPI:mode>_<P:mode>): ... this.
22342 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
22343 depending on the value of 'mode'.
22344 (add_losym_<mode>): New.
22345 (ldr_got_small_<mode>): New, based on ldr_got_small.
22346 (ldr_got_small): Remove.
22347 (ldr_got_small_sidi): New.
22348 * config/aarch64/iterators.md (P): New.
22349 (PTR): Change to 'ptr_mode' in the condition.
22350
22351 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22352
22353 * config.gcc (aarch64*-*-*): Support --with-abi.
22354 (aarch64*-*-elf): Support --with-multilib-list.
22355 (aarch64*-*-linux*): Likewise.
22356 (supported_defaults): Add abi to aarch64*-*-*.
22357 * configure.ac: Mention AArch64 for --with-multilib-list.
22358 * configure: Re-generated.
22359 * config/aarch64/biarchilp32.h: New file.
22360 * config/aarch64/biarchlp64.h: New file.
22361 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
22362 (ABI_SPEC): Ditto.
22363 (MULTILIB_DEFAULTS): Ditto.
22364 (DRIVER_SELF_SPECS): Ditto.
22365 (ASM_SPEC): Update to also substitute -mabi.
22366 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
22367 file whose name depends on -mabi= and -mbig-endian.
22368 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
22369 TARGET_ILP32.
22370 (POINTER_SIZE): New define.
22371 (POINTERS_EXTEND_UNSIGNED): Ditto.
22372 (enum aarch64_abi_type): New enumeration tag.
22373 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
22374 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
22375 (TARGET_ILP32): New define.
22376 * config/aarch64/aarch64.opt (mabi): New.
22377 (aarch64_abi): New.
22378 (ilp32, lp64): New values for -mabi.
22379 * config/aarch64/t-aarch64 (comma): New define.
22380 (MULTILIB_OPTIONS): Ditto.
22381 (MULTILIB_DIRNAMES): Ditto.
22382 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
22383 * doc/invoke.texi: Document -mabi for AArch64.
22384
22385 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
22386
22387 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
22388
22389 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22390 Anton Blanchard <anton@au1.ibm.com>
22391
22392 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
22393 endianness when selecting field to splat.
22394
22395 2013-07-22 Eric Christopher <echristo@gmail.com>
22396
22397 * dwarf2out.c (die_odr_checksum): New function to use
22398 CHECKSUM_ macros and ULEB128 for DIE tag.
22399 (generate_type_signature): Use.
22400
22401 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
22402
22403 * config.gcc (sparc*-*-*): Accept leon3 processor.
22404 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
22405 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
22406 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
22407 * config/sparc/sparc.opt (enum processor_type): Add leon3.
22408 (mfix-ut699): Adjust comment.
22409 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
22410 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
22411 (CPP_CPU_SPEC): Likewise.
22412 (ASM_CPU_SPEC): Likewise.
22413 * config/sparc/sparc.c (leon3_cost): New constant.
22414 (sparc_option_override): Add leon3 support.
22415 (mem_ref): New function.
22416 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
22417 (sparc_do_work_around_errata): Look into the instruction in the delay
22418 slot and adjust accordingly. Add fix for the data cache nullify issues
22419 of the UT699. Change insertion position for the NOP.
22420 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
22421 (leon3_load): New reservation.
22422 (leon_store): Bump latency to 2.
22423 (grfpu): New automaton.
22424 (grfpu_alu): New unit.
22425 (grfpu_ds): Likewise.
22426 (leon_fp_alu): Adjust.
22427 (leon_fp_mult): Delete.
22428 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
22429 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
22430 * config/sparc/sparc.md (cpu): Add leon3.
22431 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
22432 (swapsi): Likewise.
22433 (atomic_test_and_set): Likewise.
22434 (ldstub): Likewise.
22435
22436 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
22437
22438 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
22439 default for R5900 targets.
22440 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
22441 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
22442 * config/mips/mips.c (mips_option_override): Report an error for
22443 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
22444 for -march=r5900 -mhard-float.
22445
22446 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
22447
22448 * df-problems.c (can_move_insns_across): Exit loop once we
22449 find a non-fixed, non-global register.
22450
22451 * ipa-pure-const.c (propagate_nothrow): Exit loop after
22452 setting can_throw.
22453
22454 * omega.c (omega_eliminate_red): Break after setting red_found.
22455 (omega_problem_has_red_equations): Similarly after setting found.
22456 (omega_query_variable): Similarly after setting coupled.
22457
22458 2013-07-22 Marek Polacek <polacek@redhat.com>
22459
22460 * gimplify.c: Don't include gimple.h twice.
22461
22462 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22463
22464 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
22465 instead of TARGET_THUMB1.
22466 (Pz): New constraint.
22467 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
22468 encodings.
22469 (compare_negsi_si): Likewise.
22470 (compare_addsi2_op0): Likewise.
22471 (compare_addsi2_op1): Likewise.
22472 (addsi3_carryin_<optab>): Likewise.
22473 (addsi3_carryin_alt2_<optab>): Likewise.
22474 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
22475 for arm_restrict_it.
22476 (subsi3_carryin): Likewise.
22477 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
22478 (minmax_arithsi): Disable for arm_restrict_it.
22479 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
22480 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
22481 (satsi_<SAT:code>_shift): Likewise.
22482 (arm_shiftsi3): Add alternative for 16-bit encoding.
22483 (arm32_movhf): Disable for arm_restrict_it.
22484 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
22485 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
22486
22487 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
22488
22489 * config/arm/arm.md (attribute "insn"): Delete.
22490 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
22491 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
22492 (not_shiftsi): Update for attribute change.
22493 (not_shiftsi_compare0): Likewise.
22494 (not_shiftsi_compare0_scratch): Likewise.
22495 (arm_one_cmplsi2): Likewise.
22496 (thumb1_one_cmplsi2): Likewise.
22497 (notsi_compare0): Likewise.
22498 (notsi_compare0_scratch): Likewise.
22499 (thumb1_movdi_insn): Likewise.
22500 (arm_movsi_insn): Likewise.
22501 (movhi_insn_arch4): Likewise.
22502 (movhi_bytes): Likewise.
22503 (arm_movqi_insn): Likewise.
22504 (thumb1_movqi_insn): Likewise.
22505 (arm32_movhf): Likewise.
22506 (thumb1_movhf): Likewise.
22507 (arm_movsf_soft_insn): Likewise.
22508 (thumb1_movsf_insn): Likewise.
22509 (thumb_movdf_insn): Likewise.
22510 (movsicc_insn): Likewise.
22511 (movsfcc_soft_insn): Likewise.
22512 (and_scc): Likewise.
22513 (cond_move): Likewise.
22514 (if_move_not): Likewise.
22515 (if_not_move): Likewise.
22516 (if_shift_move): Likewise.
22517 (if_move_shift): Likewise.
22518 (if_shift_shift): Likewise.
22519 (if_not_arith): Likewise.
22520 (if_arith_not): Likewise.
22521 (cond_move_not): Likewise.
22522 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
22523 (neon_mov<mode>): Likewise.
22524 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
22525 (thumb2_movsi_vfp): Likewise.
22526 (movsf_vfp): Likewise.
22527 (thumb2_movsf_vfp): Likewise.
22528 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22529 change.
22530 (cortexa7_older_only): Likewise.
22531 (cortexa7_younger): Likewise.
22532 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
22533 (1020alu_shift_op): Likewise.
22534 (1020alu_shift_reg_op): Likewise.
22535 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
22536 (alu_shift_op): Likewise.
22537 (alu_shift_reg_op): Likewise.
22538 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
22539 (11_alu_shift_op): Likewise.
22540 (11_alu_shift_reg_op): Likewise.
22541 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
22542 (9_alu_shift_reg_op): Likewise.
22543 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22544 change.
22545 (cortex_a15_alu_shift): Likewise.
22546 (cortex_a15_alu_shift_reg): Likewise.
22547 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
22548 (cortex_a5_alu_shift): Likewise.
22549 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
22550 change.
22551 (cortex_a53_alu_shift): Likewise.
22552 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22553 change.
22554 (cortex_a7_alu_reg): Likewise.
22555 (cortex_a7_alu_shift): Likewise.
22556 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22557 (cortex_a8_alu_shift): Likewise.
22558 (cortex_a8_alu_shift_reg): Likewise.
22559 (cortex_a8_mov): Likewise.
22560 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
22561 (cortex_a9_dp_shift): Likewise.
22562 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
22563 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
22564 (cortex_r4_mov): Likewise.
22565 (cortex_r4_alu_shift): Likewise.
22566 (cortex_r4_alu_shift_reg): Likewise.
22567 * config/arm/fa526.md (526_alu_op): Update for attribute change.
22568 (526_alu_shift_op): Likewise.
22569 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
22570 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
22571 (626te_alu_shift_op): Likewise.
22572 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
22573 (726te_alu_op): Likewise.
22574 (726te_alu_shift_op): Likewise.
22575 (726te_alu_shift_reg_op): Likewise.
22576 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
22577 (mp626_alu_shift_op): Likewise.
22578 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
22579 (pj4_alu_e1_conds): Likewise.
22580 (pj4_alu): Likewise.
22581 (pj4_alu_conds): Likewise.
22582 (pj4_shift): Likewise.
22583 (pj4_shift_conds): Likewise.
22584 (pj4_alu_shift): Likewise.
22585 (pj4_alu_shift_conds): Likewise.
22586
22587 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22588
22589 * config/arm/predicates.md (shiftable_operator_strict_it):
22590 New predicate.
22591 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
22592 Disable cond_exec version for arm_restrict_it.
22593 (thumb2_smaxsi3): Convert to generate cond_exec.
22594 (thumb2_sminsi3): Likewise.
22595 (thumb32_umaxsi3): Likewise.
22596 (thumb2_uminsi3): Likewise.
22597 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
22598 (thumb2_neg_abssi2): Likewise.
22599 (thumb2_mov_scc): Add alternative for 16-bit encoding.
22600 (thumb2_movsicc_insn): Adjust alternatives.
22601 (thumb2_mov_negscc): Disable for arm_restrict_it.
22602 (thumb2_mov_negscc_strict_it): New pattern.
22603 (thumb2_mov_notscc_strict_it): New pattern.
22604 (thumb2_mov_notscc): Disable for arm_restrict_it.
22605 (thumb2_ior_scc): Likewise.
22606 (thumb2_ior_scc_strict_it): New pattern.
22607 (thumb2_cond_move): Adjust for arm_restrict_it.
22608 (thumb2_cond_arith): Disable for arm_restrict_it.
22609 (thumb2_cond_arith_strict_it): New pattern.
22610 (thumb2_cond_sub): Adjust for arm_restrict_it.
22611 (thumb2_movcond): Likewise.
22612 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
22613 (thumb2_zero_extendhisi2_v6): Likewise.
22614 (thumb2_zero_extendqisi2_v6): Likewise.
22615 (orsi_notsi_si): Likewise.
22616 (orsi_not_shiftsi_si): Likewise.
22617
22618 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
22619
22620 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
22621 instruction sequence is 1 byte shorter.
22622
22623 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
22624
22625 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
22626 it is not needed after split.
22627
22628 2013-07-20 Iain Sandoe <iain@codesourcery.com>
22629
22630 PR target/51784
22631 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
22632 second label for nonlocal goto receivers. Don't output pic base labels
22633 unless we're producing PIC; mark that action unreachable().
22634 (ix86_save_reg): If the function contains a nonlocal label, save the
22635 PIC base reg.
22636 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
22637 * config/darwin.c (emitted_pic_label_num): New GTY.
22638 (update_pic_label_number_if_needed): New.
22639 (machopic_output_function_base_name): Adjust for nonlocal receiver
22640 case.
22641 (machopic_should_output_picbase_label): New.
22642 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
22643 (nonlocal_goto_receiver): New insn and split.
22644
22645 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
22646
22647 * config/aarch64/aarch64-builtins.c
22648 (aarch64_fold_builtin): Fold abs in all modes.
22649 * config/aarch64/aarch64-simd-builtins.def
22650 (abs): Enable for all modes.
22651 * config/aarch64/arm_neon.h
22652 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
22653 (vabs_f64): Add missing intrinsic.
22654
22655 2013-07-19 Ian Bolton <ian.bolton@arm.com>
22656
22657 * config/aarch64/arm_neon.h (vabs_s64): New function
22658
22659 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
22660
22661 PR target/57516
22662 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
22663 * config/avr/avr.md (adjust_len): Add `round'.
22664 * config/avr/avr-protos.h (avr_out_round): New prototype.
22665 (avr_out_plus): Add `out_label' argument.
22666 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
22667 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
22668 Handle the case where `insn' is just a pattern.
22669 (avr_out_bitop): Handle the case where `insn' is just a pattern.
22670 (avr_out_round): New function.
22671 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
22672
22673 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
22674
22675 * config/microblaze/microblaze.c (microblaze_expand_prologue):
22676 Add check for flag_stack_usage to handle -fstack-usage support
22677
22678 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
22679
22680 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
22681 interaction for new Power8 flags and VSX.
22682
22683 2013-07-18 Sriraman Tallam <tmsriram@google.com>
22684
22685 PR middle-end/57698
22686 * tree-inline.c (expand_call_inline): Emit errors during
22687 early_inlining only if optimization is not turned on.
22688
22689 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22690
22691 * passes.def: New.
22692
22693 * passes.c (init_optimization_passes): Move the construction of
22694 the pass hierarchy into a new passes.def file.
22695
22696 * Makefile.in (passes.o): Add dependency on passes.def.
22697
22698 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22699
22700 * passes.c (init_optimization_passes): Introduce macros for
22701 constructing the tree of passes (INSERT_PASSES_AFTER,
22702 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
22703 TERMINATE_PASS_LIST).
22704
22705 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
22706 Wei Mi <wmi@google.com>
22707
22708 PR rtl-optimization/57878
22709 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
22710 top.
22711 (reload_pseudo_compare_func): Check nregs first for reload
22712 pseudos.
22713
22714 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22715
22716 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
22717
22718 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
22719
22720 * read-rtl.c (validate_const_int): Once an invalid character is
22721 seen, quit the loop.
22722
22723 * gengtype.c (write_roots): Similarly once we find the "deletable"
22724 or "if_marked" option.
22725
22726 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22727
22728 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
22729 "xtab" and "sat". Move value "clz" from here to ...
22730 (attriubte "type"): ... here.
22731 (satsi_<SAT:code>): Delete "insn" attribute.
22732 (satsi_<SAT:code>_shift): Likewise.
22733 (arm_zero_extendqisi2addsi): Likewise.
22734 (arm_extendqisi2addsi): Likewise.
22735 (clzsi2): Update for attribute changes.
22736 (rbitsi2): Likewise.
22737 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
22738 attribute.
22739 (arm_usatsihi): Likewise.
22740 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22741
22742 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22743
22744 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
22745 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
22746 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
22747 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
22748 in alphabetical order.
22749 (attribute "core_cycles"): Update for attribute changes.
22750 (arm_addsi3): Likewise.
22751 (addsi3_compare0): Likewise.
22752 (addsi3_compare0_scratch): Likewise.
22753 (addsi3_compare_op1): Likewise.
22754 (addsi3_compare_op2): Likewise.
22755 (compare_addsi2_op0): Likewise.
22756 (compare_addsi2_op1): Likewise.
22757 (addsi3_carryin_shift_<optab>): Likewise.
22758 (subsi3_carryin_shift): Likewise.
22759 (rsbsi3_carryin_shift): Likewise.
22760 (arm_subsi3_insn): Likewise.
22761 (subsi3_compare0): Likewise.
22762 (subsi3_compare): Likewise.
22763 (arm_andsi3_insn): Likewise.
22764 (thumb1_andsi3_insn): Likewise.
22765 (andsi3_compare0): Likewise.
22766 (andsi3_compare0_scratch): Likewise.
22767 (zeroextractsi_compare0_scratch
22768 (andsi_not_shiftsi_si): Likewise.
22769 (iorsi3_insn): Likewise.
22770 (iorsi3_compare0): Likewise.
22771 (iorsi3_compare0_scratch): Likewise.
22772 (arm_xorsi3): Likewise.
22773 (thumb1_xorsi3_insn): Likewise.
22774 (xorsi3_compare0): Likewise.
22775 (xorsi3_compare0_scratch): Likewise.
22776 (satsi_<SAT:code>_shift): Likewise.
22777 (rrx): Likewise.
22778 (arm_shiftsi3): Likewise.
22779 (shiftsi3_compare0): Likewise.
22780 (not_shiftsi): Likewise.
22781 (not_shiftsi_compare0): Likewise.
22782 (not_shiftsi_compare0_scratch): Likewise.
22783 (arm_one_cmplsi2): Likewise.
22784 (thumb_one_complsi2): Likewise.
22785 (notsi_compare0): Likewise.
22786 (notsi_compare0_scratch): Likewise.
22787 (thumb1_zero_extendhisi2): Likewise.
22788 (arm_zero_extendhisi2): Likewise.
22789 (arm_zero_extendhisi2_v6): Likewise.
22790 (arm_zero_extendhisi2addsi): Likewise.
22791 (thumb1_zero_extendqisi2): Likewise.
22792 (thumb1_zero_extendqisi2_v6): Likewise.
22793 (arm_zero_extendqisi2): Likewise.
22794 (arm_zero_extendqisi2_v6): Likewise.
22795 (arm_zero_extendqisi2addsi): Likewise.
22796 (thumb1_extendhisi2): Likewise.
22797 (arm_extendhisi2): Likewise.
22798 (arm_extendhisi2_v6): Likewise.
22799 (arm_extendqisi): Likewise.
22800 (arm_extendqisi_v6): Likewise.
22801 (arm_extendqisi2addsi): Likewise.
22802 (thumb1_extendqisi2): Likewise.
22803 (thumb1_movdi_insn): Likewise.
22804 (arm_movsi_insn): Likewise.
22805 (movsi_compare0): Likewise.
22806 (movhi_insn_arch4): Likewise.
22807 (movhi_bytes): Likewise.
22808 (arm_movqi_insn): Likewise.
22809 (thumb1_movqi_insn): Likewise.
22810 (arm32_movhf): Likewise.
22811 (thumb1_movhf): Likewise.
22812 (arm_movsf_soft_insn): Likewise.
22813 (thumb1_movsf_insn): Likewise.
22814 (movdf_soft_insn): Likewise.
22815 (thumb_movdf_insn): Likewise.
22816 (arm_cmpsi_insn): Likewise.
22817 (cmpsi_shiftsi): Likewise.
22818 (cmpsi_shiftsi_swp): Likewise.
22819 (arm_cmpsi_negshiftsi_si): Likewise.
22820 (movsicc_insn): Likewise.
22821 (movsfcc_soft_insn): Likewise.
22822 (arith_shiftsi): Likewise.
22823 (arith_shiftsi_compare0
22824 (arith_shiftsi_compare0_scratch
22825 (sub_shiftsi): Likewise.
22826 (sub_shiftsi_compare0
22827 (sub_shiftsi_compare0_scratch
22828 (and_scc): Likewise.
22829 (cond_move): Likewise.
22830 (if_plus_move): Likewise.
22831 (if_move_plus): Likewise.
22832 (if_move_not): Likewise.
22833 (if_not_move): Likewise.
22834 (if_shift_move): Likewise.
22835 (if_move_shift): Likewise.
22836 (if_shift_shift): Likewise.
22837 (if_not_arith): Likewise.
22838 (if_arith_not): Likewise.
22839 (cond_move_not): Likewise.
22840 (thumb1_ashlsi3): Set type attribute.
22841 (thumb1_ashrsi3): Likewise.
22842 (thumb1_lshrsi3): Likewise.
22843 (thumb1_rotrsi3): Likewise.
22844 (shiftsi3_compare0_scratch): Likewise.
22845 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
22846 (neon_mov<mode>): Likewise.
22847 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
22848 attribute changes.
22849 (thumb2_movsi_insn): Likewise.
22850 (thumb2_cmpsi_neg_shiftsi): Likewise.
22851 (thumb2_extendqisi_v6): Likewise.
22852 (thumb2_zero_extendhisi2_v6): Likewise.
22853 (thumb2_zero_extendqisi2_v6): Likewise.
22854 (thumb2_shiftsi3_short): Likewise.
22855 (thumb2_addsi3_compare0_scratch): Likewise.
22856 (orsi_not_shiftsi_si): Likewise.
22857 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
22858 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
22859 changes.
22860 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
22861 (1020alu_shift_op): Likewise.
22862 (1020alu_shift_reg_op): Likewise.
22863 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
22864 (alu_shift_op): Likewise.
22865 (alu_shift_reg_op): Likewise.
22866 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
22867 (11_alu_shift_op): Likewise.
22868 (11_alu_shift_reg_op): Likewise.
22869 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
22870 (9_alu_shift_reg_op): Likewise.
22871 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22872 changes.
22873 (cortex_a15_alu_shift): Likewise.
22874 (cortex_a15_alu_shift_reg): Likewise.
22875 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
22876 changes.
22877 (cortex_a5_alu_shift): Likewise.
22878 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
22879 changes.
22880 (cortex_a53_alu_shift): Likewise.
22881 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22882 changes.
22883 (cortex_a7_alu_reg): Likewise.
22884 (cortex_a7_alu_shift): Likewise.
22885 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
22886 changes.
22887 (cortex_a8_alu_shift): Likewise.
22888 (cortex_a8_alu_shift_reg): Likewise.
22889 (cortex_a8_mov): Likewise.
22890 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
22891 (cortex_a9_dp_shift): Likewise.
22892 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
22893 changes.
22894 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
22895 changes.
22896 (cortex_r4_mov): Likewise.
22897 (cortex_r4_alu_shift): Likewise.
22898 (cortex_r4_alu_shift_reg): Likewise.
22899 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
22900 (526_alu_shift_op): Likewise.
22901 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
22902 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
22903 (626te_alu_shift_op): Likewise.
22904 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
22905 (726te_alu_op): Likewise.
22906 (726te_alu_shift_op): Likewise.
22907 (726te_alu_shift_reg_op): Likewise.
22908 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
22909 (mp626_alu_shift_op): Likewise.
22910 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
22911 (pj4_alu_e1_conds): Likewise.
22912 (pj4_alu): Likewise.
22913 (pj4_alu_conds): Likewise.
22914 (pj4_shift): Likewise.
22915 (pj4_shift_conds): Likewise.
22916 (pj4_alu_shift): Likewise.
22917 (pj4_alu_shift_conds): Likewise.
22918 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22919 changes.
22920 (cortexa7_older_only): Likewise.
22921 (cortexa7_younger): Likewise.
22922
22923 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22924
22925 * ipa-pure-const.c (generate_summary): Rename to...
22926 (pure_const_generate_summary): ... this.
22927
22928 2013-07-17 Iain Sandoe <iain@codesourcery.com>
22929
22930 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22931
22932 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
22933
22934 PR target/57909
22935 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22936 usage in HI mode.
22937
22938 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22939
22940 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22941 enabled without -march=zEC12.
22942 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22943 flags to be set.
22944
22945 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22946
22947 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22948 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22949 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22950 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22951 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22952 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22953 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22954 ISA_HAS_FP4.
22955 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22956 and ISA_HAS_NMADD3_NMSUB3.
22957 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22958 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22959 (nmsub4<mode>, nmsub3<mode>): Likewise.
22960 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22961
22962 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22963
22964 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22965 TARGET_MIPS5400 checking.
22966
22967 2013-07-16 Jakub Jelinek <jakub@redhat.com>
22968 Peter Bergner <bergner@vnet.ibm.com>
22969
22970 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22971 registers in the comment.
22972 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22973 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22974 rather than FIRST_PSEUDO_REGISTERS.
22975
22976 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
22977
22978 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22979 enable extra ISA flags with TARGET_HTM.
22980
22981 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22982
22983 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22984 Fix comment typos.
22985
22986 2013-07-15 Cong Hou <congh@google.com>
22987
22988 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22989 in compare function for sorting.
22990
22991 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
22992
22993 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22994 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22995 * config/rs6000/rs6000.opt: Add -mhtm option.
22996 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22997 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22998 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22999 __HTM__ if the HTM instructions are available.
23000 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
23001 htm_spr_reg_operand): New define_predicates.
23002 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
23003 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
23004 Include htm.md.
23005 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
23006 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
23007 HTM builtin functions.
23008 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
23009 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
23010 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
23011 (rs6000_builtin_mask_calculate): Likewise.
23012 (rs6000_option_override_internal): Likewise.
23013 (bdesc_htm): Add new HTM builtin support.
23014 (htm_spr_num): New function.
23015 (htm_spr_regno): Likewise.
23016 (rs6000_htm_spr_icode): Likewise.
23017 (htm_expand_builtin): Likewise.
23018 (htm_init_builtins): Likewise.
23019 (rs6000_expand_builtin): Add support for HTM builtin functions.
23020 (rs6000_init_builtins): Likewise.
23021 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
23022 option.
23023 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
23024 (TARGET_HTM, MASK_HTM): Define macros.
23025 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
23026 (FIXED_REGISTERS): Likewise.
23027 (CALL_USED_REGISTERS): Likewise.
23028 (CALL_REALLY_USED_REGISTERS): Likewise.
23029 (REG_ALLOC_ORDER): Likewise.
23030 (enum reg_class): Likewise.
23031 (REG_CLASS_NAMES): Likewise.
23032 (REG_CLASS_CONTENTS): Likewise.
23033 (REGISTER_NAMES): Likewise.
23034 (ADDITIONAL_REGISTER_NAMES): Likewise.
23035 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
23036 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
23037 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
23038 * config/rs6000/htm.md: New file.
23039 * config/rs6000/htmintrin.h: New file.
23040 * config/rs6000/htmxlintrin.h: New file.
23041
23042 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
23043
23044 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
23045 Define SYMBOL_TINY_GOT, update comment.
23046 * config/aarch64/aarch64.c
23047 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
23048 (aarch64_expand_mov_immediate): Likewise.
23049 (aarch64_print_operand): Likewise.
23050 (aarch64_classify_symbol): Likewise.
23051 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
23052 (ldr_got_tiny): Define.
23053
23054 2013-07-13 Tobias Grosser <tobias@grosser.es>
23055
23056 PR tree-optimization/54094
23057 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
23058 scheduling dimension for the parallelism check from the polyhedral
23059 information in the AST.
23060 * graphite-dependences.c (carries_deps): Do not assume the schedule is
23061 in 2D + 1 form.
23062
23063 2013-07-13 Jason Merrill <jason@redhat.com>
23064
23065 * print-tree.c (debug_vec_tree): Use debug_raw.
23066 (debug_raw (vec<tree, va_gc> &)): New.
23067 (debug_raw (vec<tree, va_gc> *)): New.
23068 * tree.h: Declare them.
23069
23070 2013-07-13 Bin Cheng <bin.cheng@arm.com>
23071
23072 * ifcvt.c (ifcvt_after_combine): New static variable.
23073 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
23074 for size.
23075 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
23076 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
23077 rest_of_handle_if_after_reload): Pass new argument for if_convert.
23078
23079 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
23080
23081 * config/mips/mips.c (mips_expand_call): Remove empty statement.
23082
23083 2013-07-12 Michael Matz <matz@suse.de>
23084
23085 PR middle-end/55771
23086 * convert.c (convert_to_real): Reject non-float inner types.
23087
23088 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
23089
23090 * config/aarch64/aarch64-protos.h
23091 (aarch64_simd_immediate_valid_for_move): Remove.
23092 * config/aarch64/aarch64.c (simd_immediate_info): New member.
23093 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
23094 cases.
23095 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
23096
23097 2013-07-11 Steve Ellcey <sellcey@mips.com>
23098
23099 * config/mips/mips.c (mips_conditional_register_usage): Do not
23100 use t[0-7] registers in MIPS16 mode when optimizing for size.
23101
23102 2013-07-11 Sriraman Tallam <tmsriram@google.com>
23103
23104 * config/i386/i386.c (dispatch_function_versions): Fix array
23105 indexing of function_version_info to match actual_versions.
23106
23107 2013-07-11 Teresa Johnson <tejohnson@google.com>
23108
23109 * vec.h (struct va_gc): Move release out-of-line.
23110 (va_gc::release): Call ggc_free on released vec.
23111
23112 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23113
23114 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
23115 Require GOT register as additional operand in UNSPEC.
23116 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
23117 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
23118 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
23119 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
23120 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
23121 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
23122 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
23123
23124 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
23125
23126 PR target/57631
23127 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
23128 name seen by assembler/linker rather if available.
23129
23130 2013-07-11 Andreas Schwab <schwab@suse.de>
23131
23132 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
23133
23134 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
23135
23136 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
23137
23138 2013-07-10 Joseph Myers <joseph@codesourcery.com>
23139
23140 * doc/tm.texi.in: Move hook documentation to ....
23141 * target.def: ... here.
23142
23143 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
23144 text on @hook line.
23145 * doc/tm.texi: Regenerate.
23146
23147 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
23148
23149 PR c++/57869
23150 * doc/invoke.texi: Document -Wconditionally-supported.
23151
23152 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
23153
23154 PR target/57844
23155 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
23156 of my_fp.
23157
23158 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
23159
23160 PR target/57506
23161 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
23162 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
23163 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
23164 Remove duplicate devices.
23165 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
23166 * config/avr/t-multilib: Regenerate.
23167 * config/avr/avr-tables.opt: Regenerate.
23168 * doc/avr-mmcu.texi: Regenerate.
23169
23170 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
23171
23172 PR target/56987
23173 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
23174
23175 2013-07-10 Graham Stott <graham.stott@btinternet.com>
23176
23177 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
23178 the cost of MULT when optimizing for size.
23179
23180 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23181
23182 * config/cr16/cr16-protos.h: Don't include target.h.
23183
23184 2013-07-09 Joseph Myers <joseph@codesourcery.com>
23185
23186 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
23187 adjust register size for TDmode and TFmode for VSX registers.
23188
23189 2013-07-08 Kai Tietz <ktietz@redhat.com>
23190
23191 PR target/56892
23192 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
23193 hook_bool_const_tree_true.
23194
23195 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23196
23197 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
23198 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
23199 * config/s390/s390.md: Define FPR*_REGNUM constants.
23200 Fix FPR2_REGNUM constant (18 -> 17).
23201 ("*trunc<BFP:mode><DFP_ALL:mode>2")
23202 ("*trunc<DFP_ALL:mode><BFP:mode>2")
23203 ("trunc<BFP:mode><DFP_ALL:mode>2")
23204 ("trunc<DFP_ALL:mode><BFP:mode>2")
23205 ("*extend<BFP:mode><DFP_ALL:mode>2")
23206 ("*extend<DFP_ALL:mode><BFP:mode>2")
23207 ("extend<BFP:mode><DFP_ALL:mode>2")
23208 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
23209 FPR4_REGNUM.
23210
23211 2013-07-08 Graham Stott <graham.stott@btinternet.com>
23212
23213 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
23214
23215 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23216
23217 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
23218 and cfun_fpr_bit_p to cfun_fpr_save_p.
23219 (s390_frame_area, s390_register_info, s390_frame_info)
23220 (s390_emit_prologue, s390_emit_epilogue)
23221 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
23222 register numbers.
23223 * config/s390/s390.h: Define *_REGNUM macros for floating point
23224 register numbers.
23225
23226 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
23227
23228 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
23229
23230 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
23231
23232 PR rtl-optimization/57786
23233 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
23234 and break out of the loop when it is set to false.
23235
23236 2013-07-08 Jakub Jelinek <jakub@redhat.com>
23237
23238 PR target/57819
23239 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
23240 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
23241 (const_int 63)) 0)).
23242 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
23243 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
23244 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
23245
23246 PR rtl-optimization/57829
23247 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
23248 mask bits outside of mode are just sign-extension from mode to HWI.
23249
23250 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
23251
23252 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
23253 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
23254 adjust_address instead of change_address to keep info about alignment.
23255 (emit_strmov): Remove.
23256 (emit_memmov): New function.
23257 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
23258 (expand_movmem_epilogue): Likewise and return updated rtx for
23259 destination.
23260 (expand_constant_movmem_prologue): Likewise and return updated rtx for
23261 destination and source.
23262 (decide_alignment): Refactor, handle vector_loop.
23263 (ix86_expand_movmem): Likewise.
23264 (ix86_expand_setmem): Likewise.
23265 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
23266
23267 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
23268
23269 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
23270 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
23271
23272 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
23273
23274 * config/i386/sse.md (sse_movlhps): Change alternative 3
23275 of operand 2 to "m".
23276
23277 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
23278
23279 PR target/57807
23280 * config/i386/sse.md (iptr): New mode attribute.
23281 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
23282 (<sse>_vm<plusminus_insn><mode>3): Ditto.
23283 (<sse>_vmmul<mode>3): Ditto.
23284 (<sse>_vmdiv<mode>3): Ditto.
23285 (sse_vmrcpv4sf2): Ditto.
23286 (<sse>_vmsqrt<mode>2): Ditto.
23287 (sse_vmrsqrtv4sf2): Ditto.
23288 (<sse>_vm<code><mode>3): Ditto.
23289 (avx_vmcmp<mode>3): Ditto.
23290 (<sse>_vmmaskcmp<mode>3): Ditto.
23291 (<sse>_comi): Ditto.
23292 (<sse>_ucomi): Ditto.
23293 (*xop_vmfrcz_<mode>): Ditto.
23294 (*fmai_fmadd_<mode>): Ditto.
23295 (*fmai_fmsub_<mode>): Ditto.
23296 (*fmai_fnmadd_<mode>): Ditto.
23297 (*fmai_fnmsub_<mode>): Ditto.
23298 (*fma4i_vmfmadd_<mode>): Ditto.
23299 (*fma4i_vmfmsub_<mode>): Ditto.
23300 (*fma4i_vmfnmadd_<mode>): Ditto.
23301 (*fma4i_vmfnmsub_<mode>): Ditto.
23302 (*xop_vmfrcz_<mode>): Ditto.
23303 (sse_cvtps2pi): Ditto.
23304 (sse_cvttps2pi): Ditto.
23305 (sse_cvtss2si): Ditto.
23306 (sse_cvtss2si_2): Ditto.
23307 (sse_cvtss2siq_2): Ditto.
23308 (sse_cvttss2si): Ditto.
23309 (sse_cvttss2siq): Ditto.
23310 (sse_cvtsd2si): Ditto.
23311 (sse_cvtsd2si_2): Ditto.
23312 (sse_cvtsd2siq_2): Ditto.
23313 (sse_cvttsd2si): Ditto.
23314 (sse_cvttsd2siq): Ditto.
23315 (sse_cvtsd2ss): Ditto.
23316 (sse_cvtss2sd): Ditto.
23317 (avx2_pbroadcast<mode>): Ditto.
23318 (avx2_pbroadcast<mode>_1): Ditto.
23319 (*avx_vperm_broadcast_v4sf): Ditto.
23320
23321 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
23322 (sse_movlhps): Ditto.
23323 (sse_storehps): Ditto.
23324 (sse_loadhps): Ditto.
23325 (sse_storelps): Ditto.
23326 (sse_loadlps): Ditto.
23327 (*vec_concatv4sf): Ditto.
23328 (*vec_interleave_highv2df): Ditto.
23329 (*vec_interleave_lowv2df): Ditto.
23330 (*vec_extractv2df_1_sse): Ditto.
23331 (*vec_extractv2df_0_sse): Ditto.
23332 (sse2_storelpd): Ditto.
23333 (sse2_loadlpd): Ditto.
23334 (sse2_movsd): Ditto.
23335 (*vec_concatv4si): Ditto.
23336 (vec_concatv2di): Ditto.
23337
23338 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
23339 for Intel asm dialect.
23340 (mmx_punpcklwd): Ditto.
23341 (mmx_punpckldq): Ditto.
23342
23343 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
23344 for intel assembler dialect.
23345
23346 2013-07-06 Jakub Jelinek <jakub@redhat.com>
23347
23348 PR target/29776
23349 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
23350 for BUILT_IN_C{LZ,LRSB}*.
23351 * tree.h (CASE_INT_FN): Add FN##IMAX case.
23352 * tree-vrp.c (extract_range_basic): Handle
23353 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
23354 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
23355 fall thru to code calling set_value*.
23356 * builtins.c (expand_builtin): Remove *IMAX cases.
23357 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
23358 if width is bigger than 2*HWI.
23359
23360 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
23361
23362 PR rtl-optimization/55342
23363 * lra-int.h (lra_subreg_reload_pseudos): New.
23364 * lra.c: Add undoing optional reloads to the block diagram.
23365 (lra_subreg_reload_pseudos): New.
23366 (lra_optional_reload_pseudos): Change comments.
23367 (lra): Init and clear lra_subreg_reload_pseudos. Clear
23368 lra_optional_reload_pseudos after undo transformations.
23369 * lra-assigns.c (pseudo_prefix_title): New.
23370 (lra_setup_reg_renumber): Use it.
23371 (spill_for): Ditto. Check subreg reload pseudos too.
23372 (assign_by_spills): Consider subreg reload pseudos too.
23373 * lra-constraints.c (simplify_operand_subreg): Use
23374 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
23375 (curr_insn_transform): Recognize and do optional reloads.
23376 (undo_optional_reloads): New.
23377 (lra_undo_inheritance): Call undo_optional_reloads.
23378
23379 2013-07-05 Thomas Quinot <quinot@adacore.com>
23380
23381 * tree-complex.c (expand_complex_operations_1): Fix typo.
23382
23383 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
23384
23385 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
23386 (tune_params): New member 'const vec_costs'.
23387 * config/aarch64/aarch64.c (generic_vector_cost): New.
23388 (generic_tunings): New member 'generic_vector_cost'.
23389 (aarch64_builtin_vectorization_cost): New.
23390 (aarch64_add_stmt_cost): New.
23391 (TARGET_VECTORIZE_ADD_STMT_COST): New.
23392 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
23393
23394 2013-07-03 Jakub Jelinek <jakub@redhat.com>
23395
23396 PR target/57777
23397 * config/i386/predicates.md (vsib_address_operand): Disallow
23398 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
23399
23400 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
23401
23402 PR middle-end/55030
23403 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
23404 expand_builtin_setjmp_receiver.
23405 (expand_label): Adjust, call expand_builtin_setjmp_receiver
23406 with NULL for the label parameter.
23407 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
23408 the frame-pointer. Adjust comments.
23409 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
23410 only if LABEL is non-NULL.
23411
23412 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
23413
23414 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
23415 (ARM_ABI_AAPCS64): Ditto.
23416 (arm_abi): Ditto.
23417 (ARM_DEFAULT_ABI): Ditto.
23418
23419 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23420
23421 * config/aarch64/aarch64-builtins.c
23422 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
23423 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
23424 (st1): Likewise.
23425 * config/aarch64/aarch64-simd.md
23426 (aarch64_ld1<VALL:mode>): New.
23427 (aarch64_st1<VALL:mode>): Likewise.
23428 * config/aarch64/arm_neon.h
23429 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
23430
23431 2013-07-02 Sriraman Tallam <tmsriram@google.com>
23432
23433 * config/i386/i386.c (gate_insert_vzeroupper): Check if
23434 target ISA is AVX.
23435 (ix86_option_override_internal):Turn on all -mavx target flags by
23436 default as they are dependent on AVX anyway.
23437
23438 2013-07-02 Cary Coutant <ccoutant@google.com>
23439
23440 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
23441 deterministic hash.
23442 (loc_checksum_ordered): Likewise.
23443 (hash_loc_operands): Remove inline keyword.
23444
23445 2013-07-02 Jakub Jelinek <jakub@redhat.com>
23446
23447 PR tree-optimization/57741
23448 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
23449 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
23450 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
23451 Allow REAL_CST step_exprs if flag_associative_math.
23452 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
23453
23454 2013-07-02 Ian Bolton <ian.bolton@arm.com>
23455
23456 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
23457
23458 2013-07-02 Ian Bolton <ian.bolton@arm.com>
23459
23460 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
23461
23462 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23463
23464 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
23465 encoding.
23466 (iorsi3_insn): Likewise.
23467 (arm_xorsi3): Likewise.
23468
23469 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
23470
23471 * arm.md (attribute "wtype"): Delete. Move attribute values from here
23472 to ...
23473 (attribute "type"): ... here, and prefix with "wmmx_".
23474 (attribute "core_cycles"): Update for attribute changes.
23475 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
23476 (tbcstv4hi): Likewise.
23477 (tbcstv2si): Likewise.
23478 (iwmmxt_iordi3): Likewise.
23479 (iwmmxt_xordi3): Likewise.
23480 (iwmmxt_anddi3): Likewise.
23481 (iwmmxt_nanddi3): Likewise.
23482 (iwmmxt_arm_movdi): Likewise.
23483 (iwmmxt_movsi_insn): Likewise.
23484 (mov<mode>_internal): Likewise.
23485 (and<mode>3_iwmmxt): Likewise.
23486 (ior<mode>3_iwmmxt): Likewise.
23487 (xor<mode>3_iwmmxt): Likewise.
23488 (add<mode>3_iwmmxt): Likewise.
23489 (ssaddv8qi3): Likewise.
23490 (ssaddv4hi3): Likewise.
23491 (ssaddv2si3): Likewise.
23492 (usaddv8qi3): Likewise.
23493 (usaddv4hi3): Likewise.
23494 (usaddv2si3): Likewise.
23495 (sub<mode>3_iwmmxt): Likewise.
23496 (sssubv8qi3): Likewise.
23497 (sssubv4hi3): Likewise.
23498 (sssubv2si3): Likewise.
23499 (ussubv8qi3): Likewise.
23500 (ussubv4hi3): Likewise.
23501 (ussubv2si3): Likewise.
23502 (mulv4hi3_iwmmxt): Likewise.
23503 (smulv4hi3_highpart): Likewise.
23504 (umulv4hi3_highpart): Likewise.
23505 (iwmmxt_wmacs): Likewise.
23506 (iwmmxt_wmacsz): Likewise.
23507 (iwmmxt_wmacu): Likewise.
23508 (iwmmxt_wmacuz): Likewise.
23509 (iwmmxt_clrdi): Likewise.
23510 (iwmmxt_clrv8qi): Likewise.
23511 (iwmmxt_clr4hi): Likewise.
23512 (iwmmxt_clr2si): Likewise.
23513 (iwmmxt_uavgrndv8qi3): Likewise.
23514 (iwmmxt_uavgrndv4hi3): Likewise.
23515 (iwmmxt_uavgv8qi3): Likewise.
23516 (iwmmxt_uavgv4hi3): Likewise.
23517 (iwmmxt_tinsrb): Likewise.
23518 (iwmmxt_tinsrh): Likewise.
23519 (iwmmxt_tinsrw): Likewise.
23520 (iwmmxt_textrmub): Likewise.
23521 (iwmmxt_textrmsb): Likewise.
23522 (iwmmxt_textrmuh): Likewise.
23523 (iwmmxt_textrmsh): Likewise.
23524 (iwmmxt_textrmw): Likewise.
23525 (iwmxxt_wshufh): Likewise.
23526 (eqv8qi3): Likewise.
23527 (eqv4hi3): Likewise.
23528 (eqv2si3): Likewise.
23529 (gtuv8qi3): Likewise.
23530 (gtuv4hi3): Likewise.
23531 (gtuv2si3): Likewise.
23532 (gtv8qi3): Likewise.
23533 (gtv4hi3): Likewise.
23534 (gtv2si3): Likewise.
23535 (smax<mode>3_iwmmxt): Likewise.
23536 (umax<mode>3_iwmmxt): Likewise.
23537 (smin<mode>3_iwmmxt): Likewise.
23538 (umin<mode>3_iwmmxt): Likewise.
23539 (iwmmxt_wpackhss): Likewise.
23540 (iwmmxt_wpackwss): Likewise.
23541 (iwmmxt_wpackdss): Likewise.
23542 (iwmmxt_wpackhus): Likewise.
23543 (iwmmxt_wpackwus): Likewise.
23544 (iwmmxt_wpackdus): Likewise.
23545 (iwmmxt_wunpckihb): Likewise.
23546 (iwmmxt_wunpckihh): Likewise.
23547 (iwmmxt_wunpckihw): Likewise.
23548 (iwmmxt_wunpckilb): Likewise.
23549 (iwmmxt_wunpckilh): Likewise.
23550 (iwmmxt_wunpckilw): Likewise.
23551 (iwmmxt_wunpckehub): Likewise.
23552 (iwmmxt_wunpckehuh): Likewise.
23553 (iwmmxt_wunpckehuw): Likewise.
23554 (iwmmxt_wunpckehsb): Likewise.
23555 (iwmmxt_wunpckehsh): Likewise.
23556 (iwmmxt_wunpckehsw): Likewise.
23557 (iwmmxt_wunpckelub): Likewise.
23558 (iwmmxt_wunpckeluh): Likewise.
23559 (iwmmxt_wunpckeluw): Likewise.
23560 (iwmmxt_wunpckelsb): Likewise.
23561 (iwmmxt_wunpckelsh): Likewise.
23562 (iwmmxt_wunpckelsw): Likewise.
23563 (ror<mode>3): Likewise.
23564 (ashr<mode>3_iwmmxt): Likewise.
23565 (lshr<mode>3_iwmmxt): Likewise.
23566 (ashl<mode>3_iwmmxt): Likewise.
23567 (ror<mode>3_di): Likewise.
23568 (ashr<mode>3_di): Likewise.
23569 (lshr<mode>3_di): Likewise.
23570 (ashl<mode>3_di): Likewise.
23571 (iwmmxt_wmadds): Likewise.
23572 (iwmmxt_wmaddu): Likewise.
23573 (iwmmxt_tmia): Likewise.
23574 (iwmmxt_tmiaph): Likewise.
23575 (iwmmxt_tmiabb): Likewise.
23576 (iwmmxt_tmiatb): Likewise.
23577 (iwmmxt_tmiabt): Likewise.
23578 (iwmmxt_tmiatt): Likewise.
23579 (iwmmxt_tmovmskb): Likewise.
23580 (iwmmxt_tmovmskh): Likewise.
23581 (iwmmxt_tmovmskw): Likewise.
23582 (iwmmxt_waccb): Likewise.
23583 (iwmmxt_wacch): Likewise.
23584 (iwmmxt_waccw): Likewise.
23585 (iwmmxt_waligni): Likewise.
23586 (iwmmxt_walignr): Likewise.
23587 (iwmmxt_walignr0): Likewise.
23588 (iwmmxt_walignr1): Likewise.
23589 (iwmmxt_walignr2): Likewise.
23590 (iwmmxt_walignr3): Likewise.
23591 (iwmmxt_wsadb): Likewise.
23592 (iwmmxt_wsadh): Likewise.
23593 (iwmmxt_wsadbz): Likewise.
23594 (iwmmxt_wsadhz): Likewise.
23595 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
23596 (iwmmxt_wabsdiffb): Likewise.
23597 (iwmmxt_wabsdiffh): Likewise.
23598 (iwmmxt_wabsdiffw): Likewise.
23599 (iwmmxt_waddsubhx): Likewise
23600 (iwmmxt_wsubaddhx): Likewise.
23601 (addc<mode>3): Likewise.
23602 (iwmmxt_avg4): Likewise.
23603 (iwmmxt_avg4r): Likewise.
23604 (iwmmxt_wmaddsx): Likewise.
23605 (iwmmxt_wmaddux): Likewise.
23606 (iwmmxt_wmaddsn): Likewise.
23607 (iwmmxt_wmaddun): Likewise.
23608 (iwmmxt_wmulwsm): Likewise.
23609 (iwmmxt_wmulwum): Likewise.
23610 (iwmmxt_wmulsmr): Likewise.
23611 (iwmmxt_wmulumr): Likewise.
23612 (iwmmxt_wmulwsmr): Likewise.
23613 (iwmmxt_wmulwumr): Likewise.
23614 (iwmmxt_wmulwl): Likewise.
23615 (iwmmxt_wqmulm): Likewise.
23616 (iwmmxt_wqmulwm): Likewise.
23617 (iwmmxt_wqmulmr): Likewise.
23618 (iwmmxt_wqmulwmr): Likewise.
23619 (iwmmxt_waddbhusm): Likewise.
23620 (iwmmxt_waddbhusl): Likewise.
23621 (iwmmxt_wqmiabb): Likewise.
23622 (iwmmxt_wqmiabt): Likewise.
23623 (iwmmxt_wqmiatb): Likewise.
23624 (iwmmxt_wqmiatt): Likewise.
23625 (iwmmxt_wqmiabbn): Likewise.
23626 (iwmmxt_wqmiabtn): Likewise.
23627 (iwmmxt_wqmiatbn): Likewise.
23628 (iwmmxt_wqmiattn): Likewise.
23629 (iwmmxt_wmiabb): Likewise.
23630 (iwmmxt_wmiabt): Likewise.
23631 (iwmmxt_wmiatb): Likewise.
23632 (iwmmxt_wmiatt): Likewise.
23633 (iwmmxt_wmiabbn): Likewise.
23634 (iwmmxt_wmiabtn): Likewise.
23635 (iwmmxt_wmiatbn): Likewise.
23636 (iwmmxt_wmiattn): Likewise.
23637 (iwmmxt_wmiawbb): Likewise.
23638 (iwmmxt_wmiawbt): Likewise.
23639 (iwmmxt_wmiawtb): Likewise.
23640 (iwmmxt_wmiawtt): Likewise.
23641 (iwmmxt_wmiawbbn): Likewise.
23642 (iwmmxt_wmiawbtn): Likewise.
23643 (iwmmxt_wmiawtbn): Likewise.
23644 (iwmmxt_wmiawttn): Likewise.
23645 (iwmmxt_wmerge): Likewise.
23646 (iwmmxt_tandc<mode>3): Likewise.
23647 (iwmmxt_torc<mode>3): Likewise.
23648 (iwmmxt_torvsc<mode>3): Likewise.
23649 (iwmmxt_textrc<mode>3): Likewise.
23650 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
23651 (wmmxt_pack): Likewise.
23652 (wmmxt_mult_c1): Likewise.
23653 (wmmxt_mult_c2): Likewise.
23654 (wmmxt_alu_c1): Likewise.
23655 (wmmxt_alu_c2): Likewise.
23656 (wmmxt_alu_c3): Likewise.
23657 (wmmxt_transfer_c1): Likewise.
23658 (wmmxt_transfer_c2): Likewise.
23659 (wmmxt_transfer_c3): Likewise.
23660 (marvell_f_iwmmxt_wstr): Likewise.
23661 (marvell_f_iwmmxt_wldr): Likewise.
23662
23663 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
23664
23665 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
23666
23667 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23668
23669 Revert:
23670 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23671 * lra-constraints.c (need_for_split_p): Check call used hard regs
23672 living through calls.
23673
23674 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
23675 call used regs for call insn.
23676
23677 2013-06-28 Jakub Jelinek <jakub@redhat.com>
23678
23679 PR target/57736
23680 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
23681 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
23682
23683 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
23684
23685 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
23686
23687 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23688
23689 * lra-constraints.c (need_for_split_p): Check call used hard regs
23690 living through calls.
23691
23692 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
23693
23694 PR target/57744
23695 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
23696 to tie with any other modes. Eliminate Altivec vector mode tests,
23697 since these are a subset of ALTIVEC or VSX vector modes. Simplify
23698 code, to return 0 if testing MODE2 for a condition, if we've
23699 already tested MODE1 for the same condition.
23700
23701 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23702
23703 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
23704 layout.
23705
23706 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23707
23708 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
23709 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
23710
23711 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23712
23713 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
23714 Define.
23715 (aarch64_symbolic_constant_p): Remove.
23716 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
23717 static. Fix line length and white space.
23718 (aarch64_symbolic_constant_p): Remove.
23719 * config/aarch64/predicates.md (aarch64_valid_symref):
23720 Use aarch64_classify_symbol_expression.
23721
23722 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23723
23724 * config/arm/constraints.md (Ts): New constraint.
23725 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
23726 16-bit encodings.
23727 (compare_scc): Use "Ts" constraint for operand 0.
23728 (ior_scc_scc): Likewise.
23729 (and_scc_scc): Likewise.
23730 (and_scc_scc_nodom): Likewise.
23731 (ior_scc_scc_cmp): Likewise for operand 7.
23732 (and_scc_scc_cmp): Likewise.
23733 * config/arm/thumb2.md (thumb2_movsi_insn):
23734 Add alternatives for 16-bit encodings.
23735 (thumb2_movhi_insn): Likewise.
23736 (thumb2_movsicc_insn): Likewise.
23737 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
23738 (thumb2_negscc): Use "Ts" constraint.
23739 Move mvn instruction outside cond_exec block.
23740 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
23741 for 16-bit encodings.
23742
23743 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23744
23745 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
23746 encoding.
23747 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
23748 (mulsi3subsi): Likewise.
23749 (mulsidi3adddi): Likewise.
23750 (mulsidi3_v6): Likewise.
23751 (umulsidi3_v6): Likewise.
23752 (umulsidi3adddi_v6): Likewise.
23753 (smulsi3_highpart_v6): Likewise.
23754 (umulsi3_highpart_v6): Likewise.
23755 (mulhisi3tb): Likewise.
23756 (mulhisi3bt): Likewise.
23757 (mulhisi3tt): Likewise.
23758 (maddhisi4): Likewise.
23759 (maddhisi4tb): Likewise.
23760 (maddhisi4tt): Likewise.
23761 (maddhidi4): Likewise.
23762 (maddhidi4tb): Likewise.
23763 (maddhidi4tt): Likewise.
23764 (zeroextractsi_compare0_scratch): Likewise.
23765 (insv_zero): Likewise.
23766 (insv_t2): Likewise.
23767 (anddi_notzesidi_di): Likewise.
23768 (anddi_notsesidi_di): Likewise.
23769 (andsi_notsi_si): Likewise.
23770 (iordi_zesidi_di): Likewise.
23771 (xordi_zesidi_di): Likewise.
23772 (andsi_iorsi3_notsi): Likewise.
23773 (smax_0): Likewise.
23774 (smax_m1): Likewise.
23775 (smin_0): Likewise.
23776 (not_shiftsi): Likewise.
23777 (unaligned_loadsi): Likewise.
23778 (unaligned_loadhis): Likewise.
23779 (unaligned_loadhiu): Likewise.
23780 (unaligned_storesi): Likewise.
23781 (unaligned_storehi): Likewise.
23782 (extv_reg): Likewise.
23783 (extzv_t2): Likewise.
23784 (divsi3): Likewise.
23785 (udivsi3): Likewise.
23786 (arm_zero_extendhisi2addsi): Likewise.
23787 (arm_zero_extendqisi2addsi): Likewise.
23788 (compareqi_eq0): Likewise.
23789 (arm_extendhisi2_v6): Likewise.
23790 (arm_extendqisi2addsi): Likewise.
23791 (arm_movt): Likewise.
23792 (thumb2_ldrd): Likewise.
23793 (thumb2_ldrd_base): Likewise.
23794 (thumb2_ldrd_base_neg): Likewise.
23795 (thumb2_strd): Likewise.
23796 (thumb2_strd_base): Likewise.
23797 (thumb2_strd_base_neg): Likewise.
23798 (arm_negsi2): Add alternative for 16-bit encoding.
23799 (arm_one_cmplsi2): Likewise.
23800
23801 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23802
23803 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
23804 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
23805 (movdfcc): Likewise.
23806 * config/arm/vfp.md (*thumb2_movsf_vfp):
23807 Disable predication for arm_restrict_it.
23808 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
23809 (*thumb2_movdfcc_vfp): Likewise.
23810 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
23811 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
23812 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
23813 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
23814 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
23815 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
23816 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
23817 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
23818 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
23819 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
23820 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
23821 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
23822 Disable predication for arm_restrict_it.
23823
23824 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
23825
23826 * config/i386/bmiintrin.h (_bextr_u32): New.
23827 (_bextr_u64): Ditto.
23828
23829 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
23830
23831 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
23832 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
23833 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
23834 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
23835 * config/mips/n32-elf.h: ...this new file.
23836
23837 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
23838
23839 PR target/57224
23840 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
23841 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
23842
23843 2013-06-27 Catherine Moore <clm@codesourcery.com>
23844
23845 * config/mips/mips-tables.opt: Regenerate.
23846 * config/mips/mips-cpus.def: Add m14ke and m14kec.
23847 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
23848 * doc/invoke.texi: Add -m14kc.
23849
23850 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23851
23852 PR target/57623
23853 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
23854 constraints of operand 1 and 2.
23855
23856 PR target/57623
23857 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
23858 to match RTL canonicalization. Swap predicates and
23859 constraints of operand 1 and 2.
23860
23861 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
23862
23863 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
23864 Process OP_INOUT regs for splitting too.
23865
23866 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23867
23868 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
23869 decl before the loop, initialize to NULL.
23870 (vectorizable_load): Initialize ptr_incr to NULL.
23871
23872 2013-06-27 Martin Jambor <mjambor@suse.cz>
23873
23874 PR lto/57208
23875 * ipa-ref.h (ipa_maybe_record_reference): Declare.
23876 * ipa-ref.c (ipa_maybe_record_reference): New function.
23877 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
23878 * ipa-cp.c (create_specialized_node): Record potential references from
23879 aggvals.
23880 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
23881
23882 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23883
23884 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
23885 parameter 'mode' of type 'enum machine_mode mode'; change to pass
23886 'mode' to force_reg.
23887 (aarch64_add_offset): Update calls to aarch64_force_temporary.
23888 (aarch64_expand_mov_immediate): Likewise.
23889
23890 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23891
23892 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
23893 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23894
23895 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23896
23897 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
23898 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23899 (struct machine_function): Add tbegin_p.
23900 (s390_canonicalize_comparison): Fold CC mode compares to
23901 conditional jump if possible.
23902 (s390_emit_jump): Return the emitted jump.
23903 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23904 Handle CCRAWmode compares.
23905 (s390_option_override): Default to -mhtm if available.
23906 (s390_reg_clobbered_rtx): Handle floating point regs as well.
23907 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
23908 FPRs instead of df_regs_ever_live_p.
23909 (s390_optimize_nonescaping_tx): New function.
23910 (s390_init_frame_layout): Extend clobbered_regs array to cover
23911 FPRs as well.
23912 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23913 (s390_expand_tbegin): New function.
23914 (enum s390_builtin): New enum definition.
23915 (code_for_builtin): New array definition.
23916 (s390_init_builtins): New function.
23917 (s390_expand_builtin): New function.
23918 (TARGET_INIT_BUILTINS): Define.
23919 (TARGET_EXPAND_BUILTIN): Define.
23920 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23921 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23922 (s390_alc_comparison): Likewise.
23923 * config/s390/s390-modes.def: Add CCRAWmode.
23924 * config/s390/s390.h (processor_flags): Add PF_TX.
23925 (TARGET_CPU_HTM): Define macro.
23926 (TARGET_HTM): Define macro.
23927 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23928 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23929 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23930 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23931 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23932 (TBEGIN_MASK, TBEGINC_MASK): New constants.
23933 ("*cc_to_int"): Move up.
23934 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23935 constants other than 0.
23936 ("*ccraw_to_int"): New insn and splitter definition.
23937 ("tbegin", "tbegin_nofloat", "tbegin_retry")
23938 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23939 ("tx_assist"): New expander.
23940 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23941 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23942 * config/s390/s390.opt: Add -mhtm option.
23943 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23944 * config/s390/htmxlintrin.h: New file.
23945 * config/s390/htmintrin.h: New file.
23946 * config/s390/s390intrin.h: New file.
23947 * doc/extend.texi: Document htm builtins.
23948 * config.gcc: Add the new header files to extra_headers.
23949
23950 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
23951
23952 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23953 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23954
23955 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
23956 Pat Haugen <pthaugen@us.ibm.com>
23957 Peter Bergner <bergner@vnet.ibm.com>
23958
23959 * config/rs6000/power8.md: New.
23960 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23961 setting for power8 entry.
23962 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23963 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23964 test for Power4/Power5 only.
23965 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23966 support.
23967 (force_new_group): Adjust comment.
23968 * config/rs6000/rs6000.md: Include power8.md.
23969
23970 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
23971
23972 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23973 * config/arm/arm-protos.h (arm_max_conditional_execute): New
23974 declaration.
23975 (tune_params): Update comment.
23976 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23977 (arm_max_conditional_execute): New function.
23978 (thumb2_final_prescan_insn): Use max_insn_skipped and
23979 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23980
23981 2013-06-25 Jakub Jelinek <jakub@redhat.com>
23982
23983 PR tree-optimization/57705
23984 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23985 SSA_NAME step, provided that it is not defined inside the loop.
23986 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23987 (get_initial_def_for_induction): Handle SSA_NAME IV step.
23988
23989 2013-06-25 Martin Jambor <mjambor@suse.cz>
23990
23991 PR middle-end/57670
23992 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23993 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23994 calls in the dump.
23995 (ipa_note_param_call): Initialize member_ptr flag.
23996 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23997 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23998 (ipa_write_indirect_edge_info): Stream member_ptr flag.
23999 (ipa_read_indirect_edge_info): Likewise.
24000
24001 2013-06-25 Richard Biener <rguenther@suse.de>
24002
24003 PR middle-end/56977
24004 * passes.c (init_optimization_passes): Move pass_fold_builtins
24005 and pass_dce earlier with -Og.
24006
24007 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
24008
24009 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
24010 <BIT_FIELD_REF>: Remove trailing TAB.
24011 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
24012 remove blank line.
24013
24014 2013-06-24 Martin Jambor <mjambor@suse.cz>
24015
24016 PR tree-optimization/57358
24017 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
24018 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
24019 (ipa_analyze_params_uses): Generate pessimistic info when true.
24020
24021 2013-06-24 Martin Jambor <mjambor@suse.cz>
24022
24023 PR tree-optimization/57539
24024 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
24025 global.inlined_to of the new node to it. All callers changed.
24026 * ipa-inline-transform.c (clone_inlined_nodes): New variable
24027 inlining_into, pass it to cgraph_clone_node.
24028 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
24029 ipa_free_edge_args_substructures.
24030 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
24031 rdesc linked list. Do not assert rdesc edges have inlined caller.
24032 Assert we have found an rdesc in the rdesc list.
24033
24034 2013-06-24 Richard Biener <rguenther@suse.de>
24035
24036 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
24037 (pointer_set_lookup): Declare.
24038 (class pointer_map): New template class implementing a
24039 generic pointer to T map.
24040 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
24041 pointer_map<T>::contains, pointer_map<T>::insert,
24042 pointer_map<T>::traverse): New functions.
24043 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
24044 (pointer_set_lookup): New function.
24045 (pointer_set_contains): Use pointer_set_lookup.
24046 (pointer_set_insert): Likewise.
24047 (insert_aux): Remove.
24048 (struct pointer_map_t): Embed a pointer_set_t.
24049 (pointer_map_create): Adjust.
24050 (pointer_map_destroy): Likewise.
24051 (pointer_map_contains): Likewise.
24052 (pointer_map_insert): Likewise.
24053 (pointer_map_traverse): Likewise.
24054 * tree-streamer.h (struct streamer_tree_cache_d): Use a
24055 pointer_map<unsigned> instead of a pointer_map_t.
24056 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
24057 (streamer_tree_cache_lookup): Likewise.
24058 (streamer_tree_cache_create): Likewise.
24059 (streamer_tree_cache_delete): Likewise.
24060 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
24061 pointer_map<unsigned> instead of a pointer_map_t.
24062 (lto_init_tree_ref_encoder): Adjust.
24063 (lto_destroy_tree_ref_encoder): Likewise.
24064 * lto-section-out.c (lto_output_decl_index): Likewise.
24065 (lto_record_function_out_decl_state): Likewise.
24066 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
24067
24068 2013-06-24 Richard Biener <rguenther@suse.de>
24069
24070 PR tree-optimization/57488
24071 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
24072
24073 2013-06-24 Alan Modra <amodra@gmail.com>
24074
24075 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
24076 (gen_easy_altivec_constant): Likewise.
24077 * config/rs6000/predicates.md (easy_vector_constant_add_self,
24078 easy_vector_constant_msb): Likewise.
24079
24080 2013-06-23 Jakub Jelinek <jakub@redhat.com>
24081
24082 PR target/57688
24083 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
24084 add missing return true.
24085
24086 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
24087
24088 PR target/52483
24089 * config/sh/predicates.md (general_extend_operand): Invoke
24090 general_movsrc_operand for memory operands.
24091 (general_movsrc_operand): Allow reg+reg addressing, do not use
24092 general_operand for memory operands.
24093
24094 2013-06-23 Sriraman Tallam <tmsriram@google.com>
24095
24096 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
24097 when current target options does not apply.
24098 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
24099 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
24100 * config/i386/bmiintrin.h: Pass appropriate target
24101 attributes to header.
24102 * config/i386/mmintrin.h: Ditto.
24103 * config/i386/nmmintrin.h: Ditto.
24104 * config/i386/avx2intrin.h: Ditto.
24105 * config/i386/fxsrintrin.h: Ditto.
24106 * config/i386/tbmintrin.h: Ditto.
24107 * config/i386/xsaveintrin.h: Ditto.
24108 * config/i386/f16cintrin.h: Ditto.
24109 * config/i386/xtestintrin.h: Ditto.
24110 * config/i386/xsaveoptintrin.h: Ditto.
24111 * config/i386/bmi2intrin.h: Ditto.
24112 * config/i386/lzcntintrin.h: Ditto.
24113 * config/i386/smmintrin.h: Ditto.
24114 * config/i386/wmmintrin.h: Ditto.
24115 * config/i386/x86intrin.h: Remove all header include guards.
24116 * config/i386/prfchwintrin.h: Ditto.
24117 * config/i386/pmmintrin.h: Ditto.
24118 * config/i386/tmmintrin.h: Ditto.
24119 * config/i386/xmmintrin.h: Ditto.
24120 * config/i386/popcntintrin.h: Ditto.
24121 * config/i386/rdseedintrin.h: Ditto.
24122 * config/i386/ammintrin.h: Ditto.
24123 * config/i386/emmintrin.h: Ditto.
24124 * config/i386/immintrin.h: Remove all header include guards.
24125 * config/i386/fma4intrin.h: Ditto.
24126 * config/i386/lwpintrin.h: Ditto.
24127 * config/i386/xopintrin.h: Ditto.
24128 * config/i386/ia32intrin.h: Ditto.
24129 * config/i386/avxintrin.h: Ditto.
24130 * config/i386/rtmintrin.h: Ditto.
24131 * config/i386/fmaintrin.h: Ditto.
24132 * config/i386/mm3dnow.h: Ditto.
24133
24134 2013-06-22 Sriraman Tallam <tmsriram@google.com>
24135
24136 * common/config/i386/i386-common.c: Handle LZCNT.
24137
24138 2013-06-22 Andi Kleen <ak@linux.intel.com>
24139
24140 * doc/extend.texi: Use __atomic_store_n instead of
24141 __atomic_store in HLE example.
24142
24143 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
24144
24145 * config/sh/sh.c: Remove <cstdlib> workaround.
24146
24147 2013-06-21 Andi Kleen <ak@linux.intel.com>
24148
24149 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
24150
24151 2013-06-21 Andi Kleen <ak@linux.intel.com>
24152
24153 * doc/extend.texi: Document that __atomic_clear and
24154 __atomic_test_and_set should only be used with bool.
24155
24156 2013-06-20 Jan Hubicka <jh@suse.cz>
24157
24158 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
24159 types_same_for_odr.
24160 * tree.c (decls_same_for_odr): New function.
24161 (same_for_edr): New function.
24162 (types_same_for_odr): New function.
24163 (get_binfo_at_offset): Use it.
24164 * tree.h (types_same_for_odr): Declare.
24165
24166 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
24167 Jason Merrill <jason@redhat.com>
24168
24169 * system.h: Include <cstdlib> as well as <stdlib.h>.
24170
24171 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
24172
24173 PR target/57655
24174 * config/i386/i386.c (construct_container): Report error if
24175 long double is used with disabled x87 float returns.
24176
24177 2013-06-20 Jan Hubicka <jh@suse.cz>
24178
24179 * lto-cgraph.c (input_symtab): Do not set cgraph state.
24180
24181 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
24182
24183 PR rtl-optimization/57425
24184 PR rtl-optimization/57569
24185 * alias.c (write_dependence_p): Remove parameters mem_mode and
24186 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
24187 Changed all callers.
24188 (canon_anti_dependence): Get comments and semantics in sync.
24189 Add parameter mem_canonicalized. Changed all callers.
24190 * rtl.h (canon_anti_dependence): Update prototype.
24191
24192 2013-06-20 Richard Biener <rguenther@suse.de>
24193
24194 * data-streamer-in.c (streamer_read_uhwi): Optimize single
24195 byte case, inline streamer_read_uchar and defer section
24196 overrun check.
24197
24198 2013-06-20 Richard Biener <rguenther@suse.de>
24199
24200 PR tree-optimization/57584
24201 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
24202 SSA names into the expanded expression that take part in
24203 abnormal coalescing.
24204
24205 2013-06-19 Sharad Singhai <singhai@google.com>
24206
24207 * gcov.c (print_usage): Handle new option.
24208 (process_args): Ditto.
24209 (get_gcov_intermediate_filename): New function.
24210 (output_intermediate_file): New function.
24211 (output_gcov_file): New function
24212 (generate_results): Handle new option.
24213 (release_function): Relase demangled name.
24214 (read_graph_file): Handle demangled name.
24215 (output_lines): Ditto.
24216 * doc/gcov.texi: Document gcov intermediate format.
24217
24218 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
24219
24220 PR bootstrap/57604
24221 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
24222 (lra_emit_add): Use the functions. Add comment about Y as an
24223 address segment.
24224
24225 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
24226
24227 PR driver/57652
24228 * collect2.c (collect_atexit): New.
24229 (collect_exit): Delete.
24230 (main): Register collect_atexit with atexit.
24231 (collect_wait): Change collect_exit to exit.
24232 (do_wait): Same.
24233 * collect2.h (collect_exit): Delete.
24234 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
24235
24236 2013-06-19 Wei Mi <wmi@google.com>
24237
24238 PR rtl-optimization/57518
24239 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
24240 if regno is used in paradoxical subreg.
24241 (update_equiv_regs): Check pdx_subregs[regno] before
24242 set a reg to be equivalent with a mem.
24243
24244 2013-06-19 Matthias Klose <doko@ubuntu.com>
24245
24246 PR driver/57651
24247 * file-find.h (find_a_file): Add a mode parameter.
24248 * file-find.c (find_a_file): Likewise.
24249 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
24250 with X_OK for the executables.
24251 * collect2.c (main): Call find_a_file with X_OK.
24252
24253 2013-06-19 Steve Ellcey <sellcey@mips.com>
24254
24255 PR target/56942
24256 * config/mips/mips.md (casesi_internal_mips16_<mode>):
24257 Use NEXT_INSN instead of next_real_insn.
24258
24259 2013-06-19 Jan Hubicka <jh@suse.cz>
24260
24261 * cgraph.h (const_value_known_p): Replace by ...
24262 (ctor_for_folding): .. this one.
24263 * cgraphunit.c (process_function_and_variable_attributes): Use it.
24264 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
24265 * expr.c (expand_expr_real_1): Likewise.
24266 (string_constant): Likewise.
24267 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
24268 * ipa.c (process_references): Likewise.
24269 (symtab_remove_unreachable_nodes): Likewise.
24270 * ipa-inline-analysis.c (param_change_prob): Likewise.
24271 * gimple-fold.c (canonicalize_constructor_val): Likewise.
24272 (get_base_constructor): Likwise.
24273 * varpool.c (varpool_remove_node): Likewise.
24274 (varpool_remove_initializer): LIkewise.
24275 (dump_varpool_node): LIkwise.
24276 (const_value_known_p): Rewrite to ...
24277 (ctor_for_folding): ... this one.
24278
24279 2013-06-19 Jakub Jelinek <jakub@redhat.com>
24280
24281 PR driver/57651
24282 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
24283 PERSONALITY in $PATH derived prefixes.
24284
24285 2013-06-19 Jeff Law <law@redhat.com>
24286
24287 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
24288 in comment.
24289
24290 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
24291 (simplify_bitwise_binary): Use it to simpify certain binary ops on
24292 booleans.
24293
24294 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
24295
24296 * config/arm/vfp.md: Move VFP instruction classification documentation
24297 to ...
24298 * config/arm/arm.md: ... here. Update instruction classification
24299 documentation.
24300
24301 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
24302
24303 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
24304 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
24305 pattern. Use more efficient sequences on ARMv5 and Thumb2.
24306
24307 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
24308
24309 PR target/57609
24310 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24311 with NEXT_INSN. Use tablejump_p to check for jump table data
24312 insns.
24313
24314 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
24315
24316 PR c++/56544
24317 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
24318 that now in C++ the value is correct per the C++ standards.
24319
24320 2013-06-19 Richard Biener <rguenther@suse.de>
24321
24322 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
24323 for global context.
24324
24325 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24326
24327 Revert:
24328 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24329
24330 PR target/57609
24331 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24332 with next_active_insn.
24333
24334 2013-06-18 Sriraman Tallam <tmsriram@google.com>
24335
24336 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
24337 functions are inlined during failures to flag an error.
24338 * tree-inline.c (expand_call_inline): Allow the error to be flagged
24339 in early inline pass.
24340
24341 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
24342
24343 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
24344 in comments.
24345
24346 2013-06-18 Julian Brown <julian@codesourcery.com>
24347
24348 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
24349 Permit virtual register pre-reload if !strict.
24350 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
24351 change.
24352 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
24353 prototype.
24354 * config/arm/neon.md (movmisalign<mode>): Use
24355 neon_perm_struct_or_reg_operand instead of
24356 neon_struct_or_register_operand.
24357 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
24358 neon_permissive_struct_operand instead of neon_struct_operand.
24359 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
24360 neon_vector_mem_operand.
24361 * config/arm/predicates.md (neon_struct_operand): Adjust call to
24362 neon_vector_mem_operand.
24363 (neon_permissive_struct_operand): New.
24364 (neon_struct_or_register_operand): Rename to...
24365 (neon_perm_struct_or_reg_operand): This. Adjust call to
24366 neon_vector_mem_operand.
24367
24368 2013-06-18 Richard Biener <rguenther@suse.de>
24369
24370 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
24371 * lto-streamer.h: Include pointer-set.h.
24372 (struct lto_decl_slot): Remove.
24373 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
24374 Remove next_index entry.
24375 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
24376 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
24377 (lto_init_tree_ref_encoder): Adjust.
24378 (lto_destroy_tree_ref_encoder): Likewise.
24379 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
24380 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
24381 (lto_output_decl_index): Adjust.
24382 (lto_new_out_decl_state): Likewise.
24383 (lto_record_function_out_decl_state): Likewise.
24384 * lto-streamer-out.c (copy_function): Likewise.
24385
24386 2013-06-18 Richard Biener <rguenther@suse.de>
24387
24388 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
24389 * cgraphunit.c: Include cfgloop.h.
24390 (init_lowered_empty_function): Initialize the loop tree.
24391 (assemble_thunk): Insert new BBs into loops.
24392
24393 2013-06-18 Richard Biener <rguenther@suse.de>
24394
24395 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
24396 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
24397 the map from cache entry to cache index optional.
24398 (streamer_tree_cache_replace_tree): Adjust accordingly.
24399 (streamer_tree_cache_append): Likewise.
24400 (streamer_tree_cache_delete): Likewise.
24401 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
24402 streamer cache map from cache entry to cache index.
24403 * lto-streamer-out.c (create_output_block): Adjust.
24404
24405 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
24406
24407 * config/arm/arm.md (attribute "insn"): Move multiplication and
24408 division attributes to...
24409 (attribute "type"): ... here. Remove mult.
24410 (attribute "mul32"): New attribute.
24411 (attribute "mul64"): Add umaal.
24412 (*arm_mulsi3): Update attributes.
24413 (*arm_mulsi3_v6): Likewise.
24414 (*thumb_mulsi3): Likewise.
24415 (*thumb_mulsi3_v6): Likewise.
24416 (*mulsi3_compare0): Likewise.
24417 (*mulsi3_compare0_v6): Likewise.
24418 (*mulsi_compare0_scratch): Likewise.
24419 (*mulsi_compare0_scratch_v6): Likewise.
24420 (*mulsi3addsi): Likewise.
24421 (*mulsi3addsi_v6): Likewise.
24422 (*mulsi3addsi_compare0): Likewise.
24423 (*mulsi3addsi_compare0_v6): Likewise.
24424 (*mulsi3addsi_compare0_scratch): Likewise.
24425 (*mulsi3addsi_compare0_scratch_v6): Likewise.
24426 (*mulsi3subsi): Likewise.
24427 (*mulsidi3adddi): Likewise.
24428 (*mulsi3addsi_v6): Likewise.
24429 (*mulsidi3adddi_v6): Likewise.
24430 (*mulsidi3_nov6): Likewise.
24431 (*mulsidi3_v6): Likewise.
24432 (*umulsidi3_nov6): Likewise.
24433 (*umulsidi3_v6): Likewise.
24434 (*umulsidi3adddi): Likewise.
24435 (*umulsidi3adddi_v6): Likewise.
24436 (*smulsi3_highpart_nov6): Likewise.
24437 (*smulsi3_highpart_v6): Likewise.
24438 (*umulsi3_highpart_nov6): Likewise.
24439 (*umulsi3_highpart_v6): Likewise.
24440 (mulhisi3): Likewise.
24441 (*mulhisi3tb): Likewise.
24442 (*mulhisi3bt): Likewise.
24443 (*mulhisi3tt): Likewise.
24444 (maddhisi4): Likewise.
24445 (*maddhisi4tb): Likewise.
24446 (*maddhisi4tt): Likewise.
24447 (maddhidi4): Likewise.
24448 (*maddhidi4tb): Likewise.
24449 (*maddhidi4tt): Likewise.
24450 (divsi3): Likewise.
24451 (udivsi3): Likewise.
24452 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
24453 (thumb2_mulsi_short_compare0): Likewise.
24454 (thumb2_mulsi_short_compare0_scratch): Likewise.
24455 * config/arm/arm1020e.md (1020mult1): Update attribute change.
24456 (1020mult2): Likewise.
24457 (1020mult3): Likewise.
24458 (1020mult4): Likewise.
24459 (1020mult5): Likewise.
24460 (1020mult6): Likewise.
24461 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
24462 change.
24463 (cortex_a15_mult64): Likewise.
24464 (cortex_a15_sdiv): Likewise.
24465 (cortex_a15_udiv): Likewise.
24466 * config/arm/arm1026ejs.md (mult1): Update attribute change.
24467 (mult2): Likewise.
24468 (mult3): Likewise.
24469 (mult4): Likewise.
24470 (mult5): Likewise.
24471 (mult6): Likewise.
24472 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
24473 (pj4_ir_div): Likewise.
24474 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
24475 (11_mult2): Likewise.
24476 (11_mult3): Likewise.
24477 (11_mult4): Likewise.
24478 (11_mult5): Likewise.
24479 (11_mult6): Likewise.
24480 (11_mult7): Likewise.
24481 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
24482 (cortex_a8_mla): Likewise.
24483 (cortex_a8_mull): Likewise.
24484 (cortex_a8_smulwy): Likewise.
24485 (cortex_a8_smlald): Likewise.
24486 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
24487 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
24488 (cortex_r4_mul_3): Likewise.
24489 (cortex_r4_mla_4): Likewise.
24490 (cortex_r4_mla_3): Likewise.
24491 (cortex_r4_smlald): Likewise.
24492 (cortex_r4_mull): Likewise.
24493 (cortex_r4_sdiv): Likewise.
24494 (cortex_r4_udiv): Likewise.
24495 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
24496 (cortex_a7_idiv): Likewise.
24497 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
24498 (9_mult2): Likewise.
24499 (9_mult3): Likewise.
24500 (9_mult4): Likewise.
24501 (9_mult5): Likewise.
24502 (9_mult6): Likewise.
24503 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
24504 (cortex_a53_sdiv): Likewise.
24505 (cortex_a53_udiv): Likewise.
24506 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
24507 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
24508 (mp626_mult2): Likewise.
24509 (mp626_mult3): Likewise.
24510 (mp626_mult4): Likewise.
24511 * config/arm/fa526.md (526_mult1): Update attribute change.
24512 (526_mult2): Likewise.
24513 * config/arm/arm-generic.md (mult): Update attribute change.
24514 (mult_ldsched_strongarm): Likewise.
24515 (mult_ldsched): Likewise.
24516 (multi_cycle): Likewise.
24517 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
24518 * config/arm/fa606te.md (606te_mult1): Update attribute change.
24519 (606te_mult2): Likewise.
24520 (606te_mult3): Likewise.
24521 (606te_mult4): Likewise.
24522 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
24523 (cortex_a9_mac16): Likewise.
24524 (cortex_a9_multiply): Likewise.
24525 (cortex_a9_mac): Likewise.
24526 (cortex_a9_multiply_long): Likewise.
24527 * config/arm/fa626te.md (626te_mult1): Update attribute change.
24528 (626te_mult2): Likewise.
24529 (626te_mult3): Likewise.
24530 (626te_mult4): Likewise.
24531
24532 2013-06-18 Richard Biener <rguenther@suse.de>
24533
24534 PR lto/57334
24535 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
24536
24537 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24538
24539 PR target/57609
24540 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24541 with next_active_insn.
24542
24543 2013-06-18 Alan Modra <amodra@gmail.com>
24544
24545 * config/rs6000/rs6000.h (enum data_align): New.
24546 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
24547 (DATA_ABI_ALIGNMENT): Define.
24548 (CONSTANT_ALIGNMENT): Correct comment.
24549 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
24550 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
24551
24552 2013-06-17 David Malcolm <dmalcolm@redhat.com>
24553
24554 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
24555 ATTRIBUTE_UNUSED marking.
24556
24557 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
24558
24559 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
24560 alternative and update.
24561 (aarch64_dup_lanedi): Delete.
24562 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
24563 * config/aarch64/aarch64-simd-builtins.def: Update.
24564
24565 2013-06-17 Richard Biener <rguenther@suse.de>
24566
24567 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
24568 (lto_input_scc): Declare.
24569 (lto_input_tree_1): Likewise.
24570 (struct lto_stats_d): Add num_tree_bodies_output and
24571 num_pickle_refs_output.
24572 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
24573 (lto_read_tree_1): Split out from ...
24574 (lto_read_tree): ... this.
24575 (lto_input_scc): New function.
24576 (lto_input_tree_1): Split out from ...
24577 (lto_input_tree): ... this. Handle LTO_tree_scc.
24578 (lto_data_in_create): Create the streamer cache without hashes.
24579 * lto-streamer-out.c (create_output_block): Create the streamer
24580 cache with hashes when not doing WPA.
24581 (lto_write_tree_1): Split out from ...
24582 (lto_write_tree): ... this.
24583 (get_symbol_initial_value): New function.
24584 (lto_output_tree_1): Split out from ...
24585 (lto_output_tree): ... this. Write trees as series of SCCs
24586 using a DFS walk via DFS_write_tree.
24587 (struct sccs, struct scc_entry): New types.
24588 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
24589 (DFS_write_tree_body): New function.
24590 (DFS_write_tree): Likewise.
24591 (hash_tree): Likewise.
24592 (scc_entry_compare): Likewise.
24593 (hash_scc): Likewise.
24594 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
24595 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
24596 TREE_CHAIN as regular reference.
24597 (streamer_read_integer_cst): Remove.
24598 (streamer_get_pickled_tree): Adjust.
24599 * tree-streamer-out.c (streamer_write_chain): Disable streaming
24600 of DECL_EXTERNALs in BLOCK_VARS for now.
24601 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
24602 reference.
24603 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
24604 Add hash value argument and record that if hashes are recorded
24605 in the cache.
24606 (streamer_tree_cache_insert_1): Adjust.
24607 (streamer_tree_cache_insert): Likewise.
24608 (streamer_tree_cache_insert_at): Rename to ...
24609 (streamer_tree_cache_replace_tree): ... this and adjust.
24610 (streamer_tree_cache_append): Adjust.
24611 (record_common_node): Likewise.
24612 (streamer_tree_cache_create): Add argument whether to
24613 record hash values together with trees.
24614 (streamer_tree_cache_delete): Adjust.
24615 * tree-streamer.h (struct streamer_tree_cache_d): Add
24616 vector of hashes.
24617 (streamer_read_integer_cst): Remove.
24618 (streamer_tree_cache_insert): Adjust.
24619 (streamer_tree_cache_append): Likewise.
24620 (streamer_tree_cache_insert_at): Rename to ...
24621 (streamer_tree_cache_replace_tree): ... this and adjust.
24622 (streamer_tree_cache_create): Add argument whether to record hashes.
24623 (streamer_tree_cache_get): Rename to ...
24624 (streamer_tree_cache_get_tree): ... this.
24625 (streamer_tree_cache_get_hash): New function.
24626 * tree.c (cache_integer_cst): New function.
24627 * tree.h (cache_integer_cst): Declare.
24628 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
24629 * lto-symtab.c (lto_varpool_replace_node): Only release
24630 DECL_INITIAL of non-prevailing decls.
24631 * varpool.c (varpool_remove_initializer): Do not release
24632 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
24633
24634 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
24635
24636 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
24637 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
24638 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
24639 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
24640 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
24641 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
24642 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
24643 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
24644 instead of TARGET_64BIT.
24645 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
24646 Require ISA_HAS_<D>DIV.
24647
24648 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
24649
24650 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
24651 (mips*-*-linux*): Move default with_llsc setting to where other
24652 defaults are set.
24653 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
24654 with_arch block.
24655 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
24656 Likewise. Remove default with_tune setting. Move default float
24657 setting to its own block. Handle with_llsc in the same block as above.
24658
24659 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
24660
24661 PR rtl-optimization/57425
24662 PR rtl-optimization/57569
24663 * alias.c (write_dependence_p): Add new parameters mem_mode,
24664 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
24665 Changed all callers.
24666 (canon_anti_dependence): New function.
24667 * cse.c (check_dependence): Use canon_anti_dependence.
24668 * cselib.c (cselib_invalidate_mem): Likewise.
24669 * rtl.h (canon_anti_dependence): Declare.
24670
24671 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
24672
24673 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
24674 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
24675 ".set mips3" for 64-bit targets.
24676
24677 2013-06-15 Dehao Chen <dehao@google.com>
24678
24679 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
24680 * gimple-low.c (gimple_check_call_matching_types): Likewise.
24681 (gimple_check_call_args): Likewise.
24682 * value-prof.c (check_ic_target): Likewise.
24683 * ipa-inline.c (early_inliner): Likewise.
24684 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
24685 * cgraph.c (cgraph_create_edge_1): Likewise.
24686 (cgraph_make_edge_direct): Likewise.
24687
24688 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24689
24690 PR target/57615
24691 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
24692 rs6000_output_move_128bit to handle emitting quad memory
24693 operations. Set attribute length to 8 bytes.
24694
24695 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
24696
24697 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
24698 New pattern.
24699 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
24700 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
24701 (aarch64_<su>mlsl<mode>): Likewise.
24702
24703 2013-06-14 Mike Stump <mikestump@comcast.net>
24704
24705 * Makefile.in (TARGET_H): Add insn-codes.h.
24706
24707 2013-06-14 Alan Modra <amodra@gmail.com>
24708
24709 PR middle-end/57134
24710 PR middle-end/57586
24711 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
24712 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
24713 bitfield expansion when EXPAND_MEMORY.
24714 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
24715
24716 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
24717
24718 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
24719 test for clearing quad memory on 32-bit later.
24720
24721 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24722
24723 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
24724 (fold_negate_expr): Likewise.
24725 (fold_real_zero_addition_p): Handle vectors.
24726 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
24727
24728 2013-06-14 Alan Modra <amodra@gmail.com>
24729
24730 * varasm.c (force_const_mem): Revert 2013-06-07 change.
24731
24732 2013-06-13 Jan Hubicka <jh@suse.cz>
24733
24734 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
24735 Local comdats are not externally visible.
24736 * symtab.c (dump_symtab_base): Dump externally visible.
24737 (verify_symtab_base): Verify back links in the symtab hash.
24738
24739 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24740
24741 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
24742 CONVERT_EXPR as equal nodes.
24743
24744 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24745
24746 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
24747
24748 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24749
24750 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
24751 Generalize to complex and vector.
24752 * tree.c (build_all_ones_cst): New function.
24753 * tree.h (build_all_ones_cst): Declare it.
24754
24755 2013-06-13 Alan Modra <amodra@gmail.com>
24756
24757 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
24758 * config/rs6000/rs6000.md (signbittf2): New insn.
24759 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
24760 (abstf2_internal, cmptf_internal2): Likewise.
24761 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
24762
24763 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24764 Pat Haugen <pthaugen@us.ibm.com>
24765 Peter Bergner <bergner@vnet.ibm.com>
24766
24767 * config/rs6000/rs6000.c (emit_load_locked): Add support for
24768 power8 byte, half-word, and quad-word atomic instructions.
24769 (emit_store_conditional): Likewise.
24770 (rs6000_expand_atomic_compare_and_swap): Likewise.
24771 (rs6000_expand_atomic_op): Likewise.
24772
24773 * config/rs6000/sync.md (larx): Add new modes for power8.
24774 (stcx): Likewise.
24775 (AINT): New mode iterator to include TImode as well as normal
24776 integer modes on power8.
24777 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
24778 that VSX registers are not considered. Use AINT mode iterator
24779 instead of INT1 to allow inclusion of quad word atomic operations
24780 on power8.
24781 (load_locked<mode>): Likewise.
24782 (store_conditional<mode>): Likewise.
24783 (atomic_compare_and_swap<mode>): Likewise.
24784 (atomic_exchange<mode>): Likewise.
24785 (atomic_nand<mode>): Likewise.
24786 (atomic_fetch_<fetchop_name><mode>): Likewise.
24787 (atomic_nand_fetch<mode>): Likewise.
24788 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
24789 each type.
24790 (ATOMIC): On power8, add QImode, HImode modes.
24791 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
24792 modes that promote to SImode.
24793 (load_lockedti): Convert TImode arguments to PTImode, so that we
24794 get a guaranteed even/odd register pair.
24795 (load_lockedpti): Likewise.
24796 (store_conditionalti): Likewise.
24797 (store_conditionalpti): Likewise.
24798
24799 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
24800 atomic load/store instructions.
24801 (HSI): Likewise.
24802
24803 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
24804
24805 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
24806 loads.
24807 (insn_count): New attribute, with most cases extracted from...
24808 (length): ...here. Redefine most cases in terms of insn_count.
24809 (single_insn): Delete.
24810 (can_delay): Use insn_count to check for single instructions.
24811 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
24812 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
24813 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
24814 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
24815 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
24816 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
24817 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
24818 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
24819 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
24820 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
24821 rather than "length".
24822 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
24823 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
24824 Use "insn_count" rather than "length".
24825 * config/mips/mips-dsp.md
24826 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
24827 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
24828 length attributes.
24829
24830 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
24831
24832 PR tree-optimization/57361
24833 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
24834
24835 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
24836
24837 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
24838 to split.
24839 (aarch64_simd_combine<mode>): New instruction expansion.
24840 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
24841 function prototype.
24842 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
24843 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
24844
24845 2013-06-12 Jan Hubicka <jh@suse.cz>
24846
24847 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
24848 decl has when in streaming stage.
24849 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
24850 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
24851
24852 2013-06-12 Roland Stigge <stigge@antcom.de>
24853
24854 PR target/57578
24855 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
24856
24857 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24858
24859 PR tree-optimization/57537
24860 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
24861 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
24862
24863 2013-06-12 Richard Biener <rguenther@suse.de>
24864
24865 * data-streamer.h (streamer_write_char_stream): CSE
24866 obs->current_pointer.
24867 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
24868 streamer_write_char_stream manually and optimize the resulting loop.
24869 (streamer_write_hwi_stream): Likewise.
24870
24871 2013-06-12 Jan Hubicka <jh@suse.cz>
24872
24873 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
24874 * cgraph.h (varpool_create_empty_node): Declare.
24875 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
24876 duplicated nodes.
24877 * symtab.c (symtab_unregister_node): Be lax about missin entries
24878 in node hash.
24879 (symtab_get_node): Update comment.
24880 * varpool.c (varpool_create_empty_node): Break out from ...
24881 (varpool_node_for_decl): ... here.
24882 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
24883
24884 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
24885
24886 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
24887 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
24888 part. Use straight-line flow at the end.
24889 <COMPONENT_REF>: Remove superfluous else.
24890 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
24891
24892 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24893
24894 PR target/56564
24895 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
24896 target hook even for !TREE_PUBLIC decls. If no resolution info
24897 is available, return false for common and external decls.
24898
24899 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
24900
24901 * config/rl78/constraints.md (U): New constraint.
24902 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
24903 valloc attribute.
24904
24905 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24906
24907 PR target/57589
24908 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
24909 to allow returning address to AT_PLATFORM name.
24910
24911 2013-06-11 Jan Hubicka <jh@suse.cz>
24912
24913 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24914 * cgraph.h (symtab_node_base): Add weakref flag.
24915 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24916 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24917 (output_weakrefs): Use weakref flag.
24918 * fold-const.c (simple_operand_p): Handle WEAK.
24919 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24920 * ipa.c (varpool_externally_visible_p): Drop weakref.
24921 (function_and_variable_visibility): Update comment; fix weakref
24922 sanity checks; do not clear DECL_WEAK on them.
24923 * lto-cgraph.c (lto_output_node): update.
24924 (lto_output_varpool_node): Update.
24925 (input_overwrite_node): Update.
24926 (input_node): Update.
24927 (input_varpool_node): Update.
24928 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24929 (lto_symtab_merge_symbols): Add sanity check.
24930 (lto_symtab_prevailing_decl): Do not special case weakrefs.
24931 * passes.c (rest_of_decl_compilation): Set static flag, too.
24932 * symtab.c (dump_symtab_base): Dump weakref.
24933 (verify_symtab_base): Sanity check weakrefs.
24934 (symtab_make_decl_local): Remove duplicated code.
24935 (symtab_alias_ultimate_target): Simplify.
24936 * varpool.c (varpool_create_variable_alias): Set weakref flag.
24937
24938 2013-06-11 Tom de Vries <tom@codesourcery.com>
24939
24940 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
24941 sequence_vect == NULL.
24942
24943 2013-06-11 DJ Delorie <dj@redhat.com>
24944
24945 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24946 (rl78_unwind_word_mode): New.
24947
24948 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24949
24950 * final.c (debug_prefix_maps): Make static.
24951
24952 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24953
24954 * function.c (initial_trampoline): Remove stray copy.
24955
24956 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
24957
24958 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24959
24960 2013-06-11 Martin Jambor <mjambor@suse.cz>
24961
24962 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24963 within bounds at the beginning of the function.
24964
24965 2013-06-11 Alan Modra <amodra@gmail.com>
24966
24967 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
24968 reporting.
24969 (get_named_section): Don't NULL !DECL_P decl.
24970
24971 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
24972
24973 * doc/invoke.texi (core-avx2): Document.
24974 (slm): Likewise.
24975 (atom): Updated with MOVBE.
24976
24977 2013-06-11 Richard Biener <rguenther@suse.de>
24978
24979 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24980
24981 2013-06-11 Anton Blanchard <anton@samba.org>
24982
24983 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24984 correct shift value in little-endian mode.
24985
24986 2013-06-11 Jakub Jelinek <jakub@redhat.com>
24987
24988 PR target/56564
24989 * varasm.c (get_variable_align): Move #endif to the right place.
24990
24991 2013-06-10 Cary Coutant <ccoutant@google.com>
24992
24993 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24994 for hash so that hash table traversal order is deterministic.
24995
24996 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24997 Pat Haugen <pthaugen@us.ibm.com>
24998 Peter Bergner <bergner@vnet.ibm.com>
24999
25000 * config/rs6000/vector.md (GPR move splitter): Do not split moves
25001 of vectors in GPRS if they are direct moves or quad word load or
25002 store moves.
25003
25004 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
25005 declaration.
25006 (direct_move_p): Likewise.
25007 (quad_load_store_p): Likewise.
25008
25009 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
25010 classes into bins based on the physical register type.
25011 (reg_class_to_reg_type): Likewise.
25012 (IS_STD_REG_TYPE): Likewise.
25013 (IS_FP_VECT_REG_TYPE): Likewise.
25014 (reload_fpr_gpr): Arrays to determine what insn to use if we can
25015 use direct move instructions.
25016 (reload_gpr_vsx): Likewise.
25017 (reload_vsx_gpr): Likewise.
25018 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
25019 information that is a simplification of register classes. Also
25020 precalculate direct move reload helpers.
25021 (direct_move_p): New function to return true if the operation can
25022 be done as a direct move instruciton.
25023 (quad_load_store_p): New function to return true if the operation
25024 is a quad memory operation.
25025 (rs6000_legitimize_address): If quad memory, only allow register
25026 indirect for TImode addresses.
25027 (rs6000_legitimate_address_p): Likewise.
25028 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
25029 (rs6000_reload_register_type): Likewise.
25030 (register_to_reg_type): Return register type.
25031 (rs6000_secondary_reload_simple_move): New helper function for
25032 secondary reload and secondary memory needed to identify anything
25033 that is a simple move, and does not need reloading.
25034 (rs6000_secondary_reload_direct_move): New helper function for
25035 secondary reload to identify cases that can be done with several
25036 instructions via the direct move instructions.
25037 (rs6000_secondary_reload_move): New helper function for secondary
25038 reload to identify moves between register types that can be done.
25039 (rs6000_secondary_reload): Add support for quad memory operations
25040 and for direct move.
25041 (rs6000_secondary_memory_needed): Likewise.
25042 (rs6000_debug_secondary_memory_needed): Change argument names.
25043 (rs6000_output_move_128bit): New function to return the move to
25044 use for 128-bit moves, including knowing about the various
25045 limitations of quad memory operations.
25046
25047 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
25048 memory operations. call rs6000_output_move_128bit for the actual
25049 instruciton(s) to generate.
25050 (vsx_movti_64bit): Likewise.
25051
25052 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
25053 (UNSPEC_P8V_MTVSRWZ): Likewise.
25054 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
25055 (UNSPEC_P8V_MTVSRD): Likewise.
25056 (UNSPEC_P8V_XXPERMDI): Likewise.
25057 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
25058 (UNSPEC_FUSION_GPR): Likewise.
25059 (FMOVE128_GPR): New iterator for direct move.
25060 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
25061 (f32_sv): Likewise.
25062 (f32_dm): Likewise.
25063 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
25064 loads and direct move instructions.
25065 (zero_extendsidi2_lfiwzx): Likewise.
25066 (extendsidi2_lfiwax): Likewise.
25067 (extendsidi2_nocell): Likewise.
25068 (floatsi<mode>2_lfiwax): Likewise.
25069 (lfiwax): Likewise.
25070 (floatunssi<mode>2_lfiwzx): Likewise.
25071 (lfiwzx): Likewise.
25072 (fix_trunc<mode>_stfiwx): Likewise.
25073 (fixuns_trunc<mode>_stfiwx): Likewise.
25074 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
25075 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
25076 (parity<mode>2_cmpb): Set length/type attr.
25077 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
25078 for 'mr.' to fast_compare.
25079 (bpermd_<mode>): Change type attr to popcnt.
25080 (p8_fmrgow_<mode>): New insns for power8 direct move support.
25081 (p8_mtvsrwz_1): Likewise.
25082 (p8_mtvsrwz_2): Likewise.
25083 (reload_fpr_from_gpr<mode>): Likewise.
25084 (p8_mtvsrd_1): Likewise.
25085 (p8_mtvsrd_2): Likewise.
25086 (p8_xxpermdi_<mode>): Likewise.
25087 (reload_vsx_from_gpr<mode>): Likewise.
25088 (reload_vsx_from_gprsf): Likewise.
25089 (p8_mfvsrd_3_<mode>): LIkewise.
25090 (reload_gpr_from_vsx<mode>): Likewise.
25091 (reload_gpr_from_vsxsf): Likewise.
25092 (p8_mfvsrd_4_disf): Likewise.
25093 (multi-word GPR splits): Do not split direct moves or quad memory
25094 operations.
25095
25096 2013-06-10 David Malcolm <dmalcolm@redhat.com>
25097
25098 * tree-into-ssa.c (interesting_blocks): Make static.
25099
25100 2013-06-10 Jakub Jelinek <jakub@redhat.com>
25101
25102 PR target/56564
25103 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
25104 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
25105 Use DATA_ABI_ALIGNMENT for that case instead if defined.
25106 (get_variable_align): New function.
25107 (get_variable_section, emit_bss, emit_common,
25108 assemble_variable_contents, place_block_symbol): Use
25109 get_variable_align instead of DECL_ALIGN.
25110 (assemble_noswitch_variable): Add align argument, use it
25111 instead of DECL_ALIGN.
25112 (assemble_variable): Adjust caller. Use get_variable_align
25113 instead of DECL_ALIGN.
25114 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
25115 caller.
25116 (DATA_ABI_ALIGNMENT): Define.
25117 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
25118 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
25119 opt is false, only return the psABI mandated alignment increase.
25120 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
25121 (DATA_ABI_ALIGNMENT): ... this.
25122 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
25123 (DATA_ABI_ALIGNMENT): ... this.
25124 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
25125 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
25126 (DATA_ABI_ALIGNMENT): ... this.
25127 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
25128 * doc/tm.texi: Regenerated.
25129
25130 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
25131
25132 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
25133 cmp_code to construct REG_EQUAL note.
25134
25135 2013-06-09 Jakub Jelinek <jakub@redhat.com>
25136
25137 PR target/57568
25138 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
25139 that operands[2] doesn't overlap with operands[0].
25140
25141 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
25142 Jan Hubicka <jh@suse.cz>
25143
25144 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
25145 hack to mark symbols as used.
25146
25147 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
25148
25149 PR rtl-optimization/57559
25150 * lra-constraints.c (process_alt_operands): Don't discourage
25151 memory with known offset for offsetable memory constraint.
25152 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
25153
25154 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
25155
25156 * varasm.c (struct oc_local_state): Reorder fields.
25157 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
25158 and adjust accordingly.
25159 (output_constructor): Reorder initialization code and adjust call to
25160 output_constructor_bitfield.
25161
25162 2013-06-07 Jan Hubicka <jh@suse.cz>
25163
25164 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
25165
25166 2013-06-07 David Malcolm <dmalcolm@redhat.com>
25167
25168 * tree-object-size.c (unknown): Make const.
25169
25170 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25171
25172 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
25173 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
25174 for last alternative in the cpu_facility attribute.
25175
25176 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25177
25178 PR target/56315
25179 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
25180 (xordi3): Change operand 2 constraint to arm_xordi_operand.
25181 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
25182 * config/arm/constraints.md (Dg): New constraint.
25183 * config/arm/neon.md (xordi3_neon): Remove.
25184 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
25185 * config/arm/predicates.md (arm_xordi_operand): New predicate.
25186
25187 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25188
25189 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
25190 Clean up alternatives.
25191
25192 2013-06-07 Alan Modra <amodra@gmail.com>
25193
25194 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
25195 va_list_gpr_size.
25196
25197 2013-06-07 Alan Modra <amodra@gmail.com>
25198
25199 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
25200
25201 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25202
25203 * config/arm/constraints.md (Df): New constraint.
25204 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
25205 Correct length attribute for last two alternatives.
25206
25207 2013-06-07 Alan Modra <amodra@gmail.com>
25208
25209 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25210 override user -mfp-in-toc.
25211 (offsettable_ok_by_alignment): Consider just the current access
25212 rather than the whole object, unless BLKmode. Handle
25213 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
25214 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
25215 for -mcmodel=medium.
25216 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
25217 override user -mfp-in-toc or -msum-in-toc. Default to
25218 -mno-fp-in-toc for -mcmodel=medium.
25219
25220 2013-06-06 DJ Delorie <dj@redhat.com>
25221
25222 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
25223 TARGET_VALID_POINTER_MODE.
25224
25225 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25226 Pat Haugen <pthaugen@us.ibm.com>
25227 Peter Bergner <bergner@vnet.ibm.com>
25228
25229 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25230 Document new power8 builtins.
25231
25232 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
25233 condition code register, to allow 128-bit logical operations to be
25234 done in the VSX or GPR registers.
25235 (nor<mode>3): Use the canonical form for nor.
25236 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
25237 vclz*, and vpopcnt* vector instructions.
25238 (nand<mode>3): Likewise.
25239 (orc<mode>3): Likewise.
25240 (clz<mode>2): LIkewise.
25241 (popcount<mode>2): Likewise.
25242
25243 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
25244 that only the GPRs are recognized.
25245
25246 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25247 support for new power8 builtins.
25248
25249 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
25250 builtin functions.
25251 (xscvdpspn): Likewise.
25252 (vclz): Likewise.
25253 (vclzb): Likewise.
25254 (vclzh): Likewise.
25255 (vclzw): Likewise.
25256 (vclzd): Likewise.
25257 (vpopcnt): Likewise.
25258 (vpopcntb): Likewise.
25259 (vpopcnth): Likewise.
25260 (vpopcntw): Likewise.
25261 (vpopcntd): Likewise.
25262 (vgbbd): Likewise.
25263 (vmrgew): Likewise.
25264 (vmrgow): Likewise.
25265 (eqv): Likewise.
25266 (eqv_v16qi3): Likewise.
25267 (eqv_v8hi3): Likewise.
25268 (eqv_v4si3): Likewise.
25269 (eqv_v2di3): Likewise.
25270 (eqv_v4sf3): Likewise.
25271 (eqv_v2df3): Likewise.
25272 (nand): Likewise.
25273 (nand_v16qi3): Likewise.
25274 (nand_v8hi3): Likewise.
25275 (nand_v4si3): Likewise.
25276 (nand_v2di3): Likewise.
25277 (nand_v4sf3): Likewise.
25278 (nand_v2df3): Likewise.
25279 (orc): Likewise.
25280 (orc_v16qi3): Likewise.
25281 (orc_v8hi3): Likewise.
25282 (orc_v4si3): Likewise.
25283 (orc_v2di3): Likewise.
25284 (orc_v4sf3): Likewise.
25285 (orc_v2df3): Likewise.
25286
25287 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
25288 allow power8 quad mode in 64-bit.
25289 (rs6000_builtin_vectorized_function): Add support to vectorize
25290 ISA 2.07 count leading zeros, population count builtins.
25291 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
25292 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
25293 (builtin_function_type): Add vgbbd builtin function which takes an
25294 unsigned argument.
25295 (altivec_expand_vec_perm_const): Add support for new power8 merge
25296 instructions.
25297
25298 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
25299 that does not include TImdoe for use with 32-bit.
25300 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
25301 instructions.
25302 (UNSPEC_VSX_CVDPSPN): Likewise.
25303 (vsx_xscvdpspn): Likewise.
25304 (vsx_xscvspdpn): Likewise.
25305 (vsx_xscvdpspn_scalar): Likewise.
25306 (vsx_xscvspdpn_directmove): Likewise.
25307 (vsx_and<mode>3): Split logical operations into 32-bit and
25308 64-bit. Add support to do logical operations on TImode as well as
25309 VSX vector types. Allow logical operations to be done in either
25310 VSX registers or in general purpose registers in 64-bit mode. Add
25311 splitters if GPRs were used. For AND, add clobber of CCmode to
25312 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
25313 encoding.
25314 (vsx_and<mode>3_32bit): Likewise.
25315 (vsx_and<mode>3_64bit): Likewise.
25316 (vsx_ior<mode>3): Likewise.
25317 (vsx_ior<mode>3_32bit): Likewise.
25318 (vsx_ior<mode>3_64bit): Likewise.
25319 (vsx_xor<mode>3): Likewise.
25320 (vsx_xor<mode>3_32bit): Likewise.
25321 (vsx_xor<mode>3_64bit): Likewise.
25322 (vsx_one_cmpl<mode>2): Likewise.
25323 (vsx_one_cmpl<mode>2_32bit): Likewise.
25324 (vsx_one_cmpl<mode>2_64bit): Likewise.
25325 (vsx_nor<mode>3): Likewise.
25326 (vsx_nor<mode>3_32bit): Likewise.
25327 (vsx_nor<mode>3_64bit): Likewise.
25328 (vsx_andc<mode>3): Likewise.
25329 (vsx_andc<mode>3_32bit): Likewise.
25330 (vsx_andc<mode>3_64bit): Likewise.
25331 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
25332 and xxlorc instructions.
25333 (vsx_eqv<mode>3_64bit): Likewise.
25334 (vsx_nand<mode>3_32bit): Likewise.
25335 (vsx_nand<mode>3_64bit): Likewise.
25336 (vsx_orc<mode>3_32bit): Likewise.
25337 (vsx_orc<mode>3_64bit): Likewise.
25338
25339 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
25340
25341 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
25342 instruction.
25343 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
25344 (p8_vmrgow): Likewise.
25345 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
25346 GPRs to be split under VSX.
25347 (p8v_clz<mode>2): Add power8 count leading zero support.
25348 (p8v_popcount<mode>2): Add power8 population count support.
25349 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
25350 support.
25351
25352 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
25353 instruction.
25354
25355 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
25356 builtin functions.
25357 (vec_nand): Likewise.
25358 (vec_vclz): Likewise.
25359 (vec_vclzb): Likewise.
25360 (vec_vclzd): Likewise.
25361 (vec_vclzh): Likewise.
25362 (vec_vclzw): Likewise.
25363 (vec_vgbbd): Likewise.
25364 (vec_vmrgew): Likewise.
25365 (vec_vmrgow): Likewise.
25366 (vec_vpopcnt): Likewise.
25367 (vec_vpopcntb): Likewise.
25368 (vec_vpopcntd): Likewise.
25369 (vec_vpopcnth): Likewise.
25370 (vec_vpopcntw): Likewise.
25371
25372 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
25373
25374 PR rtl-optimization/57468
25375 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
25376 spilled pseudos.
25377
25378 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
25379
25380 PR rtl-optimization/57459
25381 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
25382 type when setting live regs.
25383
25384 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
25385
25386 * config/s390/s390.opt (mlra): New option.
25387 * config/s390/s390.c (s390_decompose_address): Check displacement
25388 for all registers for LRA.
25389 (s390_secondary_reload): Don't used secondary reloads for LRA.
25390 (s390_lra_p): New function.
25391 (TARGET_LRA_P): Define.
25392 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
25393 of attribute cpu_facility to zarch for the last alternative.
25394 (*cmpmem_short): Ditto.
25395
25396 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
25397
25398 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
25399 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
25400 (arm_expand_prologue): Likewise.
25401
25402 2013-06-06 Teresa Johnson <tejohnson@google.com>
25403
25404 PR c++/53743
25405 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
25406 as this is now done by redirect_edge_and_branch_force.
25407 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
25408 barriers, and fix interaction with splitting.
25409 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
25410 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
25411 reflect changes made in the routine.
25412 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
25413 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
25414 since this is called in cfglayout mode, and replace partition fixup
25415 with assert as that is now done by force_nonfallthru_and_redirect.
25416 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
25417 already be marked with region crossing note.
25418 (insert_section_boundary_note): Make non-static, gate on flag
25419 has_bb_partition, rewrite to also check for multiple partitions.
25420 (rest_of_handle_reorder_blocks): Remove call to
25421 insert_section_boundary_note, now done later during free_cfg.
25422 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
25423 * bb-reorder.h (insert_section_boundary_note): Declare.
25424 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
25425 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
25426 invoke insert_section_boundary_note.
25427 (try_redirect_by_replacing_jump): Remove unnecessary
25428 check for region crossing note.
25429 (fixup_partition_crossing): New function.
25430 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
25431 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
25432 in non-cfglayout mode.
25433 (force_nonfallthru_and_redirect): Fixup partition boundaries,
25434 remove old code that tried to do this. Emit barrier correctly
25435 when we are in cfglayout mode.
25436 (last_bb_in_partition): New function.
25437 (rtl_split_edge): Correctly fixup partition boundaries.
25438 (commit_one_edge_insertion): Remove old code that tried to
25439 fixup region crossing edge since this is now handled in
25440 split_block, and set up insertion point correctly since
25441 block may now end in a jump.
25442 (verify_hot_cold_block_grouping): Guard against checking when not in
25443 linearized RTL mode.
25444 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
25445 notes.
25446 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
25447 rtl_verify_flow_info, so not called in cfglayout mode.
25448 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
25449 (fixup_reorder_chain): Remove old code that attempted to fixup region
25450 crossing note as this is now handled in force_nonfallthru_and_redirect.
25451 (duplicate_insn_chain): Don't duplicate switch section notes.
25452 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
25453 note.
25454 * basic-block.h (emit_barrier_after_bb): Declare.
25455
25456 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25457
25458 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
25459 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
25460 arm_usatsihi): Adjust alternatives for arm_restrict_it.
25461
25462 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25463
25464 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
25465 where appropriate.
25466 * config/arm/ldmstm.md: Regenerate.
25467
25468 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25469
25470 * config/arm/sync.md (atomic_loaddi_1):
25471 Disable predication for arm_restrict_it.
25472 (arm_load_exclusive<mode>): Likewise.
25473 (arm_load_exclusivesi): Likewise.
25474 (arm_load_exclusivedi): Likewise.
25475 (arm_load_acquire_exclusive<mode>): Likewise.
25476 (arm_load_acquire_exclusivesi): Likewise.
25477 (arm_load_acquire_exclusivedi): Likewise.
25478 (arm_store_exclusive<mode>): Likewise.
25479 (arm_store_exclusive<mode>): Likewise.
25480 (arm_store_release_exclusivedi): Likewise.
25481 (arm_store_release_exclusive<mode>): Likewise.
25482
25483 2013-06-06 Richard Biener <rguenther@suse.de>
25484
25485 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
25486 after LTO_null.
25487 (lto_tag_is_tree_code_p): Adjust.
25488 (lto_tag_is_gimple_code_p): Likewise.
25489 (lto_gimple_code_to_tag): Likewise.
25490 (lto_tag_to_gimple_code): Likewise.
25491 (lto_tree_code_to_tag): Likewise.
25492 (lto_tag_to_tree_code): Likewise.
25493 * data-streamer.h (streamer_write_hwi_in_range): Use
25494 uhwi streaming to stream the normalized range.
25495 (streamer_read_hwi_in_range): Likewise.
25496
25497 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25498
25499 * config/arm/arm.md (enabled_for_depr_it): New attribute.
25500 (predicable_short_it): Likewise.
25501 (predicated): Likewise.
25502 (enabled): Handle above.
25503 (define_cond_exec): Set predicated attribute to yes.
25504
25505 2013-06-05 Mike Stump <mikestump@comcast.net>
25506
25507 * gdbinit.in (__FUNCTION__): Add.
25508
25509 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
25510
25511 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
25512 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
25513
25514 2013-06-05 Jan Hubicka <jh@suse.cz>
25515
25516 * varasm.c (mark_decl_referenced): Revert the removal until targets
25517 are fixed.
25518
25519 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
25520
25521 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
25522 instead of mark_decl_referenced.
25523
25524 2013-06-05 Jan Hubicka <jh@suse.cz>
25525
25526 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
25527 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
25528 and symtab_used_from_object_file_p.
25529 (cgraph_make_node_local_1): Clear forced_by_abi.
25530 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
25531 * cgraph.h (symtab_node_base): Add forced_by_abi.
25532 (decide_is_variable_needed): Remove.
25533 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
25534 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
25535 (decide_is_symbol_needed): ... this one; handle symbols in general;
25536 always analyze virtuals; honnor forced_by_abi.
25537 (cgraph_finalize_function): Update.
25538 (varpool_finalize_decl): Update.
25539 (symbol_defined_and_needed): Remove.
25540 (analyze_functions): Update.
25541 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25542 output_refs, input_overwrite_node): Handle forced_by_abi.
25543 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
25544 (address_taken_from_non_vtable_p): ... this one.
25545 (comdat_can_be_unshared_p_1): New function.
25546 (cgraph_comdat_can_be_unshared_p): Rename to ...
25547 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
25548 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
25549 (function_and_variable_visibility): Clear forced_by_abi as needed.
25550 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
25551 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
25552 * symtab.c (dump_symtab_base): Dump forced_by_abi.
25553 * varpool.c (decide_is_variable_needed): Remove.
25554
25555 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25556
25557 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
25558 (arm_option_override): Override arm_restrict_it where appropriate.
25559 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
25560 * config/arm/arm.opt (mrestrict-it): New command-line option.
25561 * doc/invoke.texi: Document -mrestrict-it.
25562
25563 2013-06-05 David Malcolm <dmalcolm@redhat.com>
25564
25565 * tsan.c (tsan_atomic_table): Make const.
25566
25567 2013-06-05 Richard Biener <rguenther@suse.de>
25568
25569 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
25570 index associated with the tree we are supposed to replace.
25571 * tree-streamer-out.c (pack_ts_base_value_fields): Output
25572 TREE_ASM_WRITTEN as zero for everything but SSA names.
25573
25574 2013-06-05 David Malcolm <dmalcolm@redhat.com>
25575
25576 * tree-ssa-structalias.c (call_stmt_vars): Make static.
25577
25578 2013-06-04 Jan Hubicka <jh@suse.cz>
25579
25580 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
25581 (input_node, input_varpool_node): Handle correctly external same
25582 body aliases.
25583 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
25584 nodes at ltrans stage.
25585
25586 2013-06-04 Jan Hubicka <jh@suse.cz>
25587
25588 * ipa-inline.c (update_caller_keys): Fix availability test.
25589 (update_callee_keys): Likewise.
25590 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
25591 to follow ELF standard.
25592
25593 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
25594
25595 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
25596 (mips64r5900el-*-elf*): New configurations.
25597 * config/mips/mips-cpus.def (r5900): New processor.
25598 * config/mips/mips-tables.opt: Regenerate.
25599 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
25600 (mips_issue_rate): Handle PROCESSOR_R5900.
25601 (mips_reorg_process_insns): Force reorder mode for the R5900.
25602 * config/mips/mips.h (TARGET_MIPS5900): Define.
25603 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
25604 TARGET_MIPS5900.
25605 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
25606 TARGET_MIPS5900.
25607 * config/mips/mips.md (processor): Add r5900.
25608 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
25609
25610 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25611
25612 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
25613 into function to generate MOVI instruction.
25614 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
25615 (aarch64_preferred_simd_mode): Turn into wrapper.
25616 (aarch64_output_scalar_simd_mov_immediate): New function.
25617 * config/aarch64/aarch64-protos.h: Add prototype for above.
25618
25619 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25620
25621 * config/aarch64/aarch64.c (simd_immediate_info): Remove
25622 element_char member.
25623 (sizetochar): Return signed char.
25624 (aarch64_simd_valid_immediate): Remove elchar and other
25625 unnecessary variables.
25626 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
25627 Calculate element_char as required.
25628 * config/aarch64/aarch64-protos.h: Update and move prototype
25629 for aarch64_output_simd_mov_immediate.
25630 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
25631 Update arguments.
25632
25633 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25634
25635 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
25636 information completed by aarch64_simd_valid_immediate.
25637 (aarch64_legitimate_constant_p): Update arguments.
25638 (aarch64_simd_valid_immediate): Work with struct rather than many
25639 pointers.
25640 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
25641 (aarch64_simd_make_constant): Update arguments.
25642 (aarch64_output_simd_mov_immediate): Work with struct rather than
25643 many pointers. Output immediate directly rather than as operand.
25644 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25645 Update prototype.
25646 * config/aarch64/constraints.md (Dn): Update arguments.
25647
25648 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25649
25650 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
25651 longer static.
25652 (aarch64_simd_immediate_valid_for_move): Remove.
25653 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
25654 (aarch64_simd_make_constant): Update call.
25655 (aarch64_output_simd_mov_immediate): Update call.
25656 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25657 Add prototype.
25658 * config/aarch64/constraints.md (Dn): Update call.
25659
25660 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25661
25662 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
25663 return type to bool for prototype.
25664 (aarch64_legitimate_constant_p): Check for true instead of not -1.
25665 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
25666 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
25667
25668 2013-06-04 Catherine Moore <clm@codesourcery.com>
25669
25670 * config/mips/mips.opt (meva): New.
25671 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
25672 (ASM_SPEC): Handle -meva.
25673 * doc/invoke.texi (meva): Document.
25674
25675 2013-06-04 Alan Modra <amodra@gmail.com>
25676
25677 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
25678 constant output.
25679
25680 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25681
25682 * rtl.def: Add extra fourth optional field to define_cond_exec.
25683 * gensupport.c (process_one_cond_exec): Process attributes from
25684 define_cond_exec.
25685 * doc/md.texi: Document fourth field in define_cond_exec.
25686
25687 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
25688
25689 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
25690 out the processing order as in store_bit_field_1.
25691
25692 2013-06-04 Jan Hubicka <jh@suse.cz>
25693
25694 PR middle-end/57500
25695 * cgraphunit.c (cgraph_process_same_body_aliases): Create
25696 non-VAR_DECL node if it does not exist yet.
25697
25698 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
25699
25700 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
25701 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
25702 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
25703 target_cpu_default setting.
25704
25705 2013-06-03 Teresa Johnson <tejohnson@google.com>
25706
25707 * dumpfile.c (opt_info_switch_p): Change -fopt-info
25708 default to -fopt-info=optimized instead of all.
25709 * doc/invoke.texi: Ditto.
25710 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
25711 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
25712 (execute_vect_slp): Emit BB vectorization success under
25713 MSG_OPTIMIZED_LOCATIONS.
25714 * tree-vect-slp.c (vect_slp_transform_bb): Change
25715 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
25716 * tree-vect-loop.c (vect_transform_loop): Ditto.
25717
25718 2013-06-03 Jason Merrill <jason@redhat.com>
25719
25720 PR c++/57415
25721 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25722 Use TARGET_EXPR for C++.
25723
25724 2013-06-03 Jakub Jelinek <jakub@redhat.com>
25725
25726 PR rtl-optimization/57268
25727 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
25728 if DEBUG_INSN_P (insn).
25729
25730 Reapply
25731 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25732
25733 PR rtl-optimization/57268
25734 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25735 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25736
25737 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25738
25739 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
25740 (ix86_avoid_lea_for_addr): Likewise.
25741 (exact_dependency_1): Likewise.
25742 (ix86_adjust_cost): Likewise.
25743 (swap_top_of_ready_list): Fix formatting and !reload_completed check
25744 removed.
25745 (do_reorder_for_imul): Fix typo, formatting and
25746 !reload_completed check removed.
25747 (ix86_sched_reorder): Fix typo and formatting.
25748 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
25749 list.
25750
25751 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
25752
25753 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
25754
25755 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
25756
25757 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
25758 <STRING_CST>: Likewise.
25759 <VECTOR_CST>: Likewise.
25760
25761 2013-06-01 Janus Weil <janus@gcc.gnu.org>
25762 Mikael Morin <mikael@gcc.gnu.org>
25763
25764 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
25765 * config.in: Regenerated.
25766 * configure: Regenerated.
25767
25768 2013-06-01 Jan Hubicka <jh@suse.cz>
25769
25770 PR middle-end/57366
25771 * cgraphunit.c (compile): When weakref is not supported,
25772 set up transparent aliases before final output pass.
25773 * varasm.c (assemble_alias): Do not try to do it here.
25774
25775 2013-06-01 Jan Hubicka <jh@suse.cz>
25776
25777 PR middle-end/57467
25778 * passes.c (for_per_function): Skip unanalyzed functions.
25779
25780 2013-06-01 Jan Hubicka <jh@suse.cz>
25781
25782 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
25783 (lto_symtab_merge_symbols_1): ... this one.
25784 (lto_symtab_merge_cgraph_nodes): Rename to ...
25785 (lto_symtab_merge_symbols): ... this one; simplify.
25786 * cgraph.c (same_body_aliases_done): Rename to ...
25787 (cpp_implicit_aliases_done): ... this one.
25788 (cgraph_create_function_alias): Update.
25789 (cgraph_same_body_alias): Update.
25790 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
25791 (verify_edge_corresponds_to_fndecl): Simplify.
25792 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
25793 (cgraph_node): Remove same_body_alias.
25794 (varpool_node): Remove alias_of and extra_name_alias.
25795 (same_body_aliases_done): Rename to ..
25796 (cpp_implicit_aliases_done): ... this one.
25797 (symtab_alias_ultimate_target): Add default parameter.
25798 (symtab_resolve_alias): New function.
25799 (fixup_same_cpp_alias_visibility): Declare.
25800 (cgraph_function_node): Add default parameter.
25801 (cgraph_node_asm_name): Likewise.
25802 (cgraph_function_or_thunk_node): Add default parameter; do
25803 not ICE when it is NULL.
25804 (varpool_variable_node): Likewise.
25805 * tree-emutls.c (create_emultls_var): Update.
25806 (ipa_lower_emutls): Update.
25807 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
25808 (cgraph_reset_node): Reset alias info.
25809 (cgraph_finalize_function): Update.
25810 (fixup_same_cpp_alias_visibility): Move to symtab.c.
25811 (analyze_function): Simplify.
25812 (cgraph_process_same_body_aliases): Simplify.
25813 (analyze_functions): Fixup same body aliases.
25814 (handle_alias_pairs): Simplify.
25815 (assemble_thunk): Update.
25816 (assemble_thunks_and_aliases): Update.
25817 (output_weakrefs): Rewrite.
25818 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
25819 (lto_output_varpool_node): Likewise.
25820 (compute_ltrans_boundary): Remve assert.
25821 (get_alias_symbol): New functoin.
25822 (input_node): Rewrite alias handling.
25823 (input_varpool_node): Likewise.
25824 * ipa-pure-const.c (propagate_pure_const): Fix formating.
25825 * ipa.c (process_references): Handle weakrefs correctly.
25826 (symtab_remove_unreachable_nodes): Likewise.
25827 * trans-mem.c (get_cg_data): Update.
25828 (ipa_tm_create_version_alias): Update.
25829 (ipa_tm_execute): Update.
25830 * symtab.c (dump_symtab_base): Dump aliases.
25831 (verify_symtab_base): Verify aliases.
25832 (symtab_node_availability): New function.
25833 (symtab_alias_ultimate_target): Simplify.
25834 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
25835 handle all the fixup cases.
25836 (symtab_resolve_alias): New function.
25837 * passes.c (ipa_write_summaries): Handle weakrefs.
25838 * varpool.c (varpool_analyze_node): Simplify.
25839 (assemble_aliases): Update.
25840 (varpool_create_variable_alias): Simplify.
25841 (varpool_extra_name_alias): Simplify.
25842 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
25843 (lto_symtab_merge_symbols): ... this one.
25844
25845 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
25846
25847 Revert
25848 PR rtl-optimization/57268
25849 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25850 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25851
25852 2013-06-01 Tobias Burnus <burnus@net-b.de>
25853
25854 Partially reverted:
25855 2013-05-31 Tobias Burnus <burnus@net-b.de>
25856
25857 PR middle-end/57073
25858 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
25859 further up.
25860
25861 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25862
25863 PR rtl-optimization/57268
25864 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25865 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25866
25867 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25868
25869 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
25870 unordered comparison operators when -fno-trapping-math is in effect
25871 on the e500.
25872 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
25873 and implement unordered comparison operators properly on the e500.
25874
25875 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25876
25877 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
25878 for constant scalar integers.
25879 (simplify_relational_operation_1): Likewise.
25880
25881 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
25882
25883 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
25884 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
25885 Fix comment.
25886
25887 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25888 Igor Zamyatin <igor.zamyatin@intel.com>
25889
25890 Silvermont (SLM) architecture performance tuning.
25891 * config/i386/i386.h (enum ix86_tune_indices): Add
25892 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
25893 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
25894
25895 * config/i386/i386.c (initial_ix86_tune_features)
25896 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
25897 (ix86_lea_outperforms): Handle Silvermont tuning.
25898 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
25899 call.
25900 (ix86_use_lea_for_mov): Likewise.
25901 (ix86_avoid_lea_for_addr): Likewise.
25902 (ix86_lea_for_add_ok): Likewise.
25903 (exact_dependency_1): New function.
25904 (exact_store_load_dependency): Likewise.
25905 (ix86_adjust_cost): Handle Silvermont tuning.
25906 (do_reoder_for_imul): Likewise.
25907 (swap_top_of_ready_list): New function.
25908 (ix86_sched_reorder): Changed to handle Silvermont tuning.
25909
25910 * config/i386/i386.md (peepholes that split memory operand in fp
25911 converts): New.
25912
25913 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25914
25915 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25916 Remove un-necessary braces.
25917
25918 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25919
25920 * config/aarch64/aarch64.c (aarch64_classify_symbol):
25921 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25922
25923 2013-05-31 Tobias Burnus <burnus@net-b.de>
25924
25925 PR middle-end/57073
25926 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25927
25928 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25929
25930 PR target/56315
25931 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25932 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25933 * config/arm/neon.md (iordi3_neon): Remove.
25934 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25935 * config/arm/predicates.md (imm_for_neon_logic_operand):
25936 Move to earlier in the file.
25937 (neon_logic_op2): Likewise.
25938 (arm_iordi_operand_neon): New predicate.
25939
25940 2013-05-31 Richard Biener <rguenther@suse.de>
25941
25942 PR tree-optimization/57478
25943 PR tree-optimization/57453
25944 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25945 are life as well.
25946
25947 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25948
25949 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25950 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25951
25952 2013-05-30 Tobias Burnus <burnus@net-b.de>
25953 Thomas Koenig <tkoenig@gcc.gnu.org>
25954
25955 PR middle-end/57073
25956 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25957 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25958
25959 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
25960
25961 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25962
25963 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
25964
25965 * target.def (register_usage_leveling_p): New hook.
25966 * targhooks.c (default_register_usage_leveling_p): New.
25967 * targhooks.h (default_register_usage_leveling_p): New prototype.
25968 * lra-assigns.c (register_usage_leveling_p): Use the hook.
25969 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25970 * doc/tm.texi: Update.
25971 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25972
25973 2013-05-30 Ian Bolton <ian.bolton@arm.com>
25974
25975 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25976 (*insv_reg<mode>): New define_insn.
25977
25978 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
25979
25980 PR rtl-optimization/57439
25981 * postreload.c (move2add_valid_value_p): Check that we have
25982 a zero subreg_regno_offset when accessing the register in
25983 the requested mode.
25984
25985 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25986 Igor Zamyatin <igor.zamyatin@intel.com>
25987
25988 Silvermont (SLM) architecture pipeline model, tuning and
25989 insn selection.
25990 * config.gcc: Add slm config options and target.
25991
25992 * config/i386/slm.md: New.
25993
25994 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25995
25996 * config/i386/i386-c.c (ix86_target_macros_internal): New case
25997 PROCESSOR_SLM.
25998 (ix86_target_macros_internal): Likewise.
25999
26000 * config/i386/i386.c (slm_cost): New cost.
26001 (m_SLM): New macro flag.
26002 (initial_ix86_tune_features): Set m_SLM.
26003 (x86_accumulate_outgoing_args): Likewise.
26004 (x86_arch_always_fancy_math_387): Likewise.
26005 (processor_target_table): Add slm cost.
26006 (cpu_names): Add slm cpu name.
26007 (x86_option_override_internal): Set SLM ISA.
26008 (ix86_issue_rate): New case PROCESSOR_SLM.
26009 (ia32_multipass_dfa_lookahead): Likewise.
26010 (fold_builtin_cpu): Add slm.
26011
26012 * config/i386/i386.h (TARGET_SLM): New target macro.
26013 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
26014 (processor_type): Add PROCESSOR_SLM.
26015
26016 * config/i386/i386.md (cpu): Add new value "slm".
26017 (slm.md): Include slm.md.
26018
26019 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
26020 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26021
26022 * config/arm/arm-protos.h: Add and update function protos.
26023 * config/arm/arm.c (use_simple_return_p): New added.
26024 (thumb2_expand_return): Check simple_return flag.
26025 * config/arm/arm.md: Add simple_return and conditional simple_return.
26026 * config/arm/iterators.md: Add iterator for return and simple_return.
26027
26028 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26029
26030 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
26031 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
26032 (arm_emit_vfp_multi_reg_pop): Likewise.
26033 (thumb2_emit_ldrd_pop): Likewise.
26034 (arm_expand_epilogue): Add misc REG_CFA notes.
26035 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
26036
26037 2013-05-29 Lawrence Crowl <crowl@google.com>
26038
26039 * config/arm/t-arm: Update for below.
26040
26041 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
26042 Change type to hash_table. Update dependent calls and types.
26043
26044 * config/i386/t-cygming: Update for below.
26045
26046 * config/i386/t-interix: Update for below.
26047
26048 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
26049 Change type to hash_table. Update dependent calls and types.
26050 (i386_find_on_wrapper_list::wrappers): Likewise.
26051
26052 * config/ia64/t-ia64: Update for below.
26053
26054 * config/ia64/ia64.c (bundle_state_table):
26055 Change type to hash_table. Update dependent calls and types.
26056
26057 * config/mips/mips.c (mips_reorg_process_insns::htab):
26058 Change type to hash_table. Update dependent calls and types.
26059
26060 * config/sol2.c (solaris_comdat_htab):
26061 Change type to hash_table. Update dependent calls and types.
26062
26063 * config/t-sol2: Update for above.
26064
26065 2013-05-29 Teresa Johnson <tejohnson@google.com>
26066
26067 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
26068 functions are not yet marked as defined.
26069
26070 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
26071 Pat Haugen <pthaugen@us.ibm.com>
26072 Peter Bergner <bergner@vnet.ibm.com>
26073
26074 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
26075 instructions.
26076 (VEC_A): Likewise.
26077 (VEC_C): Likewise.
26078 (vrotl<mode>3): Likewise.
26079 (vashl<mode>3): Likewise.
26080 (vlshr<mode>3): Likewise.
26081 (vashr<mode>3): Likewise.
26082
26083 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26084 support for power8 V2DI builtins.
26085
26086 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
26087 power8 V2DI builtins.
26088 (vupkhsw): Likewise.
26089 (vupklsw): Likewise.
26090 (vaddudm): Likewise.
26091 (vminsd): Likewise.
26092 (vmaxsd): Likewise.
26093 (vminud): Likewise.
26094 (vmaxud): Likewise.
26095 (vpkudum): Likewise.
26096 (vpksdss): Likewise.
26097 (vpkudus): Likewise.
26098 (vpksdus): Likewise.
26099 (vrld): Likewise.
26100 (vsld): Likewise.
26101 (vsrd): Likewise.
26102 (vsrad): Likewise.
26103 (vsubudm): Likewise.
26104 (vcmpequd): Likewise.
26105 (vcmpgtsd): Likewise.
26106 (vcmpgtud): Likewise.
26107 (vcmpequd_p): Likewise.
26108 (vcmpgtsd_p): Likewise.
26109 (vcmpgtud_p): Likewise.
26110 (vupkhsw): Likewise.
26111 (vupklsw): Likewise.
26112 (vaddudm): Likewise.
26113 (vmaxsd): Likewise.
26114 (vmaxud): Likewise.
26115 (vminsd): Likewise.
26116 (vminud): Likewise.
26117 (vpksdss): Likewise.
26118 (vpksdus): Likewise.
26119 (vpkudum): Likewise.
26120 (vpkudus): Likewise.
26121 (vrld): Likewise.
26122 (vsld): Likewise.
26123 (vsrad): Likewise.
26124 (vsrd): Likewise.
26125 (vsubudm): Likewise.
26126
26127 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
26128 support for power8 V2DI instructions.
26129
26130 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
26131 power8 V2DI instructions. Combine pack and unpack insns to use an
26132 iterator for each mode. Check whether a particular mode supports
26133 Altivec instructions instead of just checking TARGET_ALTIVEC.
26134 (UNSPEC_VPKUWUM): Likewise.
26135 (UNSPEC_VPKSHSS): Likewise.
26136 (UNSPEC_VPKSWSS): Likewise.
26137 (UNSPEC_VPKUHUS): Likewise.
26138 (UNSPEC_VPKSHUS): Likewise.
26139 (UNSPEC_VPKUWUS): Likewise.
26140 (UNSPEC_VPKSWUS): Likewise.
26141 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
26142 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
26143 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
26144 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
26145 (UNSPEC_VUPKHSB): Likewise.
26146 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
26147 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
26148 (UNSPEC_VUPKHSH): Likewise.
26149 (UNSPEC_VUPKLSB): Likewise.
26150 (UNSPEC_VUPKLSH): Likewise.
26151 (VI2): Likewise.
26152 (VI_char): Likewise.
26153 (VI_scalar): Likewise.
26154 (VI_unit): Likewise.
26155 (VP): Likewise.
26156 (VP_small): Likewise.
26157 (VP_small_lc): Likewise.
26158 (VU_char): Likewise.
26159 (add<mode>3): Likewise.
26160 (altivec_vaddcuw): Likewise.
26161 (altivec_vaddu<VI_char>s): Likewise.
26162 (altivec_vadds<VI_char>s): Likewise.
26163 (sub<mode>3): Likewise.
26164 (altivec_vsubcuw): Likewise.
26165 (altivec_vsubu<VI_char>s): Likewise.
26166 (altivec_vsubs<VI_char>s): Likewise.
26167 (altivec_vavgs<VI_char>): Likewise.
26168 (altivec_vcmpbfp): Likewise.
26169 (altivec_eq<mode>): Likewise.
26170 (altivec_gt<mode>): Likewise.
26171 (altivec_gtu<mode>): Likewise.
26172 (umax<mode>3): Likewise.
26173 (smax<mode>3): Likewise.
26174 (umin<mode>3): Likewise.
26175 (smin<mode>3): Likewise.
26176 (altivec_vpkuhum): Likewise.
26177 (altivec_vpkuwum): Likewise.
26178 (altivec_vpkshss): Likewise.
26179 (altivec_vpkswss): Likewise.
26180 (altivec_vpkuhus): Likewise.
26181 (altivec_vpkshus): Likewise.
26182 (altivec_vpkuwus): Likewise.
26183 (altivec_vpkswus): Likewise.
26184 (altivec_vpks<VI_char>ss): Likewise.
26185 (altivec_vpks<VI_char>us): Likewise.
26186 (altivec_vpku<VI_char>us): Likewise.
26187 (altivec_vpku<VI_char>um): Likewise.
26188 (altivec_vrl<VI_char>): Likewise.
26189 (altivec_vsl<VI_char>): Likewise.
26190 (altivec_vsr<VI_char>): Likewise.
26191 (altivec_vsra<VI_char>): Likewise.
26192 (altivec_vsldoi_<mode>): Likewise.
26193 (altivec_vupkhsb): Likewise.
26194 (altivec_vupkhs<VU_char>): Likewise.
26195 (altivec_vupkls<VU_char>): Likewise.
26196 (altivec_vupkhsh): Likewise.
26197 (altivec_vupklsb): Likewise.
26198 (altivec_vupklsh): Likewise.
26199 (altivec_vcmpequ<VI_char>_p): Likewise.
26200 (altivec_vcmpgts<VI_char>_p): Likewise.
26201 (altivec_vcmpgtu<VI_char>_p): Likewise.
26202 (abs<mode>2): Likewise.
26203 (vec_unpacks_hi_v16qi): Likewise.
26204 (vec_unpacks_hi_v8hi): Likewise.
26205 (vec_unpacks_lo_v16qi): Likewise.
26206 (vec_unpacks_hi_<VP_small_lc>): Likewise.
26207 (vec_unpacks_lo_v8hi): Likewise.
26208 (vec_unpacks_lo_<VP_small_lc>): Likewise.
26209 (vec_pack_trunc_v8h): Likewise.
26210 (vec_pack_trunc_v4si): Likewise.
26211 (vec_pack_trunc_<mode>): Likewise.
26212
26213 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
26214 V2DI builtins.
26215 (vec_vmaxsd): Likewise.
26216 (vec_vmaxud): Likewise.
26217 (vec_vminsd): Likewise.
26218 (vec_vminud): Likewise.
26219 (vec_vpksdss): Likewise.
26220 (vec_vpksdus): Likewise.
26221 (vec_vpkudum): Likewise.
26222 (vec_vpkudus): Likewise.
26223 (vec_vrld): Likewise.
26224 (vec_vsld): Likewise.
26225 (vec_vsrad): Likewise.
26226 (vec_vsrd): Likewise.
26227 (vec_vsubudm): Likewise.
26228 (vec_vupkhsw): Likewise.
26229 (vec_vupklsw): Likewise.
26230
26231 2013-05-29 Jan Hubicka <jh@suse.cz>
26232
26233 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
26234 flags; reorder rest of fields in more consistent way.
26235 (varpool_node): Remove analyzed, finalized and alias.
26236 (cgraph_ndoe): Likewise.
26237 (symtab_alias_ultimate_target): New function.
26238 (cgraph_function_node): Move offline.
26239 (cgraph_reset_node): Declare.
26240 (cgraph_comdat_can_be_unshared_p): Remove.
26241 (varpool_remove_initializer): Declare.
26242 (varpool_first_defined_variable, varpool_next_defined_variable
26243 cgraph_first_defined_function, cgraph_next_defined_function): Update.
26244 (cgraph_function_with_gimple_body_p): Update.
26245 (varpool_all_refs_explicit_p): Update.
26246 (symtab_alias_target): New function.
26247 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
26248 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
26249 (cgraph_function_or_thunk_node): Simplify using
26250 symtab_alias_ultimate_target.
26251 (varpool_variable_node): Likewise.
26252 * cgraph.c (cgraph_create_function_alias): Update.
26253 (cgraph_add_thunk): Update.
26254 (cgraph_remove_node): Update.
26255 (dump_cgraph_node): Do not dump removed flags.
26256 (cgraph_function_body_availability): Update.
26257 (cgraph_propagate_frequency): Update.
26258 (verify_cgraph_node): Check sanity of local flag.
26259 (cgraph_function_node): Move here from cgraph.h; revamp for
26260 cgraph_function_or_thunk_node.
26261 * lto-symtab.c (lto_varpool_replace_node): Update.
26262 (lto_symtab_resolve_can_prevail_p): Update.
26263 (lto_symtab_merge_cgraph_nodes): Update.
26264 * ipa-cp.c (determine_versionability, initialize_node_lattices,
26265 propagate_constants_accross_call, devirtualization_time_bonus,
26266 ipcp_propagate_stage): Update.
26267 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
26268 * ipa-inline-transform.c (clone_inlined_nodes,
26269 preserve_function_body_p): Update.
26270 * ipa-reference.c (propagate): Update.
26271 (write_node_summary_p): Update.
26272 * toplev.c (wrapup_global_declaration_2): Update.
26273 * cgraphunit.c (cgraph_analyze_function): Rename to ...
26274 (analyze_function) ... this one.
26275 (cgraph_process_new_functions): Update.
26276 (cgraph_reset_node): Export.
26277 (cgraph_finalize_function): Update.
26278 (cgraph_add_new_function): Update.
26279 (process_function_and_variable_attributes): Update.
26280 (varpool_finalize_decl): Update.
26281 (symbol_finalized): Remove.
26282 (symbol_finalized_and_needed): Rename to ...
26283 (symbol_defined_and_needed): ... update.
26284 (cgraph_analyze_functions): Update.
26285 (handle_alias_pairs): Update.
26286 (mark_functions_to_output): Update.
26287 (assemble_thunk): Update.
26288 (output_in_order): Update.
26289 (output_weakrefs): Update.
26290 (finalize_compilation_unit): Update.
26291 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
26292 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
26293 input_node, input_varpool_node): Update.
26294 * dbxout.c (dbxout_expand_expr): Update.
26295 * cgraphclones.c (cgraph_clone_node): Update.
26296 (cgraph_copy_node_for_versioning): Update.
26297 (cgraph_materialize_clone): Update.
26298 (cgraph_materialize_all_clones): Update.
26299 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
26300 propagate_pure_const, propagate_nothrow): Update.
26301 * lto-streamer-out.c (lto_output, write_symbol): Update.
26302 * ipa-utils.c (ipa_reverse_postorder): Update.
26303 * ipa-inline.c (can_inline_edge_p): Update.
26304 (update_caller_keys, ipa_inline): Update.
26305 * dwarf2out.c (reference_to_unused,
26306 premark_types_used_by_global_vars_helper): Update.
26307 * tree-eh.c (tree_could_trap_p): Update.
26308 * ipa-split.c (consider_split, execute_split_functions): Update.
26309 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
26310 has_addr_references_p): Update; move ahead in file for better
26311 readability.
26312 (process_references): Simplify.
26313 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
26314 bodies are removed.
26315 (cgraph_comdat_can_be_unshared_p): Make static.
26316 (cgraph_externally_visible_p): Update.
26317 (varpool_externally_visible_p): Update.
26318 (function_and_variable_visibility): Update.
26319 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
26320 ipa_tm_mark_force_output_node): Update.
26321 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
26322 estimate_edge_devirt_benefit, inline_generate_summary,
26323 inline_write_summary): Update.
26324 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
26325 * ipa-prop.c (ipa_compute_jump_functions): Update.
26326 (ipa_print_node_params, ipa_prop_read_section,
26327 ipa_update_after_lto_read, read_replacements_section): Update.
26328 * varasm.c (mark_decl_referenced): Update.
26329 (assemble_alias, dump_tm_clone_pairs): Update.
26330 * tree-inline.c (copy_bb): Update.
26331 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
26332 Update.
26333 * symtab.c (dump_symtab_base): Print new flags.
26334 (verify_symtab_base): Verify new flags.
26335 (symtab_alias_ultimate_target): New function.
26336 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
26337 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
26338 Update.
26339 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
26340 Update.
26341 * i386.c (ix86_get_function_versions_dispatcher,
26342 ix86_generate_version_dispatcher_body): Update.
26343 (fold_builtin_cpu): Use varpool_add_new_variable.
26344 * varpool.c (varpool_remove_initializer): Break out from ...
26345 (varpool_remove_node): ... this one.
26346 (dump_varpool_node, varpool_node_for_asm,
26347 cgraph_variable_initializer_availability, varpool_analyze_node,
26348 varpool_assemble_decl, varpool_remove_unreferenced_decls,
26349 varpool_finalize_named_section_flags, varpool_create_variable_alias):
26350 Update.
26351
26352 2013-05-29 Jan Hubicka <jh@suse.cz>
26353
26354 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
26355
26356 2013-05-29 Easwaran Raman <eraman@google.com>
26357
26358 PR tree-optimization/57442
26359 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
26360 when control exits the main loop.
26361
26362 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
26363
26364 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
26365 and RX600.
26366 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
26367 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
26368 * rx/t-rx: Add rx100 under multi library matches option for nofpu
26369 option.
26370
26371 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26372
26373 PR tree-optimization/57441
26374 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
26375 Don't limit size of incr_vec to number of candidates.
26376
26377 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
26378
26379 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
26380 and mips16 directories.
26381 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
26382 (MULTILIB_DIRNAMES): Ditto.
26383 (MULTILIB_EXCEPTIONS): Add new exceptions.
26384 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
26385 (MULTILIB_DIRNAMES): Ditto.
26386 (MULTILIB_EXCEPTIONS): Add new exceptions.
26387
26388 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26389 Marcus Shawcroft <marcus.shawcroft@arm.com>
26390
26391 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
26392 SYMBOL_TINY_ABSOLUTE.
26393 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
26394 SYMBOL_TINY_ABSOLUTE.
26395 (aarch64_expand_mov_immediate): Likewise.
26396 (aarch64_classify_symbol): Likewise.
26397 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
26398 Permit SYMBOL_TINY_ABSOLUTE.
26399 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
26400
26401 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26402 Marcus Shawcroft <marcus.shawcroft@arm.com>
26403
26404 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
26405 Refactor if/switch. Replace gcc_assert with if.
26406
26407 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26408
26409 * config/i386/i386.c (initial_ix86_tune_features): Enable
26410 FP Reassociation for AMD bdver1 and bdver2.
26411
26412 2013-05-29 Martin Jambor <mjambor@suse.cz>
26413
26414 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
26415 and IMAGPART_EXPR do not occur within other handled_components.
26416
26417 2013-05-29 Richard Biener <rguenther@suse.de>
26418
26419 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
26420 access on whether the use is in the BB we currently try to
26421 vectorize.
26422 (vect_bb_vectorization_profitable_p): Pass the BB we currently
26423 vectorize to vect_bb_slp_scalar_cost.
26424
26425 2013-05-29 Richard Biener <rguenther@suse.de>
26426
26427 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
26428 computing scalar cost offsetted by stmts that are kept live
26429 by scalar uses.
26430 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
26431 for computation of scalar cost.
26432
26433 2013-05-28 Steve Ellcey <sellcey@mips.com>
26434
26435 * config/mips/mips-cpus.def (mips32r2): Change processor type.
26436
26437 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
26438
26439 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
26440 array notation built-in reduction functions.
26441 * doc/passes.texi (Passes): Added documentation about changes done
26442 for Cilk Plus.
26443 * doc/invoke.texi (C Dialect Options): Added documentation about
26444 the -fcilkplus flag.
26445 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
26446 (BUILTINS_DEF): Depend on cilkplus.def.
26447 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
26448 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
26449 * cilkplus.def: New file.
26450
26451 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
26452
26453 PR rtl-optimization/57439
26454 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
26455
26456 2013-05-28 Easwaran Raman <eraman@google.com>
26457
26458 PR tree-optimization/57337
26459 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
26460 (find_insert_point): Correctly identify the insertion point
26461 when two statements with the same UID is compared.
26462
26463 2013-05-28 Richard Biener <rguenther@suse.de>
26464
26465 PR tree-optimization/56787
26466 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
26467 from the list of data references.
26468 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
26469 clobbers.
26470 (vect_analyze_loop_operations): Likewise.
26471 (vect_transform_loop): Remove clobbers.
26472
26473 2013-05-28 Martin Jambor <mjambor@suse.cz>
26474
26475 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
26476 and REALPART_EXPRs have scalar type.
26477
26478 2013-05-28 Richard Biener <rguenther@suse.de>
26479
26480 PR tree-optimization/57411
26481 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
26482 virtual operands.
26483 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
26484 virtual operand propagation.
26485
26486 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
26487
26488 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
26489 destination register for bmasksi_vis.
26490 (vector_init_bshuffle): Likewise.
26491 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
26492
26493 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
26494
26495 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
26496 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
26497 mode if the instruction isn't available in the original mode.
26498 * config/sparc/sparc.opt (mfix-ut699): New option.
26499 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
26500 (divdf3): Turn into expander.
26501 (divdf3_nofix): New insn.
26502 (divdf3_fix): Likewise.
26503 (divsf3): Disable if -mfix-ut699.
26504 (sqrtdf2): Turn into expander.
26505 (sqrtdf2_nofix): New insn.
26506 (sqrtdf2_fix): Likewise.
26507 (sqrtsf2): Disable if -mfix-ut699.
26508
26509 2013-05-27 Richard Biener <rguenther@suse.de>
26510
26511 PR middle-end/57412
26512 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
26513 block for the new loop.
26514
26515 2013-05-27 Richard Biener <rguenther@suse.de>
26516
26517 PR tree-optimization/57343
26518 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
26519 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
26520 (number_of_iterations_cond): Do not build the folded tree.
26521
26522 2013-05-27 Richard Biener <rguenther@suse.de>
26523
26524 Revert
26525 PR middle-end/57381
26526 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26527 OEP_CONSTANT_ADDRESS_OF retained.
26528
26529 PR tree-optimization/57417
26530 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
26531 for unchanged base.
26532 (set_ssa_val_to): Compare addresses using
26533 get_addr_base_and_unit_offset.
26534
26535 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
26536
26537 PR rtl-optimization/56833
26538 * postreload.c (move2add_record_mode): New function.
26539 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
26540 (move2add_use_add2_insn): Use move2add_record_sym_value.
26541 (move2add_use_add3_insn): Likewise.
26542 (reload_cse_move2add): Use move2add_valid_value_p and
26543 move2add_record_mode. Invalidate call-clobbered and REG_INC
26544 affected regs by setting reg_mode to VOIDmode.
26545 (move2add_note_store): Don't pretend the inside of a SUBREG is
26546 the actual destination. Invalidate single/leading registers by
26547 setting reg_mode to VOIDmode.
26548 Use move2add_record_sym_value, move2add_valid_value_p and
26549 move2add_record_mode.
26550
26551 2013-05-27 Richard Biener <rguenther@suse.de>
26552
26553 PR tree-optimization/57396
26554 * tree-affine.c (double_int_constant_multiple_p): Properly
26555 return false for val == 0 and div != 0.
26556
26557 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26558
26559 * config/mips/mips.h: Use #elif in preprocessor conditions.
26560
26561 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26562
26563 PR target/53916
26564 * config/mips/constraints.md (kl): New constraint.
26565 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
26566 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
26567 constraint for operand 0. Split after CSE for MIPS16. Emit a move
26568 from LO for MIPS16.
26569 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
26570
26571 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26572
26573 PR target/55777
26574 * config/mips/mips.c (mips_can_inline_p): New function.
26575 (TARGET_CAN_INLINE_P): Define.
26576
26577 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
26578
26579 * sched-int.h (ds_t, dw_t): Make unsigned int.
26580 Fix documentation that describes how all the ds_t bits are used.
26581 Reserve the last bit for delayed-branch scheduling.
26582 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
26583 (BITS_PER_DEP_WEAK): Fix definition and documentation.
26584 (gen_dep_weak_1): Remove prototype.
26585 * sched-deps.c (get_dep_weak_1): Make static.
26586 * target.def (speculate_insn, needs_block_p, gen_spec_check,
26587 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
26588 * doc/tm.texi: Regenerate.
26589 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
26590
26591 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
26592
26593 PR debug/56950
26594 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
26595
26596 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
26597 Sandra Loosemore <sandra@codesourcery.com>
26598
26599 * config.gcc (powerpc-*): Allow native for with-cpu.
26600
26601 2013-05-24 Jeff Law <law@redhat.com>
26602
26603 PR tree-optimization/57124
26604 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
26605 conversion feeding a condition if the range has an overflow
26606 if -fstrict-overflow. Add warnings for when we do make the
26607 transformation.
26608
26609 2013-05-24 Dehao Chen <dehao@google.com>
26610
26611 * tree-cfg.c (locus_discrim_map): Fix the typo.
26612 (locus_discrim_hasher): Likewise.
26613 (locus_discrim_hasher::hash): Likewise.
26614 (locus_discrim_hasher::equal): Likewise.
26615
26616 2013-05-24 Martin Jambor <mjambor@suse.cz>
26617
26618 PR tree-optimization/57294
26619 * cgraph.h (ipa_record_stmt_references): Declare.
26620 * cgraphbuild.c (ipa_record_stmt_references): New function.
26621 (build_cgraph_edges): Use ipa_record_stmt_references.
26622 (rebuild_cgraph_edges): Likewise.
26623 (cgraph_rebuild_references): Likewise.
26624 * ipa-prop.c (ipa_modify_call_arguments): Discard references
26625 associated with the old statement and build references from the
26626 newly built statements.
26627 * ipa-ref.c (ipa_remove_stmt_references): New function.
26628 * ipa-ref.h (ipa_remove_stmt_references): Declare.
26629
26630 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
26631
26632 * lra-constraints.c (emit_spill_move): Use smaller mode for
26633 mem-mem moves.
26634 (check_and_process_move): Consider mem-reg moves for secondary
26635 too.
26636 (curr_insn_transform): Don't lose insns emitted before for
26637 secondary memory moves.
26638 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
26639 reg set up in the current insn.
26640
26641 2013-05-24 Dehao Chen <dehao@google.com>
26642
26643 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
26644 hash function.
26645 (locus_descrim_hasher::equal): Likewise.
26646 (build_gimple_cfg): New discriminator assignment algorithm.
26647 (make_edges): Likewise.
26648 (next_discriminator_for_locus): Likewise.
26649 (same_line_p): Likewise.
26650 (assign_discriminators): Likewise.
26651 (make_cond_expr_edges): Likewise.
26652 (make_gimple_switch_edges): Likewise.
26653 (make_goto_expr_edges): Likewise.
26654 (make_gimple_asm_edges): Likewise.
26655
26656 2013-05-24 Ian Bolton <ian.bolton@arm.com>
26657
26658 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
26659 X format specifier to only display bottom 16 bits.
26660 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
26661 immediate to match for operand 2, since it will be masked.
26662
26663 2013-05-24 Richard Biener <rguenther@suse.de>
26664
26665 PR tree-optimization/57287
26666 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
26667 all SSA names that occur in abnormal PHIs.
26668
26669 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
26670
26671 PR tree-ssa/57385
26672 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
26673 that index is not negative.
26674
26675 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
26676
26677 PR rtl-optimization/55177
26678 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
26679 (simplify_byte_swapping_operation): New.
26680 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
26681 (simplify_relational_operation_1): Deal with BSWAP.
26682
26683 2013-05-23 Richard Henderson <rth@redhat.com>
26684
26685 PR target/56742
26686 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
26687 (ix86_reorg): Call it.
26688
26689 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
26690
26691 PR target/57379
26692 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
26693 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
26694 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
26695
26696 2013-05-23 Christian Bruel <christian.bruel@st.com>
26697
26698 PR debug/57351
26699 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
26700
26701 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26702 Marcus Shawcroft <marcus.shawcroft@arm.com>
26703
26704 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
26705 * config/aarch64/constraints.md (Usa): Remove.
26706 * doc/md.texi (AArch64 Usa): Remove.
26707
26708 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26709 Marcus Shawcroft <marcus.shawcroft@arm.com>
26710
26711 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
26712 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
26713 * config/aarch64/predicates.md (aarch64_const_address): Remove.
26714 (aarch64_mov_operand): Use aarch64_mov_operand_p.
26715
26716 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
26717
26718 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
26719 instruction (AdvSIMD).
26720 * config/aarch64/aarch64-builtins.c
26721 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
26722 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
26723
26724 2013-05-23 Martin Jambor <mjambor@suse.cz>
26725
26726 PR middle-end/57347
26727 * tree.h (contains_bitfld_component_ref_p): Declare.
26728 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
26729 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
26730 caller.
26731 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
26732 not access a bit-field. Assert all final offsets are byte-aligned.
26733
26734 2013-05-23 Richard Biener <rguenther@suse.de>
26735
26736 PR tree-optimization/57380
26737 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
26738 least one invariant or re-used load.
26739 * passes.c (init_optimization_passes): Move pass_phiprop before
26740 pass_forwprop.
26741
26742 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
26743
26744 * config/aarch64/aarch64-simd.md
26745 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
26746
26747 2013-05-23 Richard Biener <rguenther@suse.de>
26748
26749 PR middle-end/57381
26750 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26751 OEP_CONSTANT_ADDRESS_OF retained.
26752
26753 2013-05-23 Jakub Jelinek <jakub@redhat.com>
26754
26755 PR middle-end/57344
26756 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
26757 don't lower unit. Handle unit not being always BITS_PER_WORD.
26758
26759 2013-05-23 Richard Biener <rguenther@suse.de>
26760
26761 PR rtl-optimization/57341
26762 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
26763 instead of true_dependence.
26764
26765 2013-05-22 David Malcolm <dmalcolm@redhat.com>
26766
26767 * bb-reorder.c (branch_threshold): Make const.
26768 (exec_threshold): Ditto.
26769
26770 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26771 Pat Haugen <pthaugen@us.ibm.com>
26772 Peter Bergner <bergner@vnet.ibm.com>
26773
26774 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
26775 documentation for the power8 crypto builtins.
26776
26777 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
26778
26779 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
26780 macros for defining power8 builtin functions.
26781 (BU_P8V_AV_2): Likewise.
26782 (BU_P8V_AV_P): Likewise.
26783 (BU_P8V_VSX_1): Likewise.
26784 (BU_P8V_OVERLOAD_1): Likewise.
26785 (BU_P8V_OVERLOAD_2): Likewise.
26786 (BU_CRYPTO_1): Likewise.
26787 (BU_CRYPTO_2): Likewise.
26788 (BU_CRYPTO_3): Likewise.
26789 (BU_CRYPTO_OVERLOAD_1): Likewise.
26790 (BU_CRYPTO_OVERLOAD_2): Likewise.
26791 (XSCVSPDP): Fix typo, point to the correct instruction.
26792 (VCIPHER): Add power8 crypto builtins.
26793 (VCIPHERLAST): Likewise.
26794 (VNCIPHER): Likewise.
26795 (VNCIPHERLAST): Likewise.
26796 (VPMSUMB): Likewise.
26797 (VPMSUMH): Likewise.
26798 (VPMSUMW): Likewise.
26799 (VPERMXOR_V2DI): Likewise.
26800 (VPERMXOR_V4SI: Likewise.
26801 (VPERMXOR_V8HI: Likewise.
26802 (VPERMXOR_V16QI: Likewise.
26803 (VSHASIGMAW): Likewise.
26804 (VSHASIGMAD): Likewise.
26805 (VPMSUM): Likewise.
26806 (VPERMXOR): Likewise.
26807 (VSHASIGMA): Likewise.
26808
26809 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26810 __CRYPTO__ if the crypto instructions are available.
26811 (altivec_overloaded_builtins): Add support for overloaded power8
26812 builtins.
26813
26814 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
26815 support for power8 crypto builtins.
26816 (builtin_function_type): Likewise.
26817 (altivec_init_builtins): Add support for builtins that take vector
26818 long long (V2DI) arguments.
26819
26820 * config/rs6000/crypto.md: New file, define power8 crypto
26821 instructions.
26822
26823 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26824 Pat Haugen <pthaugen@us.ibm.com>
26825 Peter Bergner <bergner@vnet.ibm.com>
26826
26827 * doc/invoke.texi (Option Summary): Add power8 options.
26828 (RS/6000 and PowerPC Options): Likewise.
26829
26830 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
26831 constraints.md instead of rs6000.h. Reorder w* constraints. Add
26832 wm, wn, wr documentation.
26833
26834 * config/rs6000/constraints.md (wm): New constraint for VSX
26835 registers if direct move instructions are enabled.
26836 (wn): New constraint for no registers.
26837 (wq): New constraint for quad word even GPR registers.
26838 (wr): New constraint if 64-bit instructions are enabled.
26839 (wv): New constraint if power8 vector instructions are enabled.
26840 (wQ): New constraint for quad word memory locations.
26841
26842 * config/rs6000/predicates.md (const_0_to_15_operand): New
26843 constraint for 0..15 for crypto instructions.
26844 (gpc_reg_operand): If VSX allow registers in VSX registers as well
26845 as GPR and floating point registers.
26846 (int_reg_operand): New predicate to match only GPR registers.
26847 (base_reg_operand): New predicate to match base registers.
26848 (quad_int_reg_operand): New predicate to match even GPR registers
26849 for quad memory operations.
26850 (vsx_reg_or_cint_operand): New predicate to allow vector logical
26851 operations in both GPR and VSX registers.
26852 (quad_memory_operand): New predicate for quad memory operations.
26853 (reg_or_indexed_operand): New predicate for direct move support.
26854
26855 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
26856 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
26857 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
26858 (POWERPC_MASKS): Add power8 options.
26859 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
26860 various options.
26861
26862 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26863 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
26864
26865 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
26866 (-mpower8-fusion): New power8 options.
26867 (-mpower8-fusion-sign): Likewise.
26868 (-mpower8-vector): Likewise.
26869 (-mcrypto): Likewise.
26870 (-mdirect-move): Likewise.
26871 (-mquad-memory): Likewise.
26872
26873 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
26874 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
26875 registers.
26876 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
26877 (rs6000_debug_vector_unit): Add p8_vector.
26878 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
26879 definitions. Also print fusion state.
26880 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
26881 (rs6000_builtin_mask_calculate): Add power8 builtin support.
26882 (rs6000_option_override_internal): Add support for power8.
26883 (rs6000_common_init_builtins): Add debugging for skipped builtins
26884 if -mdebug=builtin.
26885 (rs6000_adjust_cost): Add power8 support.
26886 (rs6000_issue_rate): Likewise.
26887 (insn_must_be_first_in_group): Likewise.
26888 (insn_must_be_last_in_group): Likewise.
26889 (force_new_group): Likewise.
26890 (rs6000_register_move_cost): Likewise.
26891 (rs6000_opt_masks): Likewise.
26892
26893 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
26894 power8 capable assembler, default to power7 options.
26895 (TARGET_DIRECT_MOVE): Likewise.
26896 (TARGET_CRYPTO): Likewise.
26897 (TARGET_P8_VECTOR): Likewise.
26898 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
26899 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
26900 (VECTOR_MEM_P8_VECTOR_P): Likewise.
26901 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
26902 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
26903 (TARGET_XSCVDPSPN): Likewise.
26904 (TARGET_XSCVSPDPN): Likewsie.
26905 (TARGET_SYNC_HI_QI): Likewise.
26906 (TARGET_SYNC_TI): Likewise.
26907 (MASK_CRYPTO): Likewise.
26908 (MASK_DIRECT_MOVE): Likewise.
26909 (MASK_P8_FUSION): Likewise.
26910 (MASK_P8_VECTOR): Likewise.
26911 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
26912 temporary used by some of the direct move instructions to get two FP
26913 temporary registers does not force creation of a stack frame.
26914 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26915 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26916 that any VSX registers are tieable, even if they are also an
26917 Altivec vector mode.
26918 (r6000_reg_class_enum): Add wm, wr, wv constraints.
26919 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26920 (RS6000_BTM_CRYPTO): Likewise.
26921 (RS6000_BTM_COMMON): Likewise.
26922
26923 * config/rs6000/rs6000.md (cpu attribute): Add power8.
26924 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26925 (enum rs6000_vector): Add power8 vector support.
26926
26927 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26928
26929 PR target/19599
26930 PR target/57340
26931 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26932 (any_sibcall_could_use_r3): this and handle indirect calls.
26933 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26934
26935 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26936
26937 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26938
26939 2013-05-22 Richard Biener <rguenther@suse.de>
26940
26941 PR middle-end/57349
26942 * profile.c (branch_prob): Do not split blocks that are
26943 abnormally receiving from ECF_RETURNS_TWICE functions.
26944
26945 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26946
26947 * recog.c (offsettable_address_addr_space_p): Fix calculation of
26948 address mode. Move pointer mode initialization to the same place.
26949
26950 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26951
26952 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26953 while it has any effect.
26954
26955 2013-05-21 Easwaran Raman <eraman@google.com>
26956
26957 PR tree-optimization/57322
26958 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26959 UID of the statement added to the BB to be 1.
26960
26961 2013-05-21 Jakub Jelinek <jakub@redhat.com>
26962
26963 PR tree-optimization/57331
26964 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26965 of conversion from pointer type to integral type with integer.
26966
26967 2013-05-21 Martin Jambor <mjambor@suse.cz>
26968
26969 PR lto/57289
26970 * ipa-prop.c (ipa_read_node_info): Process param_used and
26971 controlled_uses in the same order as when writing.
26972
26973 2013-05-21 Magnus Granberg <baldrick@free.fr>
26974
26975 PR plugins/56754
26976 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26977
26978 2013-05-21 Richard Biener <rguenther@suse.de>
26979
26980 PR tree-optimization/57318
26981 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26982 estimate stmts with side-effects as likely eliminated.
26983
26984 2013-05-21 Richard Biener <rguenther@suse.de>
26985
26986 PR tree-optimization/57330
26987 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26988 preserve the call stmts fntype.
26989
26990 2013-05-21 Richard Biener <rguenther@suse.de>
26991
26992 PR tree-optimization/57303
26993 * tree-ssa-sink.c (statement_sink_location): Improve killing
26994 stmt detection and properly handle self-assignments.
26995
26996 2013-05-21 Christian Bruel <christian.bruel@st.com>
26997
26998 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26999 spanning registers. LEAF_REG_REMAP is supported only for contiguous
27000 registers. Set register size out of the PARALLEL loop.
27001
27002 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
27003
27004 PR target/56547
27005 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
27006 (*fmasf4, *fmasf4_media): New insns.
27007
27008 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
27009
27010 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
27011 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
27012 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
27013 (mips_idiv_insns): Update the comments to say that the returned
27014 instruction counts are in units of BASE_INSN_LENGTH.
27015 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
27016 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
27017 using 2 rather than 4 as the length of indirect MIPS16 and
27018 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
27019 length of a NOP. Don't divide MIPS16 lengths by 2.
27020 (mips16_split_long_branches): Assume a branch is long if the
27021 length is greater than 4 rather than 8.
27022 * config/mips/mips.md (length): Give MIPS16 lengths directly,
27023 rather than multiplying them by 2. Multiply instruction counts
27024 by BASE_INSN_LENGTH rather than 4.
27025 (*jump_mips16, tls_get_tp_mips16_<mode>)
27026 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
27027
27028 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
27029
27030 * config/mips/mips.md (extended_mips16): Remove branch case.
27031 (length): Remove duplicated extended_mips16 test.
27032
27033 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
27034
27035 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
27036
27037 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
27038
27039 * recog.h (Recog_data): Rename to...
27040 (recog_data_d): ...this.
27041 (recog_data): Update accordingly.
27042 * recog.c (recog_data): Likewise.
27043 * reload.c (save_recog_data): Likewise.
27044 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
27045 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
27046
27047 2013-05-17 Julian Brown <julian@codesourcery.com>
27048
27049 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
27050 found in a REG_EQUAL note, invalidate it.
27051
27052 2013-05-17 Easwaran Raman <eraman@google.com>
27053
27054 * tree-ssa-reassoc.c (find_insert_point): New function.
27055 (insert_stmt_after): Likewise.
27056 (get_def_stmt): Likewise.
27057 (ensure_ops_are_available): Likewise.
27058 (not_dominated_by): Likewise.
27059 (rewrite_expr_tree): Do not move statements beyond what is
27060 necessary. Remove call to swap_ops_for_binary_stmt...
27061 (reassociate_bb): ... and move it here.
27062 (build_and_add_sum): Assign UIDs for new statements.
27063 (linearize_expr): Likewise.
27064 (do_reassoc): Renumber gimple statement UIDs.
27065
27066 2013-05-17 Jan Hubicka <jh@suse.cz>
27067
27068 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
27069 weakrefs.
27070 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
27071 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
27072 weakrefs.
27073 (output_weakrefs): Update.
27074
27075 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
27076 Martin Jambor <mjambor@suse.cz>
27077
27078 PR middle-end/57276
27079 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
27080 value that corresponds to the given aggval is found in values vector.
27081
27082 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
27083
27084 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
27085 sse, sse2, sse3, ssse3 and sse4a flags to options.
27086
27087 2013-05-17 David Malcolm <dmalcolm@redhat.com>
27088
27089 * gengtype-state.c: (s_expr_writer): New class, to handle
27090 prettifying of output layout of s-expressions.
27091 (state_writer): New class, to write out gtype.state.
27092 (state_written_type_count): Move this variable into member data of
27093 state_writer.
27094 (s_expr_writer::s_expr_writer): New code: constructor for new class
27095 (state_writer::state_writer(): ditto
27096 (s_expr_writer::write_new_line): New function
27097 (s_expr_writer::write_any_indent): ditto
27098 (s_expr_writer::begin_s_expr): ditto
27099 (s_expr_writer::end_s_expr): ditto
27100 (write_state_fileloc): convert to method of state_writer...
27101 (state_writer:: write_state_fileloc): ...and use methods of
27102 s_expr_writer to write indentation into the gtype.state output file
27103 to visually represent the hierarchical structure of the list
27104 structures
27105 (write_state_fields): ditto, renaming to...
27106 (state_writer::write_state_fields)
27107 (write_state_a_string): ditto, renaming to...
27108 (state_writer::write_state_a_string)
27109 (write_state_string_option): ditto, renaming to...
27110 (state_writer::write_state_string_option)
27111 (write_state_type_option): ditto, renaming to...
27112 (state_writer::write_state_type_option)
27113 (write_state_nested_option): ditto, renaming to...
27114 (state_writer::write_state_nested_option)
27115 (write_state_option): ditto, renaming to...
27116 (state_writer::write_state_option)
27117 (write_state_options): ditto, renaming to...
27118 (state_writer::write_state_options)
27119 (write_state_lang_bitmap): ditto, renaming to...
27120 (state_writer::write_state_lang_bitmap)
27121 (write_state_version): ditto, renaming to...
27122 (state_writer::write_state_version)
27123 (write_state_scalar_type): ditto, renaming to...
27124 (state_writer::write_state_scalar_type)
27125 (write_state_string_type): ditto, renaming to...
27126 (state_writer::write_state_string_type)
27127 (write_state_undefined_type): ditto, renaming to...
27128 (state_writer::write_state_undefined_type)
27129 (write_state_struct_union_type): ditto, renaming to...
27130 (state_writer::write_state_struct_union_type)
27131 (write_state_struct_type): ditto, renaming to...
27132 (state_writer::write_state_struct_type)
27133 (write_state_user_struct_type): ditto, renaming to...
27134 (state_writer::write_state_user_struct_type)
27135 (write_state_lang_struct_type): ditto, renaming to...
27136 (state_writer::write_state_lang_struct_type)
27137 (write_state_param_struct_type): ditto, renaming to...
27138 (state_writer::write_state_param_struct_type)
27139 (write_state_pointer_type): ditto, renaming to...
27140 (state_writer::write_state_pointer_type)
27141 (write_state_array_type): ditto, renaming to...
27142 (state_writer::write_state_array_type)
27143 (write_state_gc_used): ditto, renaming to...
27144 (state_writer::write_state_gc_used)
27145 (write_state_common_type_content): ditto, renaming to...
27146 (state_writer::write_state_common_type_content)
27147 (write_state_type): ditto, renaming to...
27148 (state_writer::write_state_type)
27149 (write_state_pair_list): ditto, renaming to...
27150 (state_writer::write_state_pair_list)
27151 (write_state_pair): ditto, renaming to...
27152 (state_writer::write_state_pair)
27153 (write_state_typedefs): ditto, renaming to...
27154 (state_writer::write_state_typedefs)
27155 (write_state_structures): ditto, renaming to...
27156 (state_writer::write_state_structures)
27157 (write_state_param_structs): ditto, renaming to...
27158 (state_writer::write_state_param_structs)
27159 (write_state_variables): ditto, renaming to...
27160 (state_writer::write_state_variables)
27161 (write_state_srcdir): ditto, renaming to...
27162 (state_writer::write_state_srcdir)
27163 (write_state_files_list): ditto, renaming to...
27164 (state_writer::write_state_files_list)
27165 (write_state_languages): ditto, renaming to...
27166 (state_writer::write_state_languages)
27167 (write_state): create a state_writer instance and use it when
27168 writing out the state file
27169
27170 2013-05-17 Mike Stump <mikestump@comcast.net>
27171
27172 PR rtl-optimization/57304
27173 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
27174 accessing DF_REF_REAL_LOC.
27175
27176 2013-05-17 Jakub Jelinek <jakub@redhat.com>
27177
27178 PR rtl-optimization/57281
27179 PR rtl-optimization/57300
27180 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
27181 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
27182 what the other splitter did if the registers are dead.
27183
27184 2013-05-17 Richard Biener <rguenther@suse.de>
27185
27186 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
27187 MEM_REF offsets.
27188
27189 2013-05-17 Jakub Jelinek <jakub@redhat.com>
27190
27191 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
27192 linking.
27193
27194 2013-05-17 Marek Polacek <polacek@redhat.com>
27195
27196 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
27197 length when doing non-zero store of storing '\0' to '\0'.
27198
27199 2013-05-17 Jakub Jelinek <jakub@redhat.com>
27200
27201 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
27202 vect_external_def oprnd1 with loop_vinfo, try to emit
27203 optional cast, negation and and stmts on the loop preheader
27204 edge instead of into the pattern def seq.
27205
27206 PR tree-optimization/57051
27207 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
27208 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
27209
27210 2013-05-16 Nick Clifton <nickc@redhat.com>
27211
27212 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
27213 (rl78_is_naked_func): New function.
27214 (rl78_expand_prologue): Skip prologue generation for naked functions.
27215 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
27216 * doc/extend.texi (naked): Add RL78 to the list of processors
27217 that supports this attribute.
27218
27219 2013-05-16 Jeff Law <law@redhat.com>
27220
27221 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
27222
27223 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
27224
27225 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
27226 cache parameters using detect_caches_amd also for CYRIX,
27227 NSC and TM2 signatures.
27228
27229 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
27230 Dzianis Kahanovich <mahatma@eu.by>
27231
27232 PR target/45359
27233 PR target/46396
27234 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
27235 VIA/Centaur processors and determine their cache parameters
27236 using detect_caches_amd.
27237
27238 2013-05-16 Teresa Johnson <tejohnson@google.com>
27239
27240 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
27241 (rtl_verify_edges): New function.
27242 (rtl_verify_bb_insns): Ditto.
27243 (rtl_verify_bb_pointers): Ditto.
27244 (rtl_verify_bb_insn_chain): Ditto.
27245 (rtl_verify_fallthru): Ditto.
27246 (rtl_verify_bb_layout): Ditto.
27247 (rtl_verify_flow_info_1): Outline checks into new functions.
27248 (rtl_verify_flow_info): Ditto.
27249
27250 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
27251
27252 * cfghooks.c (copy_bbs): Add update_dominance argument.
27253 * cfghooks.h (copy_bbs): Update prototype.
27254 * tree-cfg.c (gimple_duplicate_sese_region):
27255 Add update_dominance argument.
27256 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
27257 * tree-ssa-loop-ch.c (copy_loop_headers): Update
27258 gimple_duplicate_sese_region call.
27259 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
27260 Update copy_bbs call.
27261 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
27262 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
27263
27264 2013-05-16 Jakub Jelinek <jakub@redhat.com>
27265
27266 * tree-vectorizer.h (NUM_PATTERNS): Increment.
27267 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
27268 vect_recog_rotate_pattern.
27269 (vect_recog_rotate_pattern): New function.
27270
27271 2013-05-16 Jason Merrill <jason@redhat.com>
27272
27273 * Makefile.in (LLINKER): New variable.
27274 (mostlyclean): Remove link mutex.
27275 * configure.ac: Handle --enable-link-mutex.
27276 * lock-and-run.sh: New script.
27277
27278 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27279
27280 PR target/19599
27281 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
27282 for NULL decl.
27283
27284 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27285
27286 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
27287
27288 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
27289
27290 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
27291 * config/arm/arm.c (next_consecutive_mem): New function.
27292 (gen_movmem_ldrd_strd): Likewise.
27293 * config/arm/arm.md (movmemqi): Update condition and code.
27294 (unaligned_loaddi, unaligned_storedi): New patterns.
27295
27296 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27297
27298 * config.gcc: Obsolete *-*-solaris2.9*.
27299 * doc/install.texi (Specific, *-*-solaris2*): Document it.
27300
27301 2013-05-16 Richard Biener <rguenther@suse.de>
27302
27303 * passes.c (init_optimization_passes): Move pass_parallelize_loops
27304 earlier, after GRAPHITE transforms and IV canonicalization.
27305
27306 2013-05-16 Jakub Jelinek <jakub@redhat.com>
27307
27308 * omp-low.c (extract_omp_for_data): For collapsed loops,
27309 if at least one of the loops is known at compile time to
27310 iterate zero times, set count to 0.
27311 (expand_omp_regimplify_p): New function.
27312 (expand_omp_for_generic): For collapsed loops, if at least
27313 one of the loops isn't known to iterate at least once,
27314 add runtime check with setting count to 0.
27315 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
27316 For unsigned types if it isn't known at compile time that
27317 the loop will iterate at least once, add runtime check to bypass
27318 the whole loop if initial condition isn't true.
27319
27320 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
27321
27322 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
27323
27324 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
27325
27326 PR middle-end/57286
27327 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
27328 transformations to avoid an infinite loop.
27329
27330 2013-05-16 Marek Polacek <polacek@redhat.com>
27331
27332 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
27333
27334 2013-05-15 Leif Ekblad <leif@rdos.net>
27335
27336 * config/i386/i386.c (ix86_decompose_address): Use
27337 DEFAULT_TLS_SEG_REG to access TLS segment register.
27338 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
27339 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
27340 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
27341
27342 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
27343
27344 PR target/57260
27345 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
27346 sibling calls to functions that would normally be lazily bound,
27347 unless $gp is call-clobbered.
27348
27349 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
27350
27351 * config/i386/i386.c (ix86_option_override_internal): Update
27352 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
27353 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
27354 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
27355 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
27356 of TARGET_3DNOW.
27357 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
27358
27359 2013-05-15 Andreas Schwab <schwab@suse.de>
27360
27361 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
27362 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
27363 third operand.
27364
27365 2013-05-15 Teresa Johnson <tejohnson@google.com>
27366
27367 * loop-unroll.c (report_unroll_peel): Check decision before
27368 emitting unroll/peel message.
27369
27370 2013-05-15 Teresa Johnson <tejohnson@google.com>
27371
27372 * function.h (has_bb_partition): New rtl_data flag.
27373 (bb_reorder_complete): Ditto.
27374 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
27375 instead of flag_reorder_blocks_and_partition.
27376 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
27377 with some enhancements.
27378 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
27379 * bb-reorder.c (connect_traces): Check for has_bb_partition
27380 instead of flag_reorder_blocks_and_partition.
27381 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
27382 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
27383 verify_hot_cold_block_grouping.
27384 (partition_hot_cold_basic_blocks): Set has_bb_partition.
27385
27386 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27387
27388 PR target/19599
27389 * config/arm/predicates.md (call_insn_operand): New predicate.
27390 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
27391 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
27392 if insn is not a tail call.
27393 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
27394 registers.
27395 * config/arm/arm.h (enum reg_class): New caller save register class.
27396 (REG_CLASS_NAMES): Likewise.
27397 (REG_CLASS_CONTENTS): Likewise.
27398 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
27399 without decls.
27400
27401 2013-05-15 Richard Biener <rguenther@suse.de>
27402
27403 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
27404 of MSG_OPTIMIZED_LOCATIONS.
27405 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
27406 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
27407 message.
27408 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
27409 of MSG_OPTIMIZED_LOCATIONS.
27410 (execute_vect_slp): Likewise.
27411 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
27412 (vect_create_cond_for_alias_checks): Likewise.
27413 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
27414 (vect_recog_widen_mult_pattern): Likewise.
27415 (vect_recog_widen_sum_pattern): Likewise.
27416 (vect_recog_over_widening_pattern): Likewise.
27417 (vect_recog_widen_shift_pattern): Likewise.
27418 (vect_recog_vector_vector_shift_pattern): Likewise.
27419 (vect_recog_divmod_pattern): Likewise.
27420 (vect_recog_mixed_size_cond_pattern): Likewise.
27421 (vect_recog_bool_pattern): Likewise.
27422 (vect_pattern_recog_1): Likewise.
27423
27424 2013-05-15 Martin Jambor <mjambor@suse.cz>
27425
27426 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
27427 non-functions to builtin_unreachable.
27428 * ipa-inline-transform.c (inline_call): Do not assert estimates were
27429 correct when new direct edges were discovered.
27430
27431 2013-05-15 Martin Jambor <mjambor@suse.cz>
27432
27433 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
27434 header, print symbol order instead of node uid, print more information
27435 about indirect edge targets.
27436 (ipa_make_edge_direct_to_target): Print symbol order instead of node
27437 uids.
27438 (ipa_make_edge_direct_to_target): Likewise.
27439 (remove_described_reference): Likewise.
27440 (propagate_controlled_uses): Likewise.
27441 (ipa_print_node_params): Also print symbol order.
27442 (ipcp_transform_function): Print symbol order instead of node uids.
27443 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
27444 (cgraph_get_create_real_symbol_node): Likewise.
27445 * ipa-cp.c (print_lattice): Likewise.
27446 (print_all_lattices): Likewise.
27447 (determine_versionability): Likewise.
27448 (initialize_node_lattices): Likewise.
27449 (estimate_local_effects): Likewise.
27450 (update_profiling_info): Likewise.
27451 (create_specialized_node): Likewise.
27452 (perhaps_add_new_callers): Likewise.
27453 (decide_about_value): Likewise.
27454 (decide_whether_version_node): Likewise.
27455 (identify_dead_nodes): Likewise.
27456 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
27457 (dump_inline_summary): Likewise.
27458 (estimate_node_size_and_time): Likewise.
27459 (inline_analyze_function): Likewise.
27460 * ipa-inline.c (report_inline_failed_reason): Likewise.
27461 (want_early_inline_function_p): Likewise.
27462 (edge_badness): Likewise.
27463 (update_edge_key): Likewise.
27464 (inline_small_functions): Likewise. Add dumping of order to two other
27465 dumps.
27466 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
27467 instead of node uids.
27468 (propagate_pure_const): Likewise.
27469 (propagate_pure_const): Likewise.
27470 * ipa-utils.c (dump_cgraph_node_set): Likewise.
27471 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
27472 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
27473 of node uids.
27474 * tree-pretty-print.c (dump_function_header): Likewise.
27475 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
27476 Print symbol order instead of node uids.
27477
27478 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27479
27480 * config/s390/s390.c (s390_register_move_cost): Don't impose the
27481 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
27482
27483 2013-05-15 Richard Biener <rguenther@suse.de>
27484
27485 PR tree-optimization/57275
27486 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
27487 return value for fail to do runtime alias checks for gather loads.
27488
27489 2013-05-15 Jan Hubicka <jh@suse.cz>
27490
27491 PR lto/57038
27492 PR lto/47375
27493 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
27494 weakrefs are not external.
27495 (lto_symtab_merge_decls): Fix thinko when dealing with
27496 non-lto_symtab decls.
27497 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
27498 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
27499 * varpool.c (dump_varpool_node): Dump more flags.
27500
27501 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27502
27503 * config/i386/i386.c (processor_alias_table): Add instruction
27504 FSGSBASE for AMD bdver3 architecture.
27505
27506 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27507
27508 * tree.c (warn_deprecated_use): Print file:line using locus color.
27509 * diagnostic.c (diagnostic_report_current_module): Print file:line
27510 and file:line:column using locus color.
27511
27512 2013-05-14 Mike Stump <mikestump@comcast.net>
27513
27514 * gdbinit.in: Add __null.
27515
27516 2013-05-14 Mike Stump <mikestump@comcast.net>
27517
27518 * recog.h: Rename struct recog_data to Recog_data.
27519 * recog.c: Likewise.
27520 * reload.c (can_reload_into): Likewise.
27521 * config/picochip/picochip.c: Likewise.
27522
27523 2013-05-14 Mike Stump <mikestump@comcast.net>
27524
27525 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
27526
27527 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
27528
27529 * resource.h (struct resources): Remove unch_memory member.
27530 (CLEAR_RESOURCE): Don't clear unch_memory.
27531 * resource.c (mark_referenced_resources): Don't set it.
27532 (mark_set_resources): Likewise.
27533 (mark_target_live_regs): Don't clear it.
27534 (init_resource_info): Likewise.
27535 * reorg.c (resource_conflicts_p): Don't compare it.
27536 (redundant_insn): Don't set it.
27537
27538 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
27539 Remove prototypes.
27540 * emit-rtl.c (next_label): Remove unused function.
27541 (skip_consecutive_labels, link_cc0_insns): Move to ...
27542 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
27543 only place where these functions are used, and make them static.
27544
27545 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
27546
27547 * fold-const.c (fold_negate_expr): Handle vectors.
27548 (fold_truth_not_expr): Make it static.
27549 (fold_invert_truthvalue): New static function.
27550 (invert_truthvalue_loc): Handle vectors. Do not call
27551 fold_truth_not_expr directly.
27552 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
27553 <TRUTH_NOT_EXPR>: Do not cast to boolean.
27554 (fold_comparison): Handle vector constants.
27555 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
27556 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
27557 * tree.h (fold_truth_not_expr): Remove declaration.
27558
27559 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
27560
27561 * config/aarch64/aarch64-simd.md
27562 (aarch64_vcond_internal<mode>): Rename to...
27563 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
27564 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
27565 float modes. Clarify all iterator modes.
27566 (vcond<mode><mode>): Use new name for vcond expanders.
27567 (vcond<v_cmp_result><mode>): Likewise.
27568 (vcondu<mode><mode>: Likewise.
27569 * config/aarch64/iterators.md (VDQF_COND): New.
27570
27571 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
27572
27573 PR bootstrap/57266
27574 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
27575 variable for the shift amount. Check that we shift by non-negative
27576 amounts.
27577
27578 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
27579
27580 PR target/42017
27581 * config/arm/arm.h (EPILOGUE_USES): Only return true
27582 for LR_REGNUM after epilogue_completed.
27583
27584 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
27585
27586 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
27587 is error_mark_node.
27588
27589 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27590
27591 PR target/57261
27592 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
27593 and Solaris 11+/x86 with gld.
27594 * configure: Regenerate.
27595
27596 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27597
27598 * expmed.c (expand_shift_1): Canonicalize rotates by
27599 constant bitsize / 2 to bitsize - 1.
27600 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
27601 case ROTATERT>: Likewise.
27602
27603 Revert:
27604 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27605
27606 * config/i386/i386.md (rotateinv): New code attr.
27607 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27608 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27609 roll $31, %eax, etc.
27610
27611 2013-05-14 Richard Biener <rguenther@suse.de>
27612
27613 PR middle-end/57235
27614 * tree-eh.c (sink_clobbers): Give up for successors with
27615 multiple predecessors and no virtual uses.
27616
27617 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
27618
27619 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
27620 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
27621
27622 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27623
27624 PR middle-end/57251
27625 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
27626 the case when both op0 and op1 have VOIDmode.
27627
27628 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27629
27630 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
27631 in multiply-accumulate mode.
27632
27633 2013-05-13 Guozhi Wei <carrot@google.com>
27634
27635 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
27636
27637 2013-05-13 Kai Tietz <ktietz@redhat.com>
27638
27639 PR target/56975
27640 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
27641 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
27642 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
27643 * config/i386/i386.c (ix86_option_override_internal): Likewise.
27644 (ix86_expand_prologue): Likewise.
27645 (ix86_expand_split_stack_prologue): Likewise.
27646 (legitimate_pic_address_disp_p): Likewise.
27647 (legitimize_pic_address): Likewise.
27648 (legitimize_tls_address): Likewise.
27649 (legitimize_pe_coff_symbol): Likewise.
27650 (output_pic_addr_const): Likewise.
27651 (construct_plt_address): Likewise.
27652 (ix86_expand_call): Likewise.
27653 (x86_output_mi_thunk): Likewise.
27654 (x86_function_profiler): Likewise.
27655
27656 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
27657
27658 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
27659 similar switch cases.
27660 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
27661 (aarch64_simd_mov_to_<mode>low): Delete.
27662 (aarch64_simd_mov_to_<mode>high): Delete.
27663 (move_lo_quad_<mode>): Add w<-r alternative.
27664 (aarch64_simd_move_hi_quad_<mode>): Likewise.
27665 (aarch64_simd_mov_from_*): Update type attribute.
27666 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
27667 statement.
27668
27669 2013-05-13 Jan Hubicka <jh@suse.cz>
27670
27671 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
27672 * config/i386/i386.c (ix86_compute_frame_layout,
27673 ix86_expand_epilogue, emit_i387_cw_initialization,
27674 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
27675 ix86_local_alignment): Fix use of size/speed predicates.
27676
27677 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27678
27679 PR tree-optimization/45216
27680 PR tree-optimization/57157
27681 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
27682 the (-Y) & (B - 1) variant if OP is |.
27683 * expmed.c (expand_shift_1): For rotations by const0_rtx just
27684 return shifted. Use (-op1) & (prec - 1) as other_amount
27685 instead of prec - op1.
27686
27687 2013-05-13 Martin Jambor <mjambor@suse.cz>
27688
27689 PR middle-end/42371
27690 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
27691 (ipa_constant_data): New type.
27692 (ipa_jump_func): Use ipa_constant_data to hold information about
27693 constant jump functions.
27694 (ipa_get_jf_constant): Adjust to jump function type changes.
27695 (ipa_get_jf_constant_rdesc): New function.
27696 (ipa_param_descriptor): New field controlled_uses.
27697 (ipa_get_controlled_uses): New function.
27698 (ipa_set_controlled_uses): Likewise.
27699 * ipa-ref.h (ipa_find_reference): Declare.
27700 * ipa-prop.c (ipa_cst_ref_desc): New type.
27701 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
27702 changes.
27703 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
27704 New parameter cs. Adjust all callers.
27705 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
27706 (remove_described_reference): New function.
27707 (jfunc_rdesc_usable): Likewise.
27708 (try_make_edge_direct_simple_call): Decrement controlled use count,
27709 attempt to remove reference if it hits zero.
27710 (combine_controlled_uses_counters): New function.
27711 (propagate_controlled_uses): Likewise.
27712 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
27713 (ipa_edge_duplication_hook): Duplicate reference descriptions.
27714 (ipa_print_node_params): Print described use counter.
27715 (ipa_write_jump_function): Adjust to jump function type changes.
27716 (ipa_read_jump_function): New parameter CS, pass it to
27717 ipa_set_jf_constant. Adjust caller.
27718 (ipa_write_node_info): Stream controlled use count
27719 (ipa_read_node_info): Likewise.
27720 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
27721 asserting.
27722 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
27723 count. Remove cloning-added reference if it reaches zero.
27724 * ipa-ref.c (ipa_find_reference): New function.
27725
27726 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27727
27728 * config/i386/i386.c (processor_target_table): Modified default
27729 alignment values for AMD BD and BT architectures.
27730
27731 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
27732
27733 * tree-vect-generic.c (uniform_vector_p): Move ...
27734 * tree.c (uniform_vector_p): ... here.
27735 * tree.h (uniform_vector_p): Declare it.
27736 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
27737 into a scalar.
27738
27739 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27740
27741 PR tree-optimization/57230
27742 * tree-ssa-strlen.c (handle_char_store): Record length for
27743 array store from STRING_CST.
27744
27745 PR tree-optimization/57230
27746 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
27747 check.
27748
27749 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
27750
27751 * config/epiphany/epiphany.c (epiphany_init): Check size of
27752 NUM_MODES_FOR_MODE_SWITCHING.
27753 (epiphany_expand_prologue):
27754 Remove CONFIG_REGNUM initial value handling code.
27755 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
27756 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
27757 (emit_set_fp_mode, epiphany_mode_after): Likewise.
27758 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
27759 Don't return 1 for FP_MODE_NONE.
27760 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
27761 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
27762 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
27763 * config/epiphany/epiphany.md (save_config): New pattern.
27764
27765 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
27766
27767 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
27768
27769 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
27770
27771 * config/i386/i386.md (memory): Handle sseishft1.
27772 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
27773 (*vec_extractv2di_1): Ditto.
27774
27775 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
27776
27777 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
27778 saved registers.
27779
27780 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
27781
27782 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
27783 Add mthumb/march=armv7-a multilib.
27784 Add mthumb/march=armv7-r multilib.
27785 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
27786
27787 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
27788
27789 * config/v850/t-rtems: Add more multilibs.
27790
27791 2013-05-10 Richard Biener <rguenther@suse.de>
27792
27793 PR tree-optimization/57214
27794 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
27795 not propagate from SSA names that occur in abnormal PHI nodes.
27796
27797 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
27798
27799 * stor-layout.c (element_precision): New function.
27800 * machmode.h (element_precision): Declare it.
27801 * tree.c (build_minus_one_cst): New function.
27802 (element_precision): Likewise.
27803 * tree.h (build_minus_one_cst): Declare new function.
27804 (element_precision): Likewise.
27805 * fold-const.c (operand_equal_p): Use element_precision.
27806 (fold_binary_loc): Handle vector types.
27807 * convert.c (convert_to_integer): Use element_precision.
27808 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
27809 separately.
27810
27811 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
27812
27813 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
27814 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
27815 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
27816 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27817 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
27818 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
27819 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
27820 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27821 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
27822 (Uuw8): New constraints.
27823 (Usb4): Move into alphabetical order.
27824 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
27825 (sd8_operand, ub8_operand, uw8_operand): New predicates.
27826 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
27827 previously unnamed patterns.
27828 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
27829 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
27830 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
27831 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
27832 of set_attr_alternative/if_then_else. Use extended_mips16 instead
27833 of specific lengths.
27834
27835 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27836
27837 * config/i386/i386.md (rotateinv): New code attr.
27838 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27839 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27840 roll $31, %eax, etc.
27841
27842 PR tree-optimization/45216
27843 PR tree-optimization/57157
27844 * tree-ssa-forwprop.c (simplify_rotate): New function.
27845 (ssa_forward_propagate_and_combine): Call it.
27846
27847 2013-05-10 Richard Biener <rguenther@suse.de>
27848
27849 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
27850 disable peeling when we version for aliasing.
27851 (vector_alignment_reachable_p): Honor explicit user alignment.
27852 (vect_supportable_dr_alignment): Likewise.
27853 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
27854 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
27855 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
27856 then peeling to arrange for the cost-model check to come first.
27857
27858 2013-05-10 Alan Modra <amodra@gmail.com>
27859
27860 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
27861 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
27862 * configure: Regenerate.
27863
27864 2013-05-10 Alan Modra <amodra@gmail.com>
27865
27866 PR target/55033
27867 * varasm.c (default_elf_select_section): Move !DECL_P check..
27868 (get_named_section): ..to here before calling get_section_name.
27869 Adjust assertion.
27870 (default_section_type_flags): Add DECL_P check.
27871 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
27872 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
27873
27874 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
27875
27876 * config/epiphany/epiphany.c (epiphany_expand_prologue):
27877 When using gen_stack_adjust_str with a register offset, add a
27878 REG_FRAME_RELATED_EXPR note.
27879
27880 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
27881
27882 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
27883 (*vec_extractv4si_zext_mem): Ditto.
27884 (*vec_extractv2di): Add 0->x and x->x alternatives.
27885 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
27886 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
27887
27888 2013-05-09 Jason Merrill <jason@redhat.com>
27889
27890 N3639 C++1y VLA support
27891 * gimplify.c (gimplify_vla_decl): Don't touch an existing
27892 DECL_VALUE_EXPR.
27893
27894 * tree.c (build_constructor_va): New.
27895 * tree.h: Declare it.
27896
27897 2013-05-09 Martin Jambor <mjambor@suse.cz>
27898
27899 PR lto/57084
27900 * gimple-fold.c (canonicalize_constructor_val): Call
27901 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
27902
27903 2013-05-09 Jan Hubicka <jh@suse.cz>
27904 Richard Biener <rguenther@suse.de>
27905
27906 PR lto/54095
27907 * symtab.c (symtab_make_decl_local): Do not add private names.
27908
27909 2013-05-09 Jan Hubicka <jh@suse.cz>
27910
27911 PR lto/54095
27912 * symtab.c (insert_to_assembler_name_hash): Handle clones.
27913 (unlink_from_assembler_name_hash): Likewise.
27914 (symtab_prevail_in_asm_name_hash, symtab_register_node,
27915 symtab_unregister_node, symtab_initialize_asm_name_hash,
27916 change_decl_assembler_name): Update.
27917
27918 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
27919
27920 * config/aarch64/aarch64.md: New movtf split.
27921 (*movtf_aarch64): Update.
27922 (aarch64_movdi_tilow): Handle TF modes and rename to
27923 aarch64_movdi_<mode>low.
27924 (aarch64_movdi_tihigh): Handle TF modes and rename to
27925 aarch64_movdi_<mode>high
27926 (aarch64_movtihigh_di): Handle TF modes and rename to
27927 aarch64_mov<mode>high_di
27928 (aarch64_movtilow_di): Handle TF modes and rename to
27929 aarch64_mov<mode>low_di
27930 (aarch64_movtilow_tilow): Remove spurious whitespace.
27931 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27932 splits.
27933 (aarch64_print_operand): Update.
27934
27935 2013-05-09 Alan Modra <amodra@gmail.com>
27936
27937 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27938 powerpc64le.
27939 * configure: Regenerate.
27940
27941 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27942
27943 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27944 splitter preparation statements.
27945 * config/i386/sse.md (*vec_extract* splitters): Ditto.
27946 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27947 adjust_address_nv.
27948
27949 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27950
27951 * gimple-ssa-strength-reduction.c (count_candidates): Change
27952 return value to int.
27953 (analyze_candidates_and_replace): Change type of length to int.
27954
27955 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27956
27957 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27958 (*vec_extract<mode>): Use VI12_128 mode iterator.
27959 (*vec_extract<mode>_mem): Ditto.
27960 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27961 attribute.
27962
27963 2013-05-08 Diego Novillo <dnovillo@google.com>
27964
27965 PR bootstrap/54659
27966
27967 Revert:
27968 2012-08-17 Diego Novillo <dnovillo@google.com>
27969
27970 PR bootstrap/54281
27971 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27972 * config.in: Regenerate.
27973 * configure: Regenerate.
27974 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27975
27976 2013-05-08 Jan Hubicka <jh@suse.cz>
27977
27978 PR lto/54095
27979 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27980 * cgraph.h (symtab_node_base): Add unique_name.
27981 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27982 input_overwrite_node, input_varpool_node): Stream unique_name.
27983 * cgraphclones.c (cgraph_create_virtual_clone,
27984 cgraph_function_versioning): Set unique_name.
27985 * ipa.c (function_and_variable_visibility): Set unique_name.
27986
27987 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27988
27989 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27990 (alloc_cand_and_find_basis): Restrict conditional candidate
27991 processing to CAND_MULTs.
27992
27993 2013-05-08 Jan Hubicka <jh@suse.cz>
27994
27995 PR lto/54095
27996 lto-symtab.c (lto_symtab_symbol_p): New function.
27997 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27998 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27999 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
28000 Skip static symbols.
28001
28002 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
28003
28004 PR tree-optimization/57200
28005 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
28006 Only call inform if the preceding warning_at returns true.
28007
28008 2013-05-07 Han Shen <shenhan@google.com>
28009
28010 * cfgexpand.c (record_or_union_type_has_array_p): New function.
28011 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
28012 * common.opt (fstack-protector-strong): New option.
28013 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
28014 * doc/invoke.texi (Optimization Options): Document
28015 "-fstack-protector-strong".
28016 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
28017
28018 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
28019
28020 * config/mips/mips.c (mips_machine_reorg2): Return 0.
28021
28022 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
28023
28024 * ira.c (update_equiv_regs): Add insn having equiv memory even if
28025 it is not lhs of the insn.
28026 (setup_reg_equiv): Remove insn having equiv memory which it is not
28027 lhs of the insn.
28028 * lra-constraints.c (process_address): Try to improve generation
28029 code for address base + disp.
28030 (lra_constraints): Make correct the code for checking insn setting
28031 up backward equivalence. Remove insn only if it is in the init
28032 insn list.
28033 * lra-eliminations.c (update_reg_eliminate): Change return value.
28034 (lra_eliminate): Use the result.
28035
28036 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
28037
28038 * config/i386/sse.md (ssescalarnummask): New mode attribute.
28039 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
28040 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
28041 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
28042 register target operands.
28043 (*vec_extractv8hi_sse2): New pattern.
28044 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
28045 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
28046 (*vec_extract<mode>_mem): New insn and split pattern.
28047
28048 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
28049
28050 * config/arm/arm.c (arm_asan_shadow_offset): New function.
28051 (TARGET_ASAN_SHADOW_OFFSET): Define.
28052 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
28053 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
28054
28055 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28056
28057 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
28058 (incr_vec_index): Return -1 if increment not found.
28059 (create_add_on_incoming_edge): Assert if increment not found.
28060 (record_increment): Limit number of increments recorded.
28061 (all_phi_incrs_profitable): Return false if an increment not found.
28062 (replace_profitable_candidates): Don't process increments that were
28063 not recorded.
28064 (analyze_candidates_and_replace): Limit size of incr_vec.
28065
28066 2013-05-07 Richard Biener <rguenther@suse.de>
28067
28068 * calls.c (special_function_p): setjmp-like functions are leaf.
28069 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
28070 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
28071
28072 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
28073
28074 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
28075 (aarch64_simd_mov<mode>): New expander.
28076 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
28077 (aarch64_simd_mov_to_<mode>high): Likewise.
28078 (aarch64_simd_mov_from_<mode>low): Likewise.
28079 (aarch64_simd_mov_from_<mode>high): Likewise.
28080 (aarch64_dup_lane<mode>): Update.
28081 (aarch64_dup_lanedi): New instruction pattern.
28082 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
28083 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
28084
28085 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28086
28087 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
28088 (replace_mult_candidate): Remove unnecessary argument; remove
28089 unnecessary parameter from call to introduce_cast_before_cand.
28090 (replace_unconditional_candidate): Remove unnecessary parameter
28091 from call to replace_mult_candidate.
28092 (replace_conditional_candidate): Likewise.
28093 (insert_initializers): Use make_temp_ssa_name.
28094 (introduce_cast_before_cand): Remove unnecessary argument; use
28095 make_temp_ssa_name.
28096 (replace_one_candidate): Remove unnecessary argument; remove
28097 unnecessary parameter from calls to introduce_cast_before_cand.
28098 (replace_profitable_candidates): Remove unnecessary parameters
28099 from calls to replace_one_candidate.
28100
28101 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28102
28103 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
28104 phi def as possibly hiding a basis for a CAND_ADD whose operands
28105 have been commuted in the analysis.
28106 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
28107
28108 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28109
28110 * config/aarch64/aarch64.md
28111 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
28112 shift value between 0-4.
28113
28114 2013-05-07 Richard Biener <rguenther@suse.de>
28115
28116 * double-int.h (rshift): New overload.
28117 * double-int.c (rshift): New function.
28118 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
28119 (create_reference_ops_from_ref): Remove.
28120 (vn_reference_insert): Use shared ops for constructing the
28121 reference and copy it.
28122
28123 2013-05-07 Richard Biener <rguenther@suse.de>
28124
28125 PR middle-end/57190
28126 * tree-eh.c (sink_clobbers): Properly propagate
28127 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
28128
28129 2013-05-07 Jakub Jelinek <jakub@redhat.com>
28130
28131 PR tree-optimization/57149
28132 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
28133 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
28134 collect_phi_def_edges, execute_late_warn_uninitialized): Use
28135 uninit_undefined_value_p instead of ssa_undefined_value_p.
28136
28137 PR debug/57184
28138 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
28139 for modifier == EXPAND_INITIALIZER.
28140
28141 2013-05-07 Anton Blanchard <anton@samba.org>
28142
28143 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
28144 for powerpc64 little endian.
28145 * configure: Regenerate.
28146
28147 2013-05-06 Graham Stott <grahams@btinternet.com>
28148
28149 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
28150 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
28151 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
28152 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
28153
28154 2013-05-06 Graham Stott <grahams@btinternet.com>
28155
28156 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
28157 codes which allow non-lvalues.
28158
28159 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
28160
28161 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
28162 components are all 1s.
28163 (integer_minus_onep): New function.
28164 * tree.h (integer_minus_onep): Declare it.
28165 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
28166 integer_minus_onep instead of integer_all_onesp.
28167
28168 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
28169
28170 PR target/52933
28171 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
28172 variations of these patterns.
28173
28174 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
28175
28176 * config/i386/i386.md (isa): Add x64_sse4 member.
28177 (enabled): Handle x64_sse4.
28178 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
28179 instruction for 64bit SSE4_1 targets. Update insn attributes.
28180 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
28181 instruction for SSE4_1 targets. Update insn attributes.
28182 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
28183 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
28184 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
28185 const_1 selector.
28186 (*vec_extractv4si): Rename from *sse4_1_pextrd.
28187 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
28188 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
28189
28190 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
28191
28192 PR target/57108
28193 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
28194
28195 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
28196
28197 * final.c (do_assembler_dialects): Don't handle curly braces and
28198 vertical bar escaped by % as dialect delimiters.
28199 (output_asm_insn): Print curly braces and vertical bar if escaped
28200 by % and ASSEMBLER_DIALECT defined.
28201 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
28202 * doc/tm.texi: Regenerated.
28203
28204 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
28205
28206 * config/mips/mips.c: Include tree-pass.h.
28207 (mips_reorg): Split in pre- and post-dbr_schedule parts.
28208 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
28209 (pass_mips_machine_reorg2): New machine specific pass.
28210 (insert_pass_mips_machine_reorg2): New pass plugin definition.
28211 (mips_option_override): Register the new pass.
28212 * rtl.h (cleanup_barriers): Remove prototype.
28213 (dbr_schedule): Likewise.
28214 * jump.c (cleanup_barriers): Make static.
28215 * reorg.c (dbr_schedule): Likewise.
28216
28217 2013-05-06 Richard Biener <rguenther@suse.de>
28218
28219 PR tree-optimization/57185
28220 * tree-parloops.c (add_field_for_reduction): Handle anonymous
28221 SSA names properly.
28222
28223 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
28224
28225 PR target/57106
28226 * config/i386/i386.c (add_parameter_dependencies): Add dependence
28227 between "first_arg" and "insn", not "last" and "insn".
28228
28229 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28230
28231 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
28232 (find_candidates_in_block): Re-enable slsr_process_phi.
28233 (create_phi_basis): Fix double counting of candidate adjustment.
28234
28235 2013-05-06 Richard Biener <rguenther@suse.de>
28236
28237 PR middle-end/57147
28238 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
28239 the edge is also fallthru, preserve it and just clear the
28240 abnormal flag.
28241 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
28242 also complex, preserve that and just clear the fallthru flag.
28243 * tree-inline.c (update_ssa_across_abnormal_edges): Also
28244 update virtual operands.
28245
28246 2013-05-06 Alan Modra <amodra@gmail.com>
28247
28248 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
28249 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
28250 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
28251 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
28252 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
28253 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
28254
28255 2013-05-06 Alan Modra <amodra@gmail.com>
28256
28257 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
28258 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
28259 (DEFAULT_ASM_ENDIAN): Define.
28260 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
28261 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
28262 Update -K PIC clause from sysv4.h.
28263 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
28264 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
28265
28266 2013-05-06 Alan Modra <amodra@gmail.com>
28267
28268 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
28269 twice for little-endian.
28270 (ashrdi3_no_power, ashrdi3): Support little-endian.
28271
28272 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
28273
28274 PR target/55303
28275 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
28276 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
28277 related expanders.
28278 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
28279 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
28280 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
28281 New predicates.
28282
28283 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
28284 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28285
28286 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
28287 * config/pa/pa.opt: Make mbig-switch a no-op.
28288 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
28289 (CASE_VECTOR_MODE): Always return SImode.
28290 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
28291 for the !TARGET_BIG_SWITCH case.
28292 * config/pa/pa-linux.h: Likewise.
28293 * config/pa/pa-openbsd.h: Likewise.
28294 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
28295 * config/pa/pa.md (short_jump): Remove define_insn.
28296 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
28297 (casesi0): Remove define_insn.
28298 (type): Remove btable_branch.
28299 (pa_combine_type): Likewise.
28300 (in_nullified_branch_delay): Likewise.
28301 (in_call_delay): Likewise.
28302 (define_delay): Likewise.
28303 (define_insn_reservation "Z3"): Likewise.
28304 (define_insn_reservation "Z4"): Likewise.
28305 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
28306 (pa_adjust_insn_length): Remove adjustment for btable branches.
28307 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
28308 and mno-big-switch
28309
28310 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
28311
28312 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
28313 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
28314 Add m->r,x alternatives.
28315 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
28316 splitters using SWI48x mode iterator.
28317 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
28318 TARGET_64BIT. Add m->x alternative.
28319 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
28320 Add o->x alternative. Enable for TARGET_SSE.
28321 (sse_storeq): Remove expander.
28322 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
28323 with memory input operand.
28324 (*vec_extractv2di_1 splitter): New.
28325 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
28326 * config/i386/i386.md (ssevecmodelower): New mode attribute.
28327
28328 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
28329
28330 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
28331 (INT_LOWPART): Delete.
28332 (extract_MB): Adjust.
28333 (extract_ME): Adjust.
28334 (print_operand): Adjust.
28335
28336 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
28337
28338 * config/rs6000/predicates.md (reg_or_add_cint_operand,
28339 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
28340 (reg_or_logical_cint_operand, easy_fp_constant,
28341 logical_const_operand): Delete "CONST_DOUBLE" case.
28342 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
28343 "HOST_BITS_PER_WIDE_INT == 64" test.
28344 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
28345 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
28346 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
28347 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
28348 test.
28349 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
28350 CONST_DOUBLE DImode/VOIDmode case.
28351 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
28352 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
28353 CONST_DOUBLE VOIDmode case.
28354 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
28355 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
28356 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
28357 Delete CONST_DOUBLE case.
28358 (splitters for mov FMOVE64 const_double): Delete
28359 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
28360 "HOST_BITS_PER_WIDE_INT >= 64" test.
28361 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
28362 case.
28363 (mov DI const_double): Delete.
28364
28365 2013-05-04 Jakub Jelinek <jakub@redhat.com>
28366
28367 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
28368 on op shows all bits zero in mode of a lowpart subreg, return zero.
28369
28370 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28371
28372 PR target/57150
28373 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
28374 to save TFmode registers and DImode to save TImode registers for
28375 caller save operations.
28376 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
28377 mark being partially clobbered since they only use the first
28378 double word.
28379
28380 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
28381 and TDmode only use the upper 64-bits of each VSX register.
28382
28383 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28384
28385 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
28386 (find_candidates_in_block): Disable slsr_process_phi.
28387
28388 2013-05-03 Guozhi Wei <carrot@google.com>
28389
28390 * coverage.c (coverage_obj_init): Move the construction of gcov
28391 constructor to ...
28392 (build_init_ctor): ... here.
28393
28394 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28395
28396 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
28397 (slsr_cand_d): Redefine def_phi.
28398 (stride_status, phi_adjust_status, count_phis_status): New enums.
28399 (find_phi_def): New.
28400 (find_basis_for_base_expr): New.
28401 (find_basis_for_candidate): Handle hidden bases.
28402 (alloc_cand_and_find_basis): Handle phi candidates.
28403 (slsr_process_phi): New.
28404 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
28405 (create_mul_imm_cand): Likewise.
28406 (create_add_ssa_cand): Exclude phi base candidates.
28407 (create_add_imm_cand): Likewise.
28408 (slsr_process_cast): Likewise.
28409 (slsr_process_copy): Likewise.
28410 (find_candidates_in_block): Handle phi candidates.
28411 (dump_candidate): Likewise.
28412 (unconditional_cands): Delete.
28413 (unconditional_cands_with_known_stride_p): Delete.
28414 (phi_dependent_cand_p): New.
28415 (cand_increment): Handle phi-dependent candidates.
28416 (replace_dependent): Delete.
28417 (replace_mult_candidate): New.
28418 (replace_unconditional_candidate): New.
28419 (incr_vec_index): Move to avoid forward reference.
28420 (create_add_on_incoming_edge): New.
28421 (create_phi_basis): New.
28422 (replace_dependents): Delete.
28423 (replace_conditional_candidate): New.
28424 (phi_add_costs): New.
28425 (replace_uncond_cands_and_profitable_phis): New.
28426 (record_increment): Handle phi adjustments.
28427 (record_phi_increments): New.
28428 (record_increments): Handle phi adjustments.
28429 (phi_incr_cost): New.
28430 (lowest_cost_path): Handle phis.
28431 (total_savings): Likewise.
28432 (analyze_increments): Likewise.
28433 (ncd_with_phi): New.
28434 (ncd_of_cand_and_phis): New.
28435 (nearest_common_dominator_for_cands): Handle phi increments.
28436 (all_phi_incrs_profitable): New.
28437 (replace_profitable_candidates): Handle phi-dependent candidates.
28438 (analyze_candidates_and_replace): Likewise.
28439
28440 2013-05-03 Teresa Johnson <tejohnson@google.com>
28441
28442 PR bootstrap/57154
28443 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
28444 do not exceed REG_BR_PROB_BASE.
28445
28446 2013-05-03 Jeff Law <law@redhat.com>
28447
28448 PR tree-optimization/57144
28449 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
28450 operand of the condition will bit into the new type when eliminating
28451 a cast feeding a condition.
28452
28453 2013-05-03 Jakub Jelinek <jakub@redhat.com>
28454
28455 PR rtl-optimization/57130
28456 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
28457 of COMPARE as in_code to the recursive call if needed.
28458
28459 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
28460
28461 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
28462 (enabled): Handle new members.
28463 * config/i386/sse.md (*vec_concatv2si): Merge from
28464 *vec_concatv2si_sse2 and vec_concatv2si_sse.
28465 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
28466
28467 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
28468
28469 PR tree-optimization/57027
28470 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
28471 for fnms opportunity, check we got the prerequisite kind
28472 of tree / gimple before using accessor functions.
28473
28474 2013-05-03 Richard Biener <rguenther@suse.de>
28475
28476 * double-int.h (lshift): New overload without precision
28477 and arith argument.
28478 (operator *=, operator +=, operator -=): Move ...
28479 * double-int.c (operator *=, operator +=, operator -=): ... here
28480 and implement more efficiently.
28481 (mul_double_with_sign): Remove.
28482 (lshift_double): Adjust to take unsinged shift argument, push
28483 dispatching code to callers.
28484 (mul_double_wide_with_sign): Add early out for callers that
28485 are not interested in high parts or overflow.
28486 (lshift): New function.
28487 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
28488 dispatch code here.
28489 (lrotate, rrotate): Use logical shifts.
28490 * expr.c (get_inner_reference): Use lshift.
28491 * fixed-value.c (do_fixed_divide): Likewise.
28492 * tree-dfa.c (get_ref_base_and_extent): Likewise.
28493 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
28494 (indirect_refs_may_alias_p): Likewise.
28495 (stmt_kills_ref_p_1): Likewise.
28496
28497 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
28498
28499 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
28500
28501 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
28502
28503 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
28504 scalar form of FABD instruction.
28505
28506 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
28507
28508 * lra-constraints.c (process_alt_operands): Add checking alt
28509 number to choose the best alternative.
28510
28511 2013-05-02 Richard Biener <rguenther@suse.de>
28512
28513 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
28514 bitmap and its handling.
28515 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
28516
28517 2013-05-02 Richard Biener <rguenther@suse.de>
28518
28519 PR middle-end/57140
28520 * tree-inline.c (copy_loops): Properly handle removed loops.
28521 (copy_cfg_body): Mark destination loops for fixup if source
28522 loops needed fixup.
28523
28524 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
28525
28526 PR target/56732
28527 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
28528 generating simple_return for naked functions.
28529
28530 2013-05-02 Martin Jambor <mjambor@suse.cz>
28531
28532 PR middle-end/56988
28533 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
28534 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
28535 flags match.
28536 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
28537 ipa_agg_replacement_value structures.
28538 (known_aggs_to_agg_replacement_list): Likewise.
28539 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
28540 (read_agg_replacement_chain): Likewise.
28541 (ipcp_transform_function): Also check that by_ref flags match.
28542
28543 2013-05-02 Richard Biener <rguenther@suse.de>
28544
28545 * graphds.h (struct graph): Add obstack member.
28546 * graphds.c (new_graph): Initialize obstack and allocate
28547 vertices from it.
28548 (add_edge): Allocate edge from the obstack.
28549 (free_graph): Free the obstack instead of all edges and vertices.
28550
28551 2013-05-02 Teresa Johnson <tejohnson@google.com>
28552
28553 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
28554 divides.
28555 * cfg.c (update_bb_profile_for_threading): Ditto.
28556 * tree-inline.c (copy_bb): Ditto.
28557 (copy_edges_for_bb): Ditto.
28558 (initialize_cfun): Ditto.
28559 (copy_cfg_body): Ditto.
28560 (expand_call_inline): Ditto.
28561 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
28562 (estimate_node_size_and_time): Ditto.
28563 (inline_merge_summary): Ditto.
28564 * cgraphclones.c (cgraph_clone_edge): Ditto.
28565 (cgraph_clone_node): Ditto.
28566 * sched-rgn.c (compute_dom_prob_ps): Ditto.
28567 (compute_trg_info): Ditto.
28568
28569 2013-05-02 Ian Bolton <ian.bolton@arm.com>
28570
28571 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
28572 S reg when fp attribute set.
28573 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
28574
28575 2013-05-02 Ian Bolton <ian.bolton@arm.com>
28576
28577 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
28578 New pattern.
28579 (*and_one_cmplsi3_compare0_uxtw): Likewise.
28580 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
28581 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
28582
28583 2013-05-02 Richard Biener <rguenther@suse.de>
28584
28585 * tree-scalar-evolution.c (scev_info_hasher): Remove.
28586 (struct instantiate_cache_entry): New type.
28587 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
28588 (struct instantiate_cache_type): New type.
28589 (set_instantiated_value, get_instantiated_value): Remove.
28590 (get_instantiated_value_entry): New function.
28591 (instantiate_scev_name): Use the new cache and adjust.
28592 (instantiate_scev_poly): Adjust.
28593 (instantiate_scev_binary): Likewise.
28594 (instantiate_array_ref): Likewise.
28595 (instantiate_scev_convert): Likewise.
28596 (instantiate_scev_not): Likewise.
28597 (instantiate_scev_3): Likewise.
28598 (instantiate_scev_2): Likewise.
28599 (instantiate_scev_r): Likewise.
28600 (instantiate_scev): Likewise.
28601 (resolve_mixers): Likewise.
28602
28603 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
28604
28605 PR target/57091
28606 * lra-constraints.c (best_small_class_operands_num): Remove.
28607 (process_alt_operands): Remove small_class_operands_num. Take
28608 small classes operands into losers and only if the operand is not
28609 matched. Modify debugging output.
28610 (curr_insn_transform): Remove best_small_class_operands_num.
28611 Print insn name.
28612
28613 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28614
28615 * config/aarch64/aarch64-builtins.c
28616 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
28617 * config/aarch64/aarch64-simd-builtins.def
28618 (reduc_splus_): Add new modes.
28619 (reduc_uplus_): New.
28620 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
28621 (reduc_uplus_v4sf): Likewise.
28622 (reduc_splus_v4sf): Likewise.
28623 (aarch64_addv<mode>): Likewise.
28624 (reduc_uplus_<mode>): Likewise.
28625 (reduc_splus_<mode>): Likewise.
28626 (aarch64_addvv2di): Likewise.
28627 (reduc_uplus_v2di): Likewise.
28628 (reduc_splus_v2di): Likewise.
28629 (aarch64_addvv2si): Likewise.
28630 (reduc_uplus_v2si): Likewise.
28631 (reduc_splus_v2si): Likewise.
28632 (reduc_<sur>plus_<mode>): New.
28633 (reduc_<sur>plus_v2di): Likewise.
28634 (reduc_<sur>plus_v2si): Likewise.
28635 (reduc_<sur>plus_v4sf): Likewise.
28636 (aarch64_addpv4sf): Likewise.
28637 * config/aarch64/arm_neon.h
28638 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
28639 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
28640 add UNSPEC_SADDV, UNSPEC_UADDV.
28641 (SUADDV): New.
28642 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
28643
28644 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28645
28646 * config/aarch64/arm_neon.h
28647 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
28648
28649 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28650
28651 * config/aarch64/aarch64-builtins
28652 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
28653
28654 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28655
28656 * config/aarch64/aarch64-simd-builtins.def
28657 (reduc_smax_): New.
28658 (reduc_smin_): Likewise.
28659 (reduc_umax_): Likewise.
28660 (reduc_umin_): Likewise.
28661 (reduc_smax_nan_): Likewise.
28662 (reduc_smin_nan_): Likewise.
28663 (fmax): Remove.
28664 (fmin): Likewise.
28665 (smax): Update for V2SF, V4SF and V2DF modes.
28666 (smin): Likewise.
28667 (smax_nan): New.
28668 (smin_nan): Likewise.
28669 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
28670 (<su><maxmin><mode>3): ...This, refactor.
28671 (s<maxmin><mode>3): New.
28672 (<maxmin_uns><mode>3): Likewise.
28673 (reduc_<maxmin_uns>_<mode>): Refactor.
28674 (reduc_<maxmin_uns>_v4sf): Likewise.
28675 (reduc_<maxmin_uns>_v2si): Likewise.
28676 (aarch64_<fmaxmin><mode>: Remove.
28677 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
28678 new builtin names.
28679 (vmin<q>_f<32,64>): Likewise.
28680 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28681 (FMAXMIN): New.
28682 (su): Add mappings for smax, smin, umax, umin.
28683 (maxmin): New.
28684 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28685 (FMAXMIN): Rename as...
28686 (FMAXMIN_UNS): ...This.
28687 (maxminv): Remove.
28688 (fmaxminv): Likewise.
28689 (fmaxmin): Likewise.
28690 (maxmin_uns): New.
28691 (maxmin_uns_op): Likewise.
28692
28693 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28694
28695 * config/aarch64/arm_neon.h
28696 (vac<ge, gt><sd>_f<32, 64>): Rename to...
28697 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
28698 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
28699
28700 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28701
28702 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
28703 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
28704
28705 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28706
28707 * config/aarch64/aarch64-simd.md
28708 (vcond<mode>_internal): Handle special cases for constant masks.
28709 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
28710 (vcondu<mode><mode>): Likewise.
28711 (vcond<v_cmp_result><mode>): New.
28712
28713 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28714
28715 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
28716 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
28717 * config/aarch64/aarch64-simd-builtins.def
28718 (cmeq): Update to BUILTIN_VALLDI.
28719 (cmgt): Likewise.
28720 (cmge): Likewise.
28721 (cmle): Likewise.
28722 (cmlt): Likewise.
28723 * config/aarch64/arm_neon.h
28724 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
28725 to builtins or C as appropriate.
28726
28727 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28728
28729 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
28730 (cmgeu): ...This.
28731 (cmhi): Rename to...
28732 (cmgtu): ...This.
28733 * config/aarch64/aarch64-simd.md
28734 (simd_mode): Add SF.
28735 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
28736 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
28737 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
28738 (cstore<mode>_neg): ...This.
28739 * config/aarch64/iterators.md
28740 (VALLF): new.
28741 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
28742 (COMPARISONS): New.
28743 (UCOMPARISONS): Likewise.
28744 (optab): Add missing comparisons.
28745 (n_optab): New.
28746 (cmp_1): Likewise.
28747 (cmp_2): Likewise.
28748 (CMP): Likewise.
28749 (cmp): Remove.
28750 (VCMP_S): Likewise.
28751 (VCMP_U): Likewise.
28752 (V_cmp_result): Add DF, SF modes.
28753 (v_cmp_result): Likewise.
28754 (v): Likewise.
28755 (vmtype): Likewise.
28756 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
28757
28758 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
28759
28760 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
28761 define_insn to define_insn_and_split.
28762 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
28763 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
28764 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
28765 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
28766 (thumb2_negscc): Likewise.
28767
28768 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28769
28770 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
28771
28772 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28773
28774 * config/arm/thumb2.md: Remove trailing whitespaces.
28775
28776 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28777
28778 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
28779 Use gen_int_mode rather than GEN_INT.
28780
28781 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
28782
28783 * value-prof.c (stream_in_histogram_value): Remove the strayed
28784 debug_gimple_stmt.
28785
28786 2013-04-30 Richard Biener <rguenther@suse.de>
28787
28788 PR middle-end/57122
28789 * cfghooks.c (split_edge): Properly check for the loop latch edge.
28790
28791 2013-04-30 Richard Biener <rguenther@suse.de>
28792
28793 PR middle-end/57107
28794 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
28795
28796 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
28797
28798 PR rtl-optimization/56957
28799 PR rtl-optimization/57105
28800 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
28801 variable. Use just INSN_UID for determining whether an insn
28802 should be only disconnected from the insn stream.
28803 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
28804
28805 2013-04-30 Jakub Jelinek <jakub@redhat.com>
28806
28807 PR tree-optimization/57104
28808 * tsan.c (instrument_expr): Don't instrument accesses to
28809 DECL_HARD_REGISTER VAR_DECLs.
28810
28811 2013-04-30 Richard Biener <rguenther@suse.de>
28812
28813 * function.h (loops_for_fn): New inline function.
28814 (set_loops_for_fn): Likewise.
28815 * cfgloop.h (place_new_loop): Add struct function parameter.
28816 (get_loop): Likewise.
28817 (get_loops): Likewise.
28818 (number_of_loops): Likewise.
28819 (fel_next): Adjust.
28820 (fel_init): Likewise.
28821 * cfg.c (get_loop_copy): Adjust.
28822 * cfgloop.c (flow_loops_dump): Likewise.
28823 (record_loop_exits): Likewise.
28824 (verify_loop_structure): Likewise.
28825 * cfgloopanal.c (mark_irreducible_loops): Likewise.
28826 (estimate_reg_pressure_cost): Likewise.
28827 (mark_loop_exit_edges): Likewise.
28828 * cfgloopmanip.c (place_new_loop): Likewise.
28829 (add_loop): Likewise.
28830 (duplicate_loop): Likewise.
28831 * graph.c (draw_cfg_nodes): Likewise.
28832 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
28833 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
28834 (extract_affine_chrec): Likewise.
28835 (build_scop_iteration_domain): Likewise.
28836 * graphite.c (graphite_initialize): Likewise.
28837 * ira-build.c (create_loop_tree_nodes): Likewise.
28838 (more_one_region_p): Likewise.
28839 (rebuild_regno_allocno_maps): Likewise.
28840 (mark_loops_for_removal): Likewise.
28841 (mark_all_loops_for_removal): Likewise.
28842 (remove_unnecessary_regions): Likewise.
28843 (ira_build): Likewise.
28844 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28845 * loop-init.c (fix_loop_structure): Likewise.
28846 (gate_rtl_move_loop_invariants): Likewise.
28847 (gate_rtl_unswitch): Likewise.
28848 (gate_rtl_unroll_and_peel_loops): Likewise.
28849 (rtl_doloop): Likewise.
28850 * lto-streamer-in.c (input_cfg): Likewise.
28851 * lto-streamer-out.c (output_cfg): Likewise.
28852 * modulo-sched.c (sms_schedule): Likewise.
28853 * predict.c (tree_estimate_probability): Likewise.
28854 (tree_estimate_probability_driver): Likewise.
28855 (estimate_loops): Likewise.
28856 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
28857 (move_sese_region_to_fn): Likewise.
28858 (debug_loop_num): Likewise.
28859 * tree-chrec.c (chrec_evaluate): Likewise.
28860 (hide_evolution_in_other_loops_than_loop): Likewise.
28861 (chrec_component_in_loop_num): Likewise.
28862 (reset_evolution_in_loop): Likewise.
28863 (evolution_function_is_invariant_rec_p): Likewise.
28864 * tree-if-conv.c (main_tree_if_conversion): Likewise.
28865 * tree-inline.c (copy_loops): Likewise.
28866 (copy_cfg_body): Likewise.
28867 (tree_function_versioning): Likewise.
28868 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
28869 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
28870 Likewise.
28871 (add_to_evolution_1): Likewise.
28872 (scev_const_prop): Likewise.
28873 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
28874 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
28875 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
28876 (tree_ssa_lim_initialize): Likewise.
28877 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
28878 (verify_loop_closed_ssa): Likewise.
28879 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
28880 (tree_ssa_loop_im): Likewise.
28881 (tree_ssa_loop_unswitch): Likewise.
28882 (tree_vectorize): Likewise.
28883 (check_data_deps): Likewise.
28884 (tree_ssa_loop_ivcanon): Likewise.
28885 (tree_ssa_loop_bounds): Likewise.
28886 (tree_complete_unroll): Likewise.
28887 (tree_complete_unroll_inner): Likewise.
28888 (tree_parallelize_loops): Likewise.
28889 (tree_ssa_loop_prefetch): Likewise.
28890 (tree_ssa_loop_ivopts): Likewise.
28891 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
28892 * tree-vectorizer.c (vectorize_loops): Likewise.
28893
28894 2013-04-29 Mike Frysinger <vapier@gentoo.org>
28895
28896 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
28897 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
28898 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
28899 with EABI_LINK_SPEC.
28900
28901 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28902
28903 PR target/44578
28904 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
28905 alternative.
28906
28907 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
28908
28909 PR target/57097
28910 * lra-constraints.c (process_alt_operands): Discourage a bit more
28911 using memory for pseudos. Print cost dump for alternatives.
28912 Modify cost values for conflicts with early clobbers.
28913 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28914
28915 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28916
28917 PR target/57098
28918 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28919
28920 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28921
28922 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28923 from/to S register.
28924 (movdi_aarch64): Support LDR/STR from/to D register.
28925
28926 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28927
28928 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28929 or higher by default.
28930
28931 2013-04-29 Richard Biener <rguenther@suse.de>
28932
28933 PR middle-end/57075
28934 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28935 even if not adding abnormal edges for calls that can make
28936 abnormal gotos.
28937
28938 2013-04-29 Richard Biener <rguenther@suse.de>
28939
28940 PR middle-end/57103
28941 * tree-cfg.c (move_stmt_op): Fix condition under which to update
28942 TREE_BLOCK.
28943 (move_stmt_r): Remove redundant checking.
28944
28945 2013-04-29 Teresa Johnson <tejohnson@google.com>
28946
28947 PR bootstrap/57077
28948 * basic-block.h (apply_scale): New function.
28949 (apply_probability): Use apply_scale.
28950 * gimple-streamer-in.c (input_bb): Ditto.
28951 * lto-streamer-in.c (input_cfg): Ditto.
28952 * lto-cgraph.c (merge_profile_summaries): Ditto.
28953 * tree-optimize.c (execute_fixup_cfg): Ditto.
28954 * tree-inline.c (copy_bb): Update comment to use apply_scale.
28955 (copy_edges_for_bb): Ditto.
28956 (copy_cfg_body): Ditto.
28957
28958 2013-04-29 Tom de Vries <tom@codesourcery.com>
28959
28960 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28961 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28962 (tail_merge_optimize): Handle current_loops == NULL.
28963
28964 2013-04-26 Jeff Law <law@redhat.com>
28965
28966 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28967 (simplify_cond_using_ranges): Generalize code to simplify
28968 COND_EXPRs where one argument is a constant and the other
28969 is an SSA_NAME created by an integral type conversion.
28970
28971 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28972
28973 * config/arm/arm.md (store_minmaxsi): Use only when
28974 optimize_insn_for_size_p.
28975
28976 2013-04-29 Christian Bruel <christian.bruel@st.com>
28977
28978 PR target/57108
28979 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28980
28981 2013-04-29 Richard Biener <rguenther@suse.de>
28982
28983 PR middle-end/57089
28984 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28985 loop tree make sure to schedule a fixup for the child as well.
28986 (expand_omp_for_generic): Properly add loops.
28987 (expand_omp_for_static_nochunk): Likewise.
28988 (expand_omp_for_static_chunk): Likewise.
28989 (expand_omp_for): For the degenerate case fixup loops.
28990 (expand_omp_sections): Fix default bb placement in loops.
28991 (expand_omp_atomic_pipeline): Properly add loops.
28992
28993 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28994
28995 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28996
28997 2013-04-29 Tom de Vries <tom@codesourcery.com>
28998
28999 * tree-ssa-tail-merge.c: Update header comment.
29000
29001 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29002
29003 * config/aarch64/arm_neon.h
29004 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
29005 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
29006 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
29007 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
29008 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
29009 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
29010 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
29011 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
29012
29013 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29014
29015 * config/aarch64/aarch64-simd.md
29016 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
29017 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
29018 fix_trunc, fixuns_trunc.
29019 (ftrunc<VDQF:mode>2): New.
29020 * config/aarch64/iterators.md (optab): Add fix, fixuns.
29021 (fix_trunc_optab): New.
29022
29023 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29024
29025 * config/aarch64/aarch64-builtins.c
29026 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
29027 iceilf, lround, iroundf.
29028
29029 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
29030
29031 PR target/54349
29032 * config/i386/i386.h (enum ix86_tune_indices)
29033 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
29034 New, split from X86_TUNE_INTER_UNIT_MOVES.
29035 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
29036 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
29037 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
29038 (TARGET_INTER_UNIT_MOVES): Remove.
29039 * config/i386/i386.c (initial_ix86_tune_features): Update.
29040 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
29041 (ix86_expand_convert_uns_didf_sse): Use
29042 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
29043 (ix86_expand_vector_init_one_nonzero): Ditto.
29044 (ix86_expand_vector_init_interleave): Ditto.
29045 (inline_secondary_memory_needed): Return true for moves from SSE class
29046 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
29047 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
29048 * config/i386/constraints.md (Yi, Ym): Depend on
29049 TARGET_INTER_UNIT_MOVES_TO_VEC.
29050 (Yj, Yn): New constraints.
29051 * config/i386/i386.md (*movdi_internal): Change constraints of
29052 operand 1 from Yi to Yj and from Ym to Yn.
29053 (*movsi_internal): Ditto.
29054 (*movdf_internal): Ditto.
29055 (*movsf_internal): Ditto.
29056 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
29057 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
29058 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
29059 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
29060 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
29061 * config/i386/sse.md (movdi_to_sse): Ditto.
29062 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
29063 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
29064 TARGET_INTER_UNIT_MOVES.
29065 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
29066 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
29067 instead of TARGET_INTER_UNIT_MOVES.
29068 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
29069 operand 1 from Yi to Yj and from Ym to Yn.
29070
29071 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29072
29073 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
29074 (float_truncate_hi_): Likewise.
29075 (float_extend_lo_): Likewise.
29076 (float_truncate_lo_): Likewise.
29077 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
29078 (aarch64_float_extend_lo_v2df): Likewise.
29079 (vec_unpacks_hi_v4sf): Likewise.
29080 (aarch64_float_truncate_lo_v2sf): Likewise.
29081 (aarch64_float_truncate_hi_v4sf): Likewise.
29082 (vec_pack_trunc_v2df): Likewise.
29083 (vec_pack_trunc_df): Likewise.
29084
29085 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29086
29087 * config/aarch64/aarch64-builtins.c
29088 (aarch64_fold_builtin): Fold float conversions.
29089 * config/aarch64/aarch64-simd-builtins.def
29090 (floatv2si, floatv4si, floatv2di): New.
29091 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
29092 * config/aarch64/aarch64-simd.md
29093 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
29094 * config/aarch64/iterators.md (FLOATUORS): New.
29095 (optab): Add float, floatuns.
29096 (su_optab): Likewise.
29097
29098 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29099
29100 * config/aarch64/aarch64-builtins.c
29101 (aarch64_builtin_vectorized_function): Use new names for
29102 fcvt builtins.
29103 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
29104 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
29105 (fcvtzu): Split as...
29106 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
29107 (fcvtas): Split as...
29108 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
29109 (fcvtau): Split as...
29110 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
29111 (fcvtps): Split as...
29112 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
29113 (fcvtpu): Split as...
29114 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
29115 (fcvtms): Split as...
29116 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
29117 (fcvtmu): Split as...
29118 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
29119 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
29120 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
29121 (lfrintnusf, lfrintnudf): Likewise.
29122 * config/aarch64/aarch64-simd.md
29123 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
29124 define_insn.
29125 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
29126 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
29127 (fcvt_pattern): Likewise.
29128
29129 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29130
29131 * config/aarch64/aarch64-simd.md
29132 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
29133 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
29134
29135 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29136
29137 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
29138 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
29139 (vrnd<a,m,n,p>_f32): Implement using builtins.
29140 (vrnd<i,x><q>_f<32, 64>): New.
29141
29142 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29143
29144 * config/aarch64/aarch64-builtins.c
29145 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
29146 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
29147 (frintz): Rename to...
29148 (btrunc): ...this.
29149 (frintp): Rename to...
29150 (ceil): ...this.
29151 (frintm): Rename to...
29152 (floor): ...this.
29153 (frinti): Rename to...
29154 (nearbyint): ...this.
29155 (frintx): Rename to...
29156 (rint): ...this.
29157 (frinta): Rename to...
29158 (round): ...this.
29159 * config/aarch64/aarch64-simd.md
29160 (aarch64_frint<frint_suffix><mode>): Delete.
29161 (<frint_pattern><mode>2): Convert to insn.
29162 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
29163 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
29164 (frint_pattern): Likewise.
29165 (frint_suffix): Likewise.
29166
29167 2013-04-29 Richard Biener <rguenther@suse.de>
29168
29169 PR tree-optimization/57081
29170 * loop-init.c: Include tree-flow.h.
29171 (loop_optimizer_finalize): Free number of iteration estimates.
29172 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
29173
29174 2013-04-29 Jakub Jelinek <jakub@redhat.com>
29175
29176 PR tree-optimization/57083
29177 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
29178 non-singleton shift count range, zero extend low_bound for uns case.
29179
29180 * config/i386/predicates.md (general_vector_operand): New predicate.
29181 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
29182 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
29183 if they aren't nonimmediate operands. If their original values
29184 satisfy const_vector_equal_evenodd_p, don't shift them.
29185 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
29186 predicates. For the SSE4.1 case force operands[{1,2}] into registers
29187 if not nonimmediate_operand.
29188 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
29189 instead of register_operand.
29190 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
29191
29192 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
29193
29194 * stor-layout.c (finalize_size_functions): Allocate a structure and
29195 reset cfun before dumping the functions.
29196
29197 2013-04-27 Jakub Jelinek <jakub@redhat.com>
29198
29199 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
29200
29201 PR target/56866
29202 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
29203 use xop_pmacsdqh if uns_p.
29204 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
29205 the immediate rotate count.
29206
29207 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
29208
29209 * rtl.h (struct rtx_def): Add comment for field jump.
29210 (LRA_SUBREG_P): New macro.
29211 * recog.c (register_operand): Check LRA_SUBREG_P.
29212 * lra.c (lra): Add note at the end of RTL code. Align non-empty
29213 stack frame.
29214 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29215 (lra_final_code_change): Skip subreg change for operators.
29216 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29217 if there are no operand changes.
29218 * lra-constraints.c (curr_insn_set): New.
29219 (match_reload): Set LRA_SUBREG_P.
29220 (emit_spill_move): Ditto.
29221 (check_and_process_move): Use curr_insn_set. Process only single
29222 set insns. Don't initialize sec_mem_p and change_p.
29223 (simplify_operand_subreg): Use LRA_SUBREG_P.
29224 (reg_in_class_p): New function.
29225 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
29226 of #ifdef. Add code to remove cycling.
29227 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29228 non-null disp. Reload inner instead of disp when base and index
29229 are null. Try to put lo_sum into register.
29230 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29231 (check_and_process_move): Move code for move cost check to
29232 simple_move_p. Remove equiv_substitution.
29233 (simple_move_p): New function.
29234 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
29235 curr_insn_set. Call check_and_process_move only for single set
29236 insns. Use the new function. Move call of check_and_process_move
29237 after operand equiv substitution and address process.
29238
29239 2013-04-26 Jakub Jelinek <jakub@redhat.com>
29240
29241 PR go/57045
29242 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
29243 with nonlocal goto receivers or returns twice calls, ignore
29244 unininitialized values from abnormal edges to nl goto receiver
29245 or returns twice call.
29246
29247 2013-04-26 Jakub Jelinek <jakub@redhat.com>
29248
29249 PR tree-optimization/57051
29250 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
29251 and VEC_RSHIFT_EXPR if shift count is a multiple of element
29252 bitsize.
29253
29254 2013-04-26 Richard Biener <rguenther@suse.de>
29255
29256 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
29257 (expand_omp_taskreg): Likewise. Mark loops for fixup.
29258 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
29259 (fixup_loop_arrays_after_move): New function.
29260 (move_sese_region_to_fn): Properly outline the loop tree parts
29261 of the SESE region.
29262
29263 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
29264
29265 * config/i386/i386.md (type, unit): Fix long lines.
29266
29267 2013-04-26 Richard Biener <rguenther@suse.de>
29268
29269 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
29270 (lto-streamer-out.o): Likewise.
29271 * cfgloop.c (init_loops_structure): Export, add struct function
29272 argument and adjust.
29273 (flow_loops_find): Adjust.
29274 * cfgloop.h (enum loop_estimation): Add EST_LAST.
29275 (init_loops_structure): Declare.
29276 * lto-streamer-in.c: Include cfgloop.h.
29277 (input_cfg): Input the loop tree.
29278 * lto-streamer-out.c: Include cfgloop.h.
29279 (output_cfg): Output the loop tree.
29280 (output_struct_function_base): Do not drop PROP_loops.
29281
29282 2013-03-26 Richard Biener <rguenther@suse.de>
29283
29284 * tree-cfg.c (execute_build_cfg): Build the loop tree.
29285 (pass_build_cfg): Provide PROP_loops.
29286 (move_sese_region_to_fn): Remove loops that are outlined into fn
29287 for now.
29288 * tree-inline.c: Include cfgloop.h.
29289 (initialize_cfun): Do not drop PROP_loops.
29290 (copy_loops): New function.
29291 (copy_cfg_body): Copy loop structure.
29292 (tree_function_versioning): Initialize destination loop tree.
29293 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
29294 (pass_parallelize_loops): Do IL verification.
29295 * loop-init.c (loop_optimizer_init): Fixup loops if required.
29296 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
29297 the CFG make sure we fixup loops as well.
29298 * tree-ssa-tail-merge.c: Include cfgloop.h.
29299 (replace_block_by): When merging loop latches mark loops for fixup.
29300 * lto-streamer-out.c (output_struct_function_base): Drop
29301 PROP_loops for now.
29302 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
29303 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
29304 * ipa-split.c: Include cfgloop.h.
29305 (split_function): Add the new return block to the loop tree root.
29306 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
29307 whether we have removed the forwarder block.
29308 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
29309 * cfgloop.h (place_new_loop): Declare.
29310 * cfgloopmanip.c (place_new_loop): Export.
29311 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
29312 (tree-switch-conversion.o): Likewise.
29313 (tree-complex.o): Likewise.
29314 (tree-inline.o): Likewise.
29315 (tree-ssa-tailmerge.o): Likewise.
29316 (ipa-split.o): Likewise.
29317 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
29318 (tree-ssa-copy.o): Likewise.
29319 * tree-switch-conversion.c: Include cfgloop.h
29320 (process_switch): If we emit a bit-test cascade, schedule loops
29321 for fixup.
29322 * tree-complex.c: Include cfgloop.h.
29323 (expand_complex_div_wide): Properly add new basic-blocks to loops.
29324 * asan.c: Include cfgloop.h.
29325 (create_cond_insert_point): Properly add new basic-blocks to
29326 loops, schedule loop fixup.
29327 * cfgloop.c (verify_loop_structure): Check that looks are not
29328 marked for fixup.
29329 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
29330 to loops.
29331 (expand_omp_for_generic): Likewise.
29332 (expand_omp_sections): Likewise.
29333 (expand_omp_atomic_pipeline): Schedule loops for fixup.
29334 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
29335 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
29336 is initialized, not when loops are present.
29337 * tree-parloops.c (parallelize_loops): Remove checking here.
29338 * passes.c (init_optimization_passes): Schedule a copy-propagation
29339 pass before complete unrolling of inner loops.
29340
29341 2013-04-26 Jakub Jelinek <jakub@redhat.com>
29342
29343 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
29344 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
29345 (colorize_init): Add argument to _WIN32 version.
29346 * toplev.c: Include diagnostic-color.h.
29347 (process_options): Default to -fdiagnostics-color=auto if
29348 GCC_COLORS env var is in the environment.
29349 * common.opt (fdiagnostics-color=): Add Var and Init.
29350 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
29351 env var is in the environment, the default is auto rather than never.
29352
29353 * diagnostic.h (file_name_as_prefix): Add context argument.
29354 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
29355 the string as locus.
29356 * langhooks.c (lhd_print_error_function): Adjust caller.
29357
29358 2013-04-25 Lawrence Crowl <crowl@google.com>
29359
29360 * var-tracking.c (shared_hash_def::htab):
29361 Change type to hash_table. Update dependent calls and types.
29362
29363 2013-04-25 Lawrence Crowl <crowl@google.com>
29364
29365 * Makefile.in: Update as needed below.
29366
29367 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
29368 Move declaration to after the type's method definitons.
29369
29370 * attribs.c (htab_t scoped_attributes::attribute_hash):
29371 Change type to hash_table. Update dependent calls and types.
29372
29373 * bitmap.c (htab_t bitmap_desc_hash):
29374 Change type to hash_table. Update dependent calls and types.
29375
29376 * cselib.c (htab_t cselib_hash_table):
29377 Change type to hash_table. Update dependent calls and types.
29378
29379 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
29380 (hash_string_slot_node): Move implementation into lto-streamer.h
29381 struct string_slot_hasher.
29382 (eq_string_slot_node): Likewise.
29383
29384 * data-streamer-out.c: Update output_block::string_hash_table
29385 dependent calls and types.
29386
29387 * dwarf2cfi.c (htab_t trace_index):
29388 Change type to hash_table. Update dependent calls and types.
29389
29390 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
29391 Change type to hash_table. Update dependent calls and types.
29392 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
29393 (htab_t optimize_external_refs::map): Likewise.
29394 (htab_t output_comp_unit::extern_map): Likewise.
29395 (htab_t output_comdat_type_unit::extern_map): Likewise.
29396 (htab_t output_macinfo::macinfo_htab): Likewise.
29397 (htab_t optimize_location_lists::htab): Likewise.
29398 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
29399
29400 * except.c (htab_t ehspec_hash_type):
29401 Change type to hash_table. Update dependent calls and types.
29402 (assign_filter_values::ttypes): Likewise.
29403 (assign_filter_values::ehspec): Likewise.
29404 (sjlj_assign_call_site_values::ar_hash): Likewise.
29405 (convert_to_eh_region_ranges::ar_hash): Likewise.
29406
29407 * gcse.c (htab_t pre_ldst_table):
29408 Change type to hash_table. Update dependent calls and types.
29409
29410 * ggc-common.c (htab_t saving_htab):
29411 Change type to hash_table. Update dependent calls and types.
29412 (htab_t loc_hash): Likewise.
29413 (htab_t ptr_hash): Likewise.
29414 (call_count): Rename ggc_call_count.
29415 (call_alloc): Rename ggc_call_alloc.
29416 (loc_descriptor): Rename make_loc_descriptor.
29417 (add_statistics): Rename ggc_add_statistics.
29418
29419 * ggc-common.c (saving_htab):
29420 Change type to hash_table. Update dependent calls and types.
29421
29422 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
29423 (push_gimplify_context): Likewise.
29424 (pop_gimplify_context): Likewise.
29425 (struct gimple_temp_hash_elt): Added.
29426 (struct gimplify_hasher): Likewise.
29427 (struct gimplify_ctx.temp_htab):
29428 Change type to hash_table. Update dependent calls and types.
29429
29430 * gimple-fold.c: Include gimplify-ctx.h.
29431
29432 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
29433 Change type to hash_table. Update dependent calls and types.
29434 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
29435 avoid potential global name collision.
29436
29437 * gimplify.c: Include gimplify-ctx.h.
29438 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
29439 (htab_t gimplify_ctx::temp_htab):
29440 Update dependent calls and types for new type hash_table.
29441 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
29442 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
29443
29444 * gimplify-ctx.h: New.
29445 (struct gimple_temp_hash_elt): Move from gimplify.c.
29446 (class gimplify_hasher): New.
29447 (struct gimplify_ctx): Move from gimple.h.
29448 (htab_t gimplify_ctx::temp_htab):
29449 Change type to hash_table. Update dependent calls and types.
29450
29451 * graphite-clast-to-gimple.c: Include graphite-htab.h.
29452 (htab_t ivs_params::newivs_index):
29453 Change type to hash_table. Update dependent calls and types.
29454 (htab_t ivs_params::params_index): Likewise.
29455 (htab_t print_generated_program::params_index): Likewise.
29456 (htab_t gloog::newivs_index): Likewise.
29457 (htab_t gloog::params_index): Likewise.
29458
29459 * graphite.c: Include graphite-htab.h.
29460 4htab_t graphite_transform_loops::bb_pbb_mapping):
29461 Change type to hash_table. Update dependent calls and types.
29462
29463 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
29464 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
29465 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
29466
29467 * graphite-dependences.c: Include graphite-htab.h.
29468 (loop_is_parallel_p): Change hash table type of parameter.
29469
29470 * graphite-htab.h: New.
29471 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
29472 (extern find_pbb_via_hash): Move from graphite-poly.h.
29473 (extern loop_is_parallel_p): Move from graphite-poly.h.
29474 (extern get_loop_body_pbbs): Move from graphite-poly.h.
29475
29476 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
29477 (extern loop_is_parallel_p): Move to graphite-htab.h.
29478 (extern get_loop_body_pbbs): Move to graphite-htab.h.
29479
29480 * haifa-sched.c (htab_t delay_htab):
29481 Change type to hash_table. Update dependent calls and types.
29482 (htab_t delay_htab_i2): Likewise.
29483
29484 * ira-color.c (htab_t allocno_hard_regs_htab):
29485 Change type to hash_table. Update dependent calls and types.
29486
29487 * ira-costs.c (htab_t cost_classes_htab):
29488 Change type to hash_table. Update dependent calls and types.
29489
29490 * loop-invariant.c (htab_t merge_identical_invariants::eq):
29491 Change type to hash_table. Update dependent calls and types.
29492
29493 * loop-iv.c (htab_t bivs):
29494 Change type to hash_table. Update dependent calls and types.
29495
29496 * loop-unroll.c (htab_t opt_info::insns_to_split):
29497 Change type to hash_table. Update dependent calls and types.
29498 (htab_t opt_info::insns_with_var_to_expand): Likewise.
29499
29500 * lto-streamer.h (struct string_slot): Move from data-streamer.h
29501 (struct string_slot_hasher): New.
29502 (htab_t output_block::string_hash_table):
29503 Change type to hash_table. Update dependent calls and types.
29504
29505 * lto-streamer-in.c (freeing_string_slot_hasher): New.
29506 (htab_t file_name_hash_table):
29507 Change type to hash_table. Update dependent calls and types.
29508
29509 * lto-streamer-out.c: Update output_block::string_hash_table dependent
29510 calls and types.
29511
29512 * lto-streamer.c (htab_t tree_htab):
29513 Change type to hash_table. Update dependent calls and types.
29514
29515 * omp-low.c: Include gimplify-ctx.h.
29516
29517 * passes.c (htab_t name_to_pass_map):
29518 Change type to hash_table. Update dependent calls and types.
29519 (pass_traverse): Rename to passes_pass_traverse.
29520
29521 * plugin.c (htab_t event_tab):
29522 Change type to hash_table. Update dependent calls and types.
29523
29524 * postreload-gcse.c (htab_t expr_table):
29525 Change type to hash_table. Update dependent calls and types.
29526 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
29527
29528 * sese.c (debug_rename_map_1): Make extern.
29529 (htab_t copy_bb_and_scalar_dependences::rename_map):
29530 Change type to hash_table. Update dependent calls and types.
29531
29532 * sese.h (extern debug_rename_map): Move to .c file.
29533
29534 * store-motion.c (htab_t store_motion_mems_table):
29535 Change type to hash_table. Update dependent calls and types.
29536
29537 * trans-mem.c (htab_t tm_new_mem_hash):
29538 Change type to hash_table. Update dependent calls and types.
29539
29540 * tree-browser.c (htab_t TB_up_ht):
29541 Change type to hash_table. Update dependent calls and types.
29542
29543 * tree-cfg.c (htab_t discriminator_per_locus):
29544 Change type to hash_table. Update dependent calls and types.
29545
29546 * tree-complex.c: Include tree-hasher.h
29547 (htab_t complex_variable_components):
29548 Change type to hash_table. Update dependent calls and types.
29549
29550 * tree-eh.c (htab_t finally_tree):
29551 Change type to hash_table. Update dependent calls and types.
29552
29553 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
29554 struct int_tree_hasher.
29555 (extern int_tree_map_eq): Likewise.
29556 (uid_decl_map_hash): Removed.
29557 (extern decl_tree_map_eq): Likewise.
29558
29559 * tree-hasher.h: New.
29560 (struct int_tree_hasher): New.
29561 (typedef int_tree_htab_type): New.
29562
29563 * tree-inline.c: Include gimplify-ctx.h.
29564
29565 * tree-mudflap.c: Include gimplify-ctx.h.
29566
29567 * tree-parloops.c: Include tree-hasher.h.
29568 (htab_t eliminate_local_variables_stmt::decl_address):
29569 Change type to hash_table. Update dependent calls and types.
29570 (htab_t separate_decls_in_region::decl_copies): Likewise.
29571
29572 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
29573 Change type to hash_table. Update dependent calls and types.
29574
29575 * tree-sra.c (candidates):
29576 Change type to hash_table. Update dependent calls and types.
29577
29578 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
29579 in tree-flow.h.
29580 (int_tree_map_hash): Likewise.
29581
29582 * tree-ssa-dom.c (htab_t avail_exprs):
29583 Change type to hash_table. Update dependent calls and types.
29584
29585 * tree-ssa-live.c (var_map_base_init::tree_to_index):
29586 Change type to hash_table. Update dependent calls and types.
29587
29588 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
29589 Change type to hash_table. Update dependent calls and types.
29590
29591 * tree-ssa-phiopt.c (seen_ssa_names):
29592 Change type to hash_table. Update dependent calls and types.
29593
29594 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
29595 Change type to hash_table. Update dependent calls and types.
29596
29597 * tree-ssa-uncprop.c (equiv):
29598 Change type to hash_table. Update dependent calls and types.
29599
29600 2013-04-25 Jakub Jelinek <jakub@redhat.com>
29601
29602 PR rtl-optimization/57003
29603 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
29604 call note_stores with kill_clobbered_value callback again after
29605 killing regs_invalidated_by_call.
29606
29607 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29608
29609 * config/aarch64/aarch64-simd.md
29610 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
29611 (aarch64_simd_bsl<mode>): Likewise.
29612 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
29613
29614 2013-04-25 Marek Polacek <polacek@redhat.com>
29615
29616 PR tree-optimization/57066
29617 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
29618
29619 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29620
29621 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
29622
29623 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29624
29625 * config/aarch64/aarch64-builtins.c
29626 (aarch64_fold_builtin): New.
29627 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
29628 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
29629 * config/aarch64/aarch64-simd-builtins.def (abs): New.
29630 * config/aarch64/arm_neon.h
29631 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
29632
29633 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29634 Tejas Belagod <tejas.belagod@arm.com>
29635
29636 * config/aarch64/aarch64-builtins.c
29637 (aarch64_gimple_fold_builtin): New.
29638 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
29639 * config/aarch64/aarch64-simd-builtins.def (addv): New.
29640 * config/aarch64/aarch64-simd.md (addpv4sf): New.
29641 (addvv4sf): Update.
29642 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
29643
29644 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29645
29646 * config/aarch64/aarch64.md
29647 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
29648
29649 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29650
29651 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
29652 (*ngcsi_uxtw): New pattern.
29653
29654 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29655 Julian Brown <julian@codesourcery.com>
29656
29657 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
29658 (TB_DREG): Add T_V4HF.
29659 (v4hf_UP): New macro.
29660 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29661 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29662 Handle initialisation of V4HF. Adjust initialisation of reinterpret
29663 built-ins.
29664 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29665 (arm_vector_mode_supported_p): Handle V4HF.
29666 (arm_mangle_map): Handle V4HFmode.
29667 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
29668 * config/arm/arm_neon_builtins.def: Add entries for
29669 vcvtv4hfv4sf, vcvtv4sfv4hf.
29670 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
29671 (neon_vcvtv4hfv4sf): Likewise.
29672 * config/arm/neon-gen.ml: Handle half-precision floating point
29673 features.
29674 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
29675 * config/arm/arm_neon.h: Regenerate.
29676 * config/arm/neon.ml (type elts): Add F16.
29677 (type vectype): Add T_float16x4, T_floatHF.
29678 (type vecmode): Add V4HF.
29679 (type features): Add Requires_FP_bit feature.
29680 (elt_width): Handle F16.
29681 (elt_class): Likewise.
29682 (elt_of_class_width): Likewise.
29683 (mode_of_elt): Refactor.
29684 (type_for_elt): Handle F16, fix error messages.
29685 (vectype_size): Handle T_float16x4.
29686 (vcvt_sh): New function.
29687 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
29688 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
29689 (string_of_mode): Handle V4HF.
29690 * doc/arm-neon-intrinsics.texi: Regenerate.
29691
29692 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29693
29694 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
29695 format specifier in 'X' case.
29696
29697 2013-04-25 Alan Modra <amodra@gmail.com>
29698
29699 PR target/57052
29700 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
29701 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
29702 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
29703 Repeat for many other rotate/shift and mask patterns using subregs.
29704 Name lshiftrt insns.
29705 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
29706 on WORDS_BIG_ENDIAN.
29707
29708 2013-04-25 Alan Modra <amodra@gmail.com>
29709
29710 * config.gcc: Support little-endian powerpc-linux targets.
29711 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
29712 (LINK_OS_LINUX_SPEC): Define.
29713 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
29714 Preserve MASK_LITTLE_ENDIAN.
29715 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
29716 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
29717 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
29718 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
29719 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
29720 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
29721 Correct fp word order for little-endian. Don't shift toc entries
29722 smaller than a word for little-endian.
29723 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
29724 (bswapdi2 splits): Correct low-part subreg for little-endian.
29725 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
29726 low/high where such is correct only for be.
29727 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
29728 little-endian for -mcall-aixdesc.
29729
29730 2013-04-25 Alan Modra <amodra@gmail.com>
29731
29732 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29733 replace_equiv_address_nv.
29734
29735 2013-04-25 Alan Modra <amodra@gmail.com>
29736
29737 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
29738
29739 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29740
29741 Revert:
29742 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29743 * rtl.h (struct rtx_def): ...
29744
29745 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29746
29747 PR rtl-optimizations/57046
29748 * lra-constraints (split_reg): Set up lra_risky_transformations_p
29749 for multi-reg splits.
29750
29751 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
29752
29753 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
29754
29755 2013-04-24 Sterling Augustine <saugustine@google.com>
29756
29757 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
29758 (comp_dir_string, debug_str_dwo_section): New.
29759 (DEBUG_STR_DWO_SECTION): Rename to ...
29760 (DEBUG_DWO_STR_SECTION): ... this.
29761 (DEBUG_NORM_STR_SECTION): Delete.
29762 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
29763 (DEBUG_STR_DWO_SECTION_FLAGS): New.
29764 (find_AT_string): Move most logic to ...
29765 (find_AT_string_in_table): ... here. New.
29766 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
29767 add_skeleton_AT_string. Delete logic.
29768 (output_skeleton_debug_sections): Remove call to
29769 add_top_level_skeleton_die_attrs.
29770 (add_comp_dir_attribute): Move logic to comp_dir_string.
29771 (dwarf2out_init): Initialize debug_str_dwo_section.
29772 (output_indirect_string): Call find_string_form.
29773 (output_indirect_strings): Rewrite.
29774 (prune_unused_types): Empty skeleton_debug_str_hash.
29775 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
29776 (dwarf2out_finish): Call output_indirect_strings.
29777
29778 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29779
29780 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
29781
29782 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29783
29784 * rtl.h (struct rtx_def): Add comment for field jump.
29785 (LRA_SUBREG_P): New macro.
29786 * recog.c (register_operand): Check LRA_SUBREG_P.
29787 * lra.c (lra): Add note at the end of RTL code. Align non-empty
29788 stack frame.
29789 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29790 (lra_final_code_change): Skip subreg change for operators.
29791 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29792 if there are no operand changes.
29793 * lra-constraints.c (curr_insn_set): New.
29794 (match_reload): Set LRA_SUBREG_P.
29795 (emit_spill_move): Ditto.
29796 (check_and_process_move): Use curr_insn_set. Process only single
29797 set insns. Don't initialize sec_mem_p and change_p.
29798 (simplify_operand_subreg): Use LRA_SUBREG_P.
29799 (reg_in_class_p): New function.
29800 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
29801 of #ifdef. Add code to remove cycling.
29802 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29803 non-null disp. Reload inner instead of disp when base and index
29804 are null. Try to put lo_sum into register.
29805 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29806 (check_and_process_move): Move code for move cost check to
29807 simple_move_p. Remove equiv_substitution.
29808 (simple_move_p): New function.
29809 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
29810 curr_insn_set. Call check_and_process_move only for single set
29811 insns. Use the new function. Move call of check_and_process_move
29812 after operand equiv substitution and address process.
29813
29814 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
29815
29816 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
29817 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
29818 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
29819
29820 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29821
29822 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
29823
29824 2013-04-24 Marek Polacek <polacek@redhat.com>
29825
29826 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
29827 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
29828 (select_loops_exit_conditions): Likewise.
29829 (number_of_iterations_for_all_loops): Likewise.
29830 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
29831 (scev_analysis): Likewise.
29832
29833 2013-04-02 Catherine Moore <clm@codesourcery.com>
29834 Chao-ying Fu <fu@mips.com>
29835
29836 * config/mips/micromips.md (jraddiusp): New pattern.
29837 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
29838 instruction if possible.
29839
29840 2013-04-24 Alan Modra <amodra@gmail.com>
29841
29842 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
29843
29844 2013-04-24 Julian Brown <julian@codesourcery.com>
29845 Chung-Lin Tang <cltang@codesourcery.com>
29846
29847 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
29848 dependency behavior in enumeration type DIE generation. Add TODO note
29849 to comments about future DW_FORM_sdata/udata re-work of related code.
29850
29851 2013-04-23 Lawrence Crowl <crowl@google.com>
29852
29853 * Makefile.in: Update as needed below.
29854
29855 * hash-table.h (class hash_table):
29856 Correct many methods with parameter types compare_type to the correct
29857 value_type. (Correct code was unlikely to notice the change.)
29858 (hash_table::elements_with_deleted) New.
29859 (class hashtable::iterator): New.
29860 (hashtable::begin()): New.
29861 (hashtable::end()): New.
29862 (FOR_EACH_HASH_TABLE_ELEMENT): New.
29863
29864 * statistics.c (statistics_hashes):
29865 Change type to hash_table. Update dependent calls and types.
29866
29867 * tree-into-ssa.c (var_infos):
29868 Change type to hash_table. Update dependent calls and types.
29869
29870 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
29871 Change type to hash_table. Update dependent calls and types.
29872
29873 * tree-ssa-loop-im.c (struct mem_ref.refs):
29874 Change type to hash_table. Update dependent calls and types.
29875
29876 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
29877 Change type to hash_table. Update dependent calls and types.
29878
29879 * tree-ssa-sccvn.c (vn_tables_s::nary):
29880 Change type to hash_table. Update dependent calls and types.
29881 (vn_tables_s::phis): Likewise.
29882 (vn_tables_s::references): Likewise.
29883
29884 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
29885 (vn_reference_eq): Update parameter and return types.
29886
29887 * tree-ssa-structalias.c (pointer_equiv_class_table):
29888 Change type to hash_table. Update dependent calls and types.
29889 (location_equiv_class_table): Likewise.
29890
29891 * tree-vect-data-refs.c: Consequential changes for making
29892 peeling a hash_table.
29893
29894 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
29895 (destroy_loop_vec_info): Dependent hash_table update.
29896
29897 * tree-vectorizer.h (peeling_htab):
29898 Change type to hash_table. Update dependent calls and types.
29899
29900 2013-04-23 Shiva Chen <shiva0217@gmail.com>
29901
29902 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
29903 to check the register content is equal or not.
29904 * lra-constraints.c (match_reload): Use lra_assign_reg_val
29905 to assign register content record.
29906 * lra-eliminations.c (update_reg_eliminate): Use
29907 lra_update_reg_val_offset to update register content offset.
29908 * lra-int.h (struct lra_reg): Add offset member.
29909 (lra_reg_val_equal_p): New static inline function.
29910 (lra_update_reg_val_offset): New static inline function.
29911 (lra_assign_reg_val): New static inline function.
29912 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29913 to assign register content record.
29914 (initialize_lra_reg_info_element): Initial offset to zero.
29915
29916 2013-04-23 Catherine Moore <clm@codesourcery.com>
29917
29918 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29919 operands. Record compression.
29920
29921 2013-04-23 Xinliang David Li <davidxl@google.com>
29922
29923 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29924
29925 2013-04-23 Richard Biener <rguenther@suse.de>
29926
29927 PR middle-end/57036
29928 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29929 parameter, only add abnormal goto edges from the copied body
29930 if the call could perform abnormal gotos.
29931 (copy_cfg_body): Adjust.
29932
29933 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
29934
29935 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29936
29937 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
29938
29939 * coretypes.h (gimple_stmt_iterator): Add struct to make
29940 compatible with C.
29941
29942 2013-04-23 Richard Biener <rguenther@suse.de>
29943
29944 PR tree-optimization/57026
29945 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29946 from SSA names occuring in abnormal PHI nodes.
29947
29948 2013-04-22 Andi Kleen <ak@linux.intel.com>
29949
29950 * lto/lto.c (print_lto_report_1): Fix LTO report names.
29951
29952 2013-04-22 Andi Kleen <ak@linux.intel.com>
29953
29954 * lto/lto.c (print_lto_report_1): Declare early.
29955 (read_cgraph_and_symbols): Call print_lto_report_1 early.
29956
29957 2013-04-22 Andi Kleen <ak@linux.intel.com>
29958
29959 * common.opt (-flto-report-wpa): Add.
29960 * doc/invoke.texi (-flto-report-wpa): Add.
29961 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29962 (lto_main): dito.
29963
29964 2013-04-22 Xinliang David Li <davidxl@google.com>
29965
29966 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29967 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29968 * Makefile.in: New dependency
29969
29970 David Daney <ddaney.cavm@gmail.com>
29971
29972 * configure.ac (gcc_cv_as_micromips_support): Use the
29973 --fatal-warnings option.
29974 * configure: Regenerate.
29975
29976 2013-04-22 Marek Polacek <polacek@redhat.com>
29977
29978 PR sanitizer/56990
29979 * tsan.c (instrument_expr): Don't instrument expression
29980 in case its size is zero.
29981
29982 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
29983
29984 PR target/57032
29985 Revert:
29986 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
29987
29988 * config/alpha/alpha.c (TARGET_LRA_P): New define.
29989
29990 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29991
29992 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29993 (gimple_stmt_iterator): New typedef.
29994 * gimple.h (gimple_stmt_iterator): Rename to...
29995 (gimple_stmt_iterator_d): ... This.
29996 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29997 trees be valid for GIMPLE and GENERIC.
29998 (TARGET_GIMPLE_FOLD_BUILTIN): New.
29999 * gimple-fold.c (gimple_fold_call): Call target hook
30000 gimple_fold_builtin.
30001 * hooks.c (hook_bool_gsiptr_false): New.
30002 * hooks.h (hook_bool_gsiptr_false): New.
30003 * target.def (fold_stmt): New.
30004 * doc/tm.texi: Regenerate.
30005
30006 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
30007
30008 PR target/57018
30009 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
30010 a set sp if no stack realignment.
30011
30012 2013-04-22 Nick Clifton <nickc@redhat.com>
30013
30014 * config.gcc (tilegx-linux): Extend extra_objs rather than
30015 overwriting it.
30016 (tilepro-linux): Likewise.
30017
30018 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
30019
30020 * config/aarch64/aarch64-builtins.c
30021 (CF): Remove.
30022 (CF0, CF1, CF2, CF3, CF4, CF10): New.
30023 (VAR<1-12>): Add MAP parameter.
30024 (BUILTIN_*): Likewise.
30025 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
30026 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
30027 (aarch64_ushl_n<mode>): Likewise.
30028 (aarch64_sshr_n<mode>): Likewise.
30029 (aarch64_ushr_n<mode>): Likewise.
30030 (aarch64_<maxmin><mode>): Likewise.
30031 (aarch64_sqrt<mode>): Likewise.
30032 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
30033 (vshr<q>_n_*): Likewise.
30034
30035 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
30036
30037 * config/aarch64/aarch64-builtins.c
30038 (aarch64_simd_builtin_type_mode): Handle SF types.
30039 (sf_UP): Define.
30040 (BUILTIN_GPF): Define.
30041 (aarch64_init_simd_builtins): Handle SF types.
30042 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
30043 (frecps): Likewise.
30044 (frecpx): Likewise.
30045 * config/aarch64/aarch64-simd.md
30046 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
30047 (aarch64_frecpe<mode>): New.
30048 (aarch64_frecps<mode>): Likewise.
30049 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
30050 (v8type): Add frecp<esx>.
30051 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
30052 (aarch64_frecps<mode>): Likewise.
30053 * config/aarch64/iterators.md (FRECP): New.
30054 (frecp_suffix): Likewise.
30055 * config/aarch64/arm_neon.h
30056 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
30057
30058 2013-04-22 Christian Bruel <christian.bruel@st.com>
30059
30060 PR target/56995
30061 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
30062 (REG_CLASS_NAMES): Idem.
30063 (REG_CLASS_CONTENTS): Idem.
30064 (REGCLASS_HAS_FP_REG): Idem.
30065 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
30066 (sh_conditional_register_usage): Idem.
30067
30068 2013-04-21 Jeff Law <law@redhat.com>
30069
30070 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
30071 (ssa_forward_propagate_and_combine): Use it.
30072
30073 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
30074
30075 * lra.c: Update the flow chart diagram.
30076
30077 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
30078
30079 PR rtl-optimization/56847
30080 * lra-constraints.c (process_alt_operands): Discourage alternative
30081 with non-matche doffsettable memory constraint fro memory with
30082 known offset.
30083
30084 2013-04-19 Richard Biener <rguenther@suse.de>
30085
30086 PR tree-optimization/56982
30087 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
30088 function.
30089 * gimplify.c (gimplify_call_expr): Notice special calls.
30090 (gimplify_modify_expr): Likewise.
30091 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
30092 abnormal control flow receivers.
30093 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
30094 in the same way as cfun->has_nonlocal_labels.
30095 (gimple_purge_dead_abnormal_call_edges): Likewise.
30096 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
30097 receivers start a basic-block.
30098
30099 2013-04-19 Richard Biener <rguenther@suse.de>
30100
30101 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
30102 member ...
30103 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
30104 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
30105 (SLP_TREE_LOAD_PERMUTATION): Add.
30106 (vect_transform_slp_perm_load): Adjust prototype.
30107 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
30108 (vect_free_slp_instance): Likewise.
30109 (vect_create_new_slp_node): Likewise.
30110 (vect_supported_slp_permutation_p): Remove.
30111 (vect_slp_rearrange_stmts): Adjust.
30112 (vect_supported_load_permutation_p): Likewise. Inline
30113 vect_supported_slp_permutation_p here.
30114 (vect_analyze_slp_instance): Compute load permutations per
30115 slp node instead of per instance.
30116 (vect_get_slp_defs): Adjust.
30117 (vect_transform_slp_perm_load): Likewise.
30118 (vect_schedule_slp_instance): Remove redundant code.
30119 (vect_schedule_slp): Remove hack for PR56270, add it ...
30120 * tree-vect-stmts.c (vectorizable_load): ... here, do not
30121 CSE loads for SLP. Adjust.
30122
30123 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
30124
30125 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
30126 spelling in two comments.
30127
30128 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
30129
30130 PR target/56797
30131 * config/arm/arm.c (load_multiple_sequence): Require SP
30132 as base register for loads if SP is in the register list.
30133
30134 2013-04-19 Martin Jambor <mjambor@suse.cz>
30135
30136 PR tree-optimization/56718
30137 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
30138 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
30139 and made public. Adjusted all callers.
30140 (ipa_intraprocedural_devirtualization): New function.
30141 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
30142 (ipa_intraprocedural_devirtualization): Likewise.
30143 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
30144
30145 2013-04-19 Richard Biener <rguenther@suse.de>
30146
30147 PR tree-optimization/57000
30148 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
30149
30150 2013-04-19 Terry Guo <terry.guo@arm.com>
30151
30152 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
30153 Replace with ...
30154 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
30155 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
30156 (cortex_m4_fmacs): Use new reservations.
30157 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
30158
30159 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
30160
30161 PR rtl-optimization/56999
30162 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
30163 related code.
30164 (lra_coalesce): Remove split_origin_bitmap and related code.
30165 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
30166 ranges if necessary.
30167
30168 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
30169
30170 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
30171 New array.
30172 (ix86_expand_call): Remove clobbered_registers array and use
30173 x86_64_ms_sysv_extra_clobbered_registers instead.
30174 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
30175 Declare here.
30176 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
30177 predicate.
30178 * config/i386/i386.md (*call_rex64_ms_sysv): Use
30179 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
30180 (*call_value_rex64_ms_sysv): Ditto.
30181
30182 2013-04-18 Cary Coutant <ccoutant@google.com>
30183
30184 * dwarf2out.c (output_pubnames): Check die_perennial_p of
30185 parent instead of die_mark.
30186
30187 2013-04-18 Diego Novillo <dnovillo@google.com>
30188
30189 * gimple.c (create_gimple_tmp): New.
30190 (get_expr_type): New.
30191 (build_assign): New.
30192 (build_type_cast): New.
30193 * gimple.h (enum ssa_mode): Define.
30194 (gimple_seq_set_location): New.
30195 * asan.c (build_check_stmt): Change some gimple_build_* calls
30196 to use build_assign and build_type_cast.
30197
30198 2013-04-18 Richard Biener <rguenther@suse.de>
30199
30200 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
30201 handle negative step. Remove redundant checks.
30202 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
30203 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
30204 for negative step and grouped loads fail to vectorize.
30205
30206 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
30207
30208 * emit-rtl.c (reset_insn_used_flags): New function.
30209 (reset_all_used_flags): Use it.
30210 (verify_insn_sharing): New function.
30211 (verify_rtl_sharing): Fix verification for SEQUENCEs.
30212
30213 2013-04-18 Jakub Jelinek <jakub@redhat.com>
30214
30215 PR tree-optimization/56984
30216 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
30217 and (x >> M) >= N don't register any assertion if N << M is the
30218 minimum value.
30219
30220 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
30221
30222 * lower-subreg.c (resolve_simple_move): If called self-recursive,
30223 do not delete_insn insns that have not yet been emitted, only
30224 unlink them with remove_insn.
30225 * df-scan.c (df_insn_delete): Revert r197492.
30226
30227 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
30228
30229 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
30230 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
30231
30232 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
30233
30234 * config/arm/arm.md (movsicc_insn): Convert define_insn into
30235 define_insn_and_split.
30236 (and_scc,ior_scc,negscc): Likewise.
30237 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
30238
30239 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
30240
30241 * config/arm/arm.c (use_return_insn): Return 0 for targets that
30242 can benefit from using a sequence of LDRD instructions in epilogue
30243 instead of a single LDM instruction.
30244
30245 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
30246
30247 PR 45688
30248 * doc/extend.texi: Fix typo.
30249
30250 2013-04-17 Richard Biener <rguenther@suse.de>
30251
30252 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
30253 (vect_build_slp_tree): ... here.
30254 (vect_build_slp_tree_1): Compute which stmts of the SLP group
30255 match. Remove special-casing of mismatched complex loads.
30256 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
30257 re-try the match with swapped commutative operands.
30258 (vect_supported_load_permutation_p): Remove special-casing of
30259 mismatched complex loads.
30260 (vect_analyze_slp_instance): Adjust.
30261
30262 2013-04-17 Richard Biener <rguenther@suse.de>
30263
30264 PR rtl-optimization/56921
30265 * cfgloop.h (struct loop): Add simple_loop_desc member.
30266 (struct niter_desc): Mark with GTY(()).
30267 (simple_loop_desc): Do not use aux field but simple_loop_desc.
30268 * loop-iv.c (get_simple_loop_desc): Likewise.
30269 (free_simple_loop_desc): Likewise.
30270
30271 Revert
30272 2013-04-16 Richard Biener <rguenther@suse.de>
30273
30274 PR rtl-optimization/56921
30275 * loop-init.c (pass_rtl_move_loop_invariants): Add
30276 TODO_do_not_ggc_collect to todo_flags_finish.
30277 (pass_rtl_unswitch): Same.
30278 (pass_rtl_unroll_and_peel_loops): Same.
30279 (pass_rtl_doloop): Same.
30280
30281 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
30282
30283 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
30284 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
30285 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
30286 references.
30287 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
30288 * tree-streamer.c (record_common_node): Adjust reference in comment.
30289
30290 2013-04-17 Terry Guo <terry.guo@arm.com>
30291
30292 * config/arm/cortex-m4.md: Add a new bypass.
30293
30294 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30295
30296 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
30297 New pattern.
30298 (*subs_<optab><mode>_multp2): New pattern.
30299 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
30300 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
30301
30302 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30303
30304 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
30305 (*subs_mul_imm_<mode>): New pattern.
30306
30307 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
30308
30309 PR target/56948
30310 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
30311 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
30312 (vsx_movti_32bit): Change j->wa to O->wa.
30313
30314 2013-04-16 Richard Biener <rguenther@suse.de>
30315
30316 PR rtl-optimization/56921
30317 * loop-init.c (pass_rtl_move_loop_invariants): Add
30318 TODO_do_not_ggc_collect to todo_flags_finish.
30319 (pass_rtl_unswitch): Same.
30320 (pass_rtl_unroll_and_peel_loops): Same.
30321 (pass_rtl_doloop): Same.
30322
30323 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
30324
30325 * config/arm/arm.c (emit_multi_reg_push): New declaration
30326 for an existing function.
30327 (arm_emit_strd_push): New function.
30328 (arm_expand_prologue): Used here.
30329 (arm_emit_ldrd_pop): New function.
30330 (arm_expand_epilogue): Used here.
30331 (arm_get_frame_offsets): Update condition.
30332 (arm_emit_multi_reg_pop): Add a special case for load of a single
30333 register with writeback.
30334
30335 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
30336
30337 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
30338 description.
30339
30340 2013-04-16 Richard Biener <rguenther@suse.de>
30341
30342 PR tree-optimization/56756
30343 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
30344 (first_mem_ref_loc): New.
30345 (execute_sm): Place the load temporarily before a previous
30346 access instead of in the latch edge to ensure its SSA dependencies
30347 are defined at points dominating the load.
30348
30349 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
30350
30351 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
30352 correct fix by moving header and footer insn to the footer of
30353 the merged basic block. Clear BB_END of the merged-away block.
30354
30355 PR middle-end/43631
30356 * emit-rtl.c (make_note_raw): New function.
30357 (link_insn_into_chain): New static inline function.
30358 (add_insn): Use it.
30359 (add_insn_before, add_insn_after): Factor insn chain linking code...
30360 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
30361 using link_insn_into_chain.
30362 (note_outside_basic_block_p): New helper function for emit_note_after
30363 and emit_note_before.
30364 (emit_note_after): Use nobb variant of add_insn_after if the note
30365 should not be contained in a basic block.
30366 (emit_note_before): Use nobb variant of add_insn_before if the note
30367 should not be contained in a basic block.
30368 (emit_note_copy): Use make_note_raw.
30369 (emit_note): Likewise.
30370 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
30371 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
30372 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
30373 the moved barrier the tail of the basic block it follows.
30374 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
30375
30376 2013-04-15 Jakub Jelinek <jakub@redhat.com>
30377
30378 PR tree-optimization/56962
30379 * gimple-ssa-strength-reduction.c (record_increment): Only set
30380 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
30381 either rhs1 or rhs2 is equal to c->base_expr.
30382
30383 2013-04-15 Richard Biener <rguenther@suse.de>
30384
30385 PR tree-optimization/56933
30386 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
30387 member.
30388 (GROUP_READ_WRITE_DEPENDENCE): Remove.
30389 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
30390 * tree-vect-data-refs.c (vect_analyze_group_access): Move
30391 dependence check ...
30392 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
30393 ... here.
30394 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
30395 GROUP_READ_WRITE_DEPENDENCE.
30396
30397 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30398
30399 * emit-rtl.c (reset_all_used_flags): New function.
30400 (verify_rtl_sharing): Call reset_all_used_flags before and after
30401 performing the checks.
30402
30403 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30404
30405 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
30406 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
30407 * config/arm/constraints.md (De): New constraint.
30408 * config/arm/neon.md (anddi3_neon): Delete.
30409 (neon_vand<mode>): Expand to standard anddi3 pattern.
30410 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
30411 Move earlier in the file.
30412 (neon_inv_logic_op2): Likewise.
30413 (arm_anddi_operand_neon): New predicate.
30414
30415 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30416
30417 * configure.ac (gcc_cv_ld_as_needed): Set
30418 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
30419 Use -z ignore, -z record on *-*-solaris2*.
30420 (HAVE_LD_AS_NEEDED): Update comment.
30421 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
30422 * configure: Regenerate.
30423 * config.in: Regenerate.
30424 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
30425 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
30426 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
30427 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
30428 equivalents. Fix markup.
30429 * doc/tm.texi: Regenerate.
30430
30431 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
30432
30433 * config/i386/i386.opt: New option mstack-protector-guard=.
30434 * config/i386/i386-opts.h: Add enum stack_protector_guard.
30435 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
30436 TARGET_SSP_TLS_GUARD.
30437 * config/i386/i386.c (ix86_option_override_internal): Set
30438 ix86_stack_protector_guard.
30439 * config/i386/i386.md (stack_protect_set): Enable for
30440 TARGET_SSP_TLS_GUARD only.
30441 (stack_protect_set_<mode>): Ditto.
30442 (stack_protect_test): Ditto.
30443 (stack_protect_test_<mode>): Ditto.
30444 * doc/invoke.texi (i386 Option): Document.
30445
30446 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
30447
30448 PR target/56890
30449 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
30450 (S_MODES): Set H_MODE bit.
30451 (SF_MODES): Set only S_MODE and SF_MODE bits.
30452 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
30453 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
30454 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
30455 <MODE_FLOAT>: Likewise.
30456
30457 2013-04-15 Joey Ye <joey.ye@arm.com>
30458
30459 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
30460
30461 2013-04-15 Joey Ye <joey.ye@arm.com>
30462
30463 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
30464 for real far jump.
30465 (thumb_far_jump_used_p): Count instruction size and set
30466 far_jump_used.
30467
30468 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
30469
30470 * reorg.c (fill_simple_delay_slots): Reindent block of code.
30471 * resource.c (mark_target_live_regs): Reformat conditional block.
30472
30473 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
30474
30475 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
30476 notes, they are emitted only just before final.
30477 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
30478
30479 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
30480
30481 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
30482 * cfgrtl.c (delete_insn): Call it here instead.
30483 * lra-spills.c (lra_final_code_change): Use delete_insn.
30484 * haifa-sched.c (sched_remove_insn): Likewise.
30485 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
30486 returning to the nop pool.
30487 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
30488 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
30489
30490 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
30491
30492 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
30493 * doc/tm.texi: Regenerated.
30494
30495 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
30496
30497 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
30498 QImode checks.
30499
30500 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
30501
30502 * df-core.c (df_find_def): Compare register numbers.
30503 (df_find_use): Likewise.
30504
30505 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
30506
30507 PR target/56903
30508 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
30509 lra_in_progress for return.
30510
30511 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
30512
30513 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
30514 define_insn into define_insn_and_split and emit movsicc patterns.
30515
30516 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
30517
30518 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
30519
30520 2013-04-12 Richard Biener <rguenther@suse.de>
30521
30522 * tree-pass.h (TODO_do_not_ggc_collect): New.
30523 * passes.c (execute_one_ipa_transform_pass): Honor
30524 TODO_do_not_ggc_collect.
30525 (execute_one_pass): Likewise.
30526
30527 Revert
30528 2013-04-10 Richard Biener <rguenther@suse.de>
30529
30530 * passes.c (init_optimization_passes): Remove reload pass.
30531 * ira.c (do_reload): Merge into ...
30532 (ira): ... this.
30533 (rest_of_handle_reload): Remove.
30534 (pass_reload): Likewise.
30535 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30536 of reload for vzeroupper pass placement.
30537
30538 2013-04-12 Jakub Jelinek <jakub@redhat.com>
30539
30540 PR tree-optimization/56918
30541 PR tree-optimization/56920
30542 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
30543 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
30544 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
30545 use wide_mul_with_sign method.
30546
30547 2013-04-12 Richard Biener <rguenther@suse.de>
30548
30549 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
30550 not be considered a gimple constant.
30551
30552 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
30553
30554 * fold-const.c (const_binop): Handle vector shifts by a scalar.
30555 (fold_binary_loc): Call const_binop also for mixed vector-scalar
30556 operations.
30557
30558 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
30559 Jakub Jelinek <jakub@redhat.com>
30560
30561 * opts.c: Include diagnostic-color.h.
30562 (common_handle_option): Handle OPT_fdiagnostics_color_.
30563 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
30564 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
30565 (diagnostic-color.o): New.
30566 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
30567 (diagnostic_color_rule): New enum.
30568 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
30569 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
30570 the location string.
30571 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
30572 either NULL, or color kind.
30573 * diagnostic-color.c: New file.
30574 * diagnostic-color.h: New file.
30575 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
30576 arguments.
30577 * doc/invoke.texi (-fdiagnostics-color): Document.
30578 * pretty-print.h (pp_show_color): Define.
30579 (struct pretty_print_info): Add show_color field.
30580 * diagnostic.c: Include diagnostic-color.h.
30581 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
30582 macros. Colorize error:, warning: etc. strings and also the location
30583 string.
30584 (diagnostic_show_locus): Colorize the caret line.
30585 * pretty-print.c: Include diagnostic-color.h.
30586 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
30587 inside of %< %> quotes or quoted through q format modifier.
30588
30589 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30590
30591 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
30592
30593 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30594
30595 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
30596 code in CC_NZ mode.
30597 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
30598 pattern.
30599
30600 2013-04-11 Marek Polacek <polacek@redhat.com>
30601
30602 PR tree-optimization/48184
30603 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
30604
30605 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
30606
30607 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
30608 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
30609 (skip_simple_arithmetic): Tidy up.
30610 * tree.h (skip_simple_constant_arithmetic): Declare.
30611
30612 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30613
30614 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
30615
30616 2013-04-11 Richard Biener <rguenther@suse.de>
30617
30618 * tree-vect-loop.c (get_initial_def_for_induction): Properly
30619 generate vector constants.
30620
30621 2013-04-11 Richard Biener <rguenther@suse.de>
30622
30623 PR tree-optimization/56878
30624 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
30625 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
30626 New function.
30627 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30628 Prefer to align the DR with the most invariant base address.
30629
30630 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30631
30632 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
30633 comment.
30634
30635 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
30636
30637 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
30638 floating-point vector comparisons against 0.
30639
30640 2013-04-11 Jakub Jelinek <jakub@redhat.com>
30641
30642 PR tree-optimization/56899
30643 * fold-const.c (extract_muldiv_1): Apply distributive law
30644 only if TYPE_OVERFLOW_WRAPS (ctype).
30645
30646 2013-04-11 Bin Cheng <bin.cheng@arm.com>
30647
30648 PR target/56124
30649 * ira-costs.c (scan_one_insn): Check whether the source rtx of
30650 loading has side effect.
30651
30652 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
30653
30654 * config/sparc/sparc.c: Include tree-pass.h.
30655 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
30656 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
30657 head of file. Change return type. Split off gate function.
30658 (sparc_gate_work_around_errata): New function.
30659 (pass_work_around_errata): New pass definition.
30660 (insert_pass_work_around_errata) New pass insert definition to
30661 insert pass_work_around_errata just after delayed-branch scheduling.
30662 (sparc_option_override): Insert the pass.
30663 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
30664
30665 2013-04-10 David S. Miller <davem@davemloft.net>
30666
30667 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
30668 or -mcpu=hypersparc.
30669
30670 * target.def (cstore_mode): New hook.
30671 * target.h: Include insn-codes.h
30672 * targhooks.c: Likewise.
30673 (default_cstore_mode): New function.
30674 * targhooks.h: Declare it.
30675 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
30676 * doc/tm.texi: Rebuild.
30677 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
30678 target hook, rather than inspecting the insn_data.
30679 * config/sparc/sparc.c (sparc_cstore_mode): New function.
30680 (TARGET_CSTORE_MODE): Redefine.
30681 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
30682 result patterns.
30683 * config/sparc/predicates.md (cstore_result_operand): New special
30684 predicate.
30685 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
30686 Use it for operand 0.
30687 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
30688 (*snesi_special): Likewise.
30689 (*snesi_zero): Likewise.
30690 (*seqsi_zero): Likewise.
30691 (*sltu_insn): Likewise.
30692 (*sgeu_insn): Likewise.
30693 (*seqdi_special): Make operand 0 and comparison operation be of
30694 DImode.
30695 (*snedi_special): Likewise.
30696 (*snedi_special_vis3): Likewise.
30697 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
30698 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
30699 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
30700 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
30701 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
30702 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
30703 (*sltu_extend_sp64): Likewise.
30704 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
30705 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
30706 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
30707 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
30708 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
30709
30710 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
30711
30712 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
30713 (aarch64_start_file): Use the new function.
30714
30715 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30716 Jason Merrill <jason@redhat.com>
30717
30718 * common.opt: Add -gdwarf.
30719 * opts.c (common_handle_option): Handle it.
30720 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
30721
30722 2013-04-10 Richard Biener <rguenther@suse.de>
30723
30724 * passes.c (execute_todo): Do not call ggc_collect conditional here.
30725 (execute_one_ipa_transform_pass): But unconditionally here.
30726 (execute_one_pass): And here.
30727 (init_optimization_passes): Remove reload pass.
30728 * tree-pass.h (TODO_ggc_collect): Remove.
30729 (pass_reload): Likewise.
30730 * ira.c (do_reload): Merge into ...
30731 (ira): ... this.
30732 (rest_of_handle_reload): Remove.
30733 (pass_reload): Likewise.
30734 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30735 of reload for vzeroupper pass placement.
30736 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
30737 and todo_flags_finish of all passes.
30738
30739 2013-04-10 Richard Biener <rguenther@suse.de>
30740
30741 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
30742 first_const_oprnd field, rename first_def_type to first_op_type.
30743 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
30744 (vect_get_and_check_slp_defs): Always use the type of the
30745 operand. Allow mixed vect_external_def, vect_constant_def types.
30746 (vect_get_constant_vectors): Handle mixed vect_external_def,
30747 vect_constant_def types.
30748
30749 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
30750
30751 PR tree-optimization/55524
30752 * tree-ssa-math-opts.c
30753 (convert_mult_to_fma): Don't use an fms construct
30754 when we don't have an fms operation, but fnma, and it looks
30755 likely that we'll be able to use the latter.
30756
30757 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30758
30759 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
30760 function.
30761 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
30762 inline fail caused by overwritable functions.
30763
30764 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
30765
30766 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
30767 unnecessary bits in the constant power of two case.
30768
30769 2013-04-10 Richard Biener <rguenther@suse.de>
30770
30771 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
30772 broken code swapping operands.
30773 (vect_build_slp_tree): Do not compute load permutations here.
30774 (vect_analyze_slp_instance): Compute load permutations here,
30775 after building the SLP tree.
30776
30777 2013-04-09 Christian Bruel <christian.bruel@st.com>
30778
30779 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
30780 of next/prev_real_insn.
30781
30782 2013-04-09 Jan Hubicka <jh@suse.cz>
30783
30784 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
30785 Drop aliased parameter.
30786 (function_and_variable_visibility): Do not handle alias pairs.
30787 * cgraph.c (varpool_externally_visible_p): Update prototype.
30788 * varpool.c (varpool_add_new_variable): Update.
30789
30790 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30791
30792 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
30793
30794 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
30795
30796 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
30797
30798 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
30799
30800 2013-04-09 Marek Polacek <polacek@redhat.com>
30801
30802 PR tree-optimization/48762
30803 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
30804
30805 2013-04-09 Richard Biener <rguenther@suse.de>
30806
30807 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
30808 dealing with cost.
30809 (vect_build_slp_tree): Likewise.
30810 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
30811 calculating the cost of a SLP instance.
30812 (vect_analyze_slp_instance): Use it from here, after building
30813 the SLP tree.
30814
30815 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30816
30817 PR middle-end/56883
30818 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
30819 expand_omp_for_static_chunk): Use simple_p = true in
30820 force_gimple_operand_gsi calls when assigning to addressable decls.
30821
30822 2013-04-09 Jeff Law <law@redhat.com>
30823
30824 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
30825 when the boolean was created by converting a wider object which
30826 had a boolean range.
30827
30828 2013-04-09 Richard Biener <rguenther@suse.de>
30829
30830 * tree-vectorizer.h (slp_void_p): Remove.
30831 (slp_tree): Typedef before _slp_tree declaration.
30832 (struct _slp_tree): Use a vector of slp_tree as children.
30833 (vect_get_place_in_interleaving_chain): Remove.
30834 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
30835 Move ...
30836 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
30837 and make static.
30838 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
30839 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
30840 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
30841 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
30842 Use slp_node instead of slp_void_p and adjust.
30843
30844 2013-04-09 Richard Biener <rguenther@suse.de>
30845
30846 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
30847 work that is not necessary.
30848
30849 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30850
30851 PR tree-optimization/56854
30852 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
30853 forward into clobber stmts if it would change MEM_REF lhs into
30854 non-MEM_REF.
30855
30856 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
30857
30858 * tree.c (type_hash_lookup, type_hash_add): Make static.
30859 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
30860
30861 2013-04-09 Richard Biener <rguenther@suse.de>
30862
30863 * tree.h (unsave_expr_now): Remove.
30864 * tree-inline.c (mark_local_for_remap_r): Remove.
30865 (unsave_expr_1): Likewise.
30866 (unsave_r): Likewise.
30867 (unsave_expr_now): Likewise.
30868 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
30869 (propagate_tree_value): Likewise.
30870
30871 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
30872
30873 * doc/rtl.texi (sequence): Rewrite documentation to match the
30874 current use of SEQUENCE rtl objects.
30875 * rtl.def (SEQUENCE): Likewise.
30876
30877 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
30878 Update documentation.
30879 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
30880 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
30881
30882 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
30883
30884 2013-04-08 Teresa Johnson <tejohnson@google.com>
30885
30886 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
30887 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
30888 methods.
30889 (estimate_edge_size_and_time): Add comment to suggest using rounding
30890 methods.
30891 (estimate_node_size_and_time): Ditto.
30892 (remap_edge_change_prob): Use helper rounding divide methods.
30893 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
30894 (gimple_mod_pow2_value_transform): Ditto.
30895 (gimple_mod_subtract_transform): Ditto.
30896 (gimple_ic_transform): Ditto.
30897 (gimple_stringops_transform): Ditto.
30898 * stmt.c (conditional_probability): Ditto.
30899 (emit_case_dispatch_table): Ditto.
30900 * lto-cgraph.c (merge_profile_summaries): Ditto.
30901 * tree-optimize.c (execute_fixup_cfg): Ditto.
30902 * cfgcleanup.c (try_forward_edges): Ditto.
30903 * cfgloopmanip.c (scale_loop_profile): Ditto.
30904 (loopify): Ditto.
30905 (duplicate_loop_to_header_edge): Ditto.
30906 (lv_adjust_loop_entry_edge): Ditto.
30907 * tree-vect-loop.c (vect_transform_loop): Ditto.
30908 * profile.c (compute_branch_probabilities): Ditto.
30909 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
30910 * lto-streamer-in.c (input_cfg): Ditto.
30911 * gimple-streamer-in.c (input_bb): Ditto.
30912 * ipa-cp.c (update_profiling_info): Ditto.
30913 (update_specialized_profile): Ditto.
30914 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30915 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30916 rounding methods.
30917 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30918 (compute_trg_info): Ditto.
30919 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30920 (purge_dead_edges): Ditto.
30921 * loop-unswitch.c (unswitch_loop): Ditto.
30922 * cgraphclones.c (cgraph_clone_edge): Ditto.
30923 (cgraph_clone_node): Ditto.
30924 * tree-inline.c (copy_bb): Ditto.
30925 (copy_edges_for_bb): Ditto.
30926 (initialize_cfun): Ditto.
30927 (copy_cfg_body): Ditto.
30928 (expand_call_inline): Ditto.
30929
30930 2013-04-08 Kai Tietz <ktietz@redhat.com>
30931
30932 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30933 TARGET_CYGWIN64 by TARGET_64BIT.
30934
30935 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30936
30937 * config/epiphany/epiphany.md (GPR_1): New constant.
30938 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30939 * config/epiphany/epiphany.c (gen_compare_reg):
30940 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30941 is already in place.
30942 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30943 Don't require being called during rtl expansion; If y operlaps r0,
30944 return 0.
30945 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30946 (epiphany_expand_epilogue): Likewise.
30947
30948 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30949 Don't use CC_FPmode for ORDERED / UNORDERED.
30950 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30951
30952 * config/epiphany/constraints.md (CnL): New constraint.
30953 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30954 * config/epiphany/predicates.md (add_operand): Allow 1024.
30955
30956 * config/epiphany/epiphany.md (logical_op): New code iterator.
30957 (op_mnc): New code attribute.
30958 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30959 (mov_f+1, mov_f+2): New peephole2 patterns.
30960
30961 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30962 (cstoresi4): Also allow re-use of zero result when doing a NE
30963 comparison to a non-zero operand.
30964 Use (clobber (scratch)) for first insn if the gpr output is not needed.
30965
30966 * config/epiphany/epiphany.md (<insn_opname>v2si3):
30967 Use gen_addsi3_i / gen_subsi3_i.
30968
30969 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30970
30971 PR c++/34949
30972 PR c++/50243
30973 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30974 contain anything but clobbers, at most one __builtin_stack_restore,
30975 optionally debug stmts and final resx, and if it has at least one
30976 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
30977 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30978 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30979 which isn't defaut definition, remove them.
30980 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30981 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30982 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30983 with MEM_REF LHS with SSA_NAME address.
30984
30985 2013-04-08 Jeff Law <law@redhat.com>
30986
30987 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30988
30989 2013-04-08 Richard Biener <rguenther@suse.de>
30990
30991 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30992 extra newline.
30993 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30994 determined vector type.
30995 (vect_analyze_data_refs): Likewise.
30996 (vect_get_new_vect_var): Adjust.
30997 (vect_create_destination_var): Preserve SSA name versions.
30998 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30999 not dump anything here.
31000
31001 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
31002
31003 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
31004 Add member lr_slot_known.
31005 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
31006 if necessary.
31007 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
31008 Remove code that sets lr_slot_offset according to what a previous
31009 version of epiphany_emit_save_restore used to do.
31010 (epiphany_emit_save_restore): When doing an lr save or restore,
31011 set/verify lr_slot_known and lr_slot_offset.
31012
31013 2013-04-08 Xinyu Qi <xyqi@marvell.com>
31014
31015 PR target/54338
31016 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
31017 in ALL_REGS.
31018
31019 2013-04-08 Richard Biener <rguenther@suse.de>
31020
31021 * alias.c (find_base_term): Fix thinko in previous change.
31022
31023 2013-04-08 Jakub Jelinek <jakub@redhat.com>
31024
31025 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
31026 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
31027 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
31028 if possible to compute val.
31029 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
31030 For QImode integers don't require anything about precision. Use
31031 const_with_all_bytes_same to find out if the constant doesn't have
31032 repeated bytes in it.
31033
31034 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31035
31036 * config/s390/s390.c (s390_expand_insv): Only accept insertions
31037 within mode size.
31038
31039 2013-04-08 Marek Polacek <polacek@redhat.com>
31040
31041 PR rtl-optimization/48182
31042 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
31043 value to 1.
31044
31045 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31046
31047 PR target/55487
31048 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
31049 nuses, make sure we have a label.
31050
31051 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31052
31053 PR target/56843
31054 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
31055 (rs6000_emit_swdiv_low_precision): Remove.
31056 (rs6000_emit_swdiv): Rewrite to handle between one and four
31057 iterations of Newton-Raphson generally; modify required number of
31058 iterations for some cases.
31059 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
31060
31061 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
31062
31063 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
31064 set-but-unused variable.
31065
31066 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
31067 basic blocks of released function bodies garbage-collectable.
31068
31069 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
31070 (struct rtl_opt_pass): Add TODO_df_finish.
31071
31072 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
31073
31074 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31075
31076 * config/arm/constraints.md (q): New constraint.
31077 * config/arm/ldrdstrd.md: New file.
31078 * config/arm/arm.md (ldrdstrd.md) New include.
31079 (arm_movdi): Use "q" instead of "r" constraint
31080 for double-word memory access.
31081 (movdf_soft_insn): Likewise.
31082 * config/arm/vfp.md (movdi_vfp): Likewise.
31083 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
31084 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
31085 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
31086 (mem_ok_for_ldrd_strd): Likewise.
31087 (output_move_double): Update assertion.
31088
31089 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31090
31091 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
31092
31093 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31094
31095 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
31096 define_insn_and_split.
31097 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
31098
31099 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31100
31101 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
31102 define_insn_and_split.
31103 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
31104 (shiftsi3_compare): New pattern.
31105 (rrx): New pattern.
31106 * config/arm/unspecs.md (UNSPEC_RRX): New.
31107
31108 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31109
31110 * config/arm/arm.md (negdi_extendsidi): New pattern.
31111 (negdi_zero_extendsidi): Likewise.
31112
31113 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31114
31115 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
31116 define_insn_and_split.
31117 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
31118 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
31119
31120 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31121
31122 * config/arm/arm.md (arm_subdi3): Convert define_insn into
31123 define_insn_and_split.
31124 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
31125 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
31126
31127 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31128
31129 * config/arm/arm.md (subsi3_carryin): New pattern.
31130 (subsi3_carryin_const): Likewise.
31131 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
31132 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
31133
31134 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31135
31136 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
31137
31138 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31139
31140 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
31141 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
31142
31143 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31144
31145 * config/arm/arm.c (arm_expand_builtin): Change fcode
31146 type to unsigned int.
31147
31148 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31149
31150 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
31151
31152 2013-04-04 Ian Lance Taylor <iant@google.com>
31153
31154 * doc/standards.texi (Standards): The Go frontend supports the Go 1
31155 language standard.
31156
31157 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
31158
31159 PR middle-end/56729
31160 * df-scan.c (df_insn_delete): Disable failing assert.
31161
31162 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31163
31164 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
31165 New function prototype.
31166 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
31167 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
31168 (arm_builtin_vectorized_function): New function.
31169
31170 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31171
31172 * config/arm/arm_neon_builtins.def: New file.
31173 * config/arm/arm.c (neon_builtin_data): Move contents to
31174 arm_neon_builtins.def.
31175 (enum arm_builtins): Include neon builtin definitions.
31176 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
31177 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
31178
31179 2013-04-04 Marek Polacek <polacek@redhat.com>
31180
31181 PR tree-optimization/48186
31182 * predict.c (maybe_hot_frequency_p): Return false if
31183 HOT_BB_FREQUENCY_FRACTION is 0.
31184 (cgraph_maybe_hot_edge_p): Likewise.
31185
31186 2013-04-04 Richard Biener <rguenther@suse.de>
31187
31188 PR tree-optimization/56826
31189 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
31190 more accurately.
31191
31192 2013-04-04 Richard Biener <rguenther@suse.de>
31193
31194 PR tree-optimization/56213
31195 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
31196 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
31197
31198 2013-04-04 Richard Biener <rguenther@suse.de>
31199
31200 PR tree-optimization/56837
31201 * tree-loop-distribution.c (classify_partition): For non-zero
31202 values require that the value has the same precision as its
31203 mode to be useful as memset value.
31204
31205 2013-04-03 Nick Clifton <nickc@redhat.com>
31206
31207 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
31208 (fmssf4): Use fmsf.s on E3V5 architectures.
31209 (fnmasf4): Use fnmaf.s on E3V5 architectures.
31210 (fnmssf4): Use fnmsf.s on E3V5 architectures.
31211
31212 2013-04-03 Jeff Law <law@redhat.com>
31213
31214 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
31215 (lra-eliminations.o): Likewise.
31216
31217 2013-04-03 Teresa Johnson <tejohnson@google.com>
31218
31219 * gcov-io.c (compute_working_sets): Moved most of body of old
31220 compute_working_sets here from profile.c.
31221 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
31222 (gcov_working_set_t): Moved typedef here from basic-block.h
31223 (compute_working_set): Declare.
31224 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
31225 (get_working_sets): Renamed from compute_working_set,
31226 replace most of body with call to new compute_working_sets.
31227 (get_exec_counts): Replace call to compute_working_sets
31228 to get_working_sets.
31229 * profile.h (get_working_sets): Renamed from compute_working_set.
31230 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
31231 to get_working_sets.
31232 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
31233 * gcov-dump.c (dump_working_sets): New function.
31234
31235 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
31236
31237 * hwint.c (sext_hwi, zext_hwi): New functions.
31238 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
31239 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
31240 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
31241 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
31242 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
31243 (sext_hwi, zext_hwi): New functions.
31244
31245 2013-04-03 Jeff Law <law@redhat.com>
31246
31247 PR tree-optimization/56799
31248 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
31249 back test for widening conversion erroneously dropped in prior change.
31250
31251 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31252
31253 PR target/56809
31254 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
31255 instead of next_real_insn.
31256
31257 2013-04-03 Marek Polacek <polacek@redhat.com>
31258
31259 PR sanitizer/55702
31260 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
31261
31262 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31263
31264 PR target/56809
31265 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
31266 next_real_insn.
31267 (thumb1_output_casesi): Likewise.
31268 (thumb2_output_casesi): Likewise.
31269
31270 2013-04-03 Richard Biener <rguenther@suse.de>
31271
31272 PR tree-optimization/56817
31273 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
31274 Split out ...
31275 (tree_unroll_loops_completely_1): ... new function to manually
31276 walk the loop tree, properly defering outer loops of unrolled
31277 loops to later iterations.
31278
31279 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
31280
31281 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
31282 (vectorizable_load): Likewise.
31283 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
31284 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
31285
31286 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
31287
31288 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
31289 BIT_FIELD_REF.
31290
31291 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31292
31293 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
31294
31295 2013-04-03 Bin Cheng <bin.cheng@arm.com>
31296
31297 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
31298
31299 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
31300
31301 PR tree-optimization/56790
31302 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
31303 folding.
31304
31305 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
31306
31307 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
31308 Handle VEC_MERGE.
31309 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
31310 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
31311 equal arguments.
31312
31313 2013-04-03 Jakub Jelinek <jakub@redhat.com>
31314
31315 PR c/19449
31316 * tree.h (force_folding_builtin_constant_p): New decl.
31317 * builtins.c (force_folding_builtin_constant_p): New variable.
31318 (fold_builtin_constant_p): Fold immediately also if
31319 force_folding_builtin_constant_p.
31320
31321 2013-04-03 Richard Biener <rguenther@suse.de>
31322
31323 PR tree-optimization/56812
31324 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
31325 DRs of the same interleaving chain are independent.
31326
31327 2013-04-02 Jason Merrill <jason@redhat.com>
31328
31329 * gdbinit.in (pbb): Use debug fn.
31330
31331 2013-04-02 Lawrence Crowl <crowl@google.com>
31332
31333 * sese.h (struct ivtype_map_elt_s): Remove unused.
31334 (extern debug_ivtype_map): Remove unused.
31335 (extern eq_ivtype_map_elts): Remove unused.
31336 * sese.c (debug_ivtype_map): Removed unused.
31337 (debug_ivtype_map_1): Removed unused.
31338 (debug_ivtype_elt): Remove unused.
31339 (eq_ivtype_map_elts): Remove unused.
31340
31341 2013-04-02 Kai Tietz <ktietz@redhat.com>
31342
31343 PR target/52790
31344 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
31345 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
31346 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
31347 function.
31348 (legitimize_pe_coff_symbol): Likewise.
31349 (is_imported_p): New helper-function.
31350 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
31351 for Windows x64 targets.
31352 (ix86_expand_prologue): Optimize for pe-coff targets.
31353 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
31354 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
31355 medium/large code-model.
31356 (legitimize_pic_address): Likewise.
31357 (legitimize_tls_address): Likewise.
31358 (ix86_expand_call): Likewise.
31359 (x86_output_mi_thunk): Likewise.
31360 (get_dllimport_decl): Add new beimport argument.
31361 (construct_plt_address): Don't assert for x64 pe-coff targets.
31362 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
31363 targets.
31364 (SYMBOL_FLAG_STUBVAR): New macro.
31365 (SYMBOL_REF_STUBVAR_P): Likewise.
31366 * config/i386/winnt.c (stub_list): New structure.
31367 (stub_head): New local variable.
31368 (i386_pe_record_stub): New function.
31369 (i386_pe_file_end): Emit refptr-stubs.
31370
31371 2013-04-02 Jakub Jelinek <jakub@redhat.com>
31372
31373 PR rtl-optimization/56745
31374 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
31375 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
31376
31377 PR c++/34949
31378 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
31379 and both of them are MEM_REFs, just compare first argument for
31380 equality and attempt to deal even with differing offsets.
31381
31382 PR c++/34949
31383 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
31384 of gimple_clobber_p to be MEM_REF.
31385 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
31386 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
31387 after gimplification.
31388 * asan.c (get_mem_ref_of_assignment): Don't instrument
31389 gimple_clobber_p stmts.
31390 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
31391 gimple_clobber_p stmt if they have MEM_REF lhs and
31392 are dead because of another gimple_clobber_p stmt.
31393 * tree-ssa-live.c (clear_unused_block_pointer): Treat
31394 gimple_clobber_p stmts like debug stmts.
31395 (remove_unused_locals): Remove clobbers with MEM_REF lhs
31396 that refer to unused VAR_DECLs or uninitialized values.
31397 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
31398 gimple_clobber_p stmts if they refer to removed parameters.
31399 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
31400 formatting.
31401
31402 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
31403
31404 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
31405 using SWI48 mode attribute.
31406
31407 2013-04-02 Wei Mi <wmi@google.com>
31408
31409 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
31410 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
31411 *<rotate_insn><mode>3_mask in i386.md.
31412
31413 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
31414
31415 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
31416
31417 2013-04-02 Richard Biener <rguenther@suse.de>
31418
31419 PR tree-optimization/56778
31420 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31421 Runtime alias tests are not supported for gather loads.
31422 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
31423 stmts referenced from SSA operands before updating SSA form.
31424
31425 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
31426 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31427
31428 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
31429 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
31430 * config/arm/cortex-a53.md: New file.
31431 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
31432 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
31433 * config/arm/arm.c (arm_issue_rate): Likewise.
31434 * config/arm/arm-tune.md: Regenerate
31435 * config/arm/arm-tables.opt: Regenerate.
31436 * config/arm/arm-cores.def: Add cortex-a53.
31437
31438 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
31439
31440 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
31441 non-static link.
31442
31443 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
31444
31445 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
31446 scalar load/store operations using B/H registers.
31447 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
31448
31449 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
31450
31451 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
31452 scalar move.
31453 * config/aarch64/aarch64.c
31454 (aarch64_simd_scalar_immediate_valid_for_move): New.
31455 * config/aarch64/aarch64-protos.h
31456 (aarch64_simd_scalar_immediate_valid_for_move): New.
31457 * config/aarch64/constraints.md (Dh, Dq): New.
31458 * config/aarch64/iterators.md (hq): New.
31459
31460 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
31461
31462 * reorg.c (get_branch_condition): Deal with conditional returns.
31463 (fill_simple_delay_slots): Remove dead code dealing with jumps.
31464
31465 2013-04-01 Wei Mi <wmi@google.com>
31466
31467 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
31468 Truncate operand 2 using %b asm operand modifier.
31469 (*<shift_insn><mode>3_mask): Ditto.
31470 (*<rotate_insn><mode>3_mask): Ditto.
31471
31472 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
31473
31474 PR middle-end/56798
31475 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
31476
31477 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
31478
31479 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
31480 of next_real_insn.
31481 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
31482
31483 2013-03-30 Lawrence Crowl <crowl@google.com>
31484
31485 * dse.c (clear_alias_sets): Remove never set.
31486 (disqualified_clear_alias_sets): Remove never set.
31487 (clear_alias_mode_pool): Remove never set.
31488 (dse_step0): Remove condition that is never true.
31489 (canon_address): Remove condition that is never true.
31490 (dse_step7): Remove condition that is never true.
31491 (rest_of_handle_dse): Remove condition that is never true.
31492 (rest_of_handle_dse::did_global): Remove never read from above.
31493 (dse_step2_spill): Remove never called from above.
31494 (dse_step5_spill): Remove never called from above.
31495
31496 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
31497
31498 * doc/md.texi (Standard Names) <casesi>: Update documentation for
31499 JUMP_TABLE_DATA changes.
31500 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
31501 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
31502 (Insns) <jump_table_data>: New entry.
31503 * doc/tm.texi: Regenerate.
31504
31505 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
31506
31507 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
31508 for table jump at the end of a basic block using tablejump_p.
31509 * targhooks.c (default_invalid_within_doloop): Likewise.
31510 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
31511 target hook implementation that is identical to the default hook.
31512 (rs6000_invalid_within_doloop): Remove.
31513
31514 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
31515 unused variable from tablejump_p call.
31516
31517 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
31518 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
31519 (INSN_DELETED_P): Likewise.
31520 (emit_jump_table_data): New prototype.
31521 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
31522 after 4th as unused.
31523 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
31524 * sched-vis.c (print_insn): Likewise.
31525 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
31526 insn for compatibility with back ends that use next_active_insn to
31527 identify jump table data.
31528 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
31529 (remove_insn): Likewise.
31530 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
31531 to be emitted.
31532 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
31533 (emit_jump_table_data): New function.
31534
31535 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
31536 basic block, a JUMP_TABLE_DATA never is.
31537 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
31538 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
31539 off from code handling real insns.
31540 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
31541 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
31542 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
31543 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
31544 is not a NONDEBUG_INSN_P.
31545 * ira-costs.c (scan_one_insn): Likewise.
31546 * jump.c (mark_all_labels): Likewise.
31547 (mark_jump_label_1): Likewise.
31548 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31549 * lra.c (get_insn_freq): Expect all insns reaching here to be in
31550 a basic block.
31551 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
31552 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
31553 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
31554 JUMP_TABLE_DATA_P insns.
31555 (calculate_elim_costs_all_insns): Likewise.
31556 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
31557 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
31558 (delete_output_reload): Code style fixups.
31559 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
31560 insn flags on this non-insn.
31561 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
31562 as scheduling barriers, for pre-change compatibility.
31563 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
31564 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
31565
31566 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
31567 redundant JUMP_TABLE_DATA_P test.
31568 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
31569 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31570 (frv_for_each_packet): Likewise.
31571 * config/i386/i386.c (min_insn_size): Likewise.
31572 (ix86_avoid_jump_mispredicts): Likewise.
31573 * config/m32r/m32r.c (m32r_is_insn): Likewise.
31574 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
31575 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31576 (mips16_insn_length): Robustify.
31577 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
31578 (mips16_split_long_branches): Likewise.
31579 * config/pa/pa.c (pa_combine_instructions): Likewise.
31580 * config/rs6000/rs6000.c (get_next_active_insn): Treat
31581 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
31582 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
31583 as contributing to pool range lengths.
31584 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
31585 Remove redundant JUMP_TABLE_DATA_P test.
31586 (sh_loop_align): Likewise.
31587 (split_branches): Likewise.
31588 (sh_insn_length_adjustment): Likewise.
31589 * config/spu/spu.c (get_branch_target): Likewise.
31590
31591 2013-03-29 Jan Hubicka <jh@suse.cz>
31592
31593 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
31594 gcov streaming; stream hot bb threshold to ltrans.
31595 * predict.c (get_hot_bb_threshold): Break out from ....
31596 (maybe_hot_count_p): ... here.
31597 (set_hot_bb_threshold): New function.
31598 * lto-section-in.c (lto_section_name): Add profile.
31599 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
31600 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
31601 and data-streamer.h
31602 (histogram_entry): New structure.
31603 (histogram, histogram_pool): New global vars.
31604 (histogram_hash): New structure.
31605 (histogram_hash::hash): New method.
31606 (histogram_hash::equal): Likewise.
31607 (account_time_size): New function.
31608 (cmp_counts): New function.
31609 (dump_histogram): New function.
31610 (ipa_profile_generate_summary): New function.
31611 (ipa_profile_write_summary): New function.
31612 (ipa_profile_read_summary): New function.
31613 (ipa_profile): Decide on threshold.
31614 (pass_ipa_profile): Add ipa_profile_write_summary and
31615 ipa_profile_read_summary.
31616 * Makefile.in (ipa.o): Update dependencies.
31617 * lto-streamer.h (LTO_section_ipa_profile): New section.
31618
31619 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
31620
31621 * tree.h (VAR_P): New.
31622
31623 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
31624
31625 PR lto/56777
31626 * doc/invoke.texi ([-fwhole-program]): Fix typo.
31627
31628 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
31629
31630 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
31631 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31632 (control_flow_insn_p): Likewise.
31633 * cfgrtl.c (duplicate_insn_chain): Likewise.
31634 * final.c (get_attr_length_1): Likewise.
31635 (shorten_branches): Likewise.
31636 (final_scan_insn): Likewise.
31637 * function.c (instantiate_virtual_regs): Likewise.
31638 * gcse.c (insert_insn_end_basic_block): Likewise.
31639 * ira-costs.c (scan_one_insn): Likewise.
31640 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31641 * lra.c (check_rtl): Likewise.
31642 * reload1.c (elimination_costs_in_insn): Likewise.
31643 * reorg.c (follow_jumps): Likewise.
31644
31645 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
31646 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31647 (thumb_far_jump_used_p): Likewise.
31648 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
31649 (workaround_speculation): Likewise.
31650 (add_sched_insns_for_speculation): Likewise.
31651 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
31652 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31653 (frv_for_each_packet): Likewise.
31654 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
31655 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
31656 (final_emit_insn_group_barriers): Likewise.
31657 * config/m32r/m32r.c (m32r_is_insn): Likewise.
31658 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31659 (mips16_insn_length): Likewise.
31660 * config/pa/pa.c (pa_reorg): Likewise.
31661 (pa_combine_instructions): Likewise.
31662 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
31663 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
31664 (sh_reorg): Likewise.
31665 (split_branches): Likewise.
31666 * config/spu/spu.c (get_branch_target): Likewise.
31667
31668 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
31669 JUMP_TABLE_DATA_P.
31670
31671 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
31672
31673 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
31674 Fix declaration name.
31675
31676 2013-03-28 Lawrence Crowl <crowl@google.com>
31677
31678 * graphds.h (struct graph.indicies): Remove unused.
31679 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
31680 (SCOP_ORIGINAL_PDDRS): Remove unused.
31681 * sese.h (extern insert_loop_close_phis): Removed unused.
31682 (extern insert_guard_phis): Removed unused.
31683 (extern ivtype_map_elt_info): Removed unused.
31684 (new_ivtype_map_elt): Removed unused.
31685 * sese.c (ivtype_map_elt_info): Removed unused.
31686
31687 2013-03-28 Lawrence Crowl <crowl@google.com>
31688
31689 * Makefile.in: Add several missing include dependences.
31690 (DUMPFILE_H): New.
31691 (test-dump.o): New. This object is not added to any executable,
31692 but is present for ad-hoc testing.
31693 * bitmap.c
31694 (debug (const bitmap_head_def &)): New.
31695 (debug (const bitmap_head_def *)): New.
31696 * bitmap.h
31697 (extern debug (const bitmap_head_def &)): New.
31698 (extern debug (const bitmap_head_def *)): New.
31699 * cfg.c
31700 (debug (edge_def &)): New.
31701 (debug (edge_def *)): New.
31702 * cfghooks.c
31703 (debug (basic_block_def &)): New.
31704 (debug (basic_block_def *)): New.
31705 * dumpfile.h
31706 (dump_node (const_tree, int, FILE *)): Correct source file.
31707 * dwarf2out.c
31708 (debug (die_struct &)): New.
31709 (debug (die_struct *)): New.
31710 * dwarf2out.h
31711 (extern debug (die_struct &)): New.
31712 (extern debug (die_struct *)): New.
31713 * gimple-pretty-print.c
31714 (debug (gimple_statement_d &)): New.
31715 (debug (gimple_statement_d *)): New.
31716 * gimple-pretty-print.h
31717 (extern debug (gimple_statement_d &)): New.
31718 (extern debug (gimple_statement_d *)): New.
31719 * ira-build.c
31720 (debug (ira_allocno_copy &)): New.
31721 (debug (ira_allocno_copy *)): New.
31722 (debug (ira_allocno &)): New.
31723 (debug (ira_allocno *)): New.
31724 * ira-int.h
31725 (extern debug (ira_allocno_copy &)): New.
31726 (extern debug (ira_allocno_copy *)): New.
31727 (extern debug (ira_allocno &)): New.
31728 (extern debug (ira_allocno *)): New.
31729 * ira-lives.c
31730 (debug (live_range &)): New.
31731 (debug (live_range *)): New.
31732 * lra-int.h
31733 (debug (lra_live_range &)): New.
31734 (debug (lra_live_range *)): New.
31735 * lra-lives.c
31736 (debug (lra_live_range &)): New.
31737 (debug (lra_live_range *)): New.
31738 * omega.c
31739 (debug (omega_pb_d &)): New.
31740 (debug (omega_pb_d *)): New.
31741 * omega.h
31742 (extern debug (omega_pb_d &)): New.
31743 (extern debug (omega_pb_d *)): New.
31744 * print-rtl.c
31745 (debug (const rtx_def &)): New.
31746 (debug (const rtx_def *)): New.
31747 * print-tree.c
31748 (debug_tree (tree): Move within file.
31749 (debug_raw (const tree_node &)): New.
31750 (debug_raw (const tree_node *)): New.
31751 (dump_tree_via_hooks (const tree_node *, int)): New.
31752 (debug (const tree_node &)): New.
31753 (debug (const tree_node *)): New.
31754 (debug_verbose (const tree_node &)): New.
31755 (debug_verbose (const tree_node *)): New.
31756 (debug_head (const tree_node &)): New.
31757 (debug_head (const tree_node *)): New.
31758 (debug_body (const tree_node &)): New.
31759 (debug_body (const tree_node *)): New.
31760 (debug_vec_tree (tree): Move and reimplement in terms of dump.
31761 (debug (vec<tree, va_gc> &)): New.
31762 (debug (vec<tree, va_gc> *)): New.
31763 * rtl.h
31764 (extern debug (const rtx_def &)): New.
31765 (extern debug (const rtx_def *)): New.
31766 * sbitmap.c
31767 (debug_raw (simple_bitmap_def &)): New.
31768 (debug_raw (simple_bitmap_def *)): New.
31769 (debug (simple_bitmap_def &)): New.
31770 (debug (simple_bitmap_def *)): New.
31771 * sbitmap.h
31772 (extern debug (simple_bitmap_def &)): New.
31773 (extern debug (simple_bitmap_def *)): New.
31774 (extern debug_raw (simple_bitmap_def &)): New.
31775 (extern debug_raw (simple_bitmap_def *)): New.
31776 * sel-sched-dump.c
31777 (debug (vinsn_def &)): New.
31778 (debug (vinsn_def *)): New.
31779 (debug_verbose (vinsn_def &)): New.
31780 (debug_verbose (vinsn_def *)): New.
31781 (debug (expr_def &)): New.
31782 (debug (expr_def *)): New.
31783 (debug_verbose (expr_def &)): New.
31784 (debug_verbose (expr_def *)): New.
31785 (debug (vec<rtx> &)): New.
31786 (debug (vec<rtx> *)): New.
31787 * sel-sched-dump.h
31788 (extern debug (vinsn_def &)): New.
31789 (extern debug (vinsn_def *)): New.
31790 (extern debug_verbose (vinsn_def &)): New.
31791 (extern debug_verbose (vinsn_def *)): New.
31792 (extern debug (expr_def &)): New.
31793 (extern debug (expr_def *)): New.
31794 (extern debug_verbose (expr_def &)): New.
31795 (extern debug_verbose (expr_def *)): New.
31796 (extern debug (vec<rtx> &)): New.
31797 (extern debug (vec<rtx> *)): New.
31798 * sel-sched-ir.h
31799 (_list_iter_cond_expr): Make inline instead of static.
31800 * sreal.c
31801 (debug (sreal &)): New.
31802 (debug (sreal *)): New.
31803 * sreal.h
31804 (extern debug (sreal &)): New.
31805 (extern debug (sreal *)): New.
31806 * tree.h
31807 (extern debug_raw (const tree_node &)): New.
31808 (extern debug_raw (const tree_node *)): New.
31809 (extern debug (const tree_node &)): New.
31810 (extern debug (const tree_node *)): New.
31811 (extern debug_verbose (const tree_node &)): New.
31812 (extern debug_verbose (const tree_node *)): New.
31813 (extern debug_head (const tree_node &)): New.
31814 (extern debug_head (const tree_node *)): New.
31815 (extern debug_body (const tree_node &)): New.
31816 (extern debug_body (const tree_node *)): New.
31817 (extern debug (vec<tree, va_gc> &)): New.
31818 (extern debug (vec<tree, va_gc> *)): New.
31819 * tree-cfg.c
31820 (debug (struct loop &)): New.
31821 (debug (struct loop *)): New.
31822 (debug_verbose (struct loop &)): New.
31823 (debug_verbose (struct loop *)): New.
31824 * tree-dump.c: Add header dependence.
31825 * tree-flow.h
31826 (extern debug (struct loop &)): New.
31827 (extern debug (struct loop *)): New.
31828 (extern debug_verbose (struct loop &)): New.
31829 (extern debug_verbose (struct loop *)): New.
31830 * tree-data-ref.c
31831 (debug (data_reference &)): New.
31832 (debug (data_reference *)): New.
31833 (debug (vec<data_reference_p> &)): New.
31834 (debug (vec<data_reference_p> *)): New.
31835 (debug (vec<ddr_p> &)): New.
31836 (debug (vec<ddr_p> *)): New.
31837 * tree-data-ref.h
31838 (extern debug (data_reference &)): New.
31839 (extern debug (data_reference *)): New.
31840 (extern debug (vec<data_reference_p> &)): New.
31841 (extern debug (vec<data_reference_p> *)): New.
31842 (extern debug (vec<ddr_p> &)): New.
31843 (extern debug (vec<ddr_p> *)): New.
31844 * tree-ssa-alias.c
31845 (debug (pt_solution &)): New.
31846 (debug (pt_solution *)): New.
31847 * tree-ssa-alias.h
31848 (extern debug (pt_solution &)): New.
31849 (extern debug (pt_solution *)): New.
31850 * tree-ssa-alias.c
31851 (debug (_var_map &)): New.
31852 (debug (_var_map *)): New.
31853 (debug (tree_live_info_d &)): New.
31854 (debug (tree_live_info_d *)): New.
31855 * tree-ssa-alias.h
31856 (extern debug (_var_map &)): New.
31857 (extern debug (_var_map *)): New.
31858 (extern debug (tree_live_info_d &)): New.
31859 (extern debug (tree_live_info_d *)): New.
31860
31861 2013-03-28 Jan Hubicka <jh@suse.cz>
31862
31863 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
31864
31865 2013-03-28 Ian Bolton <ian.bolton@arm.com>
31866
31867 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
31868 record only when desired or required.
31869
31870 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
31871
31872 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
31873 *vec_extractv2di_1_rex64. Use x64 isa attribute.
31874
31875 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31876
31877 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
31878 (*andsi3_compare0_uxtw): New pattern.
31879 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
31880 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
31881
31882 2013-03-28 Jan Hubicka <jh@suse.cz>
31883
31884 * data-streamer-in.c (streamer_read_gcov_count): New function.
31885 * gimple-streamer-out.c: Include value-prof.h.
31886 (output_gimple_stmt): Output histogram.
31887 (output_bb): Use streamer_write_gcov_count.
31888 * value-prof.c: Include data-streamer.h
31889 (dump_histogram_value): Add HIST_TYPE_MAX.
31890 (stream_out_histogram_value): New function.
31891 (stream_in_histogram_value): New function.
31892 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
31893 (stream_out_histogram_value, stream_in_histogram_value): Declare.
31894 * data-streamer-out.c (streamer_write_gcov_count): New function.
31895 (streamer_write_gcov_count_stream): New function.
31896 * lto-cgraph.c (lto_output_edge): Update counter streaming.
31897 (lto_output_node): Likewise.
31898 (input_node, input_edge): Likewise.
31899 * lto-streamer-out.c (output_cfg): Update streaming.
31900 * lto-streamer-in.c (input_cfg): Likewise.
31901 * data-streamer.h (streamer_write_gcov_count,
31902 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
31903 * gimple-streamer-in.c: Include value-prof.h
31904 (input_gimple_stmt): Input histograms.
31905 (input_bb): Update profile streaming.
31906
31907 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31908
31909 * genmodes.c (emit_max_int): New function.
31910 (emit_insn_modes_h): Added call to emit_max_function.
31911 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31912 Added doc.
31913 * machmode.def: Fixed comment.
31914
31915 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31916
31917 * combine.c (try_combine): Removed useless assert.
31918 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31919
31920 2013-03-28 Marek Polacek <polacek@redhat.com>
31921 Richard Biener <rguenther@suse.de>
31922
31923 PR tree-optimization/56695
31924 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31925 build signed result of a vector comparison.
31926 * tree-cfg.c (verify_gimple_comparison): Check that a result
31927 of a vector comparison has signed type.
31928
31929 2013-03-28 Richard Biener <rguenther@suse.de>
31930
31931 PR tree-optimization/37021
31932 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31933 do not restrict gaps between groups.
31934 * tree-vect-stmts.c (vectorizable_load): Properly account for
31935 a gap between groups.
31936
31937 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
31938
31939 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31940 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31941 is not enabled.
31942
31943 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
31944
31945 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31946 * doc/extend.texi (Named Address Spaces): Ditto.
31947 (Variable Attributes): Ditto.
31948
31949 2013-03-27 Kai Tietz <ktietz@redhat.com>
31950
31951 * config.build: Add support for cygwin x64 target.
31952 * config.gcc: Likewise.
31953 * config.host: Likewise.
31954 * configure.ac: Likewise
31955 * configure: Regenerated.
31956
31957 2013-03-27 Kai Tietz <ktietz@redhat.com>
31958
31959 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31960 * config/i386/t-cygwin-w64: New file.
31961 * config/i386/cygwin-w64.h: New file.
31962 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31963 and add support for x64-cygwin target.
31964 (CPP_SPEC): Likewise.
31965 (CXX_WRAP_SPEC_LIST): Undefine before define.
31966 (LIBGCJ_SONAME): Use 15 as version.
31967
31968 2013-03-27 Richard Biener <rguenther@suse.de>
31969
31970 PR tree-optimization/56716
31971 * tree-ssa-structalias.c (perform_var_substitution): Adjust
31972 dumping for ref nodes.
31973
31974 2013-03-27 Martin Jambor <mjambor@suse.cz>
31975
31976 PR tree-optimization/55334
31977 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31978 restricted pointers to arrays.
31979
31980 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
31981
31982 * Makefile.in (.SUFFIXES): Add .cc.
31983 (.c.o): Apply same recipe for implicit rule .cc.o.
31984
31985 2013-03-27 Richard Biener <rguenther@suse.de>
31986
31987 PR tree-optimization/37021
31988 * tree-vect-data-refs.c (vect_check_strided_load): Allow
31989 REALPART/IMAGPART_EXPRs around the supported refs.
31990 * tree-ssa-structalias.c (find_func_aliases): Assume that
31991 floating-point values are not used to transfer pointers.
31992
31993 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
31994
31995 * target.def (TARGET_HAS_IFUNC_P): New target hook.
31996 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31997 * doc/tm.texi: Regenerate.
31998 * targhooks.h (default_has_ifunc_p): New.
31999 * targhooks.c (default_has_ifunc_p): Ditto.
32000 * config/linux-protos.h: New file.
32001 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
32002 hook for linux which disables support of indirect functions in android.
32003 * config/linux-android.c: New file.
32004 * config/t-linux-android.c: Ditto.
32005 * config.gcc: Added new object file linux-android.o.
32006 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
32007 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
32008 * varasm.c (do_assemble_alias): Likewise.
32009 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
32010 doesn't support indirect functions.
32011 * configure: Regenerate.
32012
32013 2013-03-27 Bin Cheng <bin.cheng@arm.com>
32014
32015 PR target/56102
32016 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
32017 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
32018 mult-word mode.
32019
32020 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32021
32022 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
32023
32024 2013-03-27 Terry Guo <terry.guo@arm.com>
32025
32026 * config/arm/arm-cores.def: Added core cortex-r7.
32027 * config/arm/arm-tune.md: Regenerated.
32028 * config/arm/arm-tables.opt: Regenerated.
32029 * doc/invoke.texi: Added entry for core cortex-r7.
32030
32031 2013-03-27 Walter Lee <walt@tilera.com>
32032
32033 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
32034 double-decrement of next_scratch_regno.
32035
32036 2013-03-27 Walter Lee <walt@tilera.com>
32037
32038 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
32039 input operands.
32040 (insn_v1mulus): Ditto.
32041 (insn_v2muls): Ditto.
32042
32043 2013-03-27 Walter Lee <walt@tilera.com>
32044
32045 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
32046 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
32047
32048 2013-03-27 Walter Lee <walt@tilera.com>
32049
32050 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
32051 (*sibcall_value): Ditto.
32052
32053 2013-03-27 Walter Lee <walt@tilera.com>
32054
32055 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
32056 (insn_mnz_v8qi): ... this ...
32057 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
32058 vector equivalent.
32059 (insn_v<n>mnz): Replaced by ...
32060 (insn_v1mnz): ... this ...
32061 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
32062 equivalent.
32063 (insn_mz_<mode>): Replaced by ...
32064 (insn_mz_v8qi): ... this ...
32065 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
32066 vector equivalent.
32067 (insn_v<n>mz): Replaced by ...
32068 (insn_v1mz): ... this ...
32069 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
32070 equivalent.
32071
32072 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
32073
32074 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
32075
32076 2013-03-26 Roland McGrath <mcgrathr@google.com>
32077
32078 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
32079 than fprintf with a non-constant, non-format string.
32080
32081 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
32082
32083 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
32084 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
32085 operand 0 predicate.
32086 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
32087 attribute. Use general_x64nomem_operand as operand 1 predicate.
32088 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
32089 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
32090 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
32091 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
32092 (mov<mode>_insv_1): Remove expander. Merge insn with
32093 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
32094 Use general_x64nomem_operand as operand 1 predicate.
32095 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
32096 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
32097 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
32098 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
32099 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
32100 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
32101 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
32102 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
32103 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
32104 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
32105 (general_x64nomem_operand): Ditto.
32106
32107 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
32108
32109 * config/rtems.opt: Add -pthread option.
32110
32111 2013-03-26 Richard Biener <rguenther@suse.de>
32112
32113 * alias.c (find_base_term): Avoid redundant and not used recursion.
32114 (base_alias_check): Get the initial base term from the caller.
32115 (true_dependence_1): Compute and pass base terms to base_alias_check.
32116 (write_dependence_p): Likewise.
32117 (may_alias_p): Likewise.
32118
32119 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
32120
32121 * config/aarch64/aarch64.c (aarch64_classify_address): Support
32122 PC-relative load in SI modes and above only.
32123
32124 2013-03-26 Xinyu Qi <xyqi@marvell.com>
32125
32126 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
32127 * config/arm/iwmmxt.md (WCGR0): Update.
32128 (WCGR1, WCGR2, WCGR3): Likewise.
32129
32130 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
32131
32132 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
32133 Use x64 and nox64 isa attributes.
32134
32135 2013-03-26 Richard Biener <rguenther@suse.de>
32136
32137 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
32138 alignment computations and rely on get_object_alignment_1
32139 for the !TYPE_P case.
32140 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
32141
32142 2013-03-26 Walter Lee <walt@tilera.com>
32143
32144 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
32145 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
32146
32147 2013-03-25 Jeff Law <law@redhat.com>
32148
32149 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
32150 check for INTEGRAL_TYPE_P that was missing due to checking in
32151 wrong version of prior patch.
32152
32153 2013-03-25 Walter Lee <walt@tilera.com>
32154
32155 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
32156 TILEGX_INSN_SHUFFLEBYTES1.
32157 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
32158 shufflebytes1.
32159 (tilegx_builtins): Ditto.
32160 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
32161
32162 2013-03-25 Walter Lee <walt@tilera.com>
32163
32164 * config/tilegx/tilegx.md (floatsisf2): New pattern.
32165 (floatunssisf2): New pattern.
32166 (floatsidf2): New pattern.
32167 (floatunssidf2): New pattern.
32168
32169 2013-03-25 Walter Lee <walt@tilera.com>
32170
32171 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
32172 tests for constraint J, K, N, P.
32173
32174 2013-03-25 Walter Lee <walt@tilera.com>
32175
32176 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
32177 Use indirect/pcrel encoding.
32178 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
32179 Ditto.
32180
32181 2013-03-25 Steve Ellcey <sellcey@mips.com>
32182
32183 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
32184 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
32185 * config/mips/mips.c (mips_option_override): Set IMADD default.
32186 * config/mips/mips.h (PTF_AVOID_IMADD): New.
32187 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
32188 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
32189 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
32190 * doc/invoke.texi (-mimadd/-mno-imadd): New.
32191
32192 2013-03-25 Jeff Law <law@redhat.com>
32193
32194 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
32195 slightly to avoid creating and folding useless trees. Simplify
32196 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
32197
32198 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
32199
32200 * config/i386/i386.md (*zero_extendsidi2): Merge with
32201 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
32202 * config/i386/predicates.md (x86_64_zext_operand): Rename from
32203 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
32204 targets. Clarify comment.
32205
32206 2013-03-25 Martin Jambor <mjambor@suse.cz>
32207
32208 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
32209 pass-through jump functions differently.
32210 (ipa_read_jump_function): Likewise. Also use setter functions to set
32211 up jump functions.
32212
32213 2013-03-25 Martin Jambor <mjambor@suse.cz>
32214
32215 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
32216 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
32217 process it.
32218 (ipa_get_indirect_edge_target): New function.
32219 (devirtualization_time_bonus): New parameter known_aggs, pass it to
32220 ipa_get_indirect_edge_target. Update all callers.
32221 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
32222 ipa_get_indirect_edge_target_1 instead of calling
32223 ipa_get_indirect_edge_target.
32224 (create_specialized_node): Pass aggvlas to
32225 ipcp_discover_new_direct_edges.
32226
32227 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32228
32229 * config/arm/arm.md (f_sels, f_seld): New types.
32230 (*cmov<mode>): New pattern.
32231 * config/arm/predicates.md (arm_vsel_comparison_operator): New
32232 predicate.
32233
32234 2013-03-25 Kai Tietz <ktietz@redhat.com>
32235
32236 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
32237 POSIX-printf for mingw-hosted builds.
32238
32239 2013-03-25 Richard Biener <rguenther@suse.de>
32240
32241 PR middle-end/56694
32242 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
32243 must-not-throw stmt location.
32244
32245 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32246
32247 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
32248 Emit load-acquire versions when acq is true.
32249 (arm_emit_store_exclusive): Add rel parameter.
32250 Emit store-release versions when rel is true.
32251 (arm_split_compare_and_swap): Use acquire-release instructions
32252 instead.
32253 of barriers when appropriate.
32254 (arm_split_atomic_op): Likewise.
32255 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
32256 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
32257 (VUNSPEC_SLX): Likewise.
32258 (VUNSPEC_LDA): Likewise.
32259 (VUNSPEC_STL): Likewise.
32260 * config/arm/sync.md (atomic_load<mode>): New pattern.
32261 (atomic_store<mode>): Likewise.
32262 (arm_load_acquire_exclusive<mode>): Likewise.
32263 (arm_load_acquire_exclusivesi): Likewise.
32264 (arm_load_acquire_exclusivedi): Likewise.
32265 (arm_store_release_exclusive<mode>): Likewise.
32266
32267 2013-03-25 Catherine Moore <clm@codesourcery.com>
32268
32269 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
32270 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
32271 * config/mip/predicates.md (lwsp_swsp_operand,
32272 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
32273 sb16_operand, db4_operand, db7_operand, ib3_operand,
32274 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
32275 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
32276 andi16_operand): New predicates.
32277 * config/mips/mips.md (compression): New attribute.
32278 (enabled): New attribute.
32279 (length): Consider compression in computing length.
32280 (shift_compression): New code attribute.
32281 (*add<mode>3): New operands. Record compression.
32282 (sub<mode>3): Likewise.
32283 (one_cmpl<mode>2): Likewise.
32284 (*and<mode>3): Likewise.
32285 (*ior<mode>3): Likewise.
32286 (unnamed pattern for xor): Likewise.
32287 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
32288 (*<optab><mode>3): Likewise.
32289 (*mov<mode>_internal: Likewise.
32290 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
32291 (mips_unsigned_immediate_p): New.
32292 (umips_lwsp_swsp_address_p): New.
32293 (m16_based_address_p): New.
32294 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
32295 (mips_unsigned_immediate_p): New prototype.
32296 (lwsp_swsp_address_p): New prototype.
32297 (m16_based_address_p): New prototype.
32298 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
32299 (mips_signed_immediate_p): New function.
32300 (m16_based_address_p): New function.
32301 (lwsp_swsp_address_p): New function.
32302 (mips_print_operand_punctuation): Recognize short delay slot insns
32303 for microMIPS.add<mode>3"
32304
32305 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32306
32307 PR target/56720
32308 * config/arm/iterators.md (v_cmp_result): New mode attribute.
32309 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
32310
32311 2013-03-25 Richard Biener <rguenther@suse.de>
32312
32313 PR tree-optimization/56689
32314 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
32315 any edge.
32316
32317 2013-03-25 Richard Biener <rguenther@suse.de>
32318
32319 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
32320 of bitmap.
32321 (memory_references): Likewise.
32322 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
32323 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
32324 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
32325 (gather_mem_refs_in_loops): Fold into ...
32326 (analyze_memory_references): ... this. Move initialization
32327 to tree_ssa_lim_initialize.
32328 (fill_always_executed_in): Rename to ...
32329 (fill_always_executed_in_1): ... this.
32330 (fill_always_executed_in): Move contains_call computation to
32331 this new function from ...
32332 (tree_ssa_lim_initialize): ... here.
32333 (tree_ssa_lim): Call fill_always_executed_in.
32334
32335 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
32336
32337 * postreload.c (reload_combine): Fix code detecting returns.
32338
32339 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
32340
32341 * function.c (emit_use_return_register_into_block): On cc0 targets,
32342 do not emit the sequence between cc0 setter and user.
32343
32344 2013-03-25 Kai Tietz <ktietz@redhat.com>
32345
32346 * config/i386/predicates.md (local_symbolic_operand): Interpret
32347 dll-imported symbols as none-local.
32348
32349 2013-03-25 Richard Biener <rguenther@suse.de>
32350
32351 * tree-ssa-loop-im.c (struct depend): Remove.
32352 (struct lim_aux_data): Make depends a vec of gimples.
32353 (free_lim_aux_data): Adjust.
32354 (add_dependency): Likewise.
32355 (set_level): Likewise.
32356
32357 2013-03-25 Richard Biener <rguenther@suse.de>
32358
32359 PR middle-end/56434
32360 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
32361 the pointer returned by calls with ECF_MALLOC set.
32362
32363 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
32364
32365 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
32366
32367 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
32368
32369 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
32370 using MMXMODE mode iterator.
32371 (*move<mode>_internal): Merge with *movv2sf_internal and
32372 *movv2sf_internal_rex64 using MMXMODE mode iterator.
32373
32374 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
32375
32376 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
32377 (record_last_mem_set_info): Likewise.
32378
32379 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
32380 of XNEWVEC followed by memset.
32381 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
32382
32383 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
32384
32385 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
32386 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
32387 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
32388 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
32389 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
32390 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
32391 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
32392 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
32393 BARRIER_P instead of GET_CODE.
32394
32395 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
32396
32397 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
32398 inaccuracy in the probing code.
32399
32400 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
32401 (ctrapdi4): Likewise.
32402
32403 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
32404
32405 * calls.c (expand_call): Add missing guard to code handling return
32406 of non-BLKmode structures in MSB.
32407 * function.c (expand_function_end): Likewise.
32408
32409 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
32410
32411 * combine.c (try_combine): Adjust comment. Do not add the set of
32412 insn #0 if the destination indirectly is set or dies in insn #2.
32413 Tidy up code to distribute a new note.
32414
32415 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
32416
32417 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
32418 also for alternatives 16 and 17.
32419
32420 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
32421
32422 * config/i386/sse.md (*mov<mode>_internal): Merge with
32423 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
32424 Emit insn template depending on type attribute. Use
32425 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32426 movd instead of movq mnemonic for interunit moves. Rewrite mode
32427 attribute calculation. Remove unit attribute calculation.
32428 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
32429 Set prefix_data16 attribute for DImode ssemov types.
32430 Use Ym instead of y for SSE-MMX conversion alternatives.
32431 Reorder operand constraints.
32432
32433 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
32434
32435 * df.h (df_insn_delete): Adjust prototype.
32436 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
32437 and let it decide whether mark the basic block dirty.
32438 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
32439 * df-scan.c (df_insn_info_delete): New helper function, split
32440 off from df_insn_delete.
32441 (df_scan_free_bb_info): Use it.
32442 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
32443 Likewise.
32444 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
32445 that the insn is actually an insn and it has a non-NULL basic block.
32446 Do not mark basic block dirty if only deleting a DEBUG_INSN.
32447
32448 2013-03-22 Richard Biener <rguenther@suse.de>
32449
32450 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
32451 dep_ref members.
32452 (mem_ref_alloc): Do not allocate them.
32453 (refs_independent_p): Do not query or maintain a cache.
32454
32455 2013-03-22 Richard Biener <rguenther@suse.de>
32456
32457 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
32458 (gather_mem_refs_in_loops): Do not compute it.
32459 (analyze_memory_references): Do not allocate it.
32460 (tree_ssa_lim_finalize): Do not free it.
32461 (for_all_locs_in_loop): Do not query all_refs_in_loop.
32462
32463 2013-03-22 Richard Biener <rguenther@suse.de>
32464
32465 * is-a.h (as_a): Use gcc_checking_assert.
32466
32467 2013-03-22 Ian Bolton <ian.bolton@arm.com>
32468
32469 * config/aarch64/aarch64.c (aarch64_print_operand): New
32470 format specifier for printing a constant in hex.
32471 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
32472 format specifier for printing second operand.
32473
32474 2013-03-22 Richard Biener <rguenther@suse.de>
32475
32476 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
32477 bitmaps.
32478 (gather_mem_refs_in_loops): Perform store accumulation here.
32479 (create_vop_ref_mapping_loop): Remove.
32480 (create_vop_ref_mapping): Likewise.
32481 (analyze_memory_references): Initialize refs_stored_in_loop.
32482 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
32483 (record_indep_loop): Remove.
32484 (record_dep_loop): New function.
32485 (ref_indep_loop_p_1): Adjust to only walk over references
32486 in the loop, not its subloops.
32487 (ref_indep_loop_p): Rename to ...
32488 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
32489 maintaining a more fine-grained cache.
32490 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
32491 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
32492
32493 2013-03-22 Richard Biener <rguenther@suse.de>
32494
32495 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
32496 (struct mem_ref): Make accesses_in_loop a vec of a vec of
32497 aggregate mem_ref_loc.
32498 (free_mem_ref_locs): Inline into ...
32499 (memref_free): ... this and adjust.
32500 (mem_ref_alloc): Adjust.
32501 (mem_ref_locs_alloc): Remove.
32502 (record_mem_ref_loc): Adjust.
32503 (get_all_locs_in_loop): Rewrite into ...
32504 (for_all_locs_in_loop): ... this iterator.
32505 (rewrite_mem_ref_loc): New functor.
32506 (rewrite_mem_refs): Use for_all_locs_in_loop.
32507 (sm_set_flag_if_changed): New functor.
32508 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
32509 (ref_always_accessed): New functor.
32510 (ref_always_accessed_p): Use for_all_locs_in_loop.
32511
32512 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32513
32514 * tree-pass.h (PROP_gimple_lvec): New.
32515 * passes.c (dump_properties): Handle PROP_gimple_lvec.
32516 (init_optimization_passes): Move pass_lower_vector.
32517 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
32518 PROP_gimple_lvec.
32519 (pass_lower_vector): Provide PROP_gimple_lvec.
32520 (pass_lower_vector_ssa): Likewise.
32521 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
32522
32523 2013-03-21 Mark Wielaard <mjw@redhat.com>
32524
32525 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
32526
32527 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
32528
32529 * config/i386/i386.md (*movdi_internal): Disparage slightly
32530 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
32531 conversion alternatives.
32532
32533 2013-03-21 Jakub Jelinek <jakub@redhat.com>
32534
32535 PR middle-end/48087
32536 * diagnostic.def (DK_WERROR): New kind.
32537 * diagnostic.h (werrorcount): Define.
32538 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
32539 promoted to DK_ERROR, increment DK_WERROR counter instead of
32540 DK_ERROR counter.
32541 * toplev.c (toplev_main): Call print_ignored_options even if
32542 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
32543 even if just werrorcount is non-zero.
32544
32545 PR debug/55608
32546 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
32547 on failure.
32548 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
32549 (string_cst_pool_decl): New function.
32550 (optimize_one_addr_into_implicit_ptr): New function.
32551 (resolve_addr_in_expr): Optimize DWARF location expression
32552 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
32553 which doesn't live in memory, but has DW_AT_location or
32554 DW_AT_const_value, or refers to a string literal, into
32555 DW_OP_GNU_implicit_pointer.
32556 (optimize_location_into_implicit_ptr): New function.
32557 (resolve_addr): If removing DW_AT_location of a variable because
32558 it was DW_OP_addr of address of the variable, but the variable doesn't
32559 live in memory, try to emit const value attribute for the initializer.
32560
32561 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32562
32563 * tree.h (VECTOR_TYPE_P): New macro.
32564 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
32565 TYPE_MODE): Use it.
32566 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
32567 VEC_COND_EXPR cannot be lvalues.
32568 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
32569
32570 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32571
32572 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
32573 Restrict the transformation to equal modes.
32574
32575 2013-03-21 Richard Biener <rguenther@suse.de>
32576
32577 PR tree-optimization/39326
32578 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
32579 (MEM_ANALYZABLE): Adjust.
32580 (record_mem_ref_loc): Move bitmap ops ...
32581 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
32582 unanalyzable refs, do not record locations for it.
32583 (analyze_memory_references): Allocate ref zero as shared
32584 unanalyzable ref.
32585 (refs_independent_p): Do not test for unanalyzed mems here.
32586 (ref_indep_loop_p_1): Special-case disambiguation against
32587 the unanalyzed ref.
32588 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
32589
32590 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
32591
32592 * config/arm/arm-protos.h (tune_params): Add
32593 prefer_neon_for_64bits field.
32594 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
32595 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
32596 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
32597 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
32598 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
32599 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
32600 (arm_option_override): Handle -mneon-for-64bits new option.
32601 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
32602 (prefer_neon_for_64bits): Declare new variable.
32603 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
32604 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
32605 (arch_enabled): Handle new arch types. Remove support for onlya8
32606 and nota8.
32607 (one_cmpldi2): Use new arch names.
32608 (zero_extend<mode>di2, extend<mode>di2): Ditto.
32609 * config/arm/arm.opt (mneon-for-64bits): Add option.
32610 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
32611 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
32612 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
32613 of onlya8.
32614 * doc/invoke.texi (-mneon-for-64bits): Document.
32615
32616 2013-03-21 Richard Biener <rguenther@suse.de>
32617
32618 PR tree-optimization/39326
32619 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
32620 (sort_bbs_in_loop_postorder_cmp): New function.
32621 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
32622
32623 2013-03-21 Richard Biener <rguenther@suse.de>
32624
32625 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
32626 (vect_insert_into_interleaving_chain): Likewise.
32627 (vect_drs_dependent_in_basic_block): Inline ...
32628 (vect_slp_analyze_data_ref_dependence): ... here. New function,
32629 split out from ...
32630 (vect_analyze_data_ref_dependence): ... here. Simplify.
32631 (vect_check_interleaving): Simplify.
32632 (vect_analyze_data_ref_dependences): Likewise. Split out ...
32633 (vect_slp_analyze_data_ref_dependences): ... this new function.
32634 (dr_group_sort_cmp): New function.
32635 (vect_analyze_data_ref_accesses): Compute data-reference groups
32636 here instead of in vect_analyze_data_ref_dependence. Use
32637 a more efficient algorithm.
32638 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
32639 vect_slp_analyze_data_ref_dependences. Call
32640 vect_analyze_data_ref_accesses earlier.
32641 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
32642 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
32643 (vect_slp_analyze_data_ref_dependences): New prototype.
32644
32645 2013-03-21 Richard Biener <rguenther@suse.de>
32646
32647 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
32648 ref is stored in the loop.
32649 (find_refs_for_sm): Walk only over all stores.
32650 (store_motion_loop): Allocate from lim_bitmap_obstack.
32651 (store_motion): Likewise.
32652
32653 2013-03-21 Richard Biener <rguenther@suse.de>
32654
32655 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
32656 Update virtual SSA form.
32657
32658 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32659
32660 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
32661 * configure: Regenerate.
32662 * config.in: Regenerate.
32663 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
32664 if !HAVE_LD_EH_FRAME_CIEV3.
32665
32666 2013-03-21 Richard Biener <rguenther@suse.de>
32667
32668 * tree-cfg.c (verify_expr_no_block): New function.
32669 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
32670 nor DECL_VALUE_EXPR have locations with associated blocks.
32671 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
32672 (clear_unused_block_pointer): Remove code dealing with
32673 blocks in DECL_DEBUG_EXPR locations.
32674
32675 2013-03-21 Richard Biener <rguenther@suse.de>
32676
32677 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
32678 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
32679 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
32680 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
32681 instead of DECL_DEBUG_EXPR_IS_FROM.
32682 * gimplify.c (gimplify_modify_expr): Likewise.
32683 * tree-cfg.c (verify_expr_location_1): Likewise.
32684 * tree-complex.c (create_one_component_var): Likewise.
32685 * tree-sra.c (create_access_replacement): Likewise.
32686 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
32687 (clear_unused_block_pointer): Likewise.
32688 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
32689 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
32690 * var-tracking.c (var_debug_decl): Likewise.
32691 (track_expr_p): Likewise.
32692 * tree-inline.c (add_local_variables): Likewise. Set
32693 DECL_HAS_DEBUG_EXPR_P after copying it.
32694 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
32695 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
32696
32697 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
32698
32699 PR bootstrap/56656
32700 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
32701 * configure: Regenerate.
32702 * config.in: Regenerate.
32703 * config/i386/i386.md (*movdf_internal): Use
32704 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32705 movd instead of movq mnemonic for interunit moves.
32706 (*movdi_internal): Ditto.
32707
32708 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32709
32710 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
32711 (abd<mode>_3): New pattern.
32712 (aba<mode>_3): New pattern.
32713 (fabd<mode>_3): New pattern.
32714
32715 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32716
32717 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
32718 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
32719 occurrence of REGISTER_PREFIX as its empty string.
32720
32721 2013-03-20 Jeff Law <law@redhat.com>
32722
32723 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
32724 addititional equivalences for equality comparisons between an SSA_NAME
32725 and a constant where the SSA_NAME was set from a widening conversion.
32726
32727 2013-03-20 Walter Lee <walt@tilera.com>
32728
32729 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
32730
32731 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32732
32733 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
32734 depending on type attribute.
32735 (*movti_internal): Ditto.
32736 (*movtf_internal): Ditto.
32737 (*movxf_internal): Ditto.
32738 (*movdf_internal): Ditto.
32739 (*movsf_internal): Ditto.
32740
32741 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32742
32743 * config/i386/i386.md (*movti_internal): Set prefix attribute to
32744 maybe_vex for sselog1 and ssemov types.
32745 (*movdi_internal): Reorder operand constraints.
32746 (*movsi_internal): Ditto. Set prefix attribute to
32747 maybe_vex for sselog1 and ssemov types.
32748 (*movtf_internal): Set prefix attribute to maybe_vex
32749 for sselog1 and ssemov types.
32750 (*movdf_internal): Ditto. Set prefix_data16 attribute for
32751 DImode ssemov types. Reorder operand constraints.
32752 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
32753 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
32754 attribute for SImode ssemov types. Reorder operand constraints.
32755
32756 2013-03-20 Martin Jambor <mjambor@suse.cz>
32757
32758 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
32759 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
32760
32761 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
32762
32763 * config/rs6000/predicates.md (indexed_address, update_address_mem
32764 update_indexed_address_mem): New predicates.
32765 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
32766 attribute for load/store instructions.
32767 * config/rs6000/dfp.md (movsd_store): Likewise.
32768 (movsd_load): Likewise.
32769 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
32770 (unnamed HI->DI extend define_insn): Likewise.
32771 (unnamed SI->DI extend define_insn): Likewise.
32772 (unnamed QI->SI extend define_insn): Likewise.
32773 (unnamed QI->HI extend define_insn): Likewise.
32774 (unnamed HI->SI extend define_insn): Likewise.
32775 (unnamed HI->SI extend define_insn): Likewise.
32776 (extendsfdf2_fpr): Likewise.
32777 (movsi_internal1): Likewise.
32778 (movsi_internal1_single): Likewise.
32779 (movhi_internal): Likewise.
32780 (movqi_internal): Likewise.
32781 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
32782 attribute for load/store instructions.
32783 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
32784 instructions.
32785 (mov<mode>_softfloat): Likewise.
32786 (mov<mode>_hardfloat32): Likewise.
32787 (mov<mode>_hardfloat64): Likewise.
32788 (mov<mode>_softfloat64): Likewise.
32789 (movdi_internal32): Likewise.
32790 (movdi_internal64): Likewise.
32791 (probe_stack_<mode>): Likewise.
32792
32793 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
32794
32795 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
32796 floating point, and decimal floating point to reload iterator.
32797
32798 * config/rs6000/constraints.md (wl constraint): New constraints to
32799 return FLOAT_REGS if certain options are used to reduce the number
32800 of separate patterns that exist in the file.
32801 (wx constraint): Likewise.
32802 (wz constraint): Likewise.
32803
32804 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32805 -mdebug=reg, print wg, wl, wx, and wz constraints.
32806 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32807 Initialize the reload functions for 64-bit binary/decimal floating
32808 point types.
32809 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32810 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32811 create the buffer on the stack to overcome not having a 32-bit
32812 load and store.
32813 (rs6000_emit_move): Likewise.
32814 (rs6000_secondary_memory_needed_rtx): Likewise.
32815 (rs6000_alloc_sdmode_stack_slot): Likewise.
32816 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32817 via xxlxor, just like DFmode 0.0.
32818
32819 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
32820 define as 1 if we are running on a power7 or newer.
32821 (enum r6000_reg_class_enum): Add new constraints.
32822
32823 * config/rs6000/dfp.md (movsd): Delete, combine with binary
32824 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32825 with other moves by using conditional constraits (wg). Use LFIWZX
32826 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
32827 (movsd splitter): Likewise.
32828 (movsd_hardfloat): Likewise.
32829 (movsd_softfloat): Likewise.
32830
32831 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
32832 binary and decimal floating point moves.
32833 (fmove_ok): New attributes to combine binary and decimal floating
32834 point moves, and to combine power6x (mfpgpr) moves along normal
32835 floating moves.
32836 (real_value_to_target): Likewise.
32837 (f32_lr): Likewise.
32838 (f32_lm): Likewise.
32839 (f32_li): Likewise.
32840 (f32_sr): Likewise.
32841 (f32_sm): Likewise.
32842 (f32_si): Likewise.
32843 (movsf): Combine binary and decimal floating point moves. Combine
32844 power6x (mfpgpr) moves with other moves by using conditional
32845 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
32846 (mov<mode> for SFmode/SDmode); Likewise.
32847 (SFmode/SDmode splitters): Likewise.
32848 (movsf_hardfloat): Likewise.
32849 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
32850 (movsf_softfloat): Likewise.
32851 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
32852
32853 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
32854 wx and wz constraints.
32855
32856 * config/rs6000/constraints.md (wg constraint): New constraint to
32857 return FLOAT_REGS if -mmfpgpr (power6x) was used.
32858
32859 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
32860 constraint.
32861
32862 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32863 -mdebug=reg, print wg, wl, wx, and wz constraints.
32864 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32865 Initialize the reload functions for 64-bit binary/decimal floating
32866 point types.
32867 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32868 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32869 create the buffer on the stack to overcome not having a 32-bit
32870 load and store.
32871 (rs6000_emit_move): Likewise.
32872 (rs6000_secondary_memory_needed_rtx): Likewise.
32873 (rs6000_alloc_sdmode_stack_slot): Likewise.
32874 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32875 via xxlxor, just like DFmode 0.0.
32876
32877 * config/rs6000/dfp.md (movdd): Delete, combine with binary
32878 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32879 with other moves by using conditional constraits (wg). Use LFIWZX
32880 and STFIWX for loading SDmode on power7.
32881 (movdd splitters): Likewise.
32882 (movdd_hardfloat32): Likewise.
32883 (movdd_softfloat32): Likewise.
32884 (movdd_hardfloat64_mfpgpr): Likewise.
32885 (movdd_hardfloat64): Likewise.
32886 (movdd_softfloat64): Likewise.
32887
32888 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
32889 64-bit binary and decimal floating point moves.
32890 (FMOVE64X): Likewise.
32891 (movdf): Combine 64-bit binary and decimal floating point moves.
32892 Combine power6x (mfpgpr) moves with other moves by using
32893 conditional constraits (wg).
32894 (mov<mode> for DFmode/DDmode): Likewise.
32895 (DFmode/DDmode splitters): Likewise.
32896 (movdf_hardfloat32): Likewise.
32897 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
32898 (movdf_softfloat32): Likewise.
32899 (movdf_hardfloat64_mfpgpr): Likewise.
32900 (movdf_hardfloat64): Likewise.
32901 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
32902 (movdf_softfloat64): Likewise.
32903 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
32904 (reload_<mode>_load): Move to later in the file so they aren't in
32905 the middle of the floating point move insns.
32906 (reload_<mode>_store): Likewise.
32907
32908 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
32909 constraint.
32910
32911 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
32912 constraint if -mdebug=reg.
32913 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32914 Enable using dd reload support if needed.
32915
32916 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32917 binary and decimal floating point moves in rs6000.md.
32918 (movtd_internal): Likewise.
32919
32920 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32921 decimal floating point moves.
32922 (movtf): Likewise.
32923 (movtf_internal): Likewise.
32924 (mov<mode>_internal, TDmode/TFmode): Likewise.
32925 (movtf_softfloat): Likewise.
32926 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32927
32928 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32929 movdi_internal64, using wg constraint for move direct operations.
32930 (movdi_internal64): Likewise.
32931
32932 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32933 MODES_TIEABLE_P for selected modes. Print the numerical value of
32934 the various virtual registers. Use GPR/FPR first/last values,
32935 instead of hard coding the register numbers. Print which modes
32936 have reload functions registered.
32937 (rs6000_option_override_internal): If -mdebug=reg, trace the options
32938 settings before/after setting cpu, target and subtarget settings.
32939 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32940 and for secondary reload failures in rs6000_secondary_reload_inner.
32941 (rs6000_secondary_reload_fail): Likewise.
32942 (rs6000_secondary_reload_inner): Likewise.
32943
32944 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32945 macros for first/last GPR and FPR registers.
32946 (LAST_GPR_REGNO): Likewise.
32947 (FIRST_FPR_REGNO): Likewise.
32948 (LAST_FPR_REGNO): Likewise.
32949
32950 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32951 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32952 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32953 (vcond<mode><mode>): Likewise.
32954 (vcondu<mode><mode>): Likewise.
32955 (vector_gtu<mode>): Likewise.
32956 (vector_gte<mode>): Likewise.
32957 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32958 to prevent the compiler from converting DImode operations to TImode.
32959 (ior<mode>3): Likewise.
32960 (and<mode>3): Likewise.
32961 (one_cmpl<mode>2): Likewise.
32962 (nor<mode>3): Likewise.
32963 (andc<mode>3): Likewise.
32964
32965 * config/rs6000/constraints.md (wt constraint): New constraint
32966 that returns VSX_REGS if TImode is allowed in VSX registers.
32967
32968 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32969 constant under VSX.
32970
32971 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32972 similar to TImode, but it is restricted to being in the GPRs.
32973
32974 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32975 TImode to occupy a single VSX register.
32976
32977 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32978 -mvsx-timode for power7/power8.
32979 (power7 cpu): Likewise.
32980 (power8 cpu): Likewise.
32981
32982 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32983 sure that TFmode/TDmode take up two registers if they are ever
32984 allowed in the upper VSX registers.
32985 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32986 registers.
32987 (rs6000_init_hard_regno_mode_ok): Likewise.
32988 (rs6000_debug_reg_global): Add debugging for PTImode and wt
32989 constraint. Print if LRA is turned on.
32990 (rs6000_option_override_internal): Give an error if -mvsx-timode
32991 and VSX is not enabled.
32992 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
32993 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32994 to reg+offset addressing. Use PTImode when checking offset
32995 addresses for validity.
32996 (reg_offset_addressing_ok_p): Likewise.
32997 (rs6000_legitimate_offset_address_p): Likewise.
32998 (rs6000_legitimize_address): Likewise.
32999 (rs6000_legitimize_reload_address): Likewise.
33000 (rs6000_legitimate_address_p): Likewise.
33001 (rs6000_eliminate_indexed_memrefs): Likewise.
33002 (rs6000_emit_move): Likewise.
33003 (rs6000_secondary_reload): Likewise.
33004 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
33005 reloads to fpr registers to continue to use reg+offset addressing,
33006 but 64-bit reloads to altivec registers need reg+reg addressing.
33007 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
33008 it. Treat LO_SUM like a PLUS operation.
33009 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
33010 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
33011 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
33012 registers to share a register with a smaller sized type, since VSX
33013 puts scalars in the upper 64-bits.
33014 (print_operand): Add support for PTImode.
33015 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
33016 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
33017 registers, but don't have arithmetic support.
33018 (rs6000_memory_move_cost): Add test for VSX.
33019 (rs6000_opt_masks): Add -mvsx-timode.
33020
33021 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
33022 for TImode.
33023 (VSs): Likewise.
33024 (VSr): Use wt constraint for TImode.
33025 (VSv): Drop TImode support.
33026 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
33027 (vsx_movti_64bit): Likewise.
33028 (vsx_movti_32bit): Likewise.
33029 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
33030 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
33031 one '?' on the appropriate output constraint. Do not allow TImode
33032 logical operations on 32-bit systems.
33033 (vsx_ior<mode>3): Likewise.
33034 (vsx_xor<mode>3): Likewise.
33035 (vsx_one_cmpl<mode>2): Likewise.
33036 (vsx_nor<mode>3): Likewise.
33037 (vsx_andc<mode>3): Likewise.
33038 (vsx_concat_<mode>): Likewise.
33039 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
33040
33041 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
33042 OPTION_MASK_VSX_TIMODE.
33043 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
33044 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
33045
33046 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
33047 (TI2 iterator): New iterator for TImode, PTImode.
33048 (wd mode attribute): Add values for vector types.
33049 (movti_string): Replace TI move operations with operations for TImode
33050 and PTImode. Add support for TImode being allowed in VSX registers.
33051 (mov<mode>_string, TImode/PTImode): Likewise.
33052 (movti_ppc64): Likewise.
33053 (mov<mode>_ppc64, TImode/PTImode): Likewise.
33054 (TI mode splitters): Likewise.
33055
33056 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
33057 constraint.
33058
33059 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
33060
33061 PR tree-optimization/56355
33062 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
33063 Also handle integers with undefined overflow.
33064
33065 2013-03-20 Catherine Moore <clm@codesourcery.com>
33066 Maciej W. Rozycki <macro@codesourcery.com>
33067 Tom de Vries <tom@codesourcery.com>
33068 Nathan Sidwell <nathan@codesourcery.com>
33069 Iain Sandoe <iain@codesourcery.com>
33070 Nathan Froyd <froydnj@codesourcery.com>
33071 Chao-ying Fu <fu@mips.com>
33072
33073 * doc/extend.texi: (micromips, nomicromips, nocompression):
33074 Document new function attributes.
33075 * doc/invoke.texi (minterlink-compressed, mmicromips,
33076 m14k, m14ke, m14kec): Document new options.
33077 (minterlink-mips16): Update documentation.
33078 * doc/md.texi (ZC, ZD): Document new constraints.
33079 * configure.ac (gcc_cv_as_micromips): Check if linker
33080 supports the .set micromips directive.
33081 * configure: Regenerate.
33082 * config.in: Regenerate.
33083 * config/mips/mips-tables.opt: Regenerate.
33084 * config/mips/micromips.md: New file.
33085 * constraints.md (ZC, ZD): New constraints.
33086 * config/mips/predicates.md (movep_src_register): New predicate.
33087 (movep_src_operand): New predicate.
33088 (non_volatile_mem_operand): New predicate.
33089 * config/mips/mips.md (multimem): New type.
33090 (length): Differentiate between 17-bit and 18-bit branch offsets.
33091 (MOVEP1, MOVEP2): New mode iterator.
33092 (mov_<load>l): Use ZC constraint.
33093 (mov_<load>r): Likewise.
33094 (mov_<store>l): Likewise.
33095 (mov_<store>r): Likewise.
33096 (*branch_equality<mode>_inverted): Add microMIPS support.
33097 (*branch_equality<mode>): Likewise.
33098 (*jump_absolute): Likewise.
33099 (indirect_jump_<mode>): Likewise.
33100 (tablejump_<mode>): Likewise.
33101 (<optab>_internal): Likewise.
33102 (sibcall_internal): Likewise.
33103 (sibcall_value_internal): Likewise.
33104 (prefetch): Use constraint ZD.
33105 * config/mips/mips.opt (minterlink-compressed): New option.
33106 (minterlink-mips16): Now an alias for minterlink-compressed.
33107 (mmicromips): New option.
33108 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33109 (compare_and_swap_12): Likewise.
33110 (sync_add<mode>): Likewise.
33111 (sync_<optab>_12): Likewise.
33112 (sync_old_<optab>_12): Likewise.
33113 (sync_new_<optab>_12): Likewise.
33114 (sync_nand_12): Likewise.
33115 (sync_old_nand_12): Likewise.
33116 (sync_new_nand_12): Likewise.
33117 (sync_sub<mode>): Likewise.
33118 (sync_old_add<mode>): Likewise.
33119 (sync_old_sub<mode>): Likewise.
33120 (sync_new_add<mode>): Likewise.
33121 (sync_new_sub<mode>): Likewise.
33122 (sync_<optab><mode>): Likewise.
33123 (sync_old_<optab><mode>): Likewise.
33124 (sync_new_<optab><mode>): Likewise.
33125 (sync_nand<mode>): Likewise.
33126 (sync_old_nand<mode>): Likewise.
33127 (sync_new_nand<mode>): Likewise.
33128 (sync_lock_test_and_set<mode>): Likewise.
33129 (test_and_set_12): Likewise.
33130 (atomic_compare_and_swap<mode>): Likewise.
33131 (atomic_exchange<mode>_llsc): Likewise.
33132 (atomic_fetch_add<mode>_llsc): Likewise.
33133 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33134 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33135 (umips_save_restore_pattern_p): Likewise.
33136 (umips_load_store_pair_p): Likewise.
33137 (umips_output_load_store_pair): Likewise.
33138 (umips_movep_target_p): Likewise.
33139 (umips_12bit_offset_address_p): Likewise.
33140 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33141 (mips_base_mips16): Rename this...
33142 (mips_base_compression_flags): ...to this. Update all uses.
33143 (mips_attribute_table): Add micromips, nomicromips and nocompression.
33144 (mips_mips16_decl_p): Delete.
33145 (mips_nomips16_decl_p): Delete.
33146 (mips_get_compress_on_flags): New function.
33147 (mips_get_compress_off_flags): New function.
33148 (mips_get_compress_mode): New function.
33149 (mips_get_compress_on_name): New function.
33150 (mips_get_compress_off_name): New function.
33151 (mips_insert_attributes): Support multiple compression types.
33152 (mips_merge_decl_attributes): Likewise.
33153 (umips_12bit_offset_address_p): New function.
33154 (mips_start_function_definition): Emit .set micromips directive.
33155 (mips_call_may_need_jalx_p): New function.
33156 (mips_function_ok_for_sibcall): Add microMIPS support.
33157 (mips_print_operand_punctuation): Support short delay slots and
33158 compact jumps.
33159 (umips_swm_mask, umips_swm_encoding): New.
33160 (umips_build_save_restore): New function.
33161 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33162 (was_mips16_p): Remove.
33163 (old_compression_mode): New.
33164 (mips_set_compression_mode): New function.
33165 (mips_set_current_function): Add microMIPS support.
33166 (mips_option_override): Likewise.
33167 (umips_save_restore_pattern_p): New function.
33168 (umips_output_save_restore): New function.
33169 (umips_load_store_pair_p_1): New function.
33170 (umips_load_store_pair_p): New function.
33171 (umips_output_load_store_pair_1): New function.
33172 (umips_output_load_store_pair): New function.
33173 (umips_movep_target_p) New function.
33174 (mips_prepare_pch_save): Add microMIPS support.
33175 * config/mips/mips.h (TARGET_COMPRESSION): New.
33176 (TARGET_CPU_CPP_BUILTINS): Update macro
33177 to use new compression flags and to support microMIPS.
33178 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33179 (MIPS_ARCH_FLOAT_SPEC): Likewise.
33180 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33181 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33182 (ASM_SPEC): Support mmicromips and mno-micromips.
33183 (M16STORE_REG_P): New macro.
33184 (MIPS_CALL): Support TARGET_MICROMIPS.
33185 (MICROMIPS_J): New macro.
33186 (mips_base_mips16): Rename this...
33187 (mips_base_compression_flags): ...to this.
33188 (UMIPS_12BIT_OFFSET_P): New macro.
33189 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33190 (MULTILIB_DIRNAMES): Likewise.
33191 2013-03-20 Richard Biener <rguenther@suse.de>
33192
33193 PR tree-optimization/56661
33194 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
33195 the result does not have to be distinct.
33196
33197 2013-03-20 Richard Biener <rguenther@suse.de>
33198
33199 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
33200 remap_gimple_op_r.
33201
33202 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33203 Steven Bosscher <steven@gcc.gnu.org>
33204
33205 PR rtl-optimization/56605
33206 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
33207
33208 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
33209
33210 PR bootstrap/56656
33211 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
33212 that require movd instead of movq.
33213
33214 2013-03-20 Richard Biener <rguenther@suse.de>
33215
33216 * tree-ssa-structalias.c (struct variable_info): Add pointer
33217 to the first field of an aggregate with sub-vars. Make
33218 this and the pointer to the next subfield its ID.
33219 (vi_next): New function.
33220 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
33221 storedanything_id, integer_id): Increment by one.
33222 (new_var_info, get_call_vi, lookup_call_clobber_vi,
33223 get_call_clobber_vi): Adjust.
33224 (solution_set_expand): Simplify and speedup.
33225 (solution_set_add): Inline into ...
33226 (set_union_with_increment): ... this. Adjust accordingly.
33227 (do_sd_constraint): Likewise.
33228 (do_ds_constraint): Likewise.
33229 (do_complex_constraint): Simplify.
33230 (build_pred_graph): Adjust.
33231 (solve_graph): Likewise. Simplify and speedup.
33232 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
33233 get_constraint_for_component_ref, get_constraint_for_1,
33234 first_vi_for_offset, first_or_preceding_vi_for_offset,
33235 create_function_info_for, create_variable_info_for_1,
33236 create_variable_info_for, intra_create_variable_infos): Adjust.
33237 (init_base_vars): Push NULL for ID zero.
33238 (compute_points_to_sets): Adjust.
33239
33240 2013-03-20 Richard Biener <rguenther@suse.de>
33241
33242 * cfgloop.c (verify_loop_structure): Streamline and avoid
33243 ICEing on corrupt loop tree.
33244 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
33245 loop tree.
33246
33247 2013-03-20 Richard Biener <rguenther@suse.de>
33248
33249 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
33250 check whether an SSA update is needed.
33251
33252 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
33253
33254 * config/mips/constraints.md (T): Rename to...
33255 (Yf): ...this.
33256 (U): Rename to...
33257 (Yd): ...this.
33258 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
33259 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
33260
33261 2013-03-19 Ian Bolton <ian.bolton@arm.com>
33262
33263 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
33264 (*subsi3_carryin_uxtw): Likewise.
33265
33266 2013-03-19 Ian Bolton <ian.bolton@arm.com>
33267
33268 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
33269 (*rorsi3_insn_uxtw): Likewise.
33270
33271 2013-03-19 Ian Bolton <ian.bolton@arm.com>
33272
33273 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
33274 (*extrsi5_insn_uxtw): Likewise.
33275
33276 2013-03-19 Richard Biener <rguenther@suse.de>
33277
33278 PR tree-optimization/56273
33279 * passes.c (init_optimization_passes): Move second VRP after DOM.
33280
33281 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
33282
33283 * config/i386/i386.md (*movti_internal): Merge from
33284 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
33285 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
33286 nox64 isa attributes.
33287
33288 2013-03-18 Richard Biener <rguenther@suse.de>
33289
33290 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
33291 (unite): Likewise.
33292 (merge_node_constraints): Likewise.
33293 (build_succ_graph): Likewise.
33294 (valid_graph_edge): Inline into single caller.
33295 (unify_nodes): Likewise. Use bitmap_set_bit return value
33296 and cache varinfo.
33297 (scc_visit): Fix formatting and variable use.
33298 (do_sd_constraint): Use gcc_checking_assert.
33299 (do_ds_constraint): Likewise.
33300 (do_complex_constraint): Likewise.
33301 (condense_visit): Likewise. Cleanup.
33302 (dump_pred_graph): New function.
33303 (perform_var_substitution): Dump the pred-graph before
33304 variable substitution.
33305 (find_equivalent_node): Use gcc_checking_assert.
33306 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
33307
33308 2013-03-18 Richard Biener <rguenther@suse.de>
33309
33310 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
33311 Remove cond_expr_stmt_list argument and do not gimplify the
33312 built expression.
33313 (vect_loop_versioning): Adjust.
33314 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
33315 Cleanup to use less temporaries.
33316 (vect_create_data_ref_ptr): Cleanup.
33317
33318 2013-03-18 Jakub Jelinek <jakub@redhat.com>
33319
33320 PR tree-optimization/56635
33321 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
33322 require types_compatible_p types.
33323
33324 2013-03-18 Nick Clifton <nickc@redhat.com>
33325
33326 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
33327 spurious backslash.
33328
33329 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
33330 Add missing line to comment describing function.
33331
33332 2013-03-18 Richard Biener <rguenther@suse.de>
33333
33334 PR tree-optimization/56210
33335 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33336 Handle string / character search functions.
33337 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
33338
33339 2013-03-18 Richard Biener <rguenther@suse.de>
33340
33341 PR middle-end/56483
33342 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
33343 and implement properly.
33344 * gimple.h (gimple_cond_single_var_p): Remove.
33345
33346 2013-03-18 Richard Biener <rguenther@suse.de>
33347
33348 * tree-data-ref.h (find_data_references_in_loop): Declare.
33349 * tree-data-ref.c (get_references_in_stmt): Use a stack
33350 vector pre-allocated in the callers.
33351 (find_data_references_in_stmt): Adjust.
33352 (graphite_find_data_references_in_stmt): Likewise.
33353 (create_rdg_vertices): Likewise.
33354 (find_data_references_in_loop): Export.
33355 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
33356 Compute dependences here...
33357 (vect_analyze_data_refs): ...not here. When we encounter
33358 a non-vectorizable data reference in basic-block vectorization
33359 truncate the data reference vector. Do not bother to
33360 fixup data-dependence information for gather loads.
33361 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
33362 of data references, as reported.
33363
33364 2013-03-18 Richard Biener <rguenther@suse.de>
33365
33366 PR tree-optimization/3713
33367 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
33368 has_constants and expr.
33369 (stmt_has_constants): Properly valueize SSA names when deciding
33370 whether the stmt has constants.
33371
33372 2013-03-18 Richard Biener <rguenther@suse.de>
33373
33374 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
33375 whole function when there is nothing to do.
33376 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
33377 * tree-vectorizer.c (vectorize_loops): Update virtual and
33378 loop-closed SSA once.
33379 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
33380
33381 2013-03-18 Richard Biener <rguenther@suse.de>
33382
33383 PR middle-end/56113
33384 * domwalk.c (bb_postorder): New global static.
33385 (cmp_bb_postorder): New function.
33386 (walk_dominator_tree): Replace scheme imposing an order for
33387 visiting dominator sons by one sorting them at the time they
33388 are pushed on the stack.
33389
33390 2013-03-18 Richard Biener <rguenther@suse.de>
33391
33392 PR tree-optimization/39326
33393 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
33394 (struct mem_ref): Replace mem member with ao_ref typed member.
33395 (MEM_ANALYZABLE): Adjust.
33396 (memref_eq): Likewise.
33397 (mem_ref_alloc): Likewise.
33398 (gather_mem_refs_stmt): Likewise.
33399 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
33400 (execute_sm_if_changed_flag_set): Adjust.
33401 (execute_sm): Likewise.
33402 (ref_always_accessed_p): Likewise.
33403 (refs_independent_p): Likewise.
33404 (can_sm_ref_p): Likewise.
33405
33406 2013-03-18 Jakub Jelinek <jakub@redhat.com>
33407
33408 PR c/56566
33409 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
33410 return 1 even for !unsignedp.
33411
33412 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
33413
33414 * config/i386/i386.md (isa): Add x64 and nox64.
33415 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
33416 (*pushtf): Enable *roF alternative for x64 isa only.
33417 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
33418 mode attribute of integer alternatives to DImode for TARGET_64BIT.
33419 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
33420 (*movtf_internal): Merge from *movtf_internal_rex64 and
33421 *movtf_internal_sse. Use x64 and nox64 isa attributes.
33422 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
33423 nox64 isa attributes.
33424 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
33425 nox64 isa attributes.
33426 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
33427
33428 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
33429
33430 * config/alpha/alpha.c (TARGET_LRA_P): New define.
33431
33432 2013-03-17 Jakub Jelinek <jakub@redhat.com>
33433
33434 PR target/56640
33435 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
33436 class names. Remove trailing comma after "ALL_REGS".
33437
33438 2013-03-16 Jan Hubicka <jh@suse.cz>
33439
33440 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
33441 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
33442 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
33443 of cgraph_get_create_node.
33444 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
33445
33446 2013-03-16 Jason Merrill <jason@redhat.com>
33447
33448 PR debug/49090
33449 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
33450 with DW_AT_default_value.
33451
33452 2013-03-16 Jakub Jelinek <jakub@redhat.com>
33453
33454 * BASE-VER: Set to 4.9.0.
33455
33456 2013-03-14 Andi Kleen <ak@linux.intel.com>
33457
33458 PR target/56619
33459 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
33460 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
33461 Document _x* TSX intrinsics.
33462
33463 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
33464 David Holsgrove <david.holsgrove@xilinx.com>
33465
33466 * configure.ac: Add MicroBlaze TLS support detection.
33467 * configure: Regenerate.
33468 * config/microblaze/microblaze-protos.h
33469 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
33470 symbol_mentioned_p, label_mentioned_p): Add prototypes.
33471 * config/microblaze/microblaze.c (microblaze_address_type): Add
33472 ADDRESS_TLS and tls_reloc address types.
33473 (microblaze_address_info): Add tls_reloc.
33474 (TARGET_HAVE_TLS): Define.
33475 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
33476 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
33477 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
33478 load_tls_operand, microblaze_call_tls_get_addr,
33479 microblaze_legitimize_tls_address): New functions.
33480 (microblaze_classify_unspec): Handle UNSPEC_TLS.
33481 (get_base_reg): Use microblaze_tls_symbol_p.
33482 (microblaze_classify_address): Handle TLS.
33483 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
33484 label_mentioned_p and microblaze_tls_referenced_p.
33485 (microblaze_legitimize_address): Handle TLS.
33486 (microblaze_address_insns): Handle ADDRESS_TLS.
33487 (pic_address_needs_scratch): Handle TLS.
33488 (print_operand_address): Handle TLS.
33489 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
33490 (microblaze_expand_move): Handle TLS.
33491 (microblaze_legitimate_constant_p): Check
33492 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
33493 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
33494 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
33495 (PIC_OFFSET_TABLE_REGNUM): Set.
33496 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
33497 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
33498 (addsi3, movsi_internal2, movdf_internal): Update constraints
33499 * config/microblaze/predicates.md (arith_plus_operand): Define
33500 (move_operand): Redefine as move_src_operand,
33501 check microblaze_tls_referenced_p.
33502
33503 2013-03-14 Ian Bolton <ian.bolton@arm.com>
33504
33505 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
33506 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
33507
33508 2013-03-14 Ian Bolton <ian.bolton@arm.com>
33509
33510 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
33511 CC mode for AND.
33512
33513 2013-03-14 Jakub Jelinek <jakub@redhat.com>
33514
33515 PR tree-optimization/53265
33516 * common.opt (Waggressive-loop-optimizations): New option.
33517 * tree-ssa-loop-niter.c: Include tree-pass.h.
33518 (do_warn_aggressive_loop_optimizations): New function.
33519 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
33520 if number_of_latch_executions returned constant.
33521 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
33522 early. If number_of_latch_executions returned constant, set
33523 nb_iterations_upper_bound back to it.
33524 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
33525 field.
33526 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
33527 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
33528
33529 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
33530 (MULTILIB_OSDIRNAMES): Set.
33531 * genmultilib: If defaultosdirname doesn't start with :: , set
33532 defaultosdirname2 instead, clear it and emit two . multilib_raw
33533 entries instead of just one.
33534
33535 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
33536
33537 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33538 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
33539 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33540 (SUBTARGET_OVERRIDE_OPTIONS): New.
33541
33542 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
33543
33544 PR target/49880
33545 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
33546 (musermode): Convert to Var(TARGET_USERMODE).
33547 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
33548 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
33549 * config/sh/sh.c (sh_option_override): Use
33550 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
33551 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
33552 condition.
33553 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
33554 TARGET_SH4.
33555 (udivsi3_i4_single, divsi3_i4_single): Use
33556 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
33557
33558 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
33559
33560 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
33561 default setting.
33562
33563 2013-03-13 Richard Biener <rguenther@suse.de>
33564
33565 PR tree-optimization/56608
33566 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
33567 calls when vectorizing basic-blocks.
33568
33569 2013-03-13 Jakub Jelinek <jakub@redhat.com>
33570
33571 PR plugins/45078
33572 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
33573 tm_file.
33574
33575 2013-03-12 Jakub Jelinek <jakub@redhat.com>
33576
33577 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
33578
33579 2013-03-11 Jan Hubicka <jh@suse.cz>
33580
33581 PR lto/56557
33582 * lto-streamer-out.c (output_symbol_p): Skip references from
33583 constructors of external variables.
33584
33585 2013-03-11 Jan Hubicka <jh@suse.cz>
33586
33587 PR middle-end/56571
33588 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
33589 from pseudos.
33590 * emit-rtl.c (verify_rtx_sharing): Likewise.
33591 (copy_insn_1): Likewise.
33592 * rtl.c (copy_rtx): Likewise.
33593
33594 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
33595
33596 PR target/56591
33597 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
33598 output_operand_lossage message.
33599
33600 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
33601
33602 PR target/56470
33603 * arm.c (shift_op): Validate RTL pattern on the fly.
33604 (arm_print_operand, case 'S'): Don't use shift_operator to validate
33605 the RTL.
33606
33607 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33608
33609 PR target/56347
33610 * config/pa/pa.md (call_value): Check for calls to powf and direct to
33611 new call patterns that clobber %fr12.
33612 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
33613 split and postreload patterns.
33614 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
33615 registers %fr12 and %fr12R as call used.
33616
33617 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
33618
33619 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
33620 (canon_address, record_store, replace_read, check_mem_read_rtx,
33621 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
33622 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
33623 rest_of_handle_dse): Likewise.
33624
33625 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
33626
33627 PR middle-end/56524
33628 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
33629 Add base_optabs.
33630 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
33631 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
33632 (save_optabs_if_changed): Replace with...
33633 (init_tree_optimization_optabs): ...this.
33634 * optabs.c (save_optabs_if_changed): Rename to...
33635 (init_tree_optimization_optabs): ...this. Take the optimization node
33636 as argument. Do nothing if the base optabs are already correct.
33637 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
33638 to recompute optabs.
33639 * function.h (function): Remove optabs field.
33640 * function.c (invoke_set_current_function_hook): Call
33641 init_tree_optimization_optabs. Use the result to initialize
33642 this_fn_optabs.
33643
33644 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
33645
33646 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
33647 if GTMA_HAS_NO_INSTRUMENTATION.
33648 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
33649 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
33650 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
33651 * gimple-pretty-print.c (dump_gimple_transaction): Handle
33652 GTMA_HAS_NO_INSTRUMENTATION.
33653
33654 2013-03-08 Jakub Jelinek <jakub@redhat.com>
33655
33656 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
33657 libasan_preinit.o.
33658
33659 2013-03-08 Marek Polacek <polacek@redhat.com>
33660 Jakub Jelinek <jakub@redhat.com>
33661
33662 PR tree-optimization/56478
33663 * predict.c (is_comparison_with_loop_invariant_p): Change the
33664 type of loop_step to tree.
33665 (predict_loops): Adjust.
33666 (predict_iv_comparison): Perform the computations on double_ints.
33667
33668 2013-03-08 Richard Biener <rguenther@suse.de>
33669
33670 PR tree-optimization/56570
33671 * tree-cfg.c (verify_expr_location_1): Verify locations for
33672 DECL_DEBUG_EXPR.
33673 * tree-sra.c (create_access_replacement): Strip locations
33674 from DECL_DEBUG_EXPRs.
33675
33676 2013-03-08 Richard Biener <rguenther@suse.de>
33677
33678 * tree-inline.c (expand_call_inline): Do not associate
33679 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
33680 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
33681
33682 2013-03-08 Richard Biener <rguenther@suse.de>
33683
33684 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
33685 or block changes with -Og. Fix for location / block encoding
33686 changes and PHI arguments with locations.
33687
33688 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
33689
33690 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
33691 for all counters.
33692 (struct output_info): Likewise.
33693 (register_overhead): Remove bad gcc_assert.
33694 (bitmap_find_bit): If there is only a single bitmap element, do not
33695 count a miss as a search.
33696 (print_statistics): Update for counter type changes.
33697 (dump_bitmap_statistics): Likewise. Print headers such that they
33698 are properly lined up with the printed counters.
33699
33700 2013-03-07 Jakub Jelinek <jakub@redhat.com>
33701
33702 PR tree-optimization/56559
33703 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
33704 check that it has only a single use.
33705
33706 2013-03-07 Richard Biener <rguenther@suse.de>
33707
33708 * doc/invoke.texi (fwhole-program): Discourage use in combination
33709 with -flto.
33710
33711 2013-03-06 Jakub Jelinek <jakub@redhat.com>
33712
33713 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
33714
33715 PR tree-optimization/56539
33716 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
33717 instead of GSI_CONTINUE_LINKING as last argument to
33718 force_gimple_operand_gsi. Adjust function comment.
33719
33720 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
33721 aarch64-cores.def.
33722
33723 PR middle-end/56548
33724 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
33725 promoted mode, convert the result back to the original mode.
33726
33727 2013-03-06 Richard Biener <rguenther@suse.de>
33728
33729 PR middle-end/56294
33730 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
33731 (insert_updated_phi_nodes_compare_uids): New function.
33732 (update_ssa): Sort symbols_to_rename after UID before
33733 traversing it to insert PHI nodes.
33734
33735 2013-03-06 Richard Biener <rguenther@suse.de>
33736
33737 PR middle-end/50494
33738 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
33739 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
33740
33741 Revert
33742 2013-02-13 Richard Biener <rguenther@suse.de>
33743
33744 PR lto/50494
33745 * varasm.c (output_constant_def_1): Get the decl representing
33746 the constant as argument.
33747 (output_constant_def): Wrap output_constant_def_1.
33748 (make_decl_rtl): Use output_constant_def_1 with the decl
33749 representing the constant.
33750 (build_constant_desc): Optionally re-use a decl already
33751 representing the constant.
33752 (tree_output_constant_def): Adjust.
33753
33754 2013-03-06 Joey Ye <joey.ye@arm.com>
33755
33756 PR lto/50293
33757 * gcc.c (convert_white_space): New function.
33758 (main): Handles white space in function name.
33759
33760 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
33761
33762 PR target/56529
33763 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
33764 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
33765 to SH_DIV_CALL_TABLE for TARGET_SH2.
33766 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
33767 list.
33768 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
33769 call-table options.
33770
33771 2013-03-05 Sterling Augustine <saugustine@google.com>
33772 Cary Coutant <ccoutant@google.com>
33773
33774 PR debug/55364
33775 * dwarf2out.c (resolve_addr): Don't call
33776 remove_loc_list_addr_table_entries a second time for the same
33777 expression.
33778
33779 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33780
33781 PR debug/56510
33782 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
33783 (avoid_complex_debug_insns): New function.
33784 (expand_debug_locations): Call it.
33785
33786 PR rtl-optimization/56484
33787 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
33788 lifetimes of hard registers on small register class machines.
33789
33790 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33791
33792 * config/microblaze/microblaze-protos.h: Rename
33793 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
33794 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
33795 fast_interrupt.
33796 (microblaze_fast_interrupt_function_p): New function.
33797 (microblaze_is_interrupt_handler): Rename to
33798 microblaze_is_interrupt_variant and add fast_interrupt check.
33799 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
33800 (save_restore_insns): Likewise.
33801 (compute_frame_size): Likewise.
33802 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
33803 (microblaze_globalize_label): Likewise.
33804 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
33805 * config/microblaze/microblaze.md: Use wrapper
33806 microblaze_is_interrupt_variant.
33807
33808 2013-03-05 Kai Tietz <ktietz@redhat.com>
33809
33810 * sdbout.c (sdbout_one_type): Switch to current function's section
33811 supporting cold/hot.
33812
33813 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33814
33815 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
33816 -mxl-reorder.
33817
33818 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33819
33820 PR middle-end/56461
33821 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
33822 if VALGRIND_GET_VBITS is defined, temporarily make object
33823 memory all defined, and restore previous valgrind addressability
33824 and definability afterwards. Free this_object at the end.
33825
33826 PR middle-end/56461
33827 * lra.c (lra): Call lra_clear_live_ranges if live_p,
33828 right before calling lra_create_live_ranges, also call it
33829 when clearing live_p. Only call lra_clear_live_ranges
33830 at the end if live_p.
33831
33832 PR middle-end/56461
33833 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
33834
33835 2013-03-05 Richard Biener <rguenther@suse.de>
33836
33837 PR tree-optimization/56521
33838 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
33839 value-id.
33840
33841 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
33842
33843 PR c++/55135
33844 * except.h (remove_unreachable_eh_regions): New prototype.
33845 * except.c (remove_eh_handler_splicer): New function, split out
33846 of remove_eh_handler.
33847 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
33848 warning about running it on many EH regions one at a time.
33849 (remove_unreachable_eh_regions_worker): New function, walk the
33850 EH tree in depth-first order and remove non-marked regions.
33851 (remove_unreachable_eh_regions): New function.
33852 * tree-eh.c (mark_reachable_handlers): New function, split out
33853 from remove_unreachable_handlers.
33854 (remove_unreachable_handlers): Use mark_reachable_handlers and
33855 remove_unreachable_eh_regions.
33856 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
33857 and remove_unreachable_eh_regions.
33858
33859 2013-03-05 Richard Biener <rguenther@suse.de>
33860
33861 PR middle-end/56525
33862 * loop-init.c (fix_loop_structure): Remove loops in two stages,
33863 not freeing them until the end.
33864
33865 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33866
33867 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
33868
33869 2013-03-05 Richard Biener <rguenther@suse.de>
33870
33871 PR tree-optimization/56270
33872 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
33873 of loads after scheduling an SLP instance.
33874
33875 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33876
33877 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
33878 tic6x.exp.
33879 (check_gcc_parallelize): Run guality.exp as a separate job from
33880 vect.exp with unsorted.exp and $(dg_target_exps) separately from
33881 struct-layout-1.exp with stackalign.exp.
33882
33883 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
33884
33885 PR middle-end/56461
33886 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
33887 load_index sbitmap even if some bit in it isn't set.
33888
33889 PR middle-end/56461
33890 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
33891 (discover_iteration_bound_by_body_walk): Change queues to
33892 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
33893 spelling in comment. Call safe_push on queues[bound_index] directly.
33894 Release queues[queue_index] in every iteration unconditionally.
33895 Release bounds vector.
33896
33897 PR middle-end/56461
33898 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
33899 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
33900 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
33901 inner_phis vector.
33902
33903 2013-03-05 Richard Biener <rguenther@suse.de>
33904
33905 PR lto/56515
33906 * tree-inline.c (remap_blocks_to_null): New function.
33907 (expand_call_inline): When expanding a call stmt without
33908 an associated block inline remap all callee blocks to NULL.
33909
33910 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33911
33912 PR rtl-optimization/56494
33913 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33914 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33915 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33916
33917 PR middle-end/56461
33918 * sel-sched-ir.c (free_sched_pools): Release
33919 succs_info_pool.stack[succs_info_pool.max_top] vectors too
33920 if succs_info_pool.max_top isn't -1.
33921
33922 PR bootstrap/56509
33923 * opts.c (opts_obstack, opts_concat): Moved to...
33924 * opts-common.c (opts_obstack, opts_concat): ... here.
33925
33926 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33927
33928 PR middle-end/56461
33929 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33930
33931 2013-03-04 Martin Jambor <mjambor@suse.cz>
33932
33933 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33934 all appropriate places.
33935
33936 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
33937
33938 PR tree-optimization/56424
33939 * ipa-split.c (split_function): Do not set the RSO flag if result is
33940 not by reference and its type is a register type.
33941
33942 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
33943
33944 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33945 (microblaze_legitimate_pic_operand): Likewise
33946 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33947 new function microblaze_legitimate_pic_operand
33948 * config/microblaze/microblaze-protos.h
33949 (microblaze_legitimate_pic_operand): Declare.
33950
33951 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33952
33953 * config/microblaze/predicates.md (call_insn_simple_operand):
33954 New predicate for supported rtx code types.
33955 * config/microblaze/microblaze.md (call_internal1): Use
33956 call_insn_simple_operand predicate.
33957
33958 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33959
33960 PR middle-end/56461
33961 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33962 partitions.ordered_remove.
33963
33964 PR middle-end/56461
33965 * tree-vect-stmts.c (vectorizable_conversion): Don't call
33966 vec_oprnds0.create (1) for modifier == NONE.
33967
33968 PR middle-end/56461
33969 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33970 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33971 vec_oprnds1 right before pushing anything to it for
33972 scalar_shift_arg.
33973
33974 PR middle-end/56461
33975 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33976 set nbbs to 0 instead of having separate code path.
33977 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33978 instead of false as last argument if returning NULL.
33979
33980 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
33981
33982 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33983 the attribute is now called "target" instead of "option".
33984 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33985 * doc/tm.texi.in (Target Attributes): Likewise document the correct
33986 attribute/pragma name for TARGET_OPTION_VALID_P and
33987 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
33988 * doc/tm.texi: Regenerated.
33989
33990 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
33991
33992 * config/microblaze/microblaze.c:
33993 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33994 * config/microblaze/microblaze.h: Add -mxl-reorder to
33995 DRIVER_SELF_SPECS.
33996 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33997 instructions emitted if TARGET_REORDER.
33998 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33999 or 0 for -m/-mno case, but initialises as 2 to detect default use case
34000 separately.
34001
34002 2013-03-01 Xinliang David Li <davidxl@google.com>
34003
34004 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
34005 walk length.
34006
34007 2013-03-01 Jakub Jelinek <jakub@redhat.com>
34008
34009 PR middle-end/56461
34010 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
34011 vector even when returning true. Fix up function comment formatting.
34012
34013 PR middle-end/56461
34014 * ira-build.c (ira_loop_nodes_count): New variable.
34015 (create_loop_tree_nodes): Initialize it.
34016 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
34017
34018 PR middle-end/56461
34019 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
34020 method on dr_chain and result_chain.
34021 * tree-vect-stmts.c (vectorizable_store): Only call
34022 result_chain.create if j == 0.
34023
34024 PR middle-end/56461
34025 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
34026 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
34027 before overwriting it.
34028
34029 2013-03-01 Tobias Burnus <burnus@net-b.de>
34030
34031 * doc/extended.texi (C Extensions): Change order in @menu
34032 to match @node.
34033 (Other MIPS Built-in Functions): Move last MIPS entry before
34034 "picoChip Built-in Functions".
34035 (SH Built-in Functions): Move after RX Built-in Functions.
34036 * doc/gcc.texi (Introduction): Change order in @menu
34037 to match @node.
34038 * doc/md.texi (Constraints): Ditto.
34039 * gty.texi (Type Information): Ditto.
34040 (User-provided marking routines for template types): Make
34041 subsection.
34042 * doc/invoke.texi (AArch64 Options): Move before
34043 "Adapteva Epiphany Options".
34044
34045 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
34046 Jakub Jelinek <jakub@redhat.com>
34047
34048 PR sanitizer/56454
34049 * asan.c (gate_asan): Lookup no_sanitize_address instead of
34050 no_address_safety_analysis attribute.
34051 * doc/extend.texi (no_address_safety_attribute): Rename to
34052 no_sanitize_address attribute, mention no_address_safety_analysis
34053 attribute as deprecated alias.
34054
34055 2013-02-28 Jakub Jelinek <jakub@redhat.com>
34056
34057 PR middle-end/56461
34058 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
34059 type to vec<vec<tree> > *.
34060 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
34061 to be vec<tree> instead of vec<tree> *, set vec_defs
34062 to vNULL and call vec_defs.create (number_of_vects), adjust other
34063 uses of vec_defs.
34064 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
34065 vectorizable_condition): Adjust vect_get_slp_defs callers.
34066
34067 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
34068
34069 * config/aarch64/aarch64.c
34070 (aarch64_float_const_representable): Remove unused variable.
34071
34072 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
34073
34074 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
34075
34076 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
34077
34078 * config/aarch64/aarch64-builtins.c
34079 (aarch64_init_simd_builtins): Make static.
34080
34081 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
34082
34083 * config/aarch64/aarch64.c
34084 (aarch64_simd_make_constant): Make static.
34085
34086 2013-02-28 Martin Jambor <mjambor@suse.cz>
34087
34088 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
34089 with no initialization to the RHS of debug statements.
34090
34091 2013-02-28 Martin Jambor <mjambor@suse.cz>
34092
34093 PR tree-optimization/56294
34094 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
34095 Adjust dumping.
34096 (get_access_replacement): Do not call create_access_replacement.
34097 Assert a replacement exists.
34098 (get_repl_default_def_ssa_name): Create the replacement declaration
34099 itself.
34100
34101 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34102
34103 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
34104 final_end_function.
34105
34106 2013-02-28 Marek Polacek <polacek@redhat.com>
34107
34108 PR rtl-optimization/56466
34109 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
34110 if we're changing a loop.
34111 (peel_loops_completely): Likewise.
34112
34113 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
34114
34115 PR c++/55813
34116 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
34117
34118 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
34119
34120 PR target/56445
34121 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
34122 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
34123 INTX_FTYPE_FX, FX_FTYPE_INTX.
34124 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
34125
34126 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
34127
34128 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
34129 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
34130 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
34131 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
34132 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
34133 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
34134 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
34135 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
34136 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
34137 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
34138 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
34139 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
34140 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
34141 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
34142 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
34143 (avrxmega6): Increase max flash segments from 5 to 6.
34144 * config/avr/t-multilib: Regenerate.
34145 * config/avr/avr-tables.opt: Regenerate.
34146 * doc/avr-mmcu.texi: Regenerate.
34147
34148 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
34149
34150 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
34151 (avr_device_to_arch): Rename to avr_device_to_ld.
34152 (avr_device_to_as): New prototype.
34153 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
34154 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
34155 * config/avr/driver-avr.c (avr_device_to_as): New.
34156 (avr_device_to_arch): Rename to avr_device_to_ld.
34157
34158 2013-02-27 Jakub Jelinek <jakub@redhat.com>
34159
34160 PR middle-end/56461
34161 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
34162 method on dr_chain and result_chain.
34163
34164 PR middle-end/56461
34165 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
34166 pointer_set_destroy on not_executed_last_iteration.
34167
34168 PR middle-end/56461
34169 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
34170
34171 PR middle-end/56461
34172 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
34173 FOR_EACH_DEFINED_FUNCTION when freeing state.
34174
34175 PR middle-end/56461
34176 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
34177 pool_free.
34178 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
34179 overwriting it.
34180
34181 PR middle-end/56461
34182 * ipa-cp.c (decide_whether_version_node): Call vec_free on
34183 known_aggs[i].items and release known_aggs vector.
34184
34185 PR middle-end/56461
34186 * ipa-reference.c (propagate): Free node_info even for alias nodes.
34187
34188 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34189
34190 * config/microblaze/microblaze.c (microblaze_emit_compare):
34191 Use xor for EQ/NE comparisions.
34192 * config/microblaze/microblaze.md (cstoresf4): Add constraints
34193 (cbranchsf4): Adjust operator to comparison_operator.
34194
34195 2013-02-27 Jakub Jelinek <jakub@redhat.com>
34196
34197 PR middle-end/56461
34198 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
34199 vector.
34200 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
34201 vec_safe_push, always update *slot.
34202 (redirect_edge_var_map_clear): Use vec_free.
34203 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
34204 (free_var_map_entry): Use vec_free.
34205 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
34206 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
34207
34208 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
34209
34210 PR middle-end/45472
34211 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
34212 when the may_trap_p bit of the exprs being merged differs.
34213 Reorder tests for speculativeness in the logical and operator.
34214
34215 2013-02-27 Jakub Jelinek <jakub@redhat.com>
34216
34217 * incpath.c (add_standard_paths): Use reconcat instead of concat
34218 where appropriate and avoid leaking memory.
34219
34220 * opts.h: Include obstack.h.
34221 (opts_concat): New prototype.
34222 (opts_obstack): New declaration.
34223 * opts.c (opts_concat): New function.
34224 (opts_obstack): New variable.
34225 (init_options_struct): Call gcc_init_obstack on opts_obstack.
34226 (finish_options): Use opts_concat instead of concat
34227 and XOBNEWVEC instead of XNEWVEC.
34228 * opts-common.c (generate_canonical_option, decode_cmdline_option,
34229 generate_option): Likewise.
34230 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
34231 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
34232
34233 PR target/56455
34234 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
34235 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
34236
34237 2013-02-26 Jakub Jelinek <jakub@redhat.com>
34238
34239 PR middle-end/56461
34240 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
34241
34242 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
34243
34244 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
34245 (arm_block_move_unaligned_straight): Likewise.
34246 (arm_adjust_block_mem): Likewise.
34247
34248 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
34249
34250 PR target/48901
34251 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
34252 temp, cond and label.
34253 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
34254
34255 PR target/52500
34256 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
34257 * config/c6x/c6x.h (dbx_register_map): Update declaration.
34258
34259 PR target/52501
34260 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
34261 of prologue/epilogue functions.
34262
34263 PR target/52550
34264 * config/tilegx/tilegx.c (tilegx_expand_prologue):
34265 Remove unused variable cfa_offset.
34266 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
34267
34268 PR target/54639
34269 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
34270 type promotion to unsigned.
34271
34272 PR target/54640
34273 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
34274 for HOST_WIDE_INT of 32 bit / same size as int.
34275 (arm_block_move_unaligned_straight): Likewise.
34276 (arm_adjust_block_mem): Likewise.
34277
34278 PR target/54662
34279 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
34280 ALL_CFLAGS.
34281
34282 2013-02-26 Marek Polacek <polacek@redhat.com>
34283
34284 PR tree-optimization/56426
34285 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
34286
34287 2013-02-26 Richard Biener <rguenther@suse.de>
34288
34289 PR target/56444
34290 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
34291 unused variable loops.
34292
34293 2013-02-26 Jakub Jelinek <jakub@redhat.com>
34294
34295 PR tree-optimization/56448
34296 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
34297 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
34298 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
34299 later operands of the references, or even first operand for
34300 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
34301
34302 PR tree-optimization/56443
34303 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
34304 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
34305 to type_for_mode langhook.
34306
34307 2013-02-25 Matt Turner <mattst88@gmail.com>
34308
34309 * doc/invoke.texi: Document r4700.
34310
34311 2013-02-25 Richard Biener <rguenther@suse.de>
34312
34313 PR tree-optimization/56175
34314 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
34315 split out from ...
34316 (simplify_bitwise_binary): ... here. Also guard the conversion
34317 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
34318
34319 2013-02-25 Catherine Moore <clm@codesourcery.com>
34320
34321 Revert:
34322 2013-02-24 Catherine Moore <clm@codesourcery.com>
34323 Maciej W. Rozycki <macro@codesourcery.com>
34324 Tom de Vries <tom@codesourcery.com>
34325 Nathan Sidwell <nathan@codesourcery.com>
34326 Iain Sandoe <iain@codesourcery.com>
34327 Nathan Froyd <froydnj@codesourcery.com>
34328 Chao-ying Fu <fu@mips.com>
34329
34330 * doc/extend.texi: (micromips, nomicromips, nocompression):
34331 Document new function attributes.
34332 * doc/invoke.texi (minterlink-compressed, mmicromips,
34333 m14k, m14ke, m14kec): Document new options.
34334 (minterlink-mips16): Update documentation.
34335 * doc/md.texi (ZC, ZD): Document new constraints.
34336 * configure.ac (gcc_cv_as_micromips): Check if linker
34337 supports the .set micromips directive.
34338 * configure: Regenerate.
34339 * config.in: Regenerate.
34340 * config/mips/mips-tables.opt: Regenerate.
34341 * config/mips/micromips.md: New file.
34342 * constraints.md (ZC, AD): New constraints.
34343 * config/mips/predicates.md (movep_src_register): New predicate.
34344 (movep_src_operand): New predicate.
34345 (non_volatile_mem_operand): New predicate.
34346 * config/mips/mips.md (multimem): New type.
34347 (length): Differentiate between 17-bit and 18-bit branch offsets.
34348 (MOVEP1, MOVEP2): New mode iterator.
34349 (mov_<load>l): Use ZC constraint.
34350 (mov_<load>r): Likewise.
34351 (mov_<store>l): Likewise.
34352 (mov_<store>r): Likewise.
34353 (*branch_equality<mode>_inverted): Add microMIPS support.
34354 (*branch_equality<mode>): Likewise.
34355 (*jump_absolute): Likewise.
34356 (indirect_jump_<mode>): Likewise.
34357 (tablejump_<mode>): Likewise.
34358 (<optab>_internal): Likewise.
34359 (sibcall_internal): Likewise.
34360 (sibcall_value_internal): Likewise.
34361 (prefetch): Use constraint ZD.
34362 * config/mips/mips.opt (minterlink-compressed): New option.
34363 (minterlink-mips16): Now an alias for minterlink-compressed.
34364 (mmicromips): New option.
34365 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34366 (compare_and_swap_12): Likewise.
34367 (sync_add<mode>): Likewise.
34368 (sync_<optab>_12): Likewise.
34369 (sync_old_<optab>_12): Likewise.
34370 (sync_new_<optab>_12): Likewise.
34371 (sync_nand_12): Likewise.
34372 (sync_old_nand_12): Likewise.
34373 (sync_new_nand_12): Likewise.
34374 (sync_sub<mode>): Likewise.
34375 (sync_old_add<mode>): Likewise.
34376 (sync_old_sub<mode>): Likewise.
34377 (sync_new_add<mode>): Likewise.
34378 (sync_new_sub<mode>): Likewise.
34379 (sync_<optab><mode>): Likewise.
34380 (sync_old_<optab><mode>): Likewise.
34381 (sync_new_<optab><mode>): Likewise.
34382 (sync_nand<mode>): Likewise.
34383 (sync_old_nand<mode>): Likewise.
34384 (sync_new_nand<mode>): Likewise.
34385 (sync_lock_test_and_set<mode>): Likewise.
34386 (test_and_set_12): Likewise.
34387 (atomic_compare_and_swap<mode>): Likewise.
34388 (atomic_exchange<mode>_llsc): Likewise.
34389 (atomic_fetch_add<mode>_llsc): Likewise.
34390 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34391 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34392 (umips_save_restore_pattern_p): Likewise.
34393 (umips_load_store_pair_p): Likewise.
34394 (umips_output_load_store_pair): Likewise.
34395 (umips_movep_target_p): Likewise.
34396 (umips_12bit_offset_address_p): Likewise.
34397 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34398 (mips_base_mips16): Rename this...
34399 (mips_base_compression_flags): ...to this. Update all uses.
34400 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34401 (mips_mips16_decl_p): Delete.
34402 (mips_nomips16_decl_p): Delete.
34403 (mips_get_compress_on_flags): New function.
34404 (mips_get_compress_off_flags): New function.
34405 (mips_get_compress_mode): New function.
34406 (mips_get_compress_on_name): New function.
34407 (mips_get_compress_off_name): New function.
34408 (mips_insert_attributes): Support multiple compression types.
34409 (mips_merge_decl_attributes): Likewise.
34410 (umips_12bit_offset_address_p): New function.
34411 (mips_start_function_definition): Emit .set micromips directive.
34412 (mips_call_may_need_jalx_p): New function.
34413 (mips_function_ok_for_sibcall): Add microMIPS support.
34414 (mips_print_operand_punctuation): Support short delay slots and
34415 compact jumps.
34416 (umips_swm_mask, umips_swm_encoding): New.
34417 (umips_build_save_restore): New function.
34418 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34419 (was_mips16_p): Remove.
34420 (old_compression_mode): New.
34421 (mips_set_compression_mode): New function.
34422 (mips_set_current_function): Add microMIPS support.
34423 (mips_option_override): Likewise.
34424 (umips_save_restore_pattern_p): New function.
34425 (umips_output_save_restore): New function.
34426 (umips_load_store_pair_p_1): New function.
34427 (umips_load_store_pair_p): New function.
34428 (umips_output_load_store_pair_1): New function.
34429 (umips_output_load_store_pair): New function.
34430 (umips_movep_target_p) New function.
34431 (mips_prepare_pch_save): Add microMIPS support.
34432 * config/mips/mips.h (TARGET_COMPRESSION): New.
34433 (TARGET_CPU_CPP_BUILTINS): Update macro
34434 to use new compression flags and to support microMIPS.
34435 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34436 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34437 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34438 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34439 (ASM_SPEC): Support mmicromips and mno-micromips.
34440 (M16STORE_REG_P): New macro.
34441 (MIPS_CALL): Support TARGET_MICROMIPS.
34442 (MICROMIPS_J): New macro.
34443 (mips_base_mips16): Rename this...
34444 (mips_base_compression_flags): ...to this.
34445 (UMIPS_12BIT_OFFSET_P): New macro.
34446 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34447 (MULTILIB_DIRNAMES): Likewise.
34448
34449 2013-02-25 Tom de Vries <tom@codesourcery.com>
34450
34451 PR rtl-optimization/56131
34452 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
34453 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
34454 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
34455
34456 2013-02-25 Tobias Burnus <burnus@net-b.de>
34457
34458 * doc/invoke.texi (-fsanitize=): Move from optimization
34459 to debugging options.
34460
34461 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
34462
34463 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
34464
34465 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
34466 Alexander Monakov <amonakov@ispras.ru>
34467
34468 PR middle-end/56077
34469 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
34470 flush pending lists also on non-jumps. Adjust comment.
34471
34472 2013-02-24 Catherine Moore <clm@codesourcery.com>
34473 Maciej W. Rozycki <macro@codesourcery.com>
34474 Tom de Vries <tom@codesourcery.com>
34475 Nathan Sidwell <nathan@codesourcery.com>
34476 Iain Sandoe <iain@codesourcery.com>
34477 Nathan Froyd <froydnj@codesourcery.com>
34478 Chao-ying Fu <fu@mips.com>
34479
34480 * doc/extend.texi: (micromips, nomicromips, nocompression):
34481 Document new function attributes.
34482 * doc/invoke.texi (minterlink-compressed, mmicromips,
34483 m14k, m14ke, m14kec): Document new options.
34484 (minterlink-mips16): Update documentation.
34485 * doc/md.texi (ZC, ZD): Document new constraints.
34486 * configure.ac (gcc_cv_as_micromips): Check if linker
34487 supports the .set micromips directive.
34488 * configure: Regenerate.
34489 * config.in: Regenerate.
34490 * config/mips/mips-tables.opt: Regenerate.
34491 * config/mips/micromips.md: New file.
34492 * constraints.md (ZC, AD): New constraints.
34493 * config/mips/predicates.md (movep_src_register): New predicate.
34494 (movep_src_operand): New predicate.
34495 (non_volatile_mem_operand): New predicate.
34496 * config/mips/mips.md (multimem): New type.
34497 (length): Differentiate between 17-bit and 18-bit branch offsets.
34498 (MOVEP1, MOVEP2): New mode iterator.
34499 (mov_<load>l): Use ZC constraint.
34500 (mov_<load>r): Likewise.
34501 (mov_<store>l): Likewise.
34502 (mov_<store>r): Likewise.
34503 (*branch_equality<mode>_inverted): Add microMIPS support.
34504 (*branch_equality<mode>): Likewise.
34505 (*jump_absolute): Likewise.
34506 (indirect_jump_<mode>): Likewise.
34507 (tablejump_<mode>): Likewise.
34508 (<optab>_internal): Likewise.
34509 (sibcall_internal): Likewise.
34510 (sibcall_value_internal): Likewise.
34511 (prefetch): Use constraint ZD.
34512 * config/mips/mips.opt (minterlink-compressed): New option.
34513 (minterlink-mips16): Now an alias for minterlink-compressed.
34514 (mmicromips): New option.
34515 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34516 (compare_and_swap_12): Likewise.
34517 (sync_add<mode>): Likewise.
34518 (sync_<optab>_12): Likewise.
34519 (sync_old_<optab>_12): Likewise.
34520 (sync_new_<optab>_12): Likewise.
34521 (sync_nand_12): Likewise.
34522 (sync_old_nand_12): Likewise.
34523 (sync_new_nand_12): Likewise.
34524 (sync_sub<mode>): Likewise.
34525 (sync_old_add<mode>): Likewise.
34526 (sync_old_sub<mode>): Likewise.
34527 (sync_new_add<mode>): Likewise.
34528 (sync_new_sub<mode>): Likewise.
34529 (sync_<optab><mode>): Likewise.
34530 (sync_old_<optab><mode>): Likewise.
34531 (sync_new_<optab><mode>): Likewise.
34532 (sync_nand<mode>): Likewise.
34533 (sync_old_nand<mode>): Likewise.
34534 (sync_new_nand<mode>): Likewise.
34535 (sync_lock_test_and_set<mode>): Likewise.
34536 (test_and_set_12): Likewise.
34537 (atomic_compare_and_swap<mode>): Likewise.
34538 (atomic_exchange<mode>_llsc): Likewise.
34539 (atomic_fetch_add<mode>_llsc): Likewise.
34540 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34541 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34542 (umips_save_restore_pattern_p): Likewise.
34543 (umips_load_store_pair_p): Likewise.
34544 (umips_output_load_store_pair): Likewise.
34545 (umips_movep_target_p): Likewise.
34546 (umips_12bit_offset_address_p): Likewise.
34547 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34548 (mips_base_mips16): Rename this...
34549 (mips_base_compression_flags): ...to this. Update all uses.
34550 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34551 (mips_mips16_decl_p): Delete.
34552 (mips_nomips16_decl_p): Delete.
34553 (mips_get_compress_on_flags): New function.
34554 (mips_get_compress_off_flags): New function.
34555 (mips_get_compress_mode): New function.
34556 (mips_get_compress_on_name): New function.
34557 (mips_get_compress_off_name): New function.
34558 (mips_insert_attributes): Support multiple compression types.
34559 (mips_merge_decl_attributes): Likewise.
34560 (umips_12bit_offset_address_p): New function.
34561 (mips_start_function_definition): Emit .set micromips directive.
34562 (mips_call_may_need_jalx_p): New function.
34563 (mips_function_ok_for_sibcall): Add microMIPS support.
34564 (mips_print_operand_punctuation): Support short delay slots and
34565 compact jumps.
34566 (umips_swm_mask, umips_swm_encoding): New.
34567 (umips_build_save_restore): New function.
34568 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34569 (was_mips16_p): Remove.
34570 (old_compression_mode): New.
34571 (mips_set_compression_mode): New function.
34572 (mips_set_current_function): Add microMIPS support.
34573 (mips_option_override): Likewise.
34574 (umips_save_restore_pattern_p): New function.
34575 (umips_output_save_restore): New function.
34576 (umips_load_store_pair_p_1): New function.
34577 (umips_load_store_pair_p): New function.
34578 (umips_output_load_store_pair_1): New function.
34579 (umips_output_load_store_pair): New function.
34580 (umips_movep_target_p) New function.
34581 (mips_prepare_pch_save): Add microMIPS support.
34582 * config/mips/mips.h (TARGET_COMPRESSION): New.
34583 (TARGET_CPU_CPP_BUILTINS): Update macro
34584 to use new compression flags and to support microMIPS.
34585 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34586 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34587 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34588 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34589 (ASM_SPEC): Support mmicromips and mno-micromips.
34590 (M16STORE_REG_P): New macro.
34591 (MIPS_CALL): Support TARGET_MICROMIPS.
34592 (MICROMIPS_J): New macro.
34593 (mips_base_mips16): Rename this...
34594 (mips_base_compression_flags): ...to this.
34595 (UMIPS_12BIT_OFFSET_P): New macro.
34596 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34597 (MULTILIB_DIRNAMES): Likewise.
34598
34599 2013-02-24 Jakub Jelinek <jakub@redhat.com>
34600
34601 PR target/52555
34602 * target-globals.c (save_target_globals): For init_reg_sets and
34603 target_reinit remporarily set this_fn_optabs to this_target_optabs.
34604
34605 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
34606
34607 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
34608 * config/aarch64/t-aarch64
34609 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
34610
34611 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
34612
34613 PR inline-asm/56148
34614 * lra-constraints.c (process_alt_operands): Reload operand
34615 conflicting with earlier clobber only if no more other conflicting
34616 operands.
34617
34618 2013-02-22 Jakub Jelinek <jakub@redhat.com>
34619
34620 PR sanitizer/56393
34621 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
34622 if not linking a shared library.
34623
34624 2013-02-22 Seth LaForge <sethml@google.com>
34625
34626 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
34627
34628 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
34629
34630 * config/arm/arm.md (split for extendsidi): Update condition.
34631 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
34632 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
34633 (qhs_zextenddi_cstr): Likewise.
34634
34635 2013-02-21 Jakub Jelinek <jakub@redhat.com>
34636
34637 PR middle-end/56420
34638 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
34639 avoid signed wrapping.
34640 (expand_mult): Handle properly multiplication by
34641 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
34642 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
34643 in the compiler if coeff is HOST_WIDE_INT_MIN.
34644 (expand_divmod): Don't make ext_op1 static, change it's type to
34645 uhwi. Avoid undefined behavior in -INTVAL (op1).
34646
34647 PR rtl-optimization/50339
34648 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
34649 field.
34650 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
34651 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
34652 into splitting_ashiftrt field.
34653 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
34654 ASHIFTRT.
34655 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
34656 choices.
34657
34658 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
34659
34660 PR middle-end/56108
34661 * trans-mem.c (execute_tm_mark): Do not expand transactions that
34662 are sure to go irrevocable.
34663
34664 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
34665
34666 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
34667 scalars are valid operands.
34668
34669 2013-02-21 Martin Jambor <mjambor@suse.cz>
34670
34671 PR tree-optimization/56310
34672 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
34673 only matching indices and non-negative final offsets.
34674 (intersect_aggregates_with_edge): Pass src_idx to
34675 agg_replacements_to_vector. Pass src_idx insstead of index to
34676 intersect_with_agg_replacements.
34677
34678 2013-02-21 Martin Jambor <mjambor@suse.cz>
34679
34680 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
34681 instead of hard-wired defaults.
34682
34683 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
34684
34685 * doc/invoke.texi (MIPS Options): Update documentation of the
34686 floating-point multiply-accumulate instruction restrictions.
34687
34688 2013-02-21 Kostya Serebryany <kcc@google.com>
34689
34690 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
34691 asan_shadow_offset on x86_64 linux.
34692
34693 2013-02-21 Richard Biener <rguenther@suse.de>
34694
34695 PR tree-optimization/56415
34696 Revert
34697 2013-02-11 Richard Biener <rguenther@suse.de>
34698
34699 PR tree-optimization/56273
34700 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34701 first VRP run.
34702
34703 2013-02-21 Jakub Jelinek <jakub@redhat.com>
34704
34705 PR bootstrap/56258
34706 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
34707 instead of @itemx.
34708
34709 PR inline-asm/56405
34710 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
34711 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
34712
34713 2013-02-20 Jan Hubicka <jh@suse.cz>
34714
34715 PR tree-optimization/56265
34716 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
34717 when target is referenced for first time.
34718
34719 2013-02-20 Richard Biener <rguenther@suse.de>
34720
34721 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
34722 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
34723 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
34724 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
34725 not return anything.
34726 (rename_ssa_copies): Do not remove unused locals.
34727 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
34728 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
34729 * passes.c (execute_function_todo): Do not schedule unused locals
34730 removal if cleanup_tree_cfg did something.
34731 * tree-ssa-live.c (remove_unused_locals): Dump statistics
34732 about the number of removed locals.
34733
34734 2013-02-20 Richard Biener <rguenther@suse.de>
34735
34736 PR tree-optimization/56398
34737 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
34738
34739 2013-02-20 Martin Jambor <mjambor@suse.cz>
34740
34741 PR tree-optimization/55334
34742 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
34743 restricted pointers to arrays.
34744
34745 2013-02-20 Richard Biener <rguenther@suse.de>
34746 Jakub Jelinek <jakub@redhat.com>
34747
34748 PR tree-optimization/56396
34749 * tree-ssa-ccp.c (n_const_val): New static variable.
34750 (get_value): Return NULL for SSA names we don't have a lattice
34751 entry for.
34752 (ccp_initialize): Initialize n_const_val.
34753 * tree-ssa-copy.c (n_copy_of): New static variable.
34754 (init_copy_prop): Initialize n_copy_of.
34755 (get_value): Return NULL_TREE for SSA names we don't have a
34756 lattice entry for.
34757
34758 2013-02-20 Martin Jambor <mjambor@suse.cz>
34759
34760 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
34761
34762 2013-02-20 Richard Biener <rguenther@suse.de>
34763
34764 * genpreds.c (write_lookup_constraint): Do not compare first
34765 letter of the constraint again.
34766
34767 2013-02-20 Richard Biener <rguenther@suse.de>
34768
34769 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
34770 and ceil_log2.
34771 (get_use_iv_cost): Terminate hashtable walk when coming across
34772 an empty entry.
34773
34774 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
34775
34776 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
34777 reassociation for avx2 targets.
34778
34779 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34780
34781 * config/microblaze/microblaze.c: microblaze_has_clz = 0
34782 Add version check for v8.10.a to enable microblaze_has_clz
34783 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
34784 version and TARGET_PATTERN_COMPARE check
34785 * config/microblaze/microblaze.md: New clzsi2 instruction
34786
34787 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34788
34789 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
34790 function before branching.
34791
34792 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34793
34794 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
34795 DUMP_INSN_RTX_UID.
34796 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
34797
34798 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34799
34800 PR middle-end/55889
34801 * sel-sched.c: Include ira.h.
34802 (implicit_clobber_conflict_p): New function.
34803 (moveup_expr): Use it.
34804 * Makefile.in (sel-sched.o): Depend on ira.h.
34805
34806 2013-02-19 Richard Biener <rguenther@suse.de>
34807
34808 PR tree-optimization/56384
34809 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
34810 (vn_hash_type): Split out from ...
34811 (vn_hash_constant_with_type): ... here.
34812 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
34813 (vn_phi_eq): Compare types from vn_phi_s structure.
34814 (vn_phi_lookup): Populate vn_phi_s type.
34815 (vn_phi_insert): Likewise.
34816
34817 2013-02-19 Jakub Jelinek <jakub@redhat.com>
34818
34819 PR tree-optimization/56350
34820 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
34821 if haven't found reduction or nested cycle operand, rather than
34822 asserting we must find it.
34823
34824 PR tree-optimization/56381
34825 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
34826 to fold_build3.
34827
34828 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
34829 Jakub Jelinek <jakub@redhat.com>
34830
34831 PR target/52555
34832 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
34833 (swap_optab_enable): Same.
34834 (init_all_optabs): Use argument instead of global.
34835 * tree.h (struct tree_optimization_option): New field target_optabs.
34836 * expr.h (init_all_optabs): Add argument to prototype.
34837 (TREE_OPTIMIZATION_OPTABS): New.
34838 (save_optabs_if_changed): Protoize.
34839 * optabs.h: Declare this_fn_optabs.
34840 * optabs.c (save_optabs_if_changed): New.
34841 Declare this_fn_optabs.
34842 (init_optabs): Add argument to init_all_optabs() call.
34843 * function.c (invoke_set_current_function_hook): Handle per
34844 function optabs.
34845 * function.h (struct function): New field optabs.
34846 * config/mips/mips.c (mips_set_mips16_mode): Handle when
34847 optimization_current_node has changed.
34848 * target-globals.h (save_target_globals_default_opts): Protoize.
34849 * target-globals.c (save_target_globals_default_opts): New.
34850
34851 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34852
34853 PR target/56347
34854 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
34855 registers %fr12 and %fr12R as call used.
34856
34857 PR target/56214
34858 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
34859 and HImode, require all displacements to be an integer multiple of
34860 their mode size.
34861 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
34862 only allow QImode and HImode when reload is in progress and strict is
34863 true. Likewise for symbolic addresses. Use base14_operand to check
34864 displacements in REG+BASE addresses.
34865
34866 2013-02-18 Richard Biener <rguenther@suse.de>
34867
34868 PR tree-optimization/56366
34869 * tree-vect-loop.c (get_initial_def_for_induction): Properly
34870 handle sign-conversion of outer-loop initial induction value.
34871
34872 2013-02-18 Richard Biener <rguenther@suse.de>
34873
34874 PR middle-end/56349
34875 * cfghooks.c (merge_blocks): If we merge a latch into another
34876 block adjust references to it.
34877 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
34878 (verify_loop_structure): Verify that a recorded latch is in fact
34879 a latch.
34880
34881 2013-02-18 Richard Biener <rguenther@suse.de>
34882
34883 PR tree-optimization/56321
34884 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
34885 order SSA name release and virtual operand unlinking.
34886
34887 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34888
34889 * config/microblaze/microblaze.md (save_stack_block): Define.
34890 (restore_stack_block): Likewise.
34891
34892 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34893
34894 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
34895 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
34896 * config/microblaze/microblaze.c (microblaze_option_override):
34897 Bail out early for PIC modes when target does not support PIC.
34898
34899 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34900
34901 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
34902 Replace with a microblaze version.
34903 (microblaze_trampoline_init): Adapt for microblaze.
34904 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
34905 microblaze.
34906
34907 2013-02-16 Jakub Jelinek <jakub@redhat.com>
34908 Dodji Seketeli <dodji@redhat.com>
34909
34910 PR asan/56330
34911 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
34912 (instrument_mem_region_access): Do not forget to always put
34913 instrumentation of the of 'base' and 'base + len' in a "if (len !=
34914 0) statement, even for cases where either 'base' or 'base + len'
34915 are not instrumented -- because they have been previously
34916 instrumented. Simplify the logic by putting all the statements
34917 instrument 'base + len' inside a sequence, and then insert that
34918 sequence right before the current insertion point. Then, to
34919 instrument 'base + len', just get an iterator on that statement.
34920 And do not forget to update the pointer to iterator the function
34921 received as argument.
34922
34923 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
34924
34925 PR rtl-optimization/56348
34926 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34927
34928 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
34929
34930 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34931 (clean_graph_dump_file): Pass base to start_graph_dump.
34932
34933 2013-02-14 Richard Henderson <rth@redhat.com>
34934
34935 PR target/55941
34936 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34937
34938 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
34939
34940 * collect2-aix.h: Define F_LOADONLY.
34941
34942 2013-02-14 Richard Biener <rguenther@suse.de>
34943
34944 PR lto/50494
34945 * varasm.c (output_constant_def_1): Get the decl representing
34946 the constant as argument.
34947 (output_constant_def): Wrap output_constant_def_1.
34948 (make_decl_rtl): Use output_constant_def_1 with the decl
34949 representing the constant.
34950 (build_constant_desc): Optionally re-use a decl already
34951 representing the constant.
34952 (tree_output_constant_def): Adjust.
34953
34954 2013-02-14 Dodji Seketeli <dodji@redhat.com>
34955
34956 Fix an asan crash
34957 * asan.c (instrument_builtin_call): Really put the length of the
34958 second source argument into src1_len.
34959
34960 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34961
34962 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34963 argument. If it is false, don't create edge from then_bb to
34964 fallthru_bb.
34965 (insert_if_then_before_iter): Pass true to it.
34966 (build_check_stmt): Pass false to it.
34967 (transform_statements): Flush hash table only on extended basic
34968 block boundaries, rather than at the beginning of every bb.
34969 Don't flush hash table on nonfreeing_call_p calls.
34970 * tree-flow.h (nonfreeing_call_p): New prototype.
34971 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34972
34973 2013-02-13 David S. Miller <davem@davemloft.net>
34974
34975 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34976
34977 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
34978
34979 PR target/56184
34980 * ira.c (max_regno_before_ira): Move from ...
34981 (ira): ... here.
34982 (fix_reg_equiv_init): Use max_regno_before_ira instead of
34983 vec_safe_length.
34984
34985 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34986
34987 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34988
34989 2013-02-13 Richard Biener <rguenther@suse.de>
34990
34991 PR lto/56295
34992 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34993 globals in MEM_REFs.
34994
34995 2013-02-13 Richard Biener <rguenther@suse.de>
34996
34997 * loop-init.c (loop_optimizer_init): Clear loop state when
34998 re-initializing preserved loops.
34999 * loop-unswitch.c (unswitch_single_loop): Return whether
35000 we unswitched the loop. Do not verify loop state here.
35001 (unswitch_loops): When we unswitched a loop discover new loops.
35002
35003 2013-02-13 Kostya Serebryany <kcc@google.com>
35004
35005 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
35006 on x86_64 linux.
35007 * sanitizer.def: Rename __asan_init to __asan_init_v1.
35008
35009 2013-02-12 Dodji Seketeli <dodji@redhat.com>
35010
35011 Avoid instrumenting duplicated memory access in the same basic block
35012 * Makefile.in (asan.o): Add new dependency on hash-table.h
35013 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
35014 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
35015 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
35016 (free_mem_ref_resources, has_mem_ref_been_instrumented)
35017 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
35018 (get_mem_ref_of_assignment): New functions.
35019 (get_mem_refs_of_builtin_call): Extract from
35020 instrument_builtin_call and tweak a little bit to make it fit with
35021 the new signature.
35022 (instrument_builtin_call): Use the new
35023 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
35024 of is_gimple_builtin_call.
35025 (instrument_derefs, instrument_mem_region_access): Insert the
35026 instrumented memory reference into the hash table.
35027 (maybe_instrument_assignment): Renamed instrument_assignment into
35028 this, and change it to advance the iterator when instrumentation
35029 actually happened and return true in that case. This makes it
35030 homogeneous with maybe_instrument_assignment, and thus give a
35031 chance to callers to be more 'regular'.
35032 (transform_statements): Clear the memory reference hash table
35033 whenever we enter a new BB, when we cross a function call, or when
35034 we are done transforming statements. Use
35035 maybe_instrument_assignment instead of instrumentation. No more
35036 need to special case maybe_instrument_assignment and advance the
35037 iterator after calling it; it's now handled just like
35038 maybe_instrument_call. Update comment.
35039
35040 2013-02-13 Richard Biener <rguenther@suse.de>
35041
35042 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
35043 Fix loop discovery code.
35044
35045 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
35046
35047 PR inline-asm/56148
35048 * lra-constraints.c (process_alt_operands): Match early clobber
35049 operand with itself. Check conflicts with earlyclobber only if
35050 the operand is not reloaded. Prefer to reload conflicting operand
35051 if earlyclobber and matching operands are the same.
35052
35053 2013-02-12 Richard Biener <rguenther@suse.de>
35054
35055 PR lto/56297
35056 * lto-streamer-out.c (write_symbol): Do not output symbols
35057 for hard register variables.
35058
35059 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
35060
35061 PR target/54222
35062 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
35063 (umulsidi3_insn, mulsidi3_insn): New insns.
35064
35065 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
35066
35067 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
35068 (struct tune_params): Add vec_costs field.
35069 * config/arm/arm.c (arm_builtin_vectorization_cost)
35070 (arm_add_stmt_cost): New functions.
35071 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
35072 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
35073 (arm_default_vec_cost): New struct of type cpu_vec_costs.
35074 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
35075 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
35076 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
35077 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
35078
35079 2013-02-12 Richard Biener <rguenther@suse.de>
35080
35081 PR lto/56295
35082 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
35083 decls again if possible.
35084
35085 2013-02-12 Richard Biener <rguenther@suse.de>
35086
35087 PR middle-end/56288
35088 * tree-ssa.c (verify_ssa_name): Fix check, move
35089 SSA_NAME_IN_FREE_LIST check up.
35090
35091 2013-02-12 Jakub Jelinek <jakub@redhat.com>
35092 Steven Bosscher <steven@gcc.gnu.org>
35093
35094 PR rtl-optimization/56151
35095 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
35096 equal to op0 or op1, and last_insn pattern is CODE operation
35097 with MEM dest and one of the operands matches that MEM.
35098
35099 2013-02-11 Sriraman Tallam <tmsriram@google.com>
35100
35101 * doc/extend.texi: Document Function Multiversioning and "default"
35102 parameter string to target attribute.
35103 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
35104 target attribute parameter is "default".
35105 (ix86_compare_version_priority): Remove checks for target attribute.
35106 (ix86_mangle_function_version_assembler_name): Change error to sorry.
35107 Remove check for target attribute equal to NULL. Add assert.
35108 (ix86_generate_version_dispatcher_body): Change error to sorry.
35109
35110 2013-02-11 Iain Sandoe <iain@codesourcery.com>
35111 Jack Howarth <howarth@bromo.med.uc.edu>
35112 Patrick Marlier <patrick.marlier@gmail.com>
35113
35114 PR libitm/55693
35115 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
35116 define ENDFILE_SPEC as TM_DESTRUCTOR.
35117 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
35118
35119 2013-02-11 Alexander Potapenko <glider@google.com>
35120 Jack Howarth <howarth@bromo.med.uc.edu>
35121 Jakub Jelinek <jakub@redhat.com>
35122
35123 PR sanitizer/55617
35124 * config/darwin.c (cdtor_record): Rename ctor_record.
35125 (sort_cdtor_records): Rename sort_ctor_records.
35126 (finalize_dtors): New routine to sort destructors by
35127 priority before use in assemble_integer.
35128 (machopic_asm_out_destructor): Use finalize_dtors if needed.
35129
35130 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
35131
35132 PR rtl-optimization/56275
35133 * simplify-rtx.c (avoid_constant_pool_reference): Check that
35134 offset is non-negative and less than cmode size before
35135 calling simplify_subreg.
35136
35137 2013-02-11 Richard Biener <rguenther@suse.de>
35138
35139 PR tree-optimization/56264
35140 * cfgloop.h (fix_loop_structure): Adjust prototype.
35141 * loop-init.c (fix_loop_structure): Return the number of
35142 newly discovered loops.
35143 * tree-cfgcleanup.c (repair_loop_structures): When new loops
35144 are discovered, do a full loop-closed SSA rewrite.
35145
35146 2013-02-11 Richard Biener <rguenther@suse.de>
35147
35148 PR tree-optimization/56273
35149 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
35150 first VRP run.
35151 (check_array_ref): Fix missing newline in dumps.
35152 (search_for_addr_array): Likewise.
35153
35154 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
35155
35156 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
35157
35158 2013-02-09 Jakub Jelinek <jakub@redhat.com>
35159
35160 PR target/56256
35161 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
35162
35163 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
35164
35165 PR rtl-optimization/56246
35166 * lra-constraints.c (simplify_operand_subreg): Try to reuse
35167 reload pseudo.
35168 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
35169 constraints are satisfied.
35170
35171 2013-02-08 Jeff Law <law@redhat.com>
35172
35173 PR debug/53948
35174 * emit-rtl.c (reg_is_parm_p): New function.
35175 * regs.h (reg_is_parm_p): New prototype.
35176 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
35177 callee-clobbered registers.
35178
35179 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
35180
35181 PR target/56043
35182 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
35183 If there is no implicit builtin declaration, just return NULL.
35184
35185 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
35186
35187 * config/i386/sse.md (FMAMODEM): New mode iterator.
35188 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
35189 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
35190
35191 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
35192
35193 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
35194 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
35195 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
35196
35197 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35198
35199 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
35200 (microblaze*-*-elf): Likewise.
35201 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
35202 LINK_SPEC.
35203 * config/microblaze/microblaze-c.c: Add builtin defines for
35204 _LITTLE_ENDIAN and _BIG_ENDIAN.
35205 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
35206 add to TARGET_DEFAULT flags.
35207 Expand ASM_SPEC and LINK_SPEC.
35208 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
35209 * config/microblaze/microblaze.md: Update extendsidi2 and
35210 movdi_internal instructions to use low-order / high-order reg
35211 print_operands.
35212 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
35213 options and inversemask / mask of LITTLE_ENDIAN.
35214 * config/microblaze/t-microblaze: Expand multilib options to
35215 include mlittle-endian (le) and update exceptions patterns.
35216
35217 2013-02-08 Jakub Jelinek <jakub@redhat.com>
35218
35219 PR rtl-optimization/56195
35220 * lra-constraints.c (get_reload_reg): Don't reuse regs
35221 if they have smaller mode than requested, if they have
35222 wider mode than requested, try to return a SUBREG.
35223
35224 PR tree-optimization/56250
35225 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
35226 if type is unsigned and code isn't MULT_EXPR.
35227
35228 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
35229
35230 PR tree-optimization/56064
35231 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
35232 bits according to mode.
35233 * fixed-value.h (fixed_from_double_int)
35234 (const_fixed_from_double_int): Adjust comments.
35235
35236 2013-02-08 Richard Biener <rguenther@suse.de>
35237
35238 PR lto/56231
35239 * lto-streamer.h (struct data_in): Remove current_file, current_line
35240 and current_col members.
35241 * lto-streamer-out.c (lto_output_location): Stream changed bits
35242 en-block for efficiency.
35243 * lto-streamer-in.c (clear_line_info): Remove.
35244 (lto_input_location): Cache current file, line and column
35245 globally via local statics. Read changed bits en-block.
35246 (input_function): Do not call clear_line_info.
35247 (lto_read_body): Likewise.
35248 (lto_input_toplevel_asms): Likewise.
35249
35250 2013-02-08 Michael Matz <matz@suse.de>
35251
35252 PR tree-optimization/52448
35253 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
35254 (nt_call_phase): New static.
35255 (add_or_mark_expr): Only mark accesses with newer phase than any
35256 call seen.
35257 (nonfreeing_call_p): New.
35258 (nt_init_block): Update nt_call_phase, mark blocks as visited.
35259 (nt_fini_block): Keep blocks marked as visited.
35260 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
35261
35262 2013-02-08 Richard Biener <rguenther@suse.de>
35263
35264 * ira.c (ira): Free broken dominator information.
35265
35266 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
35267
35268 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
35269
35270 2013-02-08 Marek Polacek <polacek@redhat.com>
35271
35272 * cfgloop.c (verify_loop_structure): Add more checking of headers.
35273
35274 2013-02-08 Richard Biener <rguenther@suse.de>
35275
35276 PR middle-end/56181
35277 * cfgloop.h (flow_loops_find): Adjust.
35278 (bb_loop_header_p): Declare.
35279 * cfgloop.c (bb_loop_header_p): New function split out from ...
35280 (flow_loops_find): ... here. Adjust function signature,
35281 support incremental loop structure update.
35282 (verify_loop_structure): Cleanup. Verify a loop is a loop.
35283 * cfgloopmanip.c (fix_loop_structure): Move ...
35284 * loop-init.c (fix_loop_structure): ... here.
35285 (apply_loop_flags): Split out from ...
35286 (loop_optimizer_init): ... here.
35287 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
35288 in incremental mode, only remove dead loops here.
35289
35290 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
35291
35292 PR target/54222
35293 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
35294 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
35295 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
35296 (*round<mode>3.libgcc): New insns for fixed-modes.
35297 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
35298 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
35299 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
35300 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
35301 implementations. Define to __builtin_avr_absFX,
35302 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
35303 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
35304 __builtin_avr_countlsFX, respectively.
35305 * config/avr/avr-c.c (target.h): Include it.
35306 (enum avr_builtin_id): New enum.
35307 (avr_resolve_overloaded_builtin): New static function.
35308 (avr_register_target_pragmas): Use it to set
35309 targetm.resolve_overloaded_builtin.
35310 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
35311 tree nodes used by DEF_BUILTIN.
35312 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
35313 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
35314 <AVR_BUILTIN_xxBITS>: Same.
35315
35316 2013-02-08 Richard Biener <rguenther@suse.de>
35317
35318 * cfgloop.c (verify_loop_structure): Properly handle
35319 a loop exiting to another loop header.
35320 * ira-int.h (ira_loops): Remove.
35321 * ira.c (ira_loops): Remove.
35322 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
35323 (do_reload): Use loop_optimizer_finalize.
35324 * ira-build.c (create_loop_tree_nodes): Use get_loops and
35325 number_of_loops to access the loop tree.
35326 (more_one_region_p): Likewise.
35327 (finish_loop_tree_nodes): Likewise.
35328 (rebuild_regno_allocno_maps): Likewise.
35329 (mark_loops_for_removal): Likewise.
35330 (mark_all_loops_for_removal): Likewise.
35331 (remove_unnecessary_regions): Likewise.
35332 (ira_build): Likewise.
35333 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
35334
35335 2013-02-08 Richard Biener <rguenther@suse.de>
35336
35337 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
35338 * ipa-pure-const.c (analyze_function): Avoid calling
35339 mark_irreducible_loops twice.
35340 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
35341
35342 2013-02-07 David S. Miller <davem@davemloft.net>
35343
35344 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
35345 on 'reg'.
35346 * var-tracking.c (vt_add_function_parameter): Test the presence of
35347 HAVE_window_save properly and do not remap argument registers when
35348 we have a leaf function.
35349
35350 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
35351
35352 PR bootstrap/56227
35353 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
35354 instead of "ll".
35355 * config/i386/i386.c (ix86_print_operand): Ditto.
35356
35357 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
35358
35359 * lra-constraints.c (process_alt_operands): Fix recently added comment.
35360
35361 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
35362
35363 PR rtl-optimization/56225
35364 * lra-constraints.c (process_alt_operands): Check that reload hard
35365 reg can hold value for strict_low_part.
35366
35367 2013-02-07 Jakub Jelinek <jakub@redhat.com>
35368
35369 PR debug/56154
35370 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
35371 dwarf2out_end_function.
35372 (in_first_function_p, maybe_at_text_label_p,
35373 first_loclabel_num_not_at_text_label): New variables.
35374 (dwarf2out_var_location): In the first function find out
35375 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
35376 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
35377 functions.
35378
35379 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
35380
35381 PR rtl-optimization/56178
35382 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
35383 SUBREG of a register. Tidy up related block of code.
35384 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
35385 note if the source is a register or a SUBREG of a register.
35386
35387 2013-02-07 Jakub Jelinek <jakub@redhat.com>
35388
35389 PR target/56228
35390 * config/rs6000/rs6000.md (ptrm): New mode attr.
35391 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
35392 call_value_indirect_aix<pttrsize>,
35393 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
35394 m in constraints.
35395
35396 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
35397
35398 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
35399 if -bnortl. Convert to strcmp and strncmp.
35400
35401 2013-02-07 Alan Modra <amodra@gmail.com>
35402
35403 PR target/54009
35404 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
35405 addresses won't wrap when offsetting.
35406 (rs6000_secondary_reload): Provide secondary reloads needed for
35407 wrapping LO_SUM addresses.
35408
35409 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
35410
35411 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
35412 MACH, just __MACH__.
35413
35414 2013-02-06 Richard Biener <rguenther@suse.de>
35415
35416 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
35417 instead of calling fix_loop_structure.
35418
35419 2013-02-06 Jakub Jelinek <jakub@redhat.com>
35420
35421 PR middle-end/56217
35422 * omp-low.c (use_pointer_for_field): Return false if
35423 lower_send_shared_vars doesn't generate any copy-out code.
35424
35425 2013-02-06 Tom de Vries <tom@codesourcery.com>
35426
35427 PR rtl-optimization/56131
35428 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
35429 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
35430 of the label is NULL. Add comment.
35431
35432 2013-02-05 Jakub Jelinek <jakub@redhat.com>
35433
35434 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
35435
35436 PR sanitizer/55374
35437 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
35438 (STATIC_LIBTSAN_LIBS): Likewise.
35439 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
35440 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
35441 is defined, don't add anything else beyond that.
35442 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
35443 (LINK_COMMAND_SPEC): Use them.
35444
35445 PR tree-optimization/56205
35446 * tree-stdarg.c (check_all_va_list_escapes): Return true if
35447 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
35448 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
35449
35450 2013-02-05 Richard Biener <rguenther@suse.de>
35451
35452 PR tree-optimization/53342
35453 PR tree-optimization/53185
35454 * tree-vectorizer.h (vect_check_strided_load): Remove.
35455 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
35456 not disallow peeling for vectorized strided loads.
35457 (vect_check_strided_load): Make static and simplify.
35458 (vect_analyze_data_refs): Adjust.
35459 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
35460 correctly when vectorizing strided loads.
35461
35462 2013-02-05 Richard Biener <rguenther@suse.de>
35463
35464 * doc/install.texi: Refer to ISL, not PPL.
35465
35466 2013-02-05 Jan Hubicka <jh@suse.cz>
35467
35468 PR tree-optimization/55789
35469 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
35470
35471 2013-02-05 Jan Hubicka <jh@suse.cz>
35472
35473 PR tree-optimization/55789
35474 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
35475 the dead call anyway.
35476
35477 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
35478
35479 PR sanitizer/55374
35480 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
35481
35482 2013-02-04 Alexander Potapenko <glider@google.com>
35483 Jack Howarth <howarth@bromo.med.uc.edu>
35484 Jakub Jelinek <jakub@redhat.com>
35485
35486 PR sanitizer/55617
35487 * config/darwin.c (sort_ctor_records): Stabilized qsort
35488 on constructor priority by using original position.
35489 (finalize_ctors): New routine to sort constructors by
35490 priority before use in assemble_integer.
35491 (machopic_asm_out_constructor): Use finalize_ctors if needed.
35492
35493 2013-02-04 Jakub Jelinek <jakub@redhat.com>
35494
35495 PR libstdc++/54314
35496 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
35497 about visibility on artificial decls.
35498 * config/sol2.c (solaris_assemble_visibility): Likewise.
35499
35500 2013-02-04 Kai Tietz <ktietz@redhat.com>
35501
35502 PR target/56186
35503 * config/i386/i386.c (function_value_ms_64): Add additional valtype
35504 argument and improve checking of return-argument types for 16-byte
35505 modes.
35506 (ix86_function_value_1): Add additional valtype argument on call
35507 of function_value_64.
35508 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
35509 handling infunction_value_64 function.
35510
35511 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
35512
35513 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
35514
35515 2013-02-04 Richard Biener <rguenther@suse.de>
35516
35517 PR tree-optimization/56188
35518 * tree-ssa-structalias.c (label_visit): Consider case with
35519 initially non-empty points-to set.
35520 (perform_var_substitution): Dump node mapping and clean up.
35521
35522 2013-02-04 Richard Guenther <rguenther@suse.de>
35523
35524 PR lto/56168
35525 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
35526 node prevail as last resort.
35527 (lto_symtab_merge_decls): Remove guard on LTRANS here.
35528 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
35529
35530 2013-02-04 Richard Biener <rguenther@suse.de>
35531
35532 PR tree-optimization/56113
35533 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
35534 Merge into ...
35535 (equiv_class_lookup_or_add): ... this.
35536 (label_visit): Adjust and fix error in previous patch.
35537 (perform_var_substitution): Adjust.
35538
35539 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
35540
35541 * config/sh/divtab.c: Fix formatting and comments throughout the file.
35542 * config/sh/sh4-300.md: Likewise.
35543 * config/sh/sh4a.md: Likewise.
35544 * config/sh/constraints.md: Likewise.
35545 * config/sh/sh.md: Likewise.
35546 * config/sh/netbsd-elf.h: Likewise.
35547 * config/sh/predicates.md: Likewise.
35548 * config/sh/sh-protos.h: Likewise.
35549 * config/sh/ushmedia.h: Likewise.
35550 * config/sh/linux.h: Likewise.
35551 * config/sh/sh.c: Likewise.
35552 * config/sh/superh.h: Likewise.
35553 * config/sh/elf.h: Likewise.
35554 * config/sh/sh4.md: Likewise.
35555 * config/sh/sh.h: Likewise.
35556
35557 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35558
35559 * config/pa/constraints.md: Adjust unused letters. Change "T"
35560 constraint to match_test floating_point_store_memory_operand().
35561 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
35562 (base14_operand): New.
35563 (floating_point_store_memory_operand): New.
35564 (integer_store_memory_operand): Revise to use base14_operand and
35565 reg_plus_base_memory_operand.
35566 (move_dest_operand): Allow symbolic_memory_operands.
35567 (symbolic_memory_operand): Check for LO_SOM.
35568 (symbolic_operand): Change default case to break.
35569 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
35570 CONST_DOUBLE values to be reloaded by putting them into memory when
35571 the destination is a floating point register.
35572 (movdf): Remove code to handle CONST_DOUBLE.
35573 (movsf): Likewise.
35574 (reload_indf_r1): New.
35575 (reload_insf_r1): New.
35576 Consistently use "Q" and "T" constraints with integer and floating
35577 point move instructions, respectively.
35578 (movdi): Remove FAIL.
35579 Change predicate for source operand unamed DImode move from
35580 general_operand to move_src_operand.
35581 (umulsidi3): Change predicate for destination operand to
35582 register_operand.
35583 Likewise for similar unamed patterns.
35584 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
35585 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
35586 (hppa_legitimize_address): Simplify mask calculation.
35587 (pa_emit_move_sequence): Revised handling of secondary reloads from
35588 REG+D addresses for floating point loads and stores. Directly handle
35589 loading CONST0_RTX (mode) to a floating point register.
35590 (pa_secondary_reload): Handle reloading DF and SFmode constant values
35591 to floating point registers. Don't restrict secondary reloads to
35592 floating point registers to integer modes. Revise some comments and
35593 cleanup some code.
35594 (TARGET_LEGITIMATE_ADDRESS_P): Define.
35595 (pa_legitimate_address_p): New.
35596 (pa_legitimize_reload_address): New.
35597 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
35598 (STRICT_REG_OK_FOR_BASE_P): New.
35599 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
35600 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
35601
35602 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
35603 Andrew Dixie <andrewd@gentrack.com>
35604
35605 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
35606 flag set.
35607
35608 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
35609
35610 * expmed.c (extract_bit_field_1): Pass the full width of the
35611 structure to get_best_reg_extraction_insn.
35612
35613 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
35614
35615 PR target/54601
35616 * configure.ac (use_cxa_atexit): Add AIX.
35617 * configure: Regenerate.
35618
35619 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
35620
35621 2013-02-01 Jakub Jelinek <jakub@redhat.com>
35622
35623 PR debug/54793
35624 * final.c (need_profile_function): New variable.
35625 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
35626 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
35627 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
35628 notes, targetm.asm_out.function_prologue doesn't emit anything,
35629 HAVE_prologue and profiler should be emitted before prologue,
35630 set need_profile_function instead of emitting it.
35631 (final_scan_insn): If need_profile_function, emit
35632 profile_function on the first NOTE_INSN_BASIC_BLOCK or
35633 NOTE_INSN_FUNCTION_BEG note.
35634
35635 2013-02-01 Richard Henderson <rth@redhat.com>
35636
35637 * config/rs6000/rs6000.md (smulditi3): New.
35638 (umulditi3): New.
35639
35640 * config/alpha/alpha.md (umulditi3): New.
35641
35642 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
35643
35644 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
35645 (ASM_OUTPUT_ALIGNED_LOCAL): New.
35646
35647 2013-02-01 Richard Biener <rguenther@suse.de>
35648
35649 PR tree-optimization/56113
35650 * tree-ssa-structalias.c (label_visit): Reduce work for
35651 single-predecessor nodes.
35652
35653 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
35654
35655 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
35656 range isn't testing for zero.
35657
35658 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
35659
35660 PR middle-end/56113
35661 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
35662
35663 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
35664 Nick Clifton <nickc@redhat.com>
35665
35666 * config/v850/constraints.md (Q): Define as a memory constraint.
35667 * config/v850/predicates.md (label_ref_operand): New predicate.
35668 (e3v5_shift_operand): New predicate.
35669 (ior_operator): New predicate.
35670 * config/v850/t-v850: Add e3v5 multilib.
35671 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
35672 (v850_gen_movdi): Prototype.
35673 * config/v850/v850.c: Add support for e3v5 architecture.
35674 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
35675 TARGET_V850E_UP.
35676 (construct_save_jarl): Add e3v5 long JARL support.
35677 (v850_adjust_insn_length): New function. Adjust length of call
35678 insns when using e3v5 instructions.
35679 (v850_gen_movdi): New function: Generate instructions to move a
35680 DImode value.
35681 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
35682 (CPP_SPEC): Define __v850e3v5__ as appropriate.
35683 (TARGET_USE_FPU): Enable for e3v5.
35684 (CONST_OK_FOR_W): New macro.
35685 (ADJUST_INSN_LENGTH): Define.
35686 * config/v850/v850.md (UNSPEC_LOOP): Define.
35687 (attr cpu): Add v850e3v5.
35688 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
35689 (movdi): New pattern.
35690 (movdi_internal): New pattern.
35691 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
35692 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
35693 (cstoresf4): Likewise.
35694 (cstoredf4): Likewise.
35695 (insv): New pattern.
35696 (rotlso3_a): New pattern.
35697 (rotlsi3_b): New pattern
35698 (rotlsi3_v850e3v5): New pattern.
35699 (doloop_begin): New pattern.
35700 (fix_loop_counter): New pattern.
35701 (doloop_end): New pattern.
35702 (branch_normal): Add e3v5 long branch support.
35703 (branch_invert): Likewise.
35704 (branch_z_normal): Likewise.
35705 (branch_z_invert): Likewise.
35706 (branch_nz_normal): Likewise.
35707 (branch_nz_invert): Likewise.
35708 (call_internal_short): Add e3v5 register-indirect JARL support.
35709 (call_internal_long): Likewise.
35710 (call_value_internal_short): Likewise.
35711 (call_value_internal_long): Likewise.
35712 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
35713 (mloop): New option.
35714 * config.gcc: Add support for configuring v840e3v5 target.
35715 * doc/invoke.texi: Document new v850 specific command line options.
35716
35717 2013-01-31 Paul Koning <ni1d@arrl.net>
35718
35719 PR debug/55059
35720 PR debug/54508
35721 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
35722 children if parent is a class.
35723 (prune_unused_types_prune): Don't add DW_AT_declaration.
35724
35725 2013-01-31 Richard Biener <rguenther@suse.de>
35726
35727 PR tree-optimization/56157
35728 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
35729 match up operand with SLP child.
35730
35731 2013-01-31 Jason Merrill <jason@redhat.com>
35732
35733 PR debug/54410
35734 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
35735 parameters the first time.
35736 (gen_scheduled_generic_parms_dies): Check completeness here.
35737
35738 2013-01-31 Richard Biener <rguenther@suse.de>
35739
35740 PR middle-end/53073
35741 * common.opt (faggressive-loop-optimizations): New flag,
35742 enabled by default.
35743 * doc/invoke.texi (faggressive-loop-optimizations): Document.
35744 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
35745 infer_loop_bounds_from_undefined by it.
35746
35747 2013-01-31 Richard Biener <rguenther@suse.de>
35748
35749 PR tree-optimization/56150
35750 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
35751 visit virtual operands.
35752 (find_uses_to_rename_bb): Likewise.
35753
35754 2013-01-31 Richard Biener <rguenther@suse.de>
35755
35756 PR tree-optimization/56150
35757 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
35758 mixed store non-store stmts.
35759
35760 2013-01-30 Jakub Jelinek <jakub@redhat.com>
35761
35762 PR sanitizer/55374
35763 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
35764 LIBASAN_EARLY_SPEC is defined.
35765 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
35766 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
35767 before %o.
35768 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
35769
35770 PR c++/55742
35771 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
35772 invalid args instead of ICEing on it.
35773 (ix86_valid_target_attribute_tree): Return error_mark_node if
35774 ix86_valid_target_attribute_inner_p failed.
35775 (ix86_valid_target_attribute_p): Return false only if
35776 ix86_valid_target_attribute_tree returned error_mark_node. Allow
35777 target("default") attribute.
35778 (sorted_attr_string): Change argument from const char * to tree,
35779 merge in all target attribute arguments rather than just one.
35780 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
35781 instead of free. Avoid using strcat.
35782 (ix86_mangle_function_version_assembler_name): Mangle
35783 target("default") as if no target attribute is present. Adjust
35784 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
35785 instead of xmalloc and XDELETEVEC instead of free.
35786 (ix86_function_versions): Don't return true if one of the decls
35787 doesn't have target attribute. If they don't and one of the decls
35788 is DECL_FUNCTION_VERSIONED, report an error. Adjust
35789 sorted_attr_string caller. Use XDELETEVEC instead of free.
35790 (ix86_supports_function_versions): Remove.
35791 (make_name): Fix up formatting.
35792 (make_dispatcher_decl): Remove resolver_name and its initialization.
35793 Avoid leaking memory.
35794 (is_function_default_version): Return true if there is
35795 target("default") attribute rather than no target attribute at all.
35796 (make_resolver_func): Avoid leaking memory.
35797 (ix86_generate_version_dispatcher_body): Likewise.
35798 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
35799 * target.def (supports_function_versions): Remove.
35800 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
35801 * doc/tm.texi: Regenerated.
35802
35803 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
35804
35805 PR rtl-optimization/56144
35806 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
35807 for values with side effects.
35808
35809 2013-01-30 Richard Biener <rguenther@suse.de>
35810
35811 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
35812 (sparseset_pop): Likewise.
35813 * cfganal.c (compute_idf): Likewise. Increase work-stack size
35814 to be able to use quick_push in the worker loop.
35815
35816 2013-01-30 Marek Polacek <polacek@redhat.com>
35817
35818 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
35819
35820 2013-01-30 Richard Biener <rguenther@suse.de>
35821
35822 PR lto/56147
35823 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
35824
35825 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
35826
35827 PR tree-optimization/56064
35828 * fixed-value.c (fixed_from_double_int): New function.
35829 * fixed-value.h (fixed_from_double_int): New prototype.
35830 (const_fixed_from_double_int): New static inline function.
35831 * fold-const.c (native_interpret_fixed): New static function.
35832 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
35833 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
35834 (native_encode_fixed): New static function.
35835 (native_encode_expr) <FIXED_CST>: Use it.
35836 (native_interpret_int): Move double_int worker code to...
35837 * double-int.c (double_int::from_buffer): ...this new static method.
35838 * double-int.h (double_int::from_buffer): Prototype it.
35839
35840 2013-01-30 Richard Biener <rguenther@suse.de>
35841
35842 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
35843 New pointer-map and obstack.
35844 (init_alias_vars): Allocate pointer-map and obstack.
35845 (delete_points_to_sets): Free them.
35846 (find_what_var_points_to): Cache result.
35847 (find_what_p_points_to): Adjust for changed interface of
35848 find_what_var_points_to.
35849 (compute_points_to_sets): Likewise.
35850 (ipa_pta_execute): Likewise.
35851
35852 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35853
35854 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
35855 * configure: Regenerate.
35856 * config.in: Regenerate.
35857 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
35858 #nobits/#progbits if supported.
35859
35860 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
35861
35862 PR target/56121
35863 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
35864 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
35865 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
35866
35867 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35868
35869 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
35870 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
35871
35872 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35873
35874 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
35875 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
35876
35877 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35878
35879 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
35880 declaration.
35881 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
35882 * config/arm/cortex-a7.md: New bypasses using
35883 arm_mac_accumulator_is_result.
35884
35885 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35886
35887 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
35888 (cortex_a7_neon_mla): Likewise.
35889 (cortex_a7_fpfmad): New reservation.
35890 (cortex_a7_fpmacs): Use ffmas and update required units.
35891 (cortex_a7_fpmuld): Update required units and latency.
35892 (cortex_a7_fpmacd): Likewise.
35893 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
35894 (cortex_a7_neon). Likewise.
35895 (bypass) Update participating units.
35896
35897 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35898
35899 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
35900 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
35901 from fmac to ffma.
35902 * config/arm/vfp11.md (vfp_farith): Use ffmas.
35903 (vfp_fmul): Use ffmad.
35904 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
35905 (cortex_r4_fmacd): Use ffmad.
35906 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
35907 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
35908 (cortex_a9_fmacd): Use ffmad.
35909 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
35910 (cortex_a8_vfp_macd): Use ffmad.
35911 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
35912 (cortex_a5_fpmacd): Use ffmad.
35913 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35914 (cortex_a15_vfp_macd): Use ffmad.
35915 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35916
35917 2013-01-29 Jason Merrill <jason@redhat.com>
35918
35919 PR libstdc++/54314
35920 * varasm.c (default_assemble_visibility): Don't warn about
35921 visibility on artificial decls.
35922
35923 2013-01-29 Richard Biener <rguenther@suse.de>
35924
35925 PR tree-optimization/56113
35926 * tree-ssa-structalias.c (equiv_class_lookup): Also return
35927 the bitmap leader.
35928 (label_visit): Free duplicate bitmaps and record the leader instead.
35929 (perform_var_substitution): Adjust.
35930
35931 2013-01-29 Richard Biener <rguenther@suse.de>
35932
35933 PR tree-optimization/55270
35934 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35935 the CFG, schedule loops for fixup.
35936
35937 2013-01-29 Nick Clifton <nickc@redhat.com>
35938
35939 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35940 SP_REG.
35941
35942 2013-01-28 Leif Ekblad <leif@rdos.net>
35943
35944 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35945 * config/i386/i386.h (TARGET_RDOS): New macro.
35946 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35947 * config/i386/i386.c (ix86_option_override_internal): For 64bit
35948 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35949 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35950 DEFAULT_LARGE_SECTION_THRESHOLD.
35951 * config/i386/i386.md (R14_REG, R15_REG): New constants.
35952 * config/i386/rdos.h: New file.
35953 * config/i386/rdos64.h: New file.
35954
35955 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
35956
35957 PR other/54814
35958 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35959 TEST_HARD_REG_BIT.
35960
35961 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35962
35963 PR rtl-optimization/56117
35964 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35965 call cselib_lookup_from_insn on the MEM before calling
35966 add_insn_mem_dependence.
35967
35968 2013-01-28 Richard Biener <rguenther@suse.de>
35969
35970 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35971 to a stmt that didn't have one.
35972 (copy_phis_for_bb): Likewise for PHI arguments.
35973 (copy_debug_stmt): Likewise for debug stmts.
35974
35975 2013-01-28 Richard Biener <rguenther@suse.de>
35976
35977 PR tree-optimization/56034
35978 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35979 (partition_builtin_p): Adjust.
35980 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
35981 it is the last partition.
35982 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35983 up the vertex for the definition.
35984 (classify_partition): Classify whether a partition is a
35985 PKIND_REDUCTION, thus has uses outside of the loop.
35986 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35987 Merge all PKIND_REDUCTION partitions into the last partition.
35988 (tree_loop_distribution): Seed partitions from reductions as well.
35989
35990 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35991
35992 PR tree-optimization/56125
35993 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35994 pow(x,c) into sqrt(x) * powi(x, n/2) or
35995 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35996 optimizing for size.
35997 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35998 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35999 integer.
36000
36001 PR tree-optimization/56094
36002 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
36003 to UNKNOWN_LOCATION while gimplifying expr.
36004
36005 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
36006
36007 PR target/56114
36008 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
36009 operand 0 in movabs insn template for -masm=intel asm alternative.
36010 (*movabs<mode>_2): Ditto for operand 1.
36011
36012 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
36013
36014 PR target/54663
36015 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
36016 of microblaze-c.o
36017
36018 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36019
36020 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
36021 tm_file.
36022
36023 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36024
36025 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
36026 Undef to avoid warning.
36027
36028 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
36029
36030 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
36031 * configure: Regenerate.
36032
36033 2013-01-25 Jakub Jelinek <jakub@redhat.com>
36034
36035 PR tree-optimization/56098
36036 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
36037 for stmts with volatile ops.
36038 (cond_store_replacement): Don't optimize if assign has volatile ops.
36039 (cond_if_else_store_replacement_1): Don't optimize if either
36040 then_assign or else_assign have volatile ops.
36041 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
36042 volatile ops.
36043
36044 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
36045
36046 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
36047
36048 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
36049
36050 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
36051 missing ':' in asm example.
36052
36053 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
36054
36055 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
36056 entries into lane and laneq entries.
36057 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
36058 Remove AdvSIMD scalar modes.
36059 (aarch64_sq<r>dmulh_laneq<mode>): New.
36060 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
36061 modes.
36062 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
36063 builtin implementations to relfect changes in RTL in aarch64-simd.md.
36064 * config/aarch64/iterators.md (VCOND): New.
36065 (VCONQ): New.
36066
36067 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
36068
36069 PR target/54222
36070 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
36071 Add NULL LIBNAME argument to existing definitions.
36072 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
36073 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
36074 * config/avr/avr.c (DEF_BUILTIN): Same.
36075 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
36076 (avr_expand_builtin): Expand to a vanilla call if a libgcc
36077 implementation is available (DECL_ASSEMBLER_NAME is set).
36078 (avr_fold_absfx): New static function.
36079 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
36080 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
36081 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
36082 AVR_BUILTIN_ABSLLK.
36083 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
36084 (abshk, absk, abslk, absllk): Provide as static inline functions.
36085
36086 2013-01-25 Marek Polacek <polacek@redhat.com>
36087
36088 PR tree-optimization/56035
36089 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
36090
36091 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
36092
36093 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
36094 (*movtf_internal_rex64): Add (!o,C) alternative
36095 (*movxf_internal_rex64): Ditto.
36096 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
36097
36098 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
36099
36100 * doc/invoke.texi: fix typo.
36101 * doc/objc.texi: fix typo.
36102
36103 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
36104
36105 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
36106 for the first two alternatives.
36107
36108 2013-01-24 Diego Novillo <dnovillo@google.com>
36109
36110 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
36111 (ggc-zone.o): Remove.
36112 * configure.ac: Remove option --with-gc.
36113 * configure: Re-generate.
36114 * doc/install.texi: Remove documentation for --with-gc.
36115 * gengtype.c (write_enum_defn): Remove. Update all users.
36116 (write_Types_process_field): Remove generation of gt_e_* argument.
36117 (output_type_enum): Remove. Update all users.
36118 (write_enum_defn): Remove. Update all users.
36119 (enum alloc_zone): Remove. Update all users.
36120 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
36121 * ggc-common.c (ggc_splay_alloc): Remove first argument.
36122 Update all callers.
36123 (struct ptr_data): Remove field TYPE. Update all users.
36124 (gt_pch_note_object): Remove argument TYPE. Update all users.
36125 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
36126 Update all users.
36127 * ggc-none.c (ggc_alloc_typed_stat): Remove.
36128 (struct alloc_zone): Remove.
36129 (ggc_internal_alloc_zone_stat): Remove.
36130 (ggc_internal_cleared_alloc_zone_stat): Remove.
36131 * ggc-page.c (ggc_alloc_typed_stat): Remove.
36132 (ggc_pch_count_object): Remove last argument. Update all users.
36133 (ggc_pch_alloc_object): Remove last argument. Update all users.
36134 (struct alloc_zone): Remove.
36135 * ggc-zone.c: Remove.
36136 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
36137 (struct alloc_zone): Remove.
36138 (ggc_alloc_typed_stat): Remove.
36139 (ggc_alloc_typed): Remove.
36140 (ggc_splay_alloc): Remove first argument.
36141 (rtl_zone): Remove. Update all users.
36142 (tree_zone): Remove. Update all users.
36143 (tree_id_zone): Remove. Update all users.
36144 (ggc_internal_zone_alloc_stat): Remove. Update all users.
36145 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
36146 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
36147 * tree-ssanames.c: Remove references to zone allocator in comments.
36148
36149 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
36150
36151 * config/avr/avr.c (avr_out_fract): Make register numbers that
36152 might be outside of source operand signed.
36153
36154 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
36155
36156 * config/i386/constraints.md (Yf): New constraint.
36157 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
36158 of f constraint to conditionaly disable x87 register preferences.
36159 (*movdf_internal): Ditto.
36160 (*movsf_internal): Ditto.
36161
36162 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
36163
36164 PR inline-asm/55934
36165 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
36166 that have operands with impossible constraints.
36167 Add a FIXME for a speed-up opportunity.
36168 * lra-constraints.c (process_alt_operands): Verify that a class
36169 selected from constraints on asms is valid for the operand mode.
36170 (curr_insn_transform): Remove incorrect comment.
36171
36172 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
36173
36174 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
36175 TOC operand is a valid symbol ref in the constant pool.
36176
36177 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36178
36179 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
36180
36181 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
36182
36183 PR target/54222
36184 * config/avr/stdfix.h: New file.
36185 * t-avr (stdfix-gcc.h): New rule to build it.
36186 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
36187
36188 2013-01-23 Kostya Serebryany <kcc@google.com>
36189
36190 * config/darwin.h: remove dependency on
36191 CoreFoundation (asan on Mac OS).
36192
36193 2013-01-23 Jakub Jelinek <jakub@redhat.com>
36194
36195 PR target/49069
36196 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
36197 instead of cmpdi_operand for first comparison operand.
36198 Don't assert that comparison operands aren't both constants.
36199
36200 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
36201
36202 * doc/install.texi (Downloading the Source): Update references to
36203 downloading separate components.
36204
36205 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
36206
36207 * doc/extend.texi (__int128): Improve grammar.
36208
36209 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
36210
36211 PR target/56028
36212 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
36213 alternative to (o,r).
36214 (*movdi_internal_rex64): Remove (!o,n) alternative.
36215 (DImode immediate->memory splitter): Remove.
36216 (DImode immediate->memory peephole2): Remove.
36217 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
36218 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
36219 alternative to (!o,*r).
36220 (*movtf_internal_sse): New pattern.
36221 (*movxf_internal_rex64): New pattern.
36222 (*movxf_internal): Disable for TARGET_64BIT.
36223 (*movdf_internal_rex64): Remove (!o,F) alternative.
36224
36225 2013-01-22 Jakub Jelinek <jakub@redhat.com>
36226
36227 PR middle-end/56074
36228 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
36229 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
36230 * tree-vect-loop-manip.c (find_loop_location): Also ignore
36231 stmt locations where LOCATION_LOCUS of the stmt location is
36232 UNKNOWN_LOCATION or BUILTINS_LOCATION.
36233
36234 PR target/55686
36235 * config/i386/i386.md (UNSPEC_STOS): New.
36236 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
36237 *strsetqi_1): Add UNSPEC_STOS.
36238
36239 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
36240
36241 PR c++/56067
36242 * doc/invoke.texi: Remove left over -Wsynth example.
36243
36244 2013-01-21 Jakub Jelinek <jakub@redhat.com>
36245
36246 PR tree-optimization/56051
36247 * fold-const.c (fold_binary_loc): Don't fold
36248 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
36249 a narrowing conversion, or widening conversion from signed
36250 to unsigned.
36251
36252 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
36253
36254 PR rtl-optimization/56023
36255 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
36256 dependent on debug instruction.
36257
36258 2013-01-21 Martin Jambor <mjambor@suse.cz>
36259
36260 PR middle-end/56022
36261 * function.c (allocate_struct_function): Call
36262 invoke_set_current_function_hook earlier.
36263
36264 2013-01-21 Jakub Jelinek <jakub@redhat.com>
36265
36266 * reload1.c (init_reload): Only initialize reload_obstack
36267 during the first call.
36268
36269 2013-01-21 Marek Polacek <polacek@redhat.com>
36270
36271 * cfgloop.c (verify_loop_structure): Fix up grammar.
36272
36273 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
36274
36275 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
36276 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
36277
36278 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36279
36280 PR target/56058
36281 * config/arm/marvell-pj4.md: Update copyright year.
36282 Fix up use of alu to alu_reg and simple_alu_imm.
36283
36284 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
36285
36286 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
36287
36288 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
36289
36290 PR target/55433
36291 * lra-constraints.c (curr_insn_transform): Don't reuse original
36292 insn for secondary memory move when memory mode should be different.
36293
36294 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36295
36296 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
36297 atomic_storedi_1): New patterns.
36298
36299 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
36300
36301 btver2 pipeline descriptions.
36302 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
36303 descriptions.
36304 * config/i386/i386.md (btver2_decode): New type attributes.
36305 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
36306 type attributes.
36307 * config/i386/btver2.md: New file describing btver2 pipelines.
36308
36309 2013-01-19 Andrew Pinski <apinski@cavium.com>
36310
36311 PR tree-optimization/52631
36312 * tree-ssa-sccvn (visit_use): Before looking up the original
36313 statement, try looking up the simplified expression.
36314
36315 2013-01-19 Anthony Green <green@moxielogic.com>
36316
36317 * config/moxie/moxie.c (moxie_expand_prologue): Set
36318 current_function_static_stack_size.
36319
36320 2013-01-18 Jakub Jelinek <jakub@redhat.com>
36321
36322 PR tree-optimization/56029
36323 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
36324 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
36325
36326 2013-01-18 Sharad Singhai <singhai@google.com>
36327
36328 PR tree-optimization/55995
36329 * dumpfile.c (dump_loc): Print location only if available.
36330 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
36331
36332 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
36333
36334 PR target/55433
36335 * lra-constraints.c (curr_insn_transform): Reuse original insn for
36336 secondary memory move.
36337 (inherit_reload_reg): Use rclass instead of cl for
36338 check_secondary_memory_needed_p.
36339
36340 2013-01-18 Jakub Jelinek <jakub@redhat.com>
36341
36342 PR middle-end/56015
36343 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
36344 the case where writing real complex part of target modifies op1.
36345
36346 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
36347
36348 * config/aarch64/aarch64-simd.md
36349 (aarch64_vcond_internal<mode>): Handle unordered cases.
36350 * config/aarch64/iterators.md (v_cmp_result): New.
36351
36352 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
36353 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36354
36355 * config/arm/marvell-pj4.md: New file.
36356 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
36357 * config/arm/arm.md (generic_sched): Add marvell_pj4.
36358 (generic_vfp): Likewise.
36359 * config/arm/arm-cores.def: Add marvell-pj4.
36360 * config/arm/arm-tune.md: Regenerate.
36361 * config/arm/arm-tables.opt: Regenerate.
36362 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
36363 * doc/invoke.texi: Document marvell-pj4.
36364
36365 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
36366
36367 * config/aarch64/arm_neon.h: Map scalar types to standard types.
36368
36369 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
36370
36371 PR debug/54114
36372 PR debug/54402
36373 PR debug/49888
36374 * var-tracking.c (negative_power_of_two_p): New.
36375 (global_get_addr_cache, local_get_addr_cache): New.
36376 (get_addr_from_global_cache, get_addr_from_local_cache): New.
36377 (vt_canonicalize_addr): Rewrite using the above. Adjust the
36378 heading comment.
36379 (vt_stack_offset_p): Remove.
36380 (vt_canon_true_dep): Always canonicalize loc's address.
36381 (clobber_overlapping_mems): Make sure we have a MEM.
36382 (local_get_addr_clear_given_value): New.
36383 (val_reset): Clear local cached entries.
36384 (compute_bb_dataflow): Create and release the local cache.
36385 Disable duplicate MEMs clobbering.
36386 (emit_notes_in_bb): Clobber MEMs likewise.
36387 (vt_emit_notes): Create and release the local cache.
36388 (vt_initialize, vt_finalize): Create and release the global
36389 cache, respectively.
36390 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
36391
36392 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
36393
36394 PR libmudflap/53359
36395 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
36396 not found in the symtab.
36397
36398 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
36399
36400 PR debug/56006
36401 PR rtl-optimization/55547
36402 PR rtl-optimization/53827
36403 PR debug/53671
36404 PR debug/49888
36405 * alias.c (offset_overlap_p): New, factored out of...
36406 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
36407 the conservative special case for symbolic constants. Don't
36408 adjust zero sizes on alignment.
36409
36410 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
36411
36412 PR rtl-optimization/52573
36413 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
36414 REG_UNUSED for the same register.
36415
36416 2013-01-17 Richard Biener <rguenther@suse.de>
36417 Marek Polacek <polacek@redhat.com>
36418
36419 PR rtl-optimization/55833
36420 * loop-unswitch.c (unswitch_loops): Move loop verification...
36421 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
36422 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
36423 Set it to true when we're removing a loop from hierarchy tree in
36424 an irreducible region.
36425 (fix_bb_placements): Adjust caller.
36426 (fix_loop_placements): Likewise.
36427
36428 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
36429
36430 * config/avr/builtins.def (DEF_BUILTIN): Factor out
36431 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
36432 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
36433 Remove ID. Adjust comments.
36434 * config/avr/avr-c.c (avr_builtin_name): Remove.
36435 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
36436 * config/avr/avr.c (avr_tolower): New static function.
36437 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
36438 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
36439 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
36440 default expansion.
36441
36442 2013-01-17 Jan Hubicka <jh@suse.cz>
36443
36444 PR tree-optimization/55273
36445 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
36446
36447 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
36448
36449 PR target/55981
36450 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
36451 store through atomic_store<mode>_1.
36452 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
36453
36454 2013-01-17 Martin Jambor <mjambor@suse.cz>
36455
36456 PR tree-optimizations/55264
36457 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
36458 for virtual methods.
36459 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
36460 virtual methods before inlining is over.
36461 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
36462 virtual functions.
36463 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
36464 non-virtual.
36465
36466 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
36467
36468 PR rtl-optimization/56005
36469 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
36470 pending reads for prefetch.
36471
36472 2013-01-16 Ian Bolton <ian.bolton@arm.com>
36473
36474 * config/aarch64/aarch64.md
36475 (*cstoresi_neg_uxtw): New pattern.
36476 (*cmovsi_insn_uxtw): New pattern.
36477 (*<optab>si3_uxtw): New pattern.
36478 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
36479 (*<optab>si3_insn_uxtw): New pattern.
36480 (*bswapsi2_uxtw): New pattern.
36481
36482 2013-01-16 Richard Biener <rguenther@suse.de>
36483
36484 * tree-inline.c (tree_function_versioning): Remove set but
36485 never used variable.
36486
36487 2013-01-16 Richard Biener <rguenther@suse.de>
36488
36489 PR tree-optimization/55964
36490 * tree-flow.h (rename_variables_in_loop): Remove.
36491 (rename_variables_in_bb): Likewise.
36492 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
36493 (copy_loop_before): Adjust and delete update-ssa status.
36494 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
36495 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
36496 (rename_variables_in_loop): Remove.
36497 (slpeel_update_phis_for_duplicate_loop): Likewise.
36498 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
36499 use available cfg machinery instead of duplicating it.
36500 Update PHI nodes and perform poor-mans SSA update here.
36501 (slpeel_tree_peel_loop_to_edge): Adjust.
36502
36503 2013-01-16 Richard Biener <rguenther@suse.de>
36504
36505 PR tree-optimization/54767
36506 PR tree-optimization/53465
36507 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
36508 (vrp_visit_phi_node): For PHI arguments coming via backedges
36509 drop all symbolical range information.
36510 (execute_vrp): Compute backedges.
36511
36512 2013-01-16 Richard Biener <rguenther@suse.de>
36513
36514 * doc/install.texi: Update CLooG and ISL requirements to
36515 0.18.0 and 0.11.1.
36516
36517 2013-01-16 Christian Bruel <christian.bruel@st.com>
36518
36519 PR target/55301
36520 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
36521 (broken_move): Handle UNSPECV_SP_SWITCH_B.
36522 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
36523
36524 2013-01-16 DJ Delorie <dj@redhat.com>
36525
36526 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
36527 (UNSPECV_SP_SWITCH_E): New.
36528 (sp_switch_1): Change to an unspec.
36529 (sp_switch_2): Change to an unspec. Don't use post-inc when we
36530 replace $r15.
36531
36532 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
36533
36534 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
36535 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
36536 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
36537 (expand_mem_thread_fence): Ditto.
36538 (expand_mem_signal_fence): Ditto.
36539 (expand_atomic_load): Ditto.
36540 (expand_atomic_store): Ditto.
36541
36542 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
36543
36544 PR rtl-optimization/55547
36545 PR rtl-optimization/53827
36546 PR debug/53671
36547 PR debug/49888
36548 * alias.c (memrefs_conflict_p): Set sizes to negative after
36549 AND adjustments.
36550
36551 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36552
36553 PR target/55940
36554 * function.c (thread_prologue_and_epilogue_insns): Always
36555 add crtl->drap_reg to set_up_by_prologue.set, even if
36556 stack_realign_drap is false.
36557
36558 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
36559
36560 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
36561 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
36562 *call): Fix indention.
36563
36564 2013-01-15 Tom de Vries <tom@codesourcery.com>
36565
36566 PR target/55876
36567 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
36568 Update comment.
36569
36570 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
36571
36572 PR rtl-optimization/55153
36573 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
36574
36575 2013-01-15 Martin Jambor <mjambor@suse.cz>
36576
36577 PR tree-optimization/55920
36578 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
36579 accesses as grp_to_be_debug_replaced.
36580
36581 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36582
36583 PR tree-optimization/55920
36584 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
36585 there is non-useless type conversion needed from debug rhs to lhs,
36586 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
36587
36588 2013-01-15 Joseph Myers <joseph@codesourcery.com>
36589 Mikael Pettersson <mikpe@it.uu.se>
36590
36591 PR target/43961
36592 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
36593 Thumb.
36594 (ASM_OUTPUT_CASE_LABEL): Remove.
36595 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
36596 * final.c (shorten_branches): Update alignment of labels before
36597 jump tables if CASE_VECTOR_SHORTEN_MODE.
36598
36599 2013-01-15 Richard Biener <rguenther@suse.de>
36600
36601 PR bootstrap/55961
36602 * system.h: Do not include gmp.h for building host tools.
36603
36604 2013-01-15 Richard Biener <rguenther@suse.de>
36605
36606 PR middle-end/55882
36607 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
36608 account for bitpos when computing alignment.
36609
36610 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
36611
36612 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
36613 (ix86_target_macros_internal): Likewise.
36614
36615 * config/i386/i386.c (m_CORE2I7): Removed.
36616 (m_CORE_HASWELL): New macro.
36617 (m_CORE_ALL): Likewise.
36618 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
36619 (initial_ix86_arch_features): Likewise.
36620 (processor_target_table): Initializations for Core avx2.
36621 (cpu_names): New names "core-avx2".
36622 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
36623 PROCESSOR_CORE_HASWELL.
36624 (ix86_issue_rate): New case.
36625 (ia32_multipass_dfa_lookahead): Likewise.
36626 (ix86_sched_init_global): Likewise.
36627
36628 * config/i386/i386.h (TARGET_HASWELL): New macro.
36629 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
36630 (processor_type): New PROCESSOR_HASWELL.
36631
36632 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36633
36634 PR tree-optimization/55955
36635 * tree-vect-loop.c (vectorizable_reduction): Give up early on
36636 *SHIFT_EXPR and *ROTATE_EXPR codes.
36637
36638 PR tree-optimization/48766
36639 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
36640 -ftrapv disable -fwrapv.
36641
36642 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36643
36644 PR target/55974
36645 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
36646 etc. to 1 and not to __flash.
36647 Use LL suffix for __INT24_MAX__ with -mint8.
36648 Use ULL suffix for __UINT24_MAX__ with -mint8.
36649
36650 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36651
36652 * config/avr/avr-arch.h
36653 (struct base_arch_s): Use typedef avr_arch_t instead.
36654 (struct arch_info_s): Use typedef avr_arch_info_t instead.
36655 (struct mcu_type_s): Use typedef avr_mcu_t instead.
36656 * config/avr/avr.c: Same.
36657 * config/avr/avr-devices.c: Same.
36658 * config/avr/driver-avr.c: Same.
36659 * config/avr/gen-avr-mmcu-texi.c: Same.
36660 * config/avr/avr-mcus.def: Adjust comment.
36661
36662 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
36663
36664 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
36665 * config/aarch64/iterators.md (VALLDI): New.
36666
36667 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
36668 Andi Kleen <ak@linux.intel.com>
36669
36670 PR target/55948
36671 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
36672 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
36673 memmodel flag.
36674
36675 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36676
36677 * config/avr/avr-stdint.h: Remove trailing blanks.
36678 * config/avr/avr-log.h: Same.
36679 * config/avr/avr-arch.h: Same.
36680 * config/avr/avr-devices.c: Same.
36681 * config/avr/avr-dimode.md: Same.
36682 * config/avr/predicates.md: Same.
36683 * config/avr/avr-c.c: Same. And fix typo.
36684
36685 * config/avr/avr-protos.h: Same. And:
36686 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
36687 (init_cumulative_args): Rename to avr_init_cumulative_args.
36688 (expand_prologue): Rename to avr_expand_prologue.
36689 (expand_epilogue): Rename to avr_expand_epilogue.
36690 (adjust_insn_length): Rename to avr_adjust_insn_length.
36691 (notice_update_cc): Rename to avr_notice_update_cc.
36692 (final_prescan_insn): Rename to avr_final_prescan_insn.
36693 * config/avr/avr.c: Same.
36694 * config/avr/avr.h: Same.
36695 * config/avr/avr.md: Remove trailing blanks.
36696 (prologue): Use avr_expand_prologue.
36697 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
36698
36699 2013-01-14 Richard Biener <rguenther@suse.de>
36700
36701 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
36702 verify_location, collect_subblocks): New functions.
36703 (verify_gimple_in_cfg): Verify that locations only reference
36704 BLOCKs in the functions BLOCK tree.
36705
36706 2013-01-14 Richard Biener <rguenther@suse.de>
36707
36708 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
36709 PHI argument.
36710 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
36711 unshare reference.
36712 (insert_out_of_ssa_copy_on_edge): Likewise.
36713 (rewrite_close_phi_out_of_ssa): Likewise.
36714 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
36715 debug expressions.
36716 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
36717 propagated constants.
36718 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
36719 can not be shared.
36720
36721 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36722
36723 * config/avr/avr-modes.def: Add GPL copyright notice.
36724
36725 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
36726
36727 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
36728 MEMMODEL_MASK to determine memory model.
36729 (atomic_store<mode>): Ditto from operands[2].
36730 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
36731
36732 2013-01-13 Jakub Jelinek <jakub@redhat.com>
36733
36734 PR fortran/55935
36735 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
36736 (fold_gimple_assign): Don't call unshare_expr here.
36737 (fold_ctor_reference): Call unshare_expr.
36738
36739 2013-01-13 Terry Guo <terry.guo@arm.com>
36740
36741 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
36742 * doc/fragments.texi: Document MULTILIB_REUSE.
36743 * gcc.c (multilib_reuse): New internal spec.
36744 (set_multilib_dir): Also search multilib from multilib_reuse.
36745 * genmultilib (tmpmultilib3): Refactor code.
36746 (tmpmultilib4): Ditto.
36747 (multilib_reuse): New multilib argument.
36748
36749 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
36750
36751 * Makefile.in: Update copyright.
36752
36753 2013-01-12 Tom de Vries <tom@codesourcery.com>
36754
36755 PR middle-end/55890
36756 * calls.c (expand_call): Check if arg_nr is valid.
36757
36758 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36759
36760 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
36761 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
36762 documentation. Add missing '__' in front of
36763 __builtin_ia32_packssdw256.
36764
36765 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36766
36767 PR target/55719
36768 * config/s390/s390.c (s390_preferred_reload_class): Do not return
36769 NO_REGS for larl operands.
36770 (s390_reload_larl_operand): Use s390_load_address instead of
36771 emit_move_insn.
36772
36773 2013-01-11 Richard Biener <rguenther@suse.de>
36774
36775 * tree-cfg.c (verify_node_sharing_1): Split out from ...
36776 (verify_node_sharing): ... here.
36777 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
36778
36779 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
36780
36781 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
36782 Substitute TREECHECKING.
36783 * configure: Regenerate.
36784 * Makefile.in (TREECHECKING): New.
36785
36786 2013-01-11 Richard Guenther <rguenther@suse.de>
36787
36788 PR tree-optimization/44061
36789 * tree-vrp.c (extract_range_basic): Compute zero as
36790 value-range for __builtin_constant_p of function parameters.
36791
36792 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
36793
36794 Update copyright years.
36795
36796 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
36797
36798 PR rtl-optimization/55672
36799 * lra-eliminations.c (mark_not_eliminable): Permit addition with
36800 const to be eliminable.
36801
36802 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
36803
36804 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
36805 * configure: Regenerate.
36806
36807 2013-01-10 Richard Biener <rguenther@suse.de>
36808
36809 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
36810
36811 2013-01-10 Richard Biener <rguenther@suse.de>
36812
36813 PR bootstrap/55792
36814 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
36815 locations for virtual PHI arguments.
36816 (rewrite_update_phi_arguments): Likewise.
36817
36818 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
36819
36820 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
36821 on to assembler.
36822
36823 2013-01-10 Jakub Jelinek <jakub@redhat.com>
36824
36825 PR tree-optimization/55921
36826 * tree-complex.c (expand_complex_asm): New function.
36827 (expand_complex_operations_1): Call it for GIMPLE_ASM.
36828
36829 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36830
36831 PR target/55718
36832 * config/s390/s390.c (s390_symref_operand_p)
36833 (s390_loadrelative_operand_p): Merge the two functions.
36834 (s390_check_qrst_address, print_operand_address): Add parameters
36835 to s390_loadrelative_operand_p invokation.
36836 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
36837 (s390_reload_larl_operand, s390_secondary_reload): Use
36838 s390_loadrelative_operand_p instead of s390_symref_operand_p.
36839 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
36840
36841 2013-01-09 Mike Stump <mikestump@comcast.net>
36842
36843 * dse.c (record_store): Remove unnecessary assert.
36844
36845 2013-01-09 Jan Hubicka <jh@suse.cz>
36846
36847 PR tree-optimization/55569
36848 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
36849 * cfgloop.h (scale_loop_profile): Likewise.
36850
36851 2013-01-09 Jan Hubicka <jh@suse.cz>
36852
36853 PR lto/45375
36854 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
36855 functions.
36856 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
36857
36858 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
36859
36860 PR middle-end/55114
36861 * expr.h (maybe_emit_group_store): Declare.
36862 * expr.c (maybe_emit_group_store): New function.
36863 * builtins.c (expand_builtin_int_roundingfn): Call it.
36864 (expand_builtin_int_roundingfn_2): Likewise.
36865
36866 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
36867
36868 PR rtl-optimization/55829
36869 * lra-constraints.c (match_reload): Add code for absent output.
36870 (curr_insn_transform): Add code for reloads of matched inputs
36871 without output.
36872
36873 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
36874
36875 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
36876 attribute of movddup insn to DF.
36877 (*vec_interleave_lowv2df): Ditto.
36878 (vec_dupv2df): Ditto.
36879
36880 2013-01-09 Jan Hubicka <jh@suse.cz>
36881
36882 PR tree-optimiation/55875
36883 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
36884 EVERY_ITERATION parameter.
36885 (number_of_iterations_exit): Check if exit is executed every iteration.
36886 (idx_infer_loop_bounds): Similarly here.
36887 (n_of_executions_at_most): Simplify
36888 to only test for cases where statement is dominated by the
36889 particular bound; handle correctly the "postdominance" test.
36890 (scev_probably_wraps_p): Use max loop iterations info
36891 as a global bound first.
36892
36893 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
36894 Nick Clifton <nickc@redhat.com>
36895
36896 * config/v850/v850.md (cbranchsf4): New pattern.
36897 (cstoresf4): New pattern.
36898 (cbranchdf4): New pattern.
36899 (cstoredf4): New pattern.
36900 (movsicc): Disallow floating point comparisons.
36901 (cmpsf_le_insn): Fix order of operators.
36902 (cmpsf_lt_insn): Likewise.
36903 (cmpsf_eq_insn): Likewise.
36904 (cmpdf_le_insn): Likewise.
36905 (cmpdf_lt_insn): Likewise.
36906 (cmpdf_eq_insn): Likewise.
36907 (cmpsf_ge_insn): Use LE comparison.
36908 (cmpdf_ge_insn): Likewise.
36909 (cmpsf_gt_insn): Use LT comparison.
36910 (cmpdf_gt_insn): Likewise.
36911 (cmpsf_ne_insn): Delete pattern.
36912 (cmpdf_ne_insn): Delete pattern.
36913 * config/v850/v850.c (v850_gen_float_compare): Use
36914 gen_cmpdf_eq_insn for NE comparison.
36915 (v850_float_z_comparison_operator)
36916 (v850_float_nz_comparison_operator): Move from here ...
36917 * config/v850/predicates.md: ... to here. Move GT and GE
36918 comparisons into v850_float_z_comparison_operator.
36919 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36920 Delete prototype.
36921 (v850_float_nz_comparison_operator): Likewise.
36922
36923 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36924
36925 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36926 with calls to gen_insvsi/gen_insvdi.
36927
36928 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
36929
36930 * config/i386/i386.c (initial_ix86_tune_features): Set up
36931 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36932
36933 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
36934 Jakub Jelinek <jakub@redhat.com>
36935
36936 PR tree-optimization/48189
36937 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36938 If nitercst is 0, don't predict the exit edge.
36939
36940 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36941
36942 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36943 in asm_fprintf with reg_names.
36944 (aarch64_print_operand_address): Likewise.
36945 (aarch64_return_addr): Likewise.
36946 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36947
36948 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36949
36950 * config/pa/pa.h (VAL_U6_BITS_P): Define.
36951 (INT_U6_BITS): Likewise.
36952 * config/pa/predicates.md (uint6_operand): New predicate.
36953 (shift5_operand, shift6_operand): Likewise.
36954 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36955 arith32_operand.
36956 (lshrdi3): Use shift6_operand.
36957 (shrpsi4, shrpdi4): New insn patterns.
36958 (extzv): Delete expander.
36959 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
36960 predicates in unamed zero extract patterns. Tighten common constraint.
36961 (extv): Delete expander.
36962 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
36963 predicates in unamed sign extract patterns. Tighten common constraint.
36964 (insv): Delete expander.
36965 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
36966 predicates in unamed insert patterns. Tighten common constraint.
36967 Change uint32_operand predicate to uint6_operand predicate in unamed
36968 DImode pattern to insert constant values of type 1...1xxxx.
36969
36970 2013-01-04 Jan Hubicka <jh@suse.cz>
36971
36972 PR tree-optimization/55823
36973 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36974 issue.
36975
36976 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36977 Uros Bizjak <ubizjak@gmail.com>
36978
36979 PR rtl-optimization/55845
36980 * df-problems.c (can_move_insns_across): Stop scanning at
36981 volatile_insn_p source instruction or give up if
36982 across_from .. across_to range contains any volatile_insn_p
36983 instructions.
36984
36985 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36986
36987 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36988 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36989 Declare.
36990 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36991 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36992
36993 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36994
36995 PR fortran/55341
36996 * asan.c (asan_clear_shadow): New function.
36997 (asan_emit_stack_protection): Use it.
36998
36999 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
37000
37001 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
37002 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
37003 with tab instead of space.
37004
37005 2013-01-08 Nick Clifton <nickc@redhat.com>
37006
37007 * config/rl78/rl78.c (rl78_expand_prologue): Always select
37008 register bank 0 at the start of an interrupt handler.
37009 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
37010 MDBH registers.
37011
37012 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
37013
37014 * config/aarch64/aarch64-simd.md
37015 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
37016 (aarch64_simd_bsl): Likewise.
37017 (aarch64_vcond_internal<mode>): Likewise.
37018 (vcond<mode><mode>): Likewise.
37019 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
37020 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
37021
37022 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
37023
37024 * config/aarch64/aarch64-builtins.c
37025 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
37026
37027 2013-01-08 Martin Jambor <mjambor@suse.cz>
37028
37029 PR debug/55579
37030 * tree-sra.c (analyze_access_subtree): Return true also after
37031 potentially creating a debug-only replacement.
37032
37033 2013-01-08 Jakub Jelinek <jakub@redhat.com>
37034
37035 PR middle-end/55890
37036 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
37037
37038 PR tree-optimization/54120
37039 * tree-vrp.c (range_fits_type_p): Don't allow
37040 src_precision < precision from signed vr to unsigned_p
37041 if vr->min or vr->max is negative.
37042 (simplify_float_conversion_using_ranges): Test can_float_p
37043 against CODE_FOR_nothing.
37044
37045 2013-01-08 Jakub Jelinek <jakub@redhat.com>
37046 Richard Biener <rguenther@suse.de>
37047
37048 PR middle-end/55851
37049 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
37050 types instead of just INTEGER_TYPE types.
37051
37052 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
37053
37054 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
37055 TF_SIZE): Define.
37056
37057 2013-01-07 Steve Ellcey <sellcey@mips.com>
37058
37059 PR target/42661
37060 * config/mips/mips.opt: Change mad to mmad to match documentation.
37061
37062 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37063
37064 PR target/55897
37065 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
37066 .progmemx.data now.
37067
37068 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37069
37070 PR target/55897
37071 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
37072 (avr_addrspace_t): Add .section_name field.
37073 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
37074 array size.
37075 (avr_addrspace): Same. Initialize .section_name. Remove last
37076 NULL entry. Put __memx into .progmemx.data.
37077 (progmem_section_prefix): Remove.
37078 (avr_asm_init_sections): No need to initialize progmem_section.
37079 (avr_asm_named_section): Use avr_addrspace[].section_name to get
37080 section name prefix.
37081 (avr_asm_select_section): Ditto. And use get_unnamed_section to
37082 retrieve the progmem section.
37083 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
37084 boundary to run over avr_addrspace[].
37085 (avr_register_target_pragmas): Ditto.
37086
37087 2013-01-06 Jakub Jelinek <jakub@redhat.com>
37088
37089 * varasm.c (output_constant_def_contents): For asan_protect_global
37090 protected strings, adjust DECL_ALIGN if needed, before testing for
37091 anchored symbols.
37092 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
37093 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
37094 normal decls.
37095 (output_object_block): For asan protected decls, emit asan padding
37096 after their contents.
37097 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
37098 (asan_finish_file): Test it here instead.
37099
37100 2013-01-07 Nick Clifton <nickc@redhat.com>
37101 Matthias Klose <doko@debian.org>
37102 Doug Kwan <dougkwan@google.com>
37103 H.J. Lu <hongjiu.lu@intel.com>
37104
37105 PR driver/55470
37106 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
37107
37108 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
37109
37110 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
37111
37112 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
37113
37114 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
37115
37116 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37117
37118 PR target/54461
37119 * doc/install.texi (Cross-Compiler-Specific Options): Document
37120 --with-avrlibc.
37121
37122 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
37123
37124 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
37125 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
37126 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
37127 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
37128 vqmovun_high_s64): Fix source operand number and update copyright.
37129
37130 2013-01-07 Richard Biener <rguenther@suse.de>
37131
37132 PR middle-end/55890
37133 * gimple.h (gimple_call_builtin_p): New overload.
37134 * gimple.c (validate_call): New function.
37135 (gimple_call_builtin_p): Likewise.
37136 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
37137 Use gimple_call_builtin_p.
37138 (find_func_clobbers): Likewise.
37139 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
37140 (strlen_optimize_stmt): Likewise.
37141
37142 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
37143
37144 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
37145 (vld1q_dup_*): Likewise.
37146 (vld1_*): Likewise.
37147 (vld1q_*): Likewise.
37148 (vld1_lane_*): Likewise.
37149 (vld1q_lane_*): Likewise.
37150
37151 2013-01-07 Richard Biener <rguenther@suse.de>
37152
37153 * lto-streamer.h (LTO_minor_version): Bump to 2.
37154
37155 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
37156
37157 * config/aarch64/aarch64-protos.h
37158 (aarch64_const_double_zero_rtx_p): Rename to...
37159 (aarch64_float_const_zero_rtx_p): ...this.
37160 (aarch64_float_const_representable_p): New.
37161 (aarch64_output_simd_mov_immediate): Likewise.
37162 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
37163 move immediate case.
37164 * config/aarch64/aarch64.c
37165 (aarch64_const_double_zero_rtx_p): Rename to...
37166 (aarch64_float_const_zero_rtx_p): ...this.
37167 (aarch64_print_operand): Allow printing of new constants.
37168 (aarch64_valid_floating_const): New.
37169 (aarch64_legitimate_constant_p): Check for valid floating-point
37170 constants.
37171 (aarch64_simd_valid_immediate): Likewise.
37172 (aarch64_vect_float_const_representable_p): New.
37173 (aarch64_float_const_representable_p): Likewise.
37174 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
37175 (aarch64_output_simd_mov_immediate): New.
37176 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
37177 (*movdf_aarch64): Likewise.
37178 * config/aarch64/constraints.md (Ufc): New.
37179 (Y): call aarch64_float_const_zero_rtx.
37180 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
37181
37182 2013-01-07 Richard Biener <rguenther@suse.de>
37183
37184 PR tree-optimization/55888
37185 PR tree-optimization/55862
37186 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
37187 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
37188 not if it is contained therein.
37189
37190 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37191
37192 * config/avr/t-avr: Typo.
37193
37194 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37195
37196 PR55243
37197 * config/avr/t-avr: Don't automatically rebuild
37198 $(srcdir)/config/avr/t-multilib
37199 $(srcdir)/config/avr/avr-tables.opt
37200 $(srcdir)/doc/avr-mmcu.texi
37201 (avr-mcus): New phony target to build them on request.
37202 (s-avr-mlib, s-avr-mmcu-texi): Remove.
37203 * avr/avr-mcus.def: Adjust comments.
37204
37205 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
37206
37207 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
37208
37209 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
37210
37211 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
37212
37213 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
37214
37215 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
37216
37217 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
37218
37219 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
37220 to generate profiling.
37221 * config/rs6000/aix64.h (LIB_SPEC): Same.
37222
37223 2013-01-04 Andrew Pinski <apinski@cavium.com>
37224
37225 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
37226 New function.
37227 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
37228
37229 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
37230
37231 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
37232 unconditionally.
37233 (ix86_expand_move): Ditto.
37234 (ix86_zero_extend_to_Pmode): Ditto.
37235 (ix86_expand_call): Ditto.
37236 (ix86_expand_special_args_builtin): Ditto.
37237 (ix86_expand_builtin): Ditto.
37238
37239 2013-01-04 Richard Biener <rguenther@suse.de>
37240
37241 PR tree-optimization/55862
37242 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
37243 translating them through PHI nodes.
37244
37245 2013-01-04 Martin Jambor <mjambor@suse.cz>
37246
37247 PR tree-optimization/55755
37248 * tree-sra.c (sra_modify_assign): Do not check that an access has no
37249 children when trying to avoid producing a VIEW_CONVERT_EXPR.
37250
37251 2013-01-04 Marek Polacek <polacek@redhat.com>
37252
37253 PR middle-end/55859
37254 * opts.c (default_options_optimization): Clarify error message.
37255
37256 2013-01-04 Richard Biener <rguenther@suse.de>
37257
37258 PR middle-end/55863
37259 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
37260 reassociation.
37261
37262 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37263
37264 PR target/53789
37265 * config/pa/pa.md (movsi): Revert previous change.
37266 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
37267 references.
37268
37269 2013-01-03 Richard Henderson <rth@redhat.com>
37270
37271 * config/i386/i386.c (ix86_expand_move): Always assign to op1
37272 after eliminating TLS symbols.
37273
37274 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
37275
37276 PR bootstrap/50167
37277 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
37278 * graphite-poly.c (debug_gmp_value): Likewise.
37279
37280 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
37281
37282 PR target/55712
37283 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
37284 selected code model, define __code_mode_small__, __code_model_medium__,
37285 __code_model_large__, __code_model_32__ or __code_model_kernel__.
37286 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
37287 xchg temporary register with %k. Declare temporary register as
37288 early clobbered.
37289 [__x86_64__]: For medium and large code models, preserve %rbx register.
37290
37291 2013-01-03 Richard Biener <rguenther@suse.de>
37292
37293 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
37294 (dump_subscript): Adjust.
37295 (finalize_ddr_dependent): Do not dump redundant info.
37296 (analyze_siv_subscript): Adjust.
37297 (subscript_dependence_tester): Likewise.
37298 (compute_affine_dependence): Likewise.
37299
37300 2013-01-03 Richard Biener <rguenther@suse.de>
37301
37302 Revert
37303 2013-01-03 Richard Biener <rguenther@suse.de>
37304
37305 PR tree-optimization/55857
37306 * tree-vect-stmts.c (vectorizable_load): Do not setup
37307 re-alignment for invariant loads.
37308
37309 2013-01-02 Richard Biener <rguenther@suse.de>
37310
37311 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
37312 invariant load do not generate a vector load from the scalar location.
37313
37314 2013-01-03 Richard Biener <rguenther@suse.de>
37315
37316 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
37317 for not vectorizing.
37318 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
37319 not build INDIRECT_REFs, call get_name once only.
37320 (vect_create_data_ref_ptr): Likewise. Dump base object kind
37321 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
37322
37323 2013-01-03 Richard Biener <rguenther@suse.de>
37324
37325 PR tree-optimization/55857
37326 * tree-vect-stmts.c (vectorizable_load): Do not setup
37327 re-alignment for invariant loads.
37328
37329 2013-01-03 Richard Biener <rguenther@suse.de>
37330
37331 PR lto/55848
37332 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
37333 prefer a built-in decl.
37334
37335 2013-01-03 Jakub Jelinek <jakub@redhat.com>
37336
37337 * gcc.c (process_command): Update copyright notice dates.
37338 * gcov.c (print_version): Likewise.
37339 * gcov-dump.c (print_version): Likewise.
37340
37341 PR rtl-optimization/55838
37342 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
37343 iv0.step, iv1.step and step.
37344
37345 2013-01-03 Jakub Jelinek <jakub@redhat.com>
37346 Marc Glisse <marc.glisse@inria.fr>
37347
37348 PR tree-optimization/55832
37349 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
37350 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
37351 integer_{one,zero}_node.
37352
37353 2013-01-03 Jakub Jelinek <jakub@redhat.com>
37354
37355 PR debug/54402
37356 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
37357 * var-tracking.c (reverse_op): Don't add reverse ops to
37358 VALUEs that have already
37359 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
37360
37361 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
37362
37363 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
37364
37365 2013-01-02 Teresa Johnson <tejohnson@google.com>
37366
37367 * dumpfile.c (dump_loc): Print filename with location.
37368 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
37369 new location_t parameter to emit complete unroll message with
37370 new dump framework.
37371 (canonicalize_loop_induction_variables): Compute loops location
37372 and pass to try_unroll_loop_completely.
37373 * loop-unroll.c (report_unroll_peel): New function.
37374 (peel_loops_completely): Use new dump format with location
37375 for main dumpfile message, and invoke report_unroll_peel on success.
37376 (decide_unrolling_and_peeling): Ditto.
37377 (decide_peel_once_rolling): Remove old dumpfile message subsumed
37378 by report_unroll_peel.
37379 (decide_peel_completely): Ditto.
37380 (decide_unroll_constant_iterations): Ditto.
37381 (decide_unroll_runtime_iterations): Ditto.
37382 (decide_peel_simple): Ditto.
37383 (decide_unroll_stupid): Ditto.
37384 * cfgloop.c (get_loop_location): New function.
37385 * cfgloop.h (get_loop_location): Declare.
37386
37387 2013-01-02 Sriraman Tallam <tmsriram@google.com>
37388
37389 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
37390 NULL.
37391
37392 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37393
37394 PR middle-end/55198
37395 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
37396 BLKmode objects when EXPAND_MEMORY is specified.
37397
37398 2013-01-02 Sriraman Tallam <tmsriram@google.com>
37399
37400 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
37401 in loop predicate.
37402 (fold_builtin_cpu): Do not share cpu model decls across statements.
37403
37404 2013-01-02 Jason Merrill <jason@redhat.com>
37405
37406 PR c++/55804
37407 * tree.c (build_array_type_1): Revert earlier change.
37408
37409 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
37410
37411 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
37412 "cortex-a57".
37413 * config/aarch64/aarch64-tune.md: Re-generate.
37414
37415 2013-01-02 Richard Biener <rguenther@suse.de>
37416
37417 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
37418 invariant load do not generate a vector load from the scalar location.
37419
37420 2013-01-02 Richard Biener <rguenther@suse.de>
37421
37422 PR bootstrap/55784
37423 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
37424 * configure: Regenerate.
37425
37426 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
37427
37428 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
37429 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
37430 (expand_builtin_int_roundingfn_2): Keep the original target around
37431 for the fallback case.
37432
37433 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
37434
37435 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
37436 to be clear for sign changes.
37437
37438 2013-01-01 Jan Hubicka <jh@suse.cz>
37439
37440 * ipa-inline-analysis.c: Fix formatting.
37441
37442 2013-01-01 Jakub Jelinek <jakub@redhat.com>
37443
37444 PR tree-optimization/55831
37445 * tree-vect-loop.c (get_initial_def_for_induction): Use
37446 gsi_after_labels instead of gsi_start_bb.
37447 \f
37448 Copyright (C) 2013 Free Software Foundation, Inc.
37449
37450 Copying and distribution of this file, with or without modification,
37451 are permitted in any medium without royalty provided the copyright
37452 notice and this notice are preserved.